背景:
es扩容一倍的数据节点以后 写入数据量增加1倍
业务反馈业务访问量没增加。
最后定位是监控数据:
PUT _cluster/settings
{"persistent": {"xpack.monitoring.collection.enabled" : "false"}
}
这个索引记录的是 节点的状态 统计了每个节点 索引数 查询情况 资源使用情况等等很多的数据 节点多 shard 多 数据量就大, 不需要禁止掉。
禁止以后qps就降低了。
查看配置
GET _cluster/settings?flat_settings&include_defaults
其它配置
配置监控数据只保留1天。
PUT _cluster/settings
{"persistent": {"xpack.monitoring.history.duration":"1d"}}
https://help.aliyun.com/zh/es/user-guide/configure-monitoring-indexes?scm=20140722.S_help%40%40%E6%96%87%E6%A1%A3%40%4068017.S_BB2%40bl%2BRQW%40ag0%2BBB1%40ag0%2Bos0.ID_68017-RL_mon-LOC_doc%7EUND%7Eab-OR_ser-PAR1_212a5d3e17413225449636869d75c4-V_4-P0_0-P1_0&spm=a2c4g.11186623.help-search.i56