lhotari commented on code in PR #428:
URL: https://github.com/apache/pulsar-helm-chart/pull/428#discussion_r1452419402
##########
charts/pulsar/values.yaml:
##########
@@ -1151,3 +1157,28 @@ job:
ttl:
enabled: false
secondsAfterFinished: 3600
+
+# This section is intended for cluster providers where all containers,
including init containers,
+# need to provide the number of resources they are going to use.
+initContainer_resources:
+ zookeeper_ready:
+ requests:
+ memory: 128Mi
+ cpu: 0.1
+ cs_ready:
+ requests:
+ memory: 128Mi
+ cpu: 0.1
+ verify_cluster_id:
+ requests:
+ memory: 128Mi
+ cpu: 0.1
+ broker_ready:
+ requests:
+ memory: 128Mi
+ cpu: 0.1
+ bookkeeper_ready:
+ requests:
+ memory: 128Mi
+ cpu: 0.1
Review Comment:
The default memory must be more than `128Mi` since `export
PULSAR_MEM="-Xmx128M"` or `export BOOKIE_MEM="-Xmx128M"` seems to be used in
many cases.
I'd suggest using `200Mi` when `-Xmx128M` is used. (Making this "guess"
based on figures for -Xmx100M in
https://gist.github.com/lhotari/062beedcaedcc1d87ef3591b9d7f82a9 . There are
more details about Java's memory usage in https://stackoverflow.com/a/53624438)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]