你的浏览器禁用了JavaScript, 请开启后刷新浏览器获得更好的体验!
输入关键字进行搜索
搜索:
发现
分享
文章
活动
登录
用了Elasticsearch,一口气上5T
关于CPU的问题
Elasticsearch
| 作者
mai
| 发布于2019年08月23日 | 阅读数:
1453
分享到:
QQ空间
新浪微博
微信
QQ好友
印象笔记
有道云笔记
请问一下,机器都是32CPU,1core和8core哪种好一些?我把以前1core改成8core之后发现索引速度下降了。
没有找到相关结果
已邀请:
与内容相关的链接
提交
1 个回复
mai
-
90后研究生
赞同来自:
顺便问一下我的index设置是否合理
PUT java
{
"settings": {
"index":{
"sort.field": "project",
"sort.order": "desc"
},
"number_of_shards": 4,
"number_of_replicas": 0,
"refresh_interval": "-1",
"index.merge.scheduler.max_thread_count":1,
"index.codec": "best_compression",
"index.translog":{
"sync_interval": "120s",
"durability": "async"
},
"index.search.slowlog.threshold.query.warn": "1s",
"index.search.slowlog.threshold.query.info": "800ms",
"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": "2s",
"index.indexing.slowlog.threshold.index.debug": "5s",
"index.indexing.slowlog.threshold.index.trace": "500ms",
"analysis": {
"analyzer": {
"my_analyzer": {
"char_filter": [
"html_strip"
],
"type": "custom",
"tokenizer": "ik_max_word",
"filter":["hagongda",
"baidu",
"sichuangdaxue",
"chinese"
]
}
},
"filter": {
"baidu":{
"type":"stop",
"stopwords_path": "stopwords/baidu.txt"
},
"sichuangdaxue":{
"type":"stop",
"stopwords_path": "stopwords/sichuangdaxue.txt"
},
"hagongda":{
"type":"stop",
"stopwords_path": "stopwords/hagongda.txt"
},
"chinese":{
"type":"stop",
"stopwords_path": "stopwords/chinese.txt"
}
}
}
},
"mappings": {
"dynamic": "strict",
"_field_names":{
"enabled":false
},
"properties": {
"project":{
"type": "keyword",
"norms": false
},
"filename":{
"type": "keyword",
"norms": false,
"doc_values": false
},
"user_filename":{
"type": "keyword",
"norms": false,
"doc_values": false
},
"code":{
"type": "text",
"norms": false,
"doc_values": false,
"index_options": "offsets",
"analyzer": "my_analyzer"
}
}
}
}
要回复问题请先
登录
或
注册
发起人
mai
90后研究生
活动推荐
Jun
17
搜索客 Meetup 讲师招募(长期有效)
线上
·
6-17 周一
·
进行中
May
15
Workshop | 搜索服务统一治理(跨引擎多个集群监控管理、流量管控、服务编排)
北京
·
5-15 周四
·
报名中
May
16
2025XCOPS智能运维管理人年会
广州
·
5-16 周五
·
报名中
May
29
Workshop | Coco AI - 开源智能搜索与知识库管理
北京
·
5-29 周四
·
报名中
Jun
28
第26届 GOPS 全球运维大会暨研运数智化技术峰会 · 北京站
北京
·
6-28 周六
·
报名中
相关问题
这个问题有点难?
怎么解决elasticsearch集群占用太多虚拟内存(VIRT)的问题?占用了几十个G,有什么可以对它进行限制的相关设置吗?
集群稳定性的一些问题(一定量数据后集群变得迟钝)
elasticsearch functionScoreQuery scriptFunction效率问题
关于单个机器分片数容量问题
elasticsearch 中的store 以及倒排索引的问题
logstash获取时间的问题
索引某个shard无法恢复的问题
es scroll查询全部数据问题
关于logstash和elasticsearch的时区问题
logstash导入mysql上亿级别数据的效率问题
问题状态
最新活动:
2019-08-23 19:13
浏览:
1453
关注:
1
人
1 个回复
mai - 90后研究生
赞同来自:
PUT java
{
"settings": {
"index":{
"sort.field": "project",
"sort.order": "desc"
},
"number_of_shards": 4,
"number_of_replicas": 0,
"refresh_interval": "-1",
"index.merge.scheduler.max_thread_count":1,
"index.codec": "best_compression",
"index.translog":{
"sync_interval": "120s",
"durability": "async"
},
"index.search.slowlog.threshold.query.warn": "1s",
"index.search.slowlog.threshold.query.info": "800ms",
"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": "2s",
"index.indexing.slowlog.threshold.index.debug": "5s",
"index.indexing.slowlog.threshold.index.trace": "500ms",
"analysis": {
"analyzer": {
"my_analyzer": {
"char_filter": [
"html_strip"
],
"type": "custom",
"tokenizer": "ik_max_word",
"filter":["hagongda",
"baidu",
"sichuangdaxue",
"chinese"
]
}
},
"filter": {
"baidu":{
"type":"stop",
"stopwords_path": "stopwords/baidu.txt"
},
"sichuangdaxue":{
"type":"stop",
"stopwords_path": "stopwords/sichuangdaxue.txt"
},
"hagongda":{
"type":"stop",
"stopwords_path": "stopwords/hagongda.txt"
},
"chinese":{
"type":"stop",
"stopwords_path": "stopwords/chinese.txt"
}
}
}
},
"mappings": {
"dynamic": "strict",
"_field_names":{
"enabled":false
},
"properties": {
"project":{
"type": "keyword",
"norms": false
},
"filename":{
"type": "keyword",
"norms": false,
"doc_values": false
},
"user_filename":{
"type": "keyword",
"norms": false,
"doc_values": false
},
"code":{
"type": "text",
"norms": false,
"doc_values": false,
"index_options": "offsets",
"analyzer": "my_analyzer"
}
}
}
}