Class CassandraHealthCheck

  • All Implemented Interfaces:
    HealthCheck

    public class CassandraHealthCheck
    extends Object
    implements HealthCheck
    Author:
    Rob de Boer, Joost van de Wijgerd
    • Constructor Detail

      • CassandraHealthCheck

        @Autowired
        public CassandraHealthCheck​(com.datastax.driver.core.Session cassandraSession)
    • Method Detail

      • check

        public HealthCheckResult check()
        Because we are doing quorum reads and writes the system is still healthy when there are N - 1 nodes up, where N is the total number of nodes in the cluster. Check this tool: https://www.ecyrd.com/cassandracalculator/
        Specified by:
        check in interface HealthCheck
        Returns: