Hi All,
In my test environment, I setup a single ES 6.4.1 node, 1 core, 2GB memory (1GB heap).
After creating 600 empty indices (without any data and read/write operation), each index has 20 shards, total 12000 shards, es process cpu goes to 90+% every several seconds.
I just want to figure out what cause high cpu usage, since it’s an empty data cluster and without any operation (read/write). I tried to use jstack, hot_thread, but cann't find any clue, only see some active netty threads. Could anyone give some hint? Thanks a lot!
During testing, I disabled xpack features, and set some refresh, stats interval to a very long value to avoid impacting:
"cluster" : {
"routing" : {
"allocation" : {
"node_concurrent_recoveries" : "100"
}
},
"info" : {
"update" : {
"interval" : "1d"
}
}
},
"indices" : {
"recovery" : {
"max_bytes_per_sec" : "400mb"
}
}
"settings" : {
"index" : {
"refresh_interval" : "30m",
"number_of_shards" : "20",
"translog" : {
"sync_interval" : "1h",
"durability" : "async"
},
"provided_name" : "indexi0",
"max_result_window" : "65536",
"creation_date" : "1539742381743",
"store" : {
"stats_refresh_interval" : "1h"
},
"number_of_replicas" : "0",
"uuid" : "GxZ_ADUzQo6mepQREJe5nA",
"version" : {
"created" : "6040199"
}
}
}
I also modfied es code and disabled translog async and globle checkpoint scheduler. I cloud not see any frequent logs in trace level now. But cpu still goes high in every several seconds.
Thanks,
Howard