I'm using ElasticSearch 6.8 with 3 Nodes. I have set discovery.zen.minimum_master_nodes: 2
I'm trying to test what happens when there is only 1 node online.
I've shut down 2 nodes and I can see the 3rd node goes into: "not enough master nodes discovered during pinging"
Based on: https://www.elastic.co/guide/en/elasticsearch/reference/6.8/modules-discovery-zen.html#no-master-block I would expect to still be able to run searches against this node.
This seems to work fine as the Elastic user but if I try as an custom user I get an exception suggesting that the server is trying to connect to another node:
[2021-01-14T15:48:16,669][DEBUG][o.e.a.g.TransportGetAction] [SERVER-A] null: failed to execute [get [.security][doc][user-testuser]: routing [null]]
org.elasticsearch.transport.NodeNotConnectedException: [SERVER-B][192.168.1.10:9300] Node not connected
This suggests that somehow the authentication is depending on the other node.
All nodes are set to:
node.master: true
node.data: true
node.max_local_storage_nodes: 1
node.attr.fault_domain: 0
node.attr.update_domain: 0
cluster.routing.allocation.awareness.attributes: fault_domain,update_domain
The user basically has full access to any indexes with a prefix:
` ` `"cluster"` `: [` `"all"` `],`
` ` `"indices"` `: [ {`
` ` `"names"` `: [`
` ` `"$($IndexName)_*"`
` ` `],`
` ` `"privileges"` `: [`
` ` `"all"`
` ` `],`
` ` `"field_security"` `: {`
` ` `"grant"` `: [`
` ` `"*"`
` ` `]`
` ` `},`
` ` `"allow_restricted_indices"` `: false`
` ` `}`
` ` `],`
` ` `"applications"` `: [ ],`
` ` `"run_as"` `: [ ],`
` ` `"metadata"` `: { },`
` ` `"transient_metadata"` `: { ` `"enabled"` `: true }`
` ` `}`
I'm not sure what could be wrong/why searches are not working?