Elasticsearch笔记

tammypi tammypi
2019-05-24 09:49
193
0

1.在ES1.0,多播是默认开启的,所以可以把discovery.zen.ping.multicast.enabled设为false;但是2.0版本开始,非多播的方式是唯一的选择,所以必须设置discovery.zen.ping.unicast.hosts参数

 

2.关键参数(ES7中把thread_pool.index移除了,换为了thread_pool.write)

#####thread pool setting#################

threadpool.index.type: fixed                              写索引线程池类型

threadpool.index.size: 64                                   线程池大小(建议2~3倍cpu数)

threadpool.index.queue_size: 1000                            队列大小

 

threadpool.search.size: 64                                  搜索线程池大小

threadpool.search.type: fixed                             搜索线程池类型

threadpool.search.queue_size: 1000                    队列大小

 

threadpool.get.type: fixed                                  取数据线程池类型

threadpool.get.size: 32                                      取数据线程池大小

threadpool.get.queue_size: 1000                         队列大小

 

threadpool.bulk.type: fixed                                批量请求线程池类型

threadpool.bulk.size: 32                                    批量请求线程池大小

threadpool.bulk.queue_size: 1000                       队列大小

 

threadpool.flush.type: fixed                               刷磁盘线程池类型

threadpool.flush.size: 32                                          刷磁盘线程池大小

threadpool.flush.queue_size: 1000                      队列大小

 

3.同步刷新请求

POST /_flush/synced

 

 

 

发表评论

验证码: