Linked Questions

Popular Questions

Speeding up Confluent docker load time

Asked by At

I have a docker-compose file stat spins up a single-node Kafka, Zookeeper & schema registry stack for testing my application. Currently, it takes a couple of minutes to get the stack available; are there any settings to speed up the launch time?

The config I'm using (apart from SSL) is as follows:

kafka:
  image: confluentinc/cp-kafka:3.3.1
  depends_on:
    - zookeeper
  hostname: kafka
  ports:
    - 9092:9092
  environment:
    KAFKA_BROKER_ID: 1
    KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
    KAFKA_ADVERTISED_LISTENERS: SSL://kafka:9092
    KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
    KAFKA_AUTO_CREATE_TOPICS_ENABLE: "false"
    KAFKA_LOG4J_ROOT_LOGLEVEL: WARN
    KAFKA_JMX_PORT: 9585
    KAFKA_JMX_HOSTNAME: kafka
    KAFKA_JMX_OPTS: "-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.rmi.port=9585"
  volumes:
    - ../../txs-data/kafka-data:/var/lib/kafka/data

Related Questions