Elasticsearch_初始化配置
来源:互联网 发布:宁武子 邦有道则知翻译 编辑:程序博客网 时间:2024/05/24 06:40
- 构建ES集群环境经常用到的配置:
- 1.action.auto_create_index --配置是否自动创建索引(true OR false);
- 2.gateway.type -- (fs, none, local);
- 3.cluster.routing.schedule 如(50ms), 发现新节点时间
- Settings settings = settingsBuilder()
- .put("discovery.type", "zen") //发现集群方式
- .put("discovery.zen.minimum_master_nodes", 2) //最少有2个master存在
- .put("discovery.zen.ping_timeout", "200ms") //集群ping时间,太小可能会因为网络通信而导致不能发现集群
- .put("discovery.initial_state_timeout", "500ms")
- .put("gateway.type", "local")
- .put("index.number_of_shards", 1)
- .put("action.auto_create_index", false)
- .put("cluster.routing.schedule", "50ms")
- .build();
- 改变shards数目:
- client.admin().indices().prepareUpdateSettings("test").setSettings(settingsBuilder().put("index.number_of_replicas", 2)).execute().actionGet();
使用Mongodb River时,可设置 river.mongodb: TRACE 打开日志。
- ES常量设置:
- index.cache.query.parser.type 查询分析缓存类型, 分为:JVM级别, resident的和NULL。
- index.cache.field.max_size 设置大小,配置为soft时用。
- index.cache.field.expire 可设置为null,表示永不过期。
- index.cache.field.type 值集合:{resident, soft, none} 分别为常驻式、驱逐式、无缓存
- index.cache.filter.type (none, weighted)
- index.codec.postings_format.type (BloomFilterPostingsFormatProvider,DirectPostingsFormatProvider, MemoryPostingsFormatProvider, Lucene40PostingsFormatProvider, Pulsing40PostingsFormatProvider)
- cluster.routing.operation.type
- cluster.routing.operation.hash.type (DjbHashFunction, SimpleHashFunction)
- index.analysis.char_filter
- index.cache.id.type (SimpleIdCache)
- index.merge.policy.type
- "index.merge.policy.min_merge_size",
- "index.merge.policy.max_merge_size",
- "index.merge.policy.max_merge_docs",
- "index.merge.policy.merge_factor",
- "index.compound_format"
- "index.merge.policy.min_merge_docs",
- "index.merge.policy.max_merge_docs",
- "index.merge.policy.merge_factor",
- "index.compound_format"
- "index.merge.policy.expunge_deletes_allowed",
- "index.merge.policy.floor_segment",
- "index.merge.policy.max_merge_at_once",
- "index.merge.policy.max_merge_at_once_explicit",
- "index.merge.policy.max_merged_segment",
- "index.merge.policy.segments_per_tier",
- "index.merge.policy.reclaim_deletes_weight",
- "index.compound_format"
- index.merge.scheduler.type
- index.similarity.type
- monitor.dump.type
- cluster.routing.operation.type
- index.engine.type
- index.store.type (ram, memory, fs, simplefs, niofs, mmapfs)
- transport.type
阅读全文
0 0
- Elasticsearch_初始化配置
- Elasticsearch_安装配置(对应插件)
- ElasticSearch_搜索
- Elasticsearch_基本操作
- spring-data-elasticsearch_之_ElasticSearch_架构
- elasticsearch_插件(head、bigdesk、marvel、cerebro)
- Spring配置初始化ApplicationContext
- 配置系统未能初始化
- busybox初始化配置
- AnnotationMethodHandlerAdapter 初始化Annotation 配置
- spring配置初始化applicationcontext
- Liferay6初始化安装配置
- 5.3. 初始化配置
- SHOPXX初始化配置
- 初始化配置--科目档案
- ActiveMQ--初始化配置
- ActiveMQ--初始化配置
- spring初始化配置加载
- can总线基础(一)
- java socket报文通信(二)报文的封装
- 生成对抗网络
- yuyv转rgb,rgb转bmp,已验证
- Lombok 安装、入门
- Elasticsearch_初始化配置
- IntelliJ IDEA设置JDK
- Web
- 【备忘】大数据最火爆技术spark之王家林2016最新高清视频教程
- 技术文章 | 你需要知道知道这几个因素会不利于关键词排名优化
- 解决spring boot websocket无法注入bean的问题
- Service Unavailable
- 利用...操作符 修改嵌套比较深的对象里面的值
- Android系统的一些日志录像位置