Elasticsearch单机下多实例配置
2023-09-14 09:11:57 时间
##################### Elasticsearch Configuration Example ##################### index.cache.field.type: soft index.cache.field.max_size: 500000 index.cache.field.expire: 5m index.cache.filter.max_size: 500000 index.cache.filter.expire: 5m indices.fielddata.cache.size: 8g #index.translog.flush_threshold_ops: 5000 index.translog.flush_threshold_size: 1024mb #max_shard_index_buffer_size: 5mb index.store.type: niofs #cache.memory.large_cache_size: 10mb #index.merge.policy.merge_factor: 3 #index.merge.policy.min_merge_docs: 3 #index.merge.policy.max_merge_docs: 3 #index.merge.policy.use_compound_file: false #index.merge.policy.max_merged_segment: 1g indices.store.throttle.max_bytes_per_sec: 50mb #index.store.fs.memory.enabled: false indices.memory.index_buffer_size: 20% #index.compound_format: false index.merge.scheduler.max_thread_count: 5 cluster.routing.allocation.disk.threshold_enabled: true cluster.routing.allocation.disk.watermark.low: 92% cluster.routing.allocation.disk.watermark.high: 95% cluster.info.update.interval: 30s cluster.routing.allocation.disk.include_relocations: true ################################## Discovery ################################## discovery.zen.ping.timeout: 10s ################################## Slow Log ################################## # Shard level query and fetch threshold logging. #index.search.slowlog.threshold.query.warn: 10s #index.search.slowlog.threshold.query.info: 5s #index.search.slowlog.threshold.query.debug: 2s #index.search.slowlog.threshold.query.trace: 500ms #index.search.slowlog.threshold.fetch.warn: 1s #index.search.slowlog.threshold.fetch.info: 800ms #index.search.slowlog.threshold.fetch.debug: 500ms #index.search.slowlog.threshold.fetch.trace: 200ms #index.indexing.slowlog.threshold.index.warn: 10s #index.indexing.slowlog.threshold.index.info: 5s #index.indexing.slowlog.threshold.index.debug: 2s #index.indexing.slowlog.threshold.index.trace: 500ms ################################## GC Logging ################################ #monitor.jvm.gc.young.warn: 1000ms #monitor.jvm.gc.young.info: 700ms #monitor.jvm.gc.young.debug: 400ms #monitor.jvm.gc.old.warn: 10s #monitor.jvm.gc.old.info: 5s #monitor.jvm.gc.old.debug: 2s http.cors.enabled: true threadpool: bulk: size: 192 queue_size: 1920 index.refresh_interval: 30s network.host: 192.168.3.156 transport.tcp.port: 9300 http.port: 9200 path.logs: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx discovery.zen.minimum_master_nodes: 11 node.master: true node.data: true cluster.name: es path.data: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx discovery.zen.ping.multicast.enabled: false discovery.zen.ping.unicast.hosts: ["192.168.xxx.xxx","192.168.xxx"] bootstrap.mlockall: true index.cache.query.enable: true indices.cache.query.size: 10%
单机下多实例配置:
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: ["127.0.0.1:9300", "127.0.0.1:9301", "127.0.0.1:9302"]
network.host: 127.0.0.1
http.port: 9200
transport.tcp.port: 9300
index.number_of_shards: 6
index.number_of_replicas: 0
相关文章
- 交换机vlan配置实例_h3c vlan配置
- 位运算符的用法右移_位运算左移右移实例
- Nginx 基础配置实例
- Linux平台Oracle 23c单实例 安装部署配置 快速参考
- 【IDEA】同一个应用运行多个测试实例(以不同端口)
- Redis教程(九):主从复制配置实例
- EF 配置Oracle数据库数据库连接字符串的实例
- Linux配置防火墙,开启80、3306端口的实例方法
- log4j.properties配置详解与实例程序员
- Oracle阻塞(blockingblocked)实例详解
- 配置Oracle 实例安装及配置指南(oracle两个实例)
- Linux实例宝典:零基础开启Linux之旅(linux实例大全)
- MySQL 多实例配置指南(mysql多实例配置)
- 微擎多实例对接Redis实现负载均衡(多个微擎对接redis)
- Oracle SID配置指南有效解决实例连接问题(oracle sid配置)
- 配置MySQL与卸载MySQL实例操作
- c++判断奇数偶数实例介绍
- JAVA应用系统工具快捷托盘实例代码
- 基于PHPSocket配置以及实例的详细介绍
- JavaScript实现维吉尼亚(Vigenere)密码算法实例
- C#通过XML节点属性/属性值读取写入XML操作代码实例
- php定时计划任务与fsockopen持续进程实例
- IOS开发教程之put上传文件的服务器的配置及实例分享
- Debian中PostgreSQL数据库安装配置实例
- C++之WSAAsyncSelect模型实例