内存计算器

为什么需要内存计算器?

Greenplum 内存计算器根据现有的大规模部署估算最佳虚拟内存设置。 Linux 内核非常擅长优化自己的内存,但我们仍然必须确保不要过度分配 GPDB 内存,从而导致内存不足。内存计算器帮助用户为内核保留保守的内存量,同时最大化 GPDB 使用的内存量。

(i) sourced from command output 'free -g'
(i) sourced from command output 'free -g'
(i) Total number of SOLR processes running on a single server
(i) This should be the numeric value used for GPTEXT JVM option -XmxM which defaults to -Xmx2048M
(i) The sum of other third party services running on the system that is not accounted for in this form
(i) Number of primary you expect to run on a single segment server. Also remember to account for failed mirrors if applicable

推荐最大值配置

该值以 MB 为单位,在 postgresql.conf 中配置,由 gpconfig 命令控制

该值是一个百分比并在 /etc/sysctl.conf 中配置

说明

根据您的 mirroring 策略选择 Primary Segments Per Node 的值。有关分组和 spread mirroring 策略的更多信息,请参阅 GDPB 文档了解 Segment Mirroring 策略

– 给定 6 个 primaries 和 6 个 mirrors 的配置,在使用组镜像时,我们应该将 Primary Segments Per Node 设置为 6+6=12

–  spread mirroring 下使用相同的配置示例时,该值将为 6+2=8

关注微信公众号

VMware 中国研发中心