public boolean ping() throws Exception {
        final String[] urls = esConfig.getHttpUrls(InlongConstants.SLASH);
        boolean result = true;
        for (String url : urls) {
            result &= HttpUtils.headRequest(esConfig.getRestClient(), url, null, getHttpHeaders());
        }
        return result;
    }
Check if the cluster is available.

@return true or false
inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/resource/sink/es/ElasticsearchApi.java