elasticsearch 性能调优

elasticsearch 性能调优

增大 thread_pool.index.queue_size 1000
增大 indices.memory.index_buffer_size: 20%
index.translog.durability: async –这个可以异步写硬盘,增大写的速度
增大thread_pool.bulk.queue_size: 5000
设置index.number_of_replicas: 0
适当加大index.refresh_interval

修改jvm.options文件:增大内存

配置查看:
cluster and most of other config:
http://10.200.102.72:9200/_cluster/settings?include_defaults=true

index config:http://10.200.102.72:9200/_settings?include_defaults=true

配置设置:
curl -X PUT “localhost:9200/_cluster/settings”
curl -X PUT “localhost:9200/_settings” -H ‘Content-Type: application/json’ -d’{“index” : {“translog”:{“durability”: “async”,“sync_interval”:“10s”}}}’

https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-update-settings.html

https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html

上生产环境需要的设置:
https://www.elastic.co/guide/en/elasticsearch/reference/current/important-settings.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值