Overview:
This article describes how to resolve 70% of issues related to Apache Casandra that is bundled with Upsource and used for data storage.
Symptoms:
- Cassandra gets restarted on a regular basis
- New commits are not getting indexed
- Some (all) revisions are stuck in "indexing in progress" state
Solution:
Our statistics show that the most common reason for Cassandra failures is lack of memory assigned to it. Here are the steps on how to increase it:
- Open <Upsource_home_dir>\conf\cassandra directory
- Copy cassandra.jvmoptions.dist into cassandra.jvmoptions (remove .dist from name)
- Open cassandra.jvmoptions
- Replace
#-Xmx3000m
with-Xmx5000m
in the file and save it - Make sure you have enough memory/swap on the host
- Restart Upsource
If this didn't help, please submit a request with attached logs to the Upsource team.
Comments