Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

135
Vistas
Couchbase Server Status

I am using Spring data Couchbase in my application.I am using the CouchbaseOperations object to find out the cluster info with the following code.

List<Version> versions = this.couchbaseOperations.getCouchbaseClusterInfo().getAllVersions();

This gives me the version of the couchbase server which I am using.This is working fine. But the issue is that it always gives me the version of Couchbase Server irrespective of whether the server is up or down. So my use case is that, if my couchbase server is down, I need to display that Couchbase server is down.
So can anybody give me a method to check the status of Couchbase server using any inbuilt method in CouchbaseOperation object or CouchbaseTemplate object or any other method. Thanks in advance.

about 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

It should be possible to check the status for every node of a bucket with

Integer timeoutInMs = 1000;
Bucket bucket = couchbaseConfig.couchbaseClient();
boolean isReachable = bucket.bucketManager().info().nodeList().get(0).isReachable(timeoutInMs);

If you have multiple buckets do this for every single one of them. If you have more nodes loop through them instead of only using get(0).

about 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda