Elasticsearch Performance Optimization

Source: Internet
Author: User

#系统默认的最大打开文件数的限制vi/etc/security/limits.conf *           Nproc          50240   *           nofile          20480 #65535 &nbsp ;*                -        npro             20480*                -        nofile           65535*                -        memlock         unlimited     #尽量不用交换空间 # set to 1 instead of 0 is mostly likely to occur when memory is full and will kill the program/etc/sysctl.confvm.swappiness = 1  #关闭swapswapoff/dev/Mapper/vg_ "hostname"-lv_swap   #调整每个进程最多可以打开的文件数量和上面的vi/etc/security/limits.conf conflict. But it's all right vi/etc/profileulimit-sh unlimitedulimit-u unlimitedulimit-i unlimitedulimit-l unlimitedulimit-n 204800& nbsp;  #关闭磁盘文件访问时间 don't know how to get   #调整es memory using VI elasticsearch\bin\service\elasticsearch.conf#heap_size set to 60% of physical memory Around.. set.default.es_heap_size= 4620# #分配给es的最小内存 Let MIN = = max suggest what to do, let the GC run up set.default.es_min_mem=4620# #分配给es的最大内存   set.default.es_max_mem=4620    #replicas set to 0 vi elasticsearch/config/ elasticsearch.index.number_of_replicas:0#### and so on index finish. Dynamic execution under put _all/_settings{   "index"  : {                   "Number_of_replicas"  :1             }}###    ## Additional Optimizations for profiles discovery.zen.ping.multicast.enabled:falsediscovery.zen.ping.unicast.hosts: ["172.30.1.71", " 172.30.1.72 ","172.30.1.52"] indices.memory.index_buffer_size:  30%indices.reovery.max_bytes_per_sec:10gb    index.merge.policy.max_merged_segment:10gbindex.merge.scheduler.max_thread_count: 3index.merge.scheduler.max_merge_count:6 index.refresh_interval:30s index.translog.flush_threshold_ size:5gbindex.translog.flush_threshold_ops:50000   index.cache.field.type:  softindex.cache.field.max_size: 50000index.cache.field.expire: 10mindex.fielddata.cache:soft  http://stackoverflow.com/questions/28193076/optimize-elasticsearch-jvmhttps://discuss.elastic.co/t/ miracle-g1-settings-for-30gb-heaps/25271

Elasticsearch Performance Optimization

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.