gpt4 book ai didi

elasticsearch - 在kubernetes上运行Elasticsearch集群时的堆大小

转载 作者:行者123 更新时间:2023-12-02 11:43:00 25 4
gpt4 key购买 nike

我正在Kubernetes集群上运行Elasticsearch集群。我需要增加堆大小。现在,堆大小为4gb,分配给Pod的内存为8gb。在VM / BM上设置 flex 搜索集群时,我始终遵循以下原则:堆大小不应超过物理RAM的50%。请点击链接https://www.elastic.co/guide/en/elasticsearch/reference/current/heap-size.html
现在我的问题是,在K8上运行 flex 搜索时,该原理是否会以相同的方式起作用?在K8上运行ES时,如何确定堆大小?

最佳答案

堆大小应为分配给Pod的RAM大小的一半。

From elasticsearch guide:

The heap size should be half the size of RAM allocated to the Pod. To minimize disruption caused by Pod evictions due to resource contention, you should run Elasticsearch pods at the "Guaranteed" QoS level by setting both requests and limits to the same value.

关于elasticsearch - 在kubernetes上运行Elasticsearch集群时的堆大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59672868/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com