Ztyx
Ztyx

Reputation: 14939

What's the best-practises liveness check for Cassandra?

I have an HTTP healthcheck endpoint that checks that infrastructure dependencies such as Cassandra is up and running. For SQL databases liveness is commonly checked by executing SELECT 1. Is there an equivalent query that can be executed against Cassandra?

Upvotes: 1

Views: 1267

Answers (1)

HashtagMarkus
HashtagMarkus

Reputation: 1661

You could query for the cassandra version

SELECT release_version FROM system.local

Upvotes: 3

Related Questions