🚀 Try Zilliz Cloud, the fully managed Milvus, for free—experience 10x faster performance! Try Now>>

Milvus
Zilliz
< Docs
  • Java

checkHealth()

This operation checks the health condition of the current Milvus instance.

public CheckHealthResp checkHealth()

Request syntax

CheckHealthResp()

BUILDER METHODS:

None

RETURN TYPE:

CheckHealthResp

RETURNS

A CheckHealthResp object that contains detailed information about the current Milvus instance. The object has the following fields:

  • isHealthy (Boolean) -

    Whether the current Milvus instance is in a healthy state.

  • reasons (List) -

    Return the unhealthy reasons if the server is in an unhealthy state.

  • quotaStates (List) -

    The names of unhealthy states. The following names could be in the list: "ReadLimited", "WriteLimited", "DenyToRead", "DenyToWrite", "DenyToDDL".

EXCEPTIONS:

  • MilvusClientExceptions

    This exception will be raised when any error occurs during this operation.

Example

import io.milvus.v2.client.ConnectConfig;
import io.milvus.v2.client.MilvusClientV2;
import io.milvus.v2.service.utility.response.CheckHealthResp;

// 1. Set up a client
ConnectConfig connectConfig = ConnectConfig.builder()
        .uri("http://localhost:19530")
        .token("root:Milvus")
        .build();
        
MilvusClientV2 client = new MilvusClientV2(connectConfig);

// 2. Check healthy
CheckHealthResp healthyResp = client.checkHealth();

Try Managed Milvus for Free

Zilliz Cloud is hassle-free, powered by Milvus and 10x faster.

Get Started
Feedback

Was this page helpful?