File tree 4 files changed +5
-4
lines changed
4 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -9,4 +9,4 @@ name: zookeeper
9
9
sources :
10
10
- https://github.com/apache/zookeeper
11
11
- https://github.com/kubernetes/contrib/tree/master/statefulset/zookeeper
12
- version : 0.2.5
12
+ version : 0.2.6
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ spec:
112
112
- name : ZK_ELECTION_PORT
113
113
value : " {{.Values.LeaderElectionPort}}"
114
114
- name : SERVER_JVMFLAGS
115
- value : " -server -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -XshowSettings:vm -XX:MaxRAMFraction=1 "
115
+ value : " -server -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -XshowSettings:vm -XX:MaxRAMFraction={{ .Values.ramFraction }} "
116
116
command :
117
117
- sh
118
118
- -c
Original file line number Diff line number Diff line change 3
3
# Declare name/value pairs to be passed into your templates.
4
4
# name: value
5
5
Image : onyxplatform/k8szk
6
- Tag : 20
6
+ Tag : 21
7
7
Servers : 3
8
8
Cpu : " 100m"
9
9
Memory : " 512Mi"
@@ -14,6 +14,7 @@ resources:
14
14
limits :
15
15
memory : 512Mi
16
16
cpu : 100m
17
+ ramFraction : 2
17
18
Storage : " 50Gi"
18
19
StorageClass : default
19
20
ServerPort : 2888
Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ function create_java_env() {
144
144
rm -f $JAVA_ENV_FILE
145
145
echo " Creating JVM configuration file"
146
146
echo " ZOO_LOG_DIR=$ZK_LOG_DIR " >> $JAVA_ENV_FILE
147
- echo " JVMFLAGS=\" -XshowSettings:vm -XX:MaxRAMFraction=1 -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap\" " >> $JAVA_ENV_FILE
147
+ echo " JVMFLAGS=\" -XshowSettings:vm -XX:MaxRAMFraction=2 -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap\" " >> $JAVA_ENV_FILE
148
148
echo " Wrote JVM configuration to $JAVA_ENV_FILE "
149
149
}
150
150
You can’t perform that action at this time.
0 commit comments