elastic node type
- master node
- data node
- client node (used to execute large aggregation or as program client)
尽量不要直接将master或者data节点暴露给应用程序
大内存的client node作为数据分析统计用,
网络性能好的client node作为应用程序交互机器
elastic jvm tips
elastic集群的稳定性很大程度取决于jvm的垃圾回收。
jvm频繁的长时间的垃圾回收。
-XX:+UseG1GC -XX:MaxGCPauseMillis=4000 -XX:InitiatingHeapOccupancyPercent=80
elastic bulk update performence
注意控制应用程序的多线程数量,避免线程过多导致es队列过满导致程序端超时异常
千万要注意控制shard的转移策略,一定记着设置延迟copy missing shards.