fracasula edited a comment on issue #7682:
URL: https://github.com/apache/pulsar/issues/7682#issuecomment-686550588


   @codelipenghui yeah I think I did, in fact it works with the usual 
`apachepulsar/pulsar:2.6.1` image. Here's an excerpt from the deployment:
   
   ```yaml
         containers:
         - args:
           - |
             bin/apply-config-from-env.py conf/broker.conf && 
bin/apply-config-from-env.py conf/pulsar_env.sh && bin/apply-config-from-env.py 
conf/client.conf && bin/gen-yml-from-env.py conf/functions_worker.yml && exec 
bin/pulsar broker
           command:
           - sh
           - -c
           envFrom:
           - configMapRef:
               name: pulsar-broker
   ```
   
   As you can see it applies the configuration coming from the environment 
variables which are defined in the below configmap:
   
   ```yaml
   apiVersion: v1
   data:
     PULSAR_EXTRA_OPTS: -Dpulsar.log.root.level=trace
     PULSAR_GC: '"-XX:+UseG1GC -XX:MaxGCPauseMillis=10"'
     PULSAR_LOG_LEVEL: trace
     PULSAR_LOG_ROOT_LEVEL: trace
     PULSAR_MEM: '"-Xms2g -Xmx2g -XX:MaxDirectMemorySize=2g 
-Dio.netty.leakDetectionLevel=disabled
       -Dio.netty.recycler.linkCapacity=1024 -XX:+ParallelRefProcEnabled 
-XX:+UnlockExperimentalVMOptions
       -XX:+AggressiveOpts -XX:+DoEscapeAnalysis -XX:ParallelGCThreads=32 
-XX:ConcGCThreads=32
       -XX:G1NewSizePercent=50 -XX:+DisableExplicitGC -XX:-ResizePLAB 
-XX:+ExitOnOutOfMemoryError
       -XX:+PerfDisableSharedMem"'
     allowAutoTopicCreationType: non-partitioned
     autoSkipNonRecoverableData: "true"
     backlogQuotaDefaultRetentionPolicy: producer_exception
     clusterName: pulsar
     configurationStoreServers: 
pulsar-zookeeper-0.pulsar-zookeeper,pulsar-zookeeper-1.pulsar-zookeeper,pulsar-zookeeper-2.pulsar-zookeeper
     deduplicationEnabled: "true"
     defaultRetentionSizeInMB: "-1"
     defaultRetentionTimeInMinutes: "-1"
     exposeConsumerLevelMetricsInPrometheus: "true"
     exposeTopicLevelMetricsInPrometheus: "true"
     gcsManagedLedgerOffloadBucket: netdata-pulsar-debugging
     gcsManagedLedgerOffloadRegion: ""
     gcsManagedLedgerOffloadServiceAccountKeyFile: 
/pulsar/gcp-service-account/key
     managedLedgerDefaultAckQuorum: "2"
     managedLedgerDefaultEnsembleSize: "2"
     managedLedgerDefaultWriteQuorum: "2"
     managedLedgerOffloadAutoTriggerSizeThresholdBytes: "32000000"
     managedLedgerOffloadDeletionLagMs: "7200000"
     managedLedgerOffloadDriver: google-cloud-storage
     maxConsumersPerSubscription: "500"
     maxConsumersPerTopic: "500"
     maxProducersPerTopic: "100"
     zookeeperServers: 
pulsar-zookeeper-0.pulsar-zookeeper,pulsar-zookeeper-1.pulsar-zookeeper,pulsar-zookeeper-2.pulsar-zookeeper
   kind: ConfigMap
   ```


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to