Add configurable ZK memory limits
This commit is contained in:
parent
6e74ac44a5
commit
be94bc134f
|
@ -72,11 +72,16 @@ pvc_asn: "65500"
|
||||||
pvc_routers:
|
pvc_routers:
|
||||||
- "192.168.100.1"
|
- "192.168.100.1"
|
||||||
|
|
||||||
# Ceph OSD tuning
|
# Memory tuning
|
||||||
# > Uncomment in low-memory situation (nodes with <32GB RAM).
|
# > Uncomment these options in low-memory situations (nodes with <32GB RAM).
|
||||||
# > These options are *only* applied at cluster bootstrap and cannot be changed later.
|
|
||||||
# OSD memory limit - 939524096 (~900MB) is the lowest possible value; default is 4GB.
|
# OSD memory limit - 939524096 (~900MB) is the lowest possible value; default is 4GB.
|
||||||
|
# > This option is *only* applied at cluster bootstrap and cannot be changed later
|
||||||
|
# here, only by editing the `files/ceph/<cluster>/ceph.conf` file directly.
|
||||||
#pvc_osd_memory_limit: 939524096
|
#pvc_osd_memory_limit: 939524096
|
||||||
|
# Zookeeper heap memory limit, sets Xms and Xmx values to the Java process.
|
||||||
|
#pvc_zookeeper_heap_limit: 32M
|
||||||
|
# Zookeeper stack memory limit, sets Xss value to the Java process.
|
||||||
|
#pvc_zookeeper_stack_limit: 32M
|
||||||
|
|
||||||
# Node list
|
# Node list
|
||||||
# > Every node configured with this playbook must be specified in this list.
|
# > Every node configured with this playbook must be specified in this list.
|
||||||
|
|
|
@ -13,6 +13,6 @@ JMXLOCALONLY=false
|
||||||
# cluster is only ~5.2MB of raw JSON data and beyond 12x that seems like a cluster too large for PVC.
|
# cluster is only ~5.2MB of raw JSON data and beyond 12x that seems like a cluster too large for PVC.
|
||||||
# Xms/Xmx=128M
|
# Xms/Xmx=128M
|
||||||
# Reduce the Java memory size to minimize RAM consumption by Zookeeper.
|
# Reduce the Java memory size to minimize RAM consumption by Zookeeper.
|
||||||
JAVA_OPTS="-Djava.net.preferIPv4Stack=True -Djute.maxbuffer=67108864 -Xms128M -Xmx128M"
|
JAVA_OPTS="-Djava.net.preferIPv4Stack=True -Djute.maxbuffer=67108864 -Xms{{ pvc_zookeeper_heap_limit }} -Xmx{{ pvc_zookeeper_heap_limit }} -Xss{{ pvc_zookeeper_stack_limit }}"
|
||||||
JAVA=/usr/bin/java
|
JAVA=/usr/bin/java
|
||||||
CLASSPATH="/etc/zookeeper/conf:/usr/share/java/jline.jar:/usr/share/java/log4j-1.2.jar:/usr/share/java/xercesImpl.jar:/usr/share/java/xmlParserAPIs.jar:/usr/share/java/netty.jar:/usr/share/java/slf4j-api.jar:/usr/share/java/slf4j-log4j12.jar:/usr/share/java/zookeeper.jar"
|
CLASSPATH="/etc/zookeeper/conf:/usr/share/java/jline.jar:/usr/share/java/log4j-1.2.jar:/usr/share/java/xercesImpl.jar:/usr/share/java/xmlParserAPIs.jar:/usr/share/java/netty.jar:/usr/share/java/slf4j-api.jar:/usr/share/java/slf4j-log4j12.jar:/usr/share/java/zookeeper.jar"
|
||||||
|
|
Loading…
Reference in New Issue