ES优化

1.ES的堆栈内存默认1G,实际生产要调整,调整到实际内存的一半,可以通过配置环境变量ES_HEAP_SIZE调整。

参考:https://www.cnblogs.com/xingxiz/p/10267036.html

es常用状态查看命令:https://blog.csdn.net/u014017121/article/details/70312784

2.增加bulk 操作效率

threadpool.index.queue_size: 1000
indices.memory.index_buffer_size: 20%
index.translog.durability: async
index.translog.flush_threshold_size: 600MB
index.translog.flush_threshold_ops: 500000
threadpool.bulk.queue_size: 1000

 

你可能感兴趣的:(ES)