bro-n-bro / cybernode

🧠 Provider for the Great Web.
https://cybernode.ai
Other
30 stars 11 forks source link

Write Liveness Probes for Elassandra #99

Closed arturalbov closed 4 years ago

arturalbov commented 6 years ago

We faced the next situation: One node got stuck with java.lang.OutOfMemoryError: Java heap space error but container kept working. See logs logs-from-elassandra-in-elassandra-3.txt

So probably what we need is to check periodically if elassandra node is alive by kubernetes tool called liveness probe (k8s will restart it if node is not alive).

vroyer commented 6 years ago

A ready-probe.sh script for k8s is now embedded in elassandra 5.5.0.21 docker image. See Scalable-Elassandra-deployment-on-Kubernetesfor usage in k8s configuration.