NoNodeAvailableException[None of the configured nodes are available: [{#transport#-1}{WuthxY32RuC4MQHLI99mgQ}{public-elk-1}{10.4.2.165:9300}]] at org.elasticsearch.client.transport.TransportClientNodesService.ensureNodesAreAvailable(TransportClientNodesService.java:344) at org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:242) at org.elasticsearch.client.transport.TransportProxyClient.execute(TransportProxyClient.java:59) at org.elasticsearch.client.transport.TransportClient.doExecute(TransportClient.java:366) at org.elasticsearch.client.support.AbstractClient.execute(AbstractClient.java:404) at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:80) at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:54) at org.elasticsearch.action.ActionRequestBuilder.get(ActionRequestBuilder.java:62) at com.aaaaa.log.es.QpsESWriteService.lambda$new$0(QpsESWriteService.java:64)public-elk-1 域名解析的IP和10.4.2.165对应不上
[0]: index [fullinfo_action-service-task-saas_2021_02_01], type [_doc], id [C0A854C200004CCABBAA02F029A75ACD], message [ElasticsearchException[Elasticsearch exception [type=validation_exception, reason=Validation Failed: 1: this action would add [16] total shards, but this cluster currently has [2998]/[3000] maximum shards open;]]]将template对的索引从默认的16个修改为4个,将最大的3000修改为30000即可