apiVersion: v1
data:
  jvm.config: |-
    -server
    -XX:MaxDirectMemorySize=10240g
    -Duser.timezone=UTC
    -Dfile.encoding=UTF-8
    -Dlog4j.debug
    -XX:+ExitOnOutOfMemoryError
    -XX:+HeapDumpOnOutOfMemoryError
    -XX:+UseG1GC
    -Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager
    -Xmx1G
    -Xms1G
  log4j2.xml: |-
    <?xml version="1.0" encoding="UTF-8" ?>
    <Configuration status="WARN">
        <Appenders>
            <Console name="Console" target="SYSTEM_OUT">
                <PatternLayout pattern="%d{ISO8601} %p [%t] %c - %m%n"/>
            </Console>
        </Appenders>
        <Loggers>
            <Root level="info">
                <AppenderRef ref="Console"/>
            </Root>
        </Loggers>
    </Configuration>
  runtime.properties: |-
    druid.port=8080
    druid.service=druid/broker

    # HTTP server threads
    druid.broker.http.numConnections=5
    druid.server.http.numThreads=25

    # Processing threads and buffers
    druid.processing.buffer.sizeBytes=1
    druid.processing.numMergeBuffers=1
    druid.processing.numThreads=1
kind: ConfigMap
metadata:
  labels:
    app: druid
    druid_cr: druid-test
    nodeSpecUniqueStr: druid-druid-test-brokers
  name: druid-druid-test-brokers-config
  namespace: test-namespace
  annotations:
    druidOpResourceHash: 9kOh5Qyj7xud9ED6REtjhXM6zJU=
