Pulsar is configured using environment variables. The following are supported environment variables:
Name | Default | Description |
---|---|---|
LOG_LEVEL | WARN | Specifies the logging level for general application logs |
HORIZON_LOG_LEVEL | WARN | Specifies the logging level for Horizon-related logs |
JAEGER_COLLECTOR_URL | http://jaeger-collector.example.com:9411 | The URL endpoint for the Jaeger collector, which is used for distributed tracing |
ZIPKIN_SAMPLER_PROBABILITY | 1.0 | Configures the probability of a trace being sampled for Zipkin. A value of 1.0 means all traces are sampled, while 0.0 means no traces are sampled. This affects distributed tracing |
PULSAR_ISSUER_URL | https://iris.example.com/auth/realms/default/protocol/openid-connect/token | The issuer(s) that are trusted by Pulsar |
PULSAR_DEFAULT_ENVIRONMENT | default | The default environment setting for Pulsar |
PULSAR_KAFKA_BROKERS | kafka:9092 | Indicates that the Kafka brokers are expected to be available at the address 'kafka' on port '9092' |
PULSAR_KAFKA_LINGER_MS | 5 | How long the Kafka waits for other records before transmissing the batch (Reference) |
PULSAR_KAFKA_COMPRESSION_ENABLED | true | If events send to Kafka should be compressed |
PULSAR_KAFKA_COMPRESSION_TYPE | snappy | The compression type used to compress events |
PULSAR_KAFKA_ACKS | 1 | How often the events needs to be acknowledge by Kafka |
PULSAR_FEATURE_SUBSCRIBER_CHECK | true | Specifies whether the Pulsar feature subscriber check is enabled |
PULSAR_SSE_POLL_DELAY | 1000 | The delay, in milliseconds, for Server-Sent Events (SSE) polling |
PULSAR_SSE_TIMEOUT | 50000 | The timeout, in milliseconds, for Server-Sent Events (SSE) connections |
PULSAR_SSE_BATCH_SIZE | 50 | The batch size for processing messages |
PULSAR_THREADPOOL_SIZE | 1000 | The size of the thread pool used by Pulsar |
PULSAR_QUEUE_CAPACITY | 2000 | The capacity of the Pulsar queue |
HORIZON_MONGO_CLIENTID | pulsar | The clientId used for communication with MongoDB |
HORIZON_MONGO_URL | https://mongo-url | The URL of the MongoDB instance used by the Horizon application |
PULSAR_SECURITY_OAUTH | true | Specifies whether OAuth-based security is enabled in Pulsar |
PULSAR_CACHE_DE_DUPLICATION_ENABLED | true | If true, enables cache de-duplication |