Performance issues using Elasticsearch as a time window storage

前端 未结 3 1080
無奈伤痛
無奈伤痛 2021-02-02 05:00

We are using elastic search almost as a cache, storing documents found in a time window. We continuously insert a lot of documents of different sizes and then we search in the E

3条回答
  •  南旧
    南旧 (楼主)
    2021-02-02 05:16

    Some other ways to improve Elasticsearch performance:

    • increase index refresh interval. Going from 1 second to 10 or 30 seconds can make a big difference in performance.
    • throttle merging if it's being overly aggressive. You can also reduce the number of concurrent merges by lowering index.merge.policy.max_merge_at_once and index.merge.policy.max_merge_at_once_explicit. Lowering the index.merge.scheduler.max_thread_count can help as well

    It's good to see you are using SPM. Its URL in your EDIT was not hyperlink - it's at http://sematext.com/spm . "Indexing" graphs will show how changing of the merge-related settings affects performance.

提交回复
热议问题