Closed Bug 944390 Opened 12 years ago Closed 12 years ago

missing node in prod socorro ES cluster

Categories

(Infrastructure & Operations Graveyard :: WebOps: Socorro, task, P3)

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: adrian, Assigned: dmaher)

References

Details

It appears one node dropped out of our production elasticsearch cluster (socorro-es1.dev). This might explain why we lost 20% of our crashes yesterday during the reindexing (that's 1 machine out of 5 in the cluster).
The Elasticsearch process was still in memory, but none of the other nodes in the cluster could see the problematic one. The logs on said machine were full of these : [2013-11-27 13:37:46,969][WARN ][netty.channel.DefaultChannelFuture] An exception was thrown by ChannelFutureListener. java.lang.OutOfMemoryError: unable to create new native thread I restarted the process on socorro-es1.dev, and while it appears to have re-joined the cluster as expected, it has done so without announcing any extant indices. This is clearly incorrect, notably since the file system contains all of the indices as expected : [root@socorro-es1.dev.webapp.phx1 indices]# pwd /var/lib/elasticsearch/sss_prod/nodes/0/indices [root@socorro-es1.dev.webapp.phx1 indices]# ls -l | wc -l 55 Investigation on-going.
Assignee: server-ops-webops → dmaher
Status: NEW → ASSIGNED
Priority: -- → P3
In an interesting twist, it would appear that the Java package was upgraded on these nodes, and that as a result, any nodes who's ES instances were re-started *after* the package update were technically running a different version of the JDK than the rest of the cluster. This is a bad thing and can cause all sorts of weird problems in the ES world, for example : BroadcastShardOperationFailedException[[socorro201339][4] ]; nested: RemoteTransportException[Failed to deserialize exception response from stream]; nested: TransportSerializationException[Failed to deserialize exception response from stream]; nested: StreamCorruptedException[unexpected end of block data]; We will need to investigate the best way to deal with this problem going forward - it may be necessary to pin these packages in Yum (as we do with the ES package already). In any case, I restarted the entire cluster so as to ensure JDK consistency across the board - it is currently re-assigning shards, but technically every index is available (status: yellow). I will continue to monitor the process.
[agaudebert@socorro-es1.webapp.phx1 ~]$ curl localhost:9200/_cluster/health?pretty=1 { "cluster_name" : "sss_prod", "status" : "green", "timed_out" : false, "number_of_nodes" : 5, "number_of_data_nodes" : 5, "active_primary_shards" : 270, "active_shards" : 540, "relocating_shards" : 0, "initializing_shards" : 0, "unassigned_shards" : 0 } The cluster is green again! However I don't think we got those 150,000 crashes back from the nothingness, sadly.
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
As an aside, I picked through the logs to see if there was any obvious reason for the OOM, and I think I found it - ES was competing with its own JVM container for memory (kernel vs process), largely because there are currently no memory limits on the JVM. I've created bug 944893 to address this and other config concerns.
See Also: → 944893
Product: Infrastructure & Operations → Infrastructure & Operations Graveyard
You need to log in before you can comment on or make changes to this bug.