mirror of https://github.com/milvus-io/milvus.git
27 lines
1.1 KiB
YAML
27 lines
1.1 KiB
YAML
- name: pulsar volume
|
|
docker_volume:
|
|
name: pulsar_conf
|
|
|
|
- name: pulsar volume
|
|
docker_volume:
|
|
name: pulsar_data
|
|
|
|
- name: "pulsar"
|
|
docker_container:
|
|
name: pulsar
|
|
image: apachepulsar/pulsar:2.8.2
|
|
env:
|
|
# 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"
|
|
defaultRetentionSizeInMB: "8192"
|
|
# maxMessageSize is missing from standalone.conf, must use PULSAR_PREFIX_ to get it configured
|
|
PULSAR_PREFIX_maxMessageSize: "104857600"
|
|
PULSAR_GC: -XX:+UseG1GC
|
|
volumes:
|
|
- pulsar_conf:/pulsar/conf
|
|
- pulsar_data:/pulsar/data
|
|
command: bash -c '/pulsar/bin/apply-config-from-env.py /pulsar/conf/standalone.conf; exec bin/pulsar standalone --no-functions-worker'
|
|
network_mode: "{{dependencies_network}}" #Use the network which defined as variable in Inventory.
|