参考文章
Support in the Wild: My Biggest Elasticsearch Problem at Scale
http://blog.youkuaiyun.com/jiao_fuyou/article/details/50478198
Understanding Fielddata
By default, fielddata is loaded on demand, which means that you will not see it until you are using it. Also, by being loaded per segment, it means that new segments that get created will slowly add to your overall memory usage until the field’s fielddata is evicted from memory. Eviction happens in only a few ways:
1、Deleting the index or indices that contains it.
2、Closing the index or indices that contains it.
3、Segment fielddata is removed when segments are removed (e.g., background merging).
* This usually just means that the problem is moving rather than going away.
4、Restarting the node c

本文介绍了如何解决Elasticsearch中fielddata占用内存过大的问题,包括理解fielddata的工作原理,推荐使用doc values以减少内存使用,以及控制fielddata内存限制和启用doc_values的策略。通过这些方法,可以有效管理Elasticsearch的内存资源并提升性能。
最低0.47元/天 解锁文章
2434

被折叠的 条评论
为什么被折叠?



