lhotari edited a comment on issue #11768:
URL: https://github.com/apache/pulsar/issues/11768#issuecomment-906974354


   @sunby I was able to resolve the issue by replacing `bin/pulsar` with `exec 
bin/pulsar` in the startup command in docker-compose.yaml. 
   
   Here's the revisited docker-compose.yaml:
   ```yaml
   version: "3"
   services:
     pulsar:
       ports:
         - 8080:8080
         - 6650:6650
       container_name: pulsar
       image: apachepulsar/pulsar:2.8.0
       volumes:
         - ${DOCKER_VOLUME_DIRECTORY:-.}/volumes/pulsar:/pulsar/data
       environment:
         # bin/apply-config-from-env.py script will modify the configuration 
file based on the environment variables
         # nettyMaxFrameSizeBytes must be calculated from maxMessageSize + 
10240 (padding)
         - nettyMaxFrameSizeBytes=104867840 # this is 104857600 + 10240 
(padding)
         - defaultRetentionTimeInMinutes=10080
         # maxMessageSize is missing from standalone.conf, must use 
PULSAR_PREFIX_ to get it configured
         - PULSAR_PREFIX_maxMessageSize=104857600
         - PULSAR_GC=-XX:+UseG1GC
       command: |
         /bin/bash -c "bin/apply-config-from-env.py conf/standalone.conf && 
exec bin/pulsar standalone --no-functions-worker --no-stream-storage 
--advertised-address pulsar"
   ```
   
   I would recommend to use the above example as the basis for your own 
docker-compose.yaml.
   
   The pulsar standalone command contains arguments `--no-functions-worker 
--no-stream-storage` which will disable Pulsar Functions worker and the Stream 
Storage service in Bookkeeper which is used as a key-value store for storing 
Pulsar Functions state. If you don't use Pulsar Functions, it's better to 
disable them to save resources.
   
   I made this PR https://github.com/milvus-io/milvus/pull/7335 . @sunby Can 
you please test that?
   
   
   
   


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


Reply via email to