# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. # ### --- General broker settings --- ### # The metadata store URL # Examples: # * zk:my-zk-1:2181,my-zk-2:2181,my-zk-3:2181 # * my-zk-1:2181,my-zk-2:2181,my-zk-3:2181 (will default to ZooKeeper when the schema is not specified) # * zk:my-zk-1:2181,my-zk-2:2181,my-zk-3:2181/my-chroot-path (to add a ZK chroot path) metadataStoreUrl= # Configuration file path for metadata store. It's supported by RocksdbMetadataStore and EtcdMetadataStore for now metadataStoreConfigPath= # Event topic to sync metadata between separate pulsar clusters on different cloud platforms. metadataSyncEventTopic= # Event topic to sync configuration-metadata between separate pulsar clusters on different cloud platforms. configurationMetadataSyncEventTopic= # The metadata store URL for the configuration data. If empty, we fall back to use metadataStoreUrl configurationMetadataStoreUrl= # Port for the Pulsar binary protocol of the internal listener. # The same port number is used both for the local socket binding (with bindAddress) and for the # advertised URL (with advertisedAddress), so no entry in advertisedListeners or bindAddresses # is required for the internal listener. brokerServicePort=6650 # Port for the Pulsar binary protocol TLS endpoint of the internal listener. # Used both for the local socket binding and the advertised URL. By default TLS is disabled. brokerServicePortTls= # Port for the HTTP admin/REST endpoint of the internal listener. # Used both for the local socket binding and the advertised URL. webServicePort=8080 # Port for the HTTPS admin/REST endpoint of the internal listener. # Used both for the local socket binding and the advertised URL. By default TLS is disabled. webServicePortTls= # Specify the tls protocols the broker's web service will use to negotiate during TLS handshake # (a comma-separated list of protocol names). # Examples: # webServiceTlsProtocols=TLSv1.3,TLSv1.2 webServiceTlsProtocols= # Specify the tls cipher the broker will use to negotiate during TLS Handshake # (a comma-separated list of ciphers). # Examples: # webServiceTlsCiphers=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 webServiceTlsCiphers= # Local network interface IP for the internal listener's port bindings. # Use a specific local IP to bind to a single interface, or 0.0.0.0 to bind on all interfaces. bindAddress=0.0.0.0 # Per-listener socket bindings. # The internal listener's bindings are derived automatically from bindAddress plus the port # properties (brokerServicePort / brokerServicePortTls / webServicePort / webServicePortTls) # and do not need to be repeated here. # PIP-95 smart listener selection routes a connection to the listener whose port it arrived on. # For the Pulsar binary protocol (pulsar / pulsar+ssl) this is optional — clients can also pass # an explicit listenerName. For the HTTP/HTTPS Admin API (http / https) it is the only routing # mechanism, so every HTTP/HTTPS advertised listener reachable from outside the cluster needs a # dedicated entry here on a unique port. This lets a layer-4 TCP load balancer serve the Admin # API directly per listener, without an HTTP reverse proxy. # Format: comma-separated :://: entries. # Supported schemes: pulsar, pulsar+ssl, http, https. # The part selects which local network interface the port binds to: use a specific local # IP, or 0.0.0.0 to bind on all interfaces. A local hostname is also accepted but not # recommended. # Each ip:port may be bound by exactly one (listener, scheme) pair. An entry that exactly # matches the auto-derived internal-listener binding is tolerated; assigning the same ip:port # to a different listener or scheme fails validation. # Port 0 (OS-assigned ephemeral port) is supported only for the internal listener. bindAddresses= # Hostname or IP advertised to clients for the internal listener. # Combined with the *Port properties it forms the internal listener's advertised URLs # (e.g. pulsar://:). # If not set, defaults to InetAddress.getLocalHost().getCanonicalHostName(). advertisedAddress= # Declares additional advertised listeners — typically external listeners that complement the # internal one. # Format: comma-separated :://: entries. # Supported schemes: pulsar, pulsar+ssl, http, https. # A listener name may be repeated to declare multiple schemes for the same listener. # The internal listener is auto-configured from advertisedAddress plus the *Port properties # (brokerServicePort / brokerServicePortTls / webServicePort / webServicePortTls) so it does # not need an entry here. URLs declared here under internalListenerName do override that # auto-configured listener, but this is not recommended because it can route cluster-internal # traffic through an external endpoint (for example, an external load balancer). # Legacy fallback: when internalListenerName is left blank, the first listener parsed from this # property is used as the internal listener (so in that case its entry here is required). # advertisedListeners= # Name of the listener used for cluster-internal broker-to-broker communication (lookup # redirects, admin forwarding to owner or leader broker). Defaults to "internal". # When set (the default), the internal listener is auto-configured from advertisedAddress plus # the *Port properties. The internal listener must advertise addresses reachable from other # brokers in the same cluster; avoid overriding its URLs in advertisedListeners to point at an # external load balancer because that would route cluster-internal traffic outside the cluster. # For external clients, declare a separate non-internal listener in advertisedListeners # instead. The default name "internal" also keeps the port-derived internal listener distinct # from any user-declared listener names. # Setting this to an empty string restores the legacy fallback: the first listener parsed from # advertisedListeners is used as the internal listener. internalListenerName=internal # Enable or disable the HAProxy protocol. # If true, the real IP addresses of consumers and producers can be obtained when getting topic statistics data. haProxyProtocolEnabled=false # Enable or disable the use of HA proxy protocol for resolving the client IP for http/https requests. webServiceHaProxyProtocolEnabled=false # Trust X-Forwarded-For header for resolving the client IP for http/https requests. Default is false. webServiceTrustXForwardedFor=false # Add detailed client/remote and server/local addresses and ports to http/https request logging. # Defaults to true when either webServiceHaProxyProtocolEnabled or webServiceTrustXForwardedFor is enabled. webServiceLogDetailedAddresses= # Number of threads to config Netty Acceptor. Default is 1 numAcceptorThreads= # Number of threads to use for Netty IO. Default is set to half the available processors, but no fewer than 8 unless # that exceeds twice the available processors: Math.min(2 * n, Math.max(8, n / 2)) for n available processors. # Increase it when the busiest pulsar-io thread stays busy and consumers' backlogs grow numIOThreads= # Number of threads to use for ordered executor. The ordered executor is used to operate with zookeeper, # such as init zookeeper client, get namespace policies from zookeeper etc. It also used to split bundle. Default is 8 numOrderedExecutorThreads=8 # Number of threads to use for HTTP requests processing. Default is set to 2 * Runtime.getRuntime().availableProcessors() numHttpServerThreads= # Number of thread pool size to use for pulsar broker service. # The executor in thread pool will do basic broker operation like load/unload bundle, update managedLedgerConfig, # update topic/subscription/replicator message dispatch rate, do leader election etc. # Default is Runtime.getRuntime().availableProcessors() numExecutorThreadPoolSize= # Deprecated: this setting has no effect and is retained for compatibility. numCacheExecutorThreadPoolSize=10 # Option to enable busy-wait settings. Default is false. # WARNING: This option will enable spin-waiting on executors and IO threads in order to reduce latency during # context switches. The spinning will consume 100% CPU even when the broker is not doing any work. It is recommended to # reduce the number of IO threads and BK client threads to only have few CPU cores busy. enableBusyWait=false # Flag to control features that are meant to be used when running in standalone mode isRunningStandalone= # Name of the cluster to which this broker belongs to clusterName= # The maximum number of tenants that each pulsar cluster can create # This configuration is not precise control, in a concurrent scenario, the threshold will be exceeded maxTenants=0 # Enable cluster's failure-domain which can distribute brokers into logical region failureDomainsEnabled=false # Metadata store session timeout in milliseconds metadataStoreSessionTimeoutMillis=30000 # Metadata store operation timeout in seconds metadataStoreOperationTimeoutSeconds=30 # Metadata store cache expiry time in seconds metadataStoreCacheExpirySeconds=300 # Time to wait for broker graceful shutdown. After this time elapses, the process will be killed brokerShutdownTimeoutMs=60000 # Flag to skip broker shutdown when broker handles Out of memory error skipBrokerShutdownOnOOM=false # Factory class-name to create topic with custom workflow topicFactoryClassName= # Max capacity of the topic name cache. -1 means unlimited cache; 0 means broker will clear all cache # per "maxSecondsToClearTopicNameCache", it does not mean broker will not cache TopicName. topicNameCacheMaxCapacity=100000 # A Specifies the minimum number of seconds that the topic name stays in memory, to avoid clear cache frequently when # there are too many topics are in use. maxSecondsToClearTopicNameCache=7200 # Enable backlog quota check. Enforces action on topic when the quota is reached backlogQuotaCheckEnabled=true # How often to check for topics that have reached the quota backlogQuotaCheckIntervalInSeconds=60 # Default per-topic backlog quota limit, less than 0 means no limitation. default is -1. backlogQuotaDefaultLimitBytes=-1 # Default per-topic backlog quota time limit in second, less than 0 means no limitation. default is -1. backlogQuotaDefaultLimitSecond=-1 # Default backlog quota retention policy. Default is producer_request_hold # 'producer_request_hold' Policy which holds producer's send request until the resource becomes available (or holding times out) # 'producer_exception' Policy which throws javax.jms.ResourceAllocationException to the producer # 'consumer_backlog_eviction' Policy which evicts the oldest message from the slowest consumer's backlog backlogQuotaDefaultRetentionPolicy=producer_request_hold # Default ttl for namespaces if ttl is not already configured at namespace policies. (disable default-ttl with value 0) ttlDurationDefaultInSeconds=0 # Additional system subscriptions that will be ignored by ttl check. The cursor names are comma separated. # Default is empty. # additionalSystemCursorNames= # Enable topic auto creation if new producer or consumer connected (disable auto creation with value false) allowAutoTopicCreation=true # The type of topic that is allowed to be automatically created.(partitioned/non-partitioned) allowAutoTopicCreationType=non-partitioned # If 'strictSubscriptionNameVerification' is true, the new subscription name can only contain (a-zA-Z_0-9) and these # special chars -=:. strictlyVerifySubscriptionName=false # Enable subscription auto creation if new consumer connected (disable auto creation with value false) allowAutoSubscriptionCreation=true # The number of partitioned topics that is allowed to be automatically created if allowAutoTopicCreationType is partitioned. defaultNumPartitions=1 # Enable the deletion of inactive topics. This parameter need to cooperate with the allowAutoTopicCreation parameter. # If brokerDeleteInactiveTopicsEnabled is set to true, we should ensure that allowAutoTopicCreation is also set to true. brokerDeleteInactiveTopicsEnabled=true # How often to check for inactive topics brokerDeleteInactiveTopicsFrequencySeconds=60 # Set the inactive topic delete mode. Default is delete_when_no_subscriptions # 'delete_when_no_subscriptions' mode only delete the topic which has no subscriptions and no active producers # 'delete_when_subscriptions_caught_up' mode only delete the topic that all subscriptions has no backlogs(caught up) # and no active producers/consumers brokerDeleteInactiveTopicsMode=delete_when_no_subscriptions # Metadata of inactive partitioned topic will not be cleaned up automatically by default. # Note 1: If `allowAutoTopicCreation` and this option are enabled at the same time, # it may appear that a partitioned topic has just been deleted but is automatically created as a non-partitioned topic. # Note 2: Activating bidirectional geo-replication under global configuration ZooKeeper may lead to schema remnants and # abnormal topic-level policies. # Note 3: Activating bidirectional geo-replication under global configuration ZooKeeper may lead to a consumption issue. brokerDeleteInactivePartitionedTopicMetadataEnabled=false # Max duration of topic inactivity in seconds, default is not present # If not present, 'brokerDeleteInactiveTopicsFrequencySeconds' will be used # Topics that are inactive for longer than this value will be deleted brokerDeleteInactiveTopicsMaxInactiveDurationSeconds= # Allow you to delete a tenant forcefully. forceDeleteTenantAllowed=false # Allow you to delete a namespace forcefully. forceDeleteNamespaceAllowed=false # Max pending publish requests per connection to avoid keeping large number of pending # requests in memory. Default: 1000 maxPendingPublishRequestsPerConnection=1000 # How frequently to proactively check and purge expired messages messageExpiryCheckIntervalInMinutes=5 # How long to delay rewinding cursor and dispatching messages when active consumer is changed activeConsumerFailoverDelayTimeMillis=1000 # Enable consistent hashing for selecting the active consumer in partitioned topics with Failover subscription type. # For non-partitioned topics, consistent hashing is used by default. activeConsumerFailoverConsistentHashing=false # How long to delete inactive subscriptions from last consuming # When it is 0, inactive subscriptions are not deleted automatically subscriptionExpirationTimeMinutes=0 # Enable subscription message redelivery tracker to send redelivery count to consumer (default is enabled) subscriptionRedeliveryTrackerEnabled=true # How frequently to proactively check and purge expired subscription subscriptionExpiryCheckIntervalInMinutes=5 # Enable subscription types (default is all type enabled) # SubscriptionTypes : Exclusive,Shared,Failover,Key_Shared # Example : Exclusive,Shared # Above example will disable Failover and Key_Shared subscription types subscriptionTypesEnabled=Exclusive,Shared,Failover,Key_Shared # On KeyShared subscriptions, with default AUTO_SPLIT mode, use splitting ranges or # consistent hashing to reassign keys to new consumers subscriptionKeySharedUseConsistentHashing=true # On KeyShared subscriptions, number of points in the consistent-hashing ring. # The higher the number, the more equal the assignment of keys to consumers subscriptionKeySharedConsistentHashingReplicaPoints=100 # Maximum time in ms for a Analise backlog operation to complete subscriptionBacklogScanMaxTimeMs=120000 # Maximum number of entries to be read within a Analise backlog operation subscriptionBacklogScanMaxEntries=10000 # Set the default behavior for message deduplication in the broker # This can be overridden per-namespace. If enabled, broker will reject # messages that were already stored in the topic brokerDeduplicationEnabled=false # Maximum number of producer information that it's going to be # persisted for deduplication purposes brokerDeduplicationMaxNumberOfProducers=10000 # How often is the thread pool scheduled to check whether a snapshot needs to be taken.(disable with value 0) brokerDeduplicationSnapshotFrequencyInSeconds=120 # If this time interval is exceeded, a snapshot will be taken. # It will run simultaneously with `brokerDeduplicationEntriesInterval` brokerDeduplicationSnapshotIntervalSeconds=120 # Number of entries after which a dedup info snapshot is taken. # A larger interval will lead to fewer snapshots being taken, though it would # increase the topic recovery time when the entries published after the # snapshot need to be replayed. brokerDeduplicationEntriesInterval=1000 # Time of inactivity after which the broker will discard the deduplication information # relative to a disconnected producer. Default is 6 hours. brokerDeduplicationProducerInactivityTimeoutMinutes=360 # When a namespace is created without specifying the number of bundles, this # value will be used as the default. # Bundles are the unit of assignment of topics to brokers, so a namespace needs more bundles than # there are brokers for its topics to spread across the cluster. Bundles can be split but never # merged. Only bundles that have been looked up cost anything (an ownership entry, an entry in the # load report and one unload step at broker shutdown); the unused bundles of a small namespace are free. # Default is 32 since 5.0.0 (was 4). defaultNumberOfNamespaceBundles=32 # Number of bundles for the pulsar/system namespace when the broker creates it (the extensible load manager # creates it on start-up if it is missing). The system namespace holds a small, fixed set of topics (the # transaction coordinator partitions, the load balancer's internal topics and the resource usage topic), so # it does not follow defaultNumberOfNamespaceBundles. A transaction coordinator is owned by whichever broker # owns the bundle of its transaction_coordinator_assign partition, so the bundles decide how far the # coordinators can spread: with the default 16 coordinators, 64 is the smallest number of bundles at which # every coordinator hashes into its own bundle (16 bundles put them into 8), and bundles that never own a # topic cost nothing. The initialize-cluster-metadata and initialize-transaction-coordinator-metadata tools # create the namespace with their --system-namespace-bundle-number option, which has the same default. defaultNumberOfSystemNamespaceBundles=64 # The maximum number of namespaces that each tenant can create # This configuration is not precise control, in a concurrent scenario, the threshold will be exceeded maxNamespacesPerTenant=0 # Max number of topics allowed to be created in the namespace. When the topics reach the max topics of the namespace, # the broker should reject the new topic request(include topic auto-created by the producer or consumer) # until the number of connected consumers decrease. # Using a value of 0, is disabling maxTopicsPerNamespace-limit check. maxTopicsPerNamespace=0 # The maximum number of connections in the broker. If it exceeds, new connections are rejected. brokerMaxConnections=0 # It relates to configuration "WriteBufferHighWaterMark" of Netty Channel Config. If the number of bytes # queued in the write buffer exceeds this value, channel writable state will start to return "false". pulsarChannelWriteBufferHighWaterMark=65536 # It relates to configuration "WriteBufferLowWaterMark" of Netty Channel Config. If the number of bytes" # queued in the write buffer is smaller than this value, channel writable state will start to return "true". pulsarChannelWriteBufferLowWaterMark=32768 # If enabled, the broker will pause reading from the channel to deal with new request once the writer # buffer is full, until it is changed to writable. pulsarChannelPauseReceivingRequestsIfUnwritable=false # After the connection is recovered from a pause receiving state, the channel will be rate-limited # for a time window to avoid overwhelming due to the backlog of requests. This parameter defines # how long the rate limiting should last, in millis. Once the bytes that are waiting to be sent out # reach the "pulsarChannelWriteBufferHighWaterMark"? the timer will be reset. Setting a negative # value will disable the rate limiting. pulsarChannelPauseReceivingCooldownMs=5000 # After the connection is recovered from a pause receiving state, the channel will be rate-limited for a # period of time to avoid overwhelming due to the backlog of requests. This parameter defines how # many requests should be allowed in the rate limiting period. pulsarChannelPauseReceivingCooldownRateLimitPermits=5 # After the connection is recovered from a pause receiving state, the channel will be rate-limited for a # period of time defined by pulsarChannelPauseReceivingCooldownMs to avoid overwhelming due to the # backlog of requests. This parameter defines the period of the rate limiter in milliseconds. If the rate # limit period is set to 1000, then the unit is requests per 1000 milliseconds. When it's 10, the unit # is requests per every 10ms. pulsarChannelPauseReceivingCooldownRateLimitPeriodMs=10 # The maximum number of connections per IP. If it exceeds, new connections are rejected. brokerMaxConnectionsPerIp=0 # Allow schema to be auto updated at broker level. User can override this by # 'is_allow_auto_update_schema' of namespace policy. isAllowAutoUpdateSchemaEnabled=true # Enable check for minimum allowed client library version clientLibraryVersionCheckEnabled=false # Path for the file used to determine the rotation status for the broker when responding # to service discovery health checks statusFilePath= # If true, (and ModularLoadManagerImpl is being used), the load manager will attempt to # use only brokers running the latest software version (to minimize impact to bundles) preferLaterVersions=false # Max number of unacknowledged messages allowed to receive messages by a consumer on a shared subscription. Broker will stop sending # messages to consumer once, this limit reaches until consumer starts acknowledging messages back. # Using a value of 0, is disabling unackeMessage limit check and consumer can receive messages without any restriction maxUnackedMessagesPerConsumer=50000 # Max number of unacknowledged messages allowed per shared subscription. Broker will stop dispatching messages to # all consumers of the subscription once this limit reaches until consumer starts acknowledging messages back and # unack count reaches to limit/2. Using a value of 0, is disabling unackedMessage-limit # check and dispatcher can dispatch messages without any restriction maxUnackedMessagesPerSubscription=200000 # Max number of unacknowledged messages allowed per broker. Once this limit reaches, broker will stop dispatching # messages to all shared subscription which has higher number of unack messages until subscriptions start # acknowledging messages back and unack count reaches to limit/2. Using a value of 0, is disabling # unackedMessage-limit check and broker doesn't block dispatchers maxUnackedMessagesPerBroker=0 # Once broker reaches maxUnackedMessagesPerBroker limit, it blocks subscriptions which has higher unacked messages # than this percentage limit and subscription will not receive any new messages until that subscription acks back # limit/2 messages maxUnackedMessagesPerSubscriptionOnBrokerBlocked=0.16 # For Key_Shared subscriptions, if messages cannot be dispatched to consumers due to a slow consumer # or a blocked key hash (because of ordering constraints), the broker will continue reading more # messages from the backlog and attempt to dispatch them to consumers until the number of replay # messages reaches the calculated threshold. # Formula: threshold = min(keySharedLookAheadMsgInReplayThresholdPerConsumer * # connected consumer count, keySharedLookAheadMsgInReplayThresholdPerSubscription). # Setting this value to 0 will disable the limit calculated per consumer. keySharedLookAheadMsgInReplayThresholdPerConsumer=4000 # For Key_Shared subscriptions, if messages cannot be dispatched to consumers due to a slow consumer # or a blocked key hash (because of ordering constraints), the broker will continue reading more # messages from the backlog and attempt to dispatch them to consumers until the number of replay # messages reaches the calculated threshold. # Formula: threshold = min(keySharedLookAheadMsgInReplayThresholdPerConsumer * # connected consumer count, keySharedLookAheadMsgInReplayThresholdPerSubscription). # Keep this value relatively low to increase the cache hit ratio for Key_Shared replay queue reads; it should # also be less than 2 * managedLedgerMaxUnackedRangesToPersist. # However, with workloads that have low key cardinality (few distinct keys), a low value can leave some # consumers idle, since the dispatcher pauses once this threshold is reached and stops reading new messages # for the other consumers; increasing the value allows more messages to be in flight in such cases. Since the # effective threshold is the minimum of the per-consumer and per-subscription limits, # keySharedLookAheadMsgInReplayThresholdPerConsumer should also be increased, or set to 0 (disabled), # in that case. # Setting this value to 0 will disable the limit calculated per subscription. Disabling it might result in # the number of unacked ranges to persist exceeding managedLedgerMaxUnackedRangesToPersist, therefore # disabling is not recommended. keySharedLookAheadMsgInReplayThresholdPerSubscription=40000 # Broker periodically checks if subscription is stuck and unblock if flag is enabled. (Default is disabled) unblockStuckSubscriptionEnabled=false # Deprecated: topic publish rate limiting no longer uses a periodic check. # This setting has no effect and is retained for compatibility. topicPublisherThrottlingTickTimeMillis=10 # Deprecated: broker publish rate limiting no longer uses a periodic check. # This setting has no effect and is retained for compatibility. brokerPublisherThrottlingTickTimeMillis=50 # Max Rate(in 1 seconds) of Message allowed to publish for a broker if broker publish rate limiting enabled # (Disable message rate limit with value 0) brokerPublisherThrottlingMaxMessageRate=0 # Max Rate(in 1 seconds) of Byte allowed to publish for a broker if broker publish rate limiting enabled. # (Disable byte rate limit with value 0) brokerPublisherThrottlingMaxByteRate=0 # Max Rate(in 1 seconds) of Message allowed to publish for a topic if topic publish rate limiting enabled # (Disable byte rate limit with value 0) maxPublishRatePerTopicInMessages=0 #Max Rate(in 1 seconds) of Byte allowed to publish for a topic if topic publish rate limiting enabled. # (Disable byte rate limit with value 0) maxPublishRatePerTopicInBytes=0 # Too many subscribe requests from a consumer can cause broker rewinding consumer cursors and loading data from bookies, # hence causing high network bandwidth usage # When the positive value is set, broker will throttle the subscribe requests for one consumer. # Otherwise, the throttling will be disabled. The default value of this setting is 0 - throttling is disabled. subscribeThrottlingRatePerConsumer=0 # Rate period for {subscribeThrottlingRatePerConsumer}. Default is 30s. subscribeRatePeriodPerConsumerInSecond=30 # The class name of the factory that creates DispatchRateLimiter implementations. Current options are # org.apache.pulsar.broker.service.persistent.DispatchRateLimiterFactoryAsyncTokenBucket (default, PIP-322 implementation) # and org.apache.pulsar.broker.service.persistent.DispatchRateLimiterFactoryClassic (legacy implementation) dispatchRateLimiterFactoryClassName=org.apache.pulsar.broker.service.persistent.DispatchRateLimiterFactoryAsyncTokenBucket # Default messages per second dispatch throttling-limit for whole broker. Using a value of 0, is disabling default # message dispatch-throttling dispatchThrottlingRateInMsg=0 # Default bytes per second dispatch throttling-limit for whole broker. Using a value of 0, is disabling # default message-byte dispatch-throttling dispatchThrottlingRateInByte=0 # Default messages per second dispatch throttling-limit for every topic. Using a value of 0, is disabling default # message dispatch-throttling dispatchThrottlingRatePerTopicInMsg=0 # Default bytes per second dispatch throttling-limit for every topic. Using a value of 0, is disabling # default message-byte dispatch-throttling dispatchThrottlingRatePerTopicInByte=0 # Apply dispatch rate limiting on batch message instead individual # messages with in batch message. (Default is disabled) dispatchThrottlingOnBatchMessageEnabled=false # Default number of message dispatching throttling-limit for a subscription. # Using a value of 0, is disabling default message dispatch-throttling. dispatchThrottlingRatePerSubscriptionInMsg=0 # Default number of message-bytes dispatching throttling-limit for a subscription. # Using a value of 0, is disabling default message-byte dispatch-throttling. dispatchThrottlingRatePerSubscriptionInByte=0 # Default messages per second dispatch throttling-limit for every replicator in replication. # Using a value of 0, is disabling replication message dispatch-throttling dispatchThrottlingRatePerReplicatorInMsg=0 # Default bytes per second dispatch throttling-limit for every replicator in replication. # Using a value of 0, is disabling replication message-byte dispatch-throttling dispatchThrottlingRatePerReplicatorInByte=0 # Dispatch rate-limiting relative to publish rate. # (Enabling flag will make broker to dynamically update dispatch-rate relatively to publish-rate: # throttle-dispatch-rate = (publish-rate + configured dispatch-rate). dispatchThrottlingRateRelativeToPublishRate=false # By default we enable dispatch-throttling for both caught up consumers as well as consumers who have # backlog. dispatchThrottlingOnNonBacklogConsumerEnabled=true # Max number of entries to read from bookkeeper. By default it is 500 entries. dispatcherMaxReadBatchSize=500 # Dispatch messages and execute broker side filters in a per-subscription thread dispatcherDispatchMessagesInSubscriptionThread=false # Max size in bytes of entries to read from bookkeeper. By default it is 5MB. dispatcherMaxReadSizeBytes=5242880 # Min number of entries to read from bookkeeper. By default it is 1 entries. # When there is an error occurred on reading entries from bookkeeper, the broker # will backoff the batch size to this minimum number." dispatcherMinReadBatchSize=1 # Max number of entries to dispatch for a shared subscription. By default it is 20 entries. dispatcherMaxRoundRobinBatchSize=20 # The read failure backoff initial time in milliseconds. By default it is 15s. dispatcherReadFailureBackoffInitialTimeInMs=15000 # The read failure backoff max time in milliseconds. By default it is 60s. dispatcherReadFailureBackoffMaxTimeInMs=60000 # The read failure backoff mandatory stop time in milliseconds. By default it is 0s. dispatcherReadFailureBackoffMandatoryStopTimeInMs=0 # On Shared and KeyShared subscriptions, if all available messages in the subscription are filtered # out and not dispatched to any consumer, message dispatching will be rescheduled with a backoff # delay. This parameter sets the initial backoff delay in milliseconds. dispatcherRetryBackoffInitialTimeInMs=1 # On Shared and KeyShared subscriptions, if all available messages in the subscription are filtered # out and not dispatched to any consumer, message dispatching will be rescheduled with a backoff # delay. This parameter sets the maximum backoff delay in milliseconds. dispatcherRetryBackoffMaxTimeInMs=10 # Precise dispatcher flow control according to history message number of each entry preciseDispatcherFlowControl=false # Class name of Pluggable entry filter that can decide whether the entry needs to be filtered # You can use this class to decide which entries can be sent to consumers. # Multiple classes need to be separated by commas. entryFilterNames= # The directory for all the entry filter implementations entryFiltersDirectory= # Whether the broker should count filtered entries in dispatch rate limit calculations. When disabled, # only messages sent to a consumer count towards a dispatch rate limit at the broker, topic, and # subscription level. When enabled, messages filtered out due to entry filter logic are counted towards # each relevant rate limit. dispatchThrottlingForFilteredEntriesEnabled=false # Whether allow topic level entry filters policies overrides broker configuration. allowOverrideEntryFilters=false # Max number of concurrent lookup request broker allows to throttle heavy incoming lookup traffic maxConcurrentLookupRequest=50000 # Maximum heap memory for inflight topic list operations (MB). # Default: 100 MB (supports ~1M topic names assuming 100 bytes each) maxTopicListInFlightHeapMemSizeMB=100 # Maximum direct memory for inflight topic list responses (MB). # Default: 100 MB (network buffers for serialized responses) maxTopicListInFlightDirectMemSizeMB=100 # Timeout for acquiring heap memory permits (milliseconds). # Default: 25000 (25 seconds) maxTopicListInFlightHeapMemSizePermitsAcquireTimeoutMillis=25000 # Maximum queue size for heap memory permit requests. # Default: 10000 (prevent unbounded queueing) maxTopicListInFlightHeapMemSizePermitsAcquireQueueSize=10000 # Timeout for acquiring direct memory permits (milliseconds). # Default: 25000 (25 seconds) maxTopicListInFlightDirectMemSizePermitsAcquireTimeoutMillis=25000 # Maximum queue size for direct memory permit requests. # Default: 10000 (prevent unbounded queueing) maxTopicListInFlightDirectMemSizePermitsAcquireQueueSize=10000 # Max number of concurrent topic loading request broker allows to control number of zk-operations maxConcurrentTopicLoadRequest=5000 # Max concurrent non-persistent message can be processed per connection maxConcurrentNonPersistentMessagePerConnection=1000 # Number of worker threads to serve topic ordered executor topicOrderedExecutorThreadNum= # Enable broker to load persistent topics enablePersistentTopics=true # Enable shadow topic creation, loading and replication. Requires a broker restart. enableShadowTopics=false # Enable broker to load non-persistent topics enableNonPersistentTopics=true # Enable to run bookie along with broker enableRunBookieTogether=false # Enable to run bookie autorecovery along with broker enableRunBookieAutoRecoveryTogether=false # Max number of producers allowed to connect to topic. Once this limit reaches, Broker will reject new producers # until the number of connected producers decrease. # Using a value of 0, is disabling maxProducersPerTopic-limit check. maxProducersPerTopic=0 # Max number of producers with the same IP address allowed to connect to topic. # Once this limit reaches, Broker will reject new producers until the number of # connected producers with the same IP address decrease. # Using a value of 0, is disabling maxSameAddressProducersPerTopic-limit check. maxSameAddressProducersPerTopic=0 # Enforce producer to publish encrypted messages.(default disable). encryptionRequireOnProducer=false # Max number of consumers allowed to connect to topic. Once this limit reaches, Broker will reject new consumers # until the number of connected consumers decrease. # Using a value of 0, is disabling maxConsumersPerTopic-limit check. maxConsumersPerTopic=0 # Max number of consumers with the same IP address allowed to connect to topic. # Once this limit reaches, Broker will reject new consumers until the number of # connected consumers with the same IP address decrease. # Using a value of 0, is disabling maxSameAddressConsumersPerTopic-limit check. maxSameAddressConsumersPerTopic=0 # Max number of subscriptions allowed to subscribe to topic. Once this limit reaches, broker will reject # new subscription until the number of subscribed subscriptions decrease. # Using a value of 0, is disabling maxSubscriptionsPerTopic limit check. maxSubscriptionsPerTopic=0 # Max number of consumers allowed to connect to subscription. Once this limit reaches, Broker will reject new consumers # until the number of connected consumers decrease. # Using a value of 0, is disabling maxConsumersPerSubscription-limit check. maxConsumersPerSubscription=0 # Max size of messages. maxMessageSize=5242880 # Interval between checks to see if topics with compaction policies need to be compacted brokerServiceCompactionMonitorIntervalInSeconds=60 # The estimated backlog size is greater than this threshold, compaction will be triggered. # Using a value of 0, is disabling compaction check. brokerServiceCompactionThresholdInBytes=0 # Timeout for each read request in the compaction phase one loop. # If the execution time of one single message read operation exceeds this time, the compaction will not proceed. brokerServiceCompactionPhaseOneLoopTimeInSeconds=30 # Whether retain null-key message during topic compaction topicCompactionRetainNullKey=false # Class name of the factory that implements the topic compaction service. # If value is "org.apache.pulsar.compaction.EventTimeCompactionServiceFactory", # will create topic compaction service based on message eventTime. # By default compaction service is based on message publishing order. compactionServiceFactoryClassName=org.apache.pulsar.compaction.PulsarCompactionServiceFactory # Whether to enable the delayed delivery for messages. # If disabled, messages will be immediately delivered and there will # be no tracking overhead. delayedDeliveryEnabled=true # Class name of the factory that implements the delayed deliver tracker. # If value is "org.apache.pulsar.broker.delayed.BucketDelayedDeliveryTrackerFactory", # will create bucket based delayed message index tracker. delayedDeliveryTrackerFactoryClassName=org.apache.pulsar.broker.delayed.InMemoryDelayedDeliveryTrackerFactory # Control the tick time for when retrying on delayed delivery, # affecting the accuracy of the delivery time compared to the scheduled time. # Note that this time is used to configure the HashedWheelTimer's tick time. # Default is 1 second. delayedDeliveryTickTimeMillis=1000 # Whether the deliverAt time is strictly followed. When false (default), messages may be sent to consumers before the deliverAt # time by as much as the tickTimeMillis. This can reduce the overhead on the broker of maintaining the delayed index # for a potentially very short time period. When true, messages will not be sent to consumer until the deliverAt time # has passed, and they may be as late as the deliverAt time plus the tickTimeMillis for the topic plus the # delayedDeliveryTickTimeMillis. isDelayedDeliveryDeliverAtTimeStrict=false # The delayed message index bucket min index count. # When the index count of the current bucket is more than this value and all message indexes of current ledger # have already been added to the tracker we will seal the bucket. delayedDeliveryMinIndexCountPerBucket=50000 # The delayed message index bucket time step(in seconds) in per bucket snapshot segment, # after reaching the max time step limitation, the snapshot segment will be cut off. delayedDeliveryMaxTimeStepPerBucketSnapshotSegmentSeconds=300 # The max number of delayed message index in per bucket snapshot segment, -1 means no limitation # after reaching the max number limitation, the snapshot segment will be cut off. delayedDeliveryMaxIndexesPerBucketSnapshotSegment=5000 # The max number of delayed message index bucket, # after reaching the max buckets limitation, the adjacent buckets will be merged. # (disable with value -1) delayedDeliveryMaxNumBuckets=-1 # Whether applications guarantee non-decreasing delivery times for all messages on this broker, # including future publications. An immediate message must not follow a message scheduled in the future. # Only enable this for workloads that guarantee this order: unread messages cannot be verified by the broker. # Enabling restores the legacy fixed-delay read pauses. Default false scans and tracks the delayed backlog, # which can increase memory usage and read I/O compared with previous releases. Requires a broker restart. delayedDeliveryAssumeOrderedDeliveryTimes=false # Size of the lookahead window to use when detecting if all the messages in the topic # have a fixed delay for InMemoryDelayedDeliveryTracker (the default DelayedDeliverTracker). # Default is 50,000. Setting the lookahead window to 0 will disable the logic to handle # fixed delays in messages in a different way. # A positive value only enables read pauses when delayedDeliveryAssumeOrderedDeliveryTimes is true. delayedDeliveryFixedDelayDetectionLookahead=50000 # The max allowed delay for delayed delivery (in milliseconds). If the broker receives a message which exceeds this # max delay, then it will return an error to the producer. # The default value is 0 which means there is no limit on the max delivery delay. delayedDeliveryMaxDelayInMillis=0 # Whether to enable acknowledge of batch local index. acknowledgmentAtBatchIndexLevelEnabled=true # Enable tracking of replicated subscriptions state across clusters. enableReplicatedSubscriptions=true # Frequency of snapshots for replicated subscriptions tracking. replicatedSubscriptionsSnapshotFrequencyMillis=1000 # Timeout for building a consistent snapshot for tracking replicated subscriptions state. replicatedSubscriptionsSnapshotTimeoutSeconds=30 # Max number of snapshot to be cached per subscription. replicatedSubscriptionsSnapshotMaxCachedPerSubscription=30 # Max memory size for broker handling messages sending from producers. # If the processing message size exceed this value, broker will stop read data # from the connection. The processing messages means messages are sends to broker # but broker have not send response to client, usually waiting to write to bookies. # It's shared across all the topics running in the same broker. # Use -1 to disable the memory limitation. Default is 1/2 of direct memory. maxMessagePublishBufferSizeInMB= # Minimum time in seconds between round starts for consumed ledger trimming and cursor ledger rollover checks. # The broker submits checks for at most one persistent topic every 20 ms, so a round can take longer than this interval. # Set to 0 or a negative value to disable periodic checks. retentionCheckIntervalInSeconds=120 # Max number of partitions per partitioned topic # Use 0 or negative number to disable the check maxNumPartitionsPerPartitionedTopic=0 # There are two policies to apply when broker metadata session expires: session expired happens, "shutdown" or "reconnect". # With "shutdown", the broker will be restarted. # With "reconnect", the broker will keep serving the topics, while attempting to recreate a new session. zookeeperSessionExpiredPolicy=reconnect # Enable or disable system topic systemTopicEnabled=true # Deploy the schema compatibility checker for a specific schema type to enforce schema compatibility check # PROTOBUF_NATIVE uses the root-name checker by default. For opt-in field checks, replace its class # with org.apache.pulsar.broker.service.schema.ProtobufNativeSchemaAdvancedCompatibilityCheck. # Configure only one PROTOBUF_NATIVE checker and use the same choice on all brokers that can own a topic. # Changing the choice requires a broker restart; review retained schema versions before activation. # Reconnecting consumers can be rejected even with unchanged schemas when other selected history is # incompatible or unsupported. Byte-identical pairs are reused, but other historical versions are checked. # A configured checker that cannot be instantiated fails startup. Before a binary downgrade, restore # the default checker entry: older binaries may otherwise fall back to an empty schema registry. # Advanced checks allow up to 100,000 work units per historical version and direction, with a lower # limit for smaller descriptor graphs. Even a compatible optional-field addition under BACKWARD can # exceed the cap for a flat message around 14,500 fields or a referenced enum around 16,700 values; # the threshold depends on the descriptor graph. # Check representative large schemas in staging before activation; the cap is not configurable. schemaRegistryCompatibilityCheckers=org.apache.pulsar.broker.service.schema.JsonSchemaCompatibilityCheck,org.apache.pulsar.broker.service.schema.AvroSchemaCompatibilityCheck,org.apache.pulsar.broker.service.schema.ProtobufNativeSchemaCompatibilityCheck,org.apache.pulsar.broker.service.schema.ExternalSchemaCompatibilityCheck # The schema compatibility strategy is used for system topics. # Available values: ALWAYS_INCOMPATIBLE, ALWAYS_COMPATIBLE, BACKWARD, FORWARD, FULL, BACKWARD_TRANSITIVE, FORWARD_TRANSITIVE, FULL_TRANSITIVE systemTopicSchemaCompatibilityStrategy=ALWAYS_COMPATIBLE # Enable or disable topic level policies, topic level policies depends on the system topic # Please enable the system topic first. topicLevelPoliciesEnabled=true # Amount of seconds to timeout initializing the topic policies cache of a namespace (reading the namespace's # __change_events system topic to the end). Topic loading waits for this initialization, so if the system-topic # reader gets stuck, this bounds the wait: the broker fails the initialization, closes the stuck reader and clears # the cached state so loading the namespace's topics can be retried with a fresh reader instead of hanging until the # broker is restarted. The same timeout bounds how long a topic policy update, or a topic deletion that deletes the # topic's policies, waits for the reader to read its event back: when it expires, the operation fails and the broker # replaces the stalled reader. The event that the operation wrote is not rolled back; it takes effect once the # replacement reader has read it. Set to 0 or a negative value to disable the timeout (not recommended). topicPoliciesCacheInitTimeoutSeconds=60 # If a topic remains fenced for this number of seconds, it will be closed forcefully. # If it is set to 0 or a negative number, the fenced topic will not be closed. topicFencingTimeoutSeconds=0 # Enable the evaluation of subscription patterns on the broker. # Setting it to true means the broker only sends the list of matching topics to the clients. enableBrokerSideSubscriptionPatternEvaluation=true # Enable scalable topics (PIP-460). Requires a broker restart when changed. # Set to false before migrating from 4.x to opt out of scalable topics and preserve # rollback options. Disables scalable-topic services, admin APIs, and client access. # Existing scalable-topic data is retained but cannot be loaded while disabled. scalableTopicsEnabled=true # The maximum length of patterns that a broker evaluates. # Longer patterns are rejected to avoid patterns that are crafted to overload the broker. subscriptionPatternMaxLength=50 # The regular expression implementation to use for topic pattern matching. # RE2J_WITH_JDK_FALLBACK is the default. It uses the RE2J implementation and falls back to # the JDK implementation for backwards compatibility reasons when the pattern compilation fails # with the RE2/j library. # RE2J is more performant but does not support all regex features (e.g. negative lookaheads). # JDK uses the standard Java regex implementation which supports all features but can be slower. # Bad or malicious regex patterns requiring extensive backtracing could cause high resource usage # with RE2J_WITH_JDK_FALLBACK or JDK implementations. topicsPatternRegexImplementation=RE2J_WITH_JDK_FALLBACK ### --- Authentication --- ### # Role names that are treated as "proxy roles". If the broker sees a request with #role as proxyRoles - it will demand to see a valid original principal. proxyRoles= # If this flag is set then the broker authenticates the original Auth data # else it just accepts the originalPrincipal and authorizes it (if required). # For TLS client-certificate authentication through a proxy, set false: # the broker's TLS connection carries the proxy certificate, not the client certificate. # Also set false for SASL authentication through a proxy: the client-proxy handshake # cannot be replayed as a separate client-broker handshake. authenticateOriginalAuthData=true # Tls cert refresh duration in seconds. Set 0 to disable the background rotation check, so the # TLS material loaded at startup is kept until restart. tlsCertRefreshCheckDurationSec=300 # PIP-478 TLS factory (PulsarTlsFactory) class name for the broker's server-side TLS (binary listener and # web server; purposes BROKER/PROXY/WEB). An empty value or the literal 'default' selects the built-in # DefaultBrokerTlsFactory composed from these tls* settings, otherwise the named class is instantiated via # its public no-arg constructor. This is the only server TLS path; the removed PIP-337 sslFactoryPlugin # keys are rejected at startup when set to a non-default value. tlsFactoryClassName= # PIP-478 configuration parameters for tlsFactoryClassName (JSON object or comma-separated key=value list) tlsFactoryConfig= # Path for the TLS certificate file tlsCertificateFilePath= # Path for the TLS private key file tlsKeyFilePath= # Path for the trusted TLS certificate file. # This cert is used to verify that any certs presented by connecting clients # are signed by a certificate authority. If this verification # fails, then the certs are untrusted and the connections are dropped. tlsTrustCertsFilePath= # Accept untrusted TLS certificate from client. # If true, a client with a cert which cannot be verified with the # 'tlsTrustCertsFilePath' cert will allowed to connect to the server, # though the cert will not be used for client authentication. tlsAllowInsecureConnection=false # Whether the hostname is validated when the broker creates a TLS connection with other brokers. # Enabled by default since Pulsar 5.0 (PIP-478). tlsHostnameVerificationEnabled=true # Specify the tls protocols the broker will use to negotiate during TLS handshake # (a comma-separated list of protocol names). # Examples: # tlsProtocols=TLSv1.3,TLSv1.2 tlsProtocols= # Specify the tls cipher the broker will use to negotiate during TLS Handshake # (a comma-separated list of ciphers). # Examples: # tlsCiphers=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 tlsCiphers= # Deprecated: use tlsClientAuthMode=REQUIRE instead. # Whether a trusted client certificate is required; the connection is rejected if the client # certificate is missing or not trusted. Setting it to true together with tlsClientAuthMode=NONE # or OPTIONAL is a configuration error. tlsRequireTrustedClientCertOnConnect=false # Whether the TLS listeners ask connecting clients for a certificate (TLS client authentication): # NONE does not request one, OPTIONAL requests one and accepts a connection without it (a presented # certificate must be trusted), REQUIRE requires a trusted certificate. # When unset, it is REQUIRE if the deprecated tlsRequireTrustedClientCertOnConnect is true, OPTIONAL # if authentication is enabled with AuthenticationProviderTls among the authenticationProviders, and # NONE otherwise. A custom authentication provider that reads the client certificate needs OPTIONAL # or REQUIRE. Setting NONE while AuthenticationProviderTls is enabled is a configuration error. # Requesting a certificate sends every client the names of all CAs in tlsTrustCertsFilePath or # tlsTrustStore, or of the JVM default trust store when neither is set. With a large trust store, # the TLS 1.3 handshake then spans several TLS records, which some clients fail to handle, so the # trust store should hold only the CAs that issue client certificates. tlsClientAuthMode= # Specify the TLS provider for the broker service: # When using TLS authentication with CACert, the valid value is either OPENSSL or JDK. # When using TLS authentication with KeyStore, available values can be SunJSSE, Conscrypt and etc. # Leave unset (the default) to let Pulsar choose the engine: the native OpenSSL engine when a netty-tcnative # binary is available for the platform, otherwise the JDK engine. # This key is overloaded across two axes. An engine literal (JDK, OPENSSL, OPENSSL_REFCNT) selects the TLS # engine; any other value is read as a JSSE (SSLContext) provider name (e.g. Conscrypt) and selects no # native engine. tlsProvider= # PIP-478: name of a JSSE (SSLContext) java.security.Provider used to build the broker's server-side # (listener/web) TLS SSLContext, e.g. BCJSSE for FIPS (with the BC-FIPS crypto provider registered # separately). A distinct axis from tlsProvider (the JDK-vs-OpenSSL engine switch): when set, the default # factory builds the JDK engine with this provider as the SSLContext provider, overriding the engine choice. # Resolved by preferring a provider already registered in the JVM (Security.getProvider), falling back to the # ServiceLoader mechanism, failing loudly when unresolvable. # jsseProvider= # PIP-478: name of a JCA (material) java.security.Provider supplying the KeyStore, CertificateFactory # and KeyFactory engines that parse the TLS material, e.g. BCFIPS for FIPS alongside jsseProvider=BCJSSE. # A distinct axis from jsseProvider, which supplies the SSLContext: JSSE service types are never taken # from this provider. Unset uses the JVM provider search order, i.e. pre-PIP-478 behaviour. # jcaProvider= # Specify the TLS provider for the web service: SunJSSE, Conscrypt and etc. # This names a JSSE (SSLContext) security provider for the Jetty-based web service, which has no native TLS # engine, so Netty engine values (JDK, OPENSSL, OPENSSL_REFCNT) are not valid provider names here. # Leave unset (the default) to use Conscrypt when it is available on this platform, else the JVM's default # provider; a configured name is pinned and startup fails if it cannot be resolved. Conscrypt ships native # libraries for x86_64 and, since 2.6.1, aarch64 — but not for every platform, which is why the default # falls back instead of failing where it cannot load; pinning it explicitly there does fail. webServiceTlsProvider= ### --- KeyStore TLS config variables --- ### ## Note that some of the above TLS configs also apply to the KeyStore TLS configuration. # Enable TLS with KeyStore type configuration in broker. tlsEnabledWithKeyStore=false # TLS KeyStore type configuration in broker: JKS, PKCS12 tlsKeyStoreType=JKS # TLS KeyStore path in broker tlsKeyStore= # TLS KeyStore password for broker tlsKeyStorePassword= # TLS TrustStore type configuration in broker: JKS, PKCS12 tlsTrustStoreType=JKS # TLS TrustStore path in broker tlsTrustStore= # TLS TrustStore password in broker, default value is empty password tlsTrustStorePassword= # Whether internal client uses TLS to connection the broker brokerClientTlsEnabled=false # Whether internal client use KeyStore type to authenticate with Pulsar brokers brokerClientTlsEnabledWithKeyStore=false # The TLS Provider used by internal client to authenticate with other Pulsar brokers brokerClientSslProvider= # PIP-478: name of a JSSE (SSLContext) java.security.Provider used to build the TLS SSLContext for the # broker's own outbound (broker-to-broker / replication) client connections, e.g. BCJSSE for FIPS (with the # BC-FIPS crypto provider registered separately). When set, the default factory builds the JDK engine with # this provider as the SSLContext provider, overriding the engine choice. Resolved by preferring a provider # already registered in the JVM (Security.getProvider), falling back to the ServiceLoader mechanism, failing # loudly when unresolvable. # brokerClientJsseProvider= # PIP-478: the JCA (material) provider for this component's OWN OUTBOUND client connections — the # outbound counterpart of jcaProvider, on the same axis. Unset uses the JVM provider search order. # brokerClientJcaProvider= # TLS trusted certificate file for internal client, # used by the internal client to authenticate with Pulsar brokers brokerClientTrustCertsFilePath= # TLS private key file for internal client, # used by the internal client to authenticate with Pulsar brokers brokerClientKeyFilePath= # TLS certificate file for internal client, # used by the internal client to authenticate with Pulsar brokers brokerClientCertificateFilePath= # TLS KeyStore type configuration for internal client: JKS, PKCS12 # used by the internal client to authenticate with Pulsar brokers brokerClientTlsKeyStoreType=JKS # TLS KeyStore path for internal client # used by the internal client to authenticate with Pulsar brokers brokerClientTlsKeyStore= # TLS KeyStore password for internal client, # used by the internal client to authenticate with Pulsar brokers brokerClientTlsKeyStorePassword= # TLS TrustStore type configuration for internal client: JKS, PKCS12 # used by the internal client to authenticate with Pulsar brokers brokerClientTlsTrustStoreType=JKS # TLS TrustStore path for internal client # used by the internal client to authenticate with Pulsar brokers brokerClientTlsTrustStore= # TLS TrustStore password for internal client, # used by the internal client to authenticate with Pulsar brokers brokerClientTlsTrustStorePassword= # Specify the tls cipher the internal client will use to negotiate during TLS Handshake # (a comma-separated list of ciphers) # used by the internal client to authenticate with Pulsar brokers # Examples: # brokerClientTlsCiphers=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 brokerClientTlsCiphers= # Specify the tls protocols the broker will use to negotiate during TLS handshake # (a comma-separated list of protocol names). # used by the internal client to authenticate with Pulsar brokers # Example: # brokerClientTlsProtocols=TLSv1.3,TLSv1.2 brokerClientTlsProtocols= # PIP-478 TLS factory (PulsarTlsFactory) class name for the broker's own outbound (broker-to-broker) client # connections (purpose BROKER_CLIENT). An empty value or the literal 'default' selects the built-in # default factory composed from the brokerClient tls* settings, otherwise the named class is instantiated # via its public no-arg constructor. This is the only outbound-client TLS path; the removed PIP-337 # brokerClientSslFactoryPlugin keys are rejected at startup when set to a non-default value. brokerClientTlsFactoryClassName= # PIP-478 configuration parameters for brokerClientTlsFactoryClassName (JSON object or key=value list) brokerClientTlsFactoryConfig= # You can add extra configuration options for the Pulsar Client and the Pulsar Admin Client # by prefixing them with "brokerClient_". These configurations are applied after hard coded configuration # and before the above brokerClient configurations named above. ### --- Metadata Store --- ### # Whether we should enable metadata operations batching metadataStoreBatchingEnabled=true # Maximum delay to impose on batching grouping metadataStoreBatchingMaxDelayMillis=5 # Maximum number of operations to include in a singular batch # With ZooKeeper 3.9.7 or later, a read batch larger than the multiRead.maxOps setting of the ZooKeeper server, # which is 1000 by default, is rejected, and the broker splits and retries it. To avoid these extra requests, raise # that setting first when raising this value. metadataStoreBatchingMaxOperations=1000 # Maximum size of a batch metadataStoreBatchingMaxSizeKb=128 # The number of threads used for serializing and deserializing data to and from the metadata store metadataStoreSerDesThreads=1 ### --- Authentication --- ### # Enable authentication authenticationEnabled=false # Enable authentication role anonymizer, can be REDACTED, hash:SHA256, hash:MD5, default is NONE authenticationRoleLoggingAnonymizer=NONE # Authentication provider name list, which is comma separated list of class names authenticationProviders= # Interval of time for checking for expired authentication credentials authenticationRefreshCheckSeconds=60 # Enforce authorization authorizationEnabled=false # Authorization provider fully qualified class-name authorizationProvider=org.apache.pulsar.broker.authorization.PulsarAuthorizationProvider # Allow wildcard matching in authorization # (wildcard matching only applicable if wildcard-char: # * presents at first or last position eg: *.pulsar.service, pulsar.service.*) authorizationAllowWildcardsMatching=false # Role names that are treated as "super-user", meaning they will be able to do all admin # operations and publish/consume from all topics superUserRoles= # Authentication settings of the broker itself. Used when the broker connects to other brokers, # either in same or other clusters brokerClientAuthenticationPlugin= brokerClientAuthenticationParameters= # Supported Athenz provider domain names(comma separated) for authentication athenzDomainNames= # When this parameter is not empty, unauthenticated users perform as anonymousUserRole anonymousUserRole= ## Configure the datasource of basic authenticate, supports the file and Base64 format. # file: # basicAuthConf=/path/my/.htpasswd # use Base64 to encode the contents of .htpasswd: # basicAuthConf=YOUR-BASE64-DATA basicAuthConf= ### --- Token Authentication Provider --- ### ## Symmetric key # Configure the secret key to be used to validate auth tokens # The key can be specified in three ways: # 1. As a base64-encoded Data URL (the semicolon before "base64" is part of the # standard data URL format and must not be omitted): # tokenSecretKey=data:;base64,xxxxxxxxx # 2. As a base64-encoded string directly (no prefix required): # tokenSecretKey=xxxxxxxxxxxxx # 3. As a file path (key file must be DER-encoded): # tokenSecretKey=file:///my/secret.key tokenSecretKey= ## Asymmetric public/private key pair # Configure the public key to be used to validate auth tokens # The key can be specified in three ways: # 1. As a base64-encoded Data URL (the semicolon before "base64" is part of the # standard data URL format and must not be omitted): # tokenPublicKey=data:;base64,xxxxxxxxx # 2. As a base64-encoded string directly (no prefix required): # tokenPublicKey=xxxxxxxxxxxxx # 3. As a file path (key file must be DER-encoded): # tokenPublicKey=file:///my/public.key tokenPublicKey= # The token "claim" that will be interpreted as the authentication "role" or "principal" by AuthenticationProviderToken (defaults to "sub" if blank) tokenAuthClaim= # The token audience "claim" name, e.g. "aud", that will be used to get the audience from token. # If not set, audience will not be verified. tokenAudienceClaim= # The token audience stands for this broker. The field `tokenAudienceClaim` of a valid token, need contains this. tokenAudience= ### --- SASL Authentication Provider --- ### # This is a regexp, which limits the range of possible ids which can connect to the Broker using SASL. # Default value: `SaslConstants.JAAS_CLIENT_ALLOWED_IDS_DEFAULT`, which is ".*pulsar.*", # so only clients whose id contains 'pulsar' are allowed to connect. saslJaasClientAllowedIds=.*pulsar.* # Service Principal, for login context name. # Default value `SaslConstants.JAAS_DEFAULT_BROKER_SECTION_NAME`, which is "PulsarBroker". saslJaasServerSectionName=PulsarBroker # Path to file containing the secret to be used to SaslRoleTokenSigner # The Path can be specified like: # saslJaasServerRoleTokenSignerSecretPath=file:///my/saslRoleTokenSignerSecret.key saslJaasServerRoleTokenSignerSecretPath= ### --- HTTP Server config --- ### # If >0, it will reject all HTTP requests with bodies larger than the configured limit httpMaxRequestSize=-1 # The maximum size in bytes of the request header. Larger headers will allow for more and/or larger cookies plus larger # form content encoded in a URL.However, larger headers consume more memory and can make a server more vulnerable to # denial of service attacks. httpMaxRequestHeaderSize = 8192 # The maximum size in bytes of the response header. Larger headers will allow for larger # response headers such as message properties in the Admin API message inspection endpoints # (getMessageById, peekNthMessage, examineMessage). However, larger headers consume more # memory and can make a server more vulnerable to denial of service attacks. httpMaxResponseHeaderSize = 8192 # If true, the broker will reject all HTTP requests using the TRACE and TRACK verbs. # This setting may be necessary if the broker is deployed into an environment that uses http port # scanning and flags web servers allowing the TRACE method as insecure. disableHttpDebugMethods=false # Enable the enforcement of limits on the incoming HTTP requests httpRequestsLimitEnabled=false # Max HTTP requests per seconds allowed. The excess of requests will be rejected with HTTP code 429 (Too many requests) httpRequestsMaxPerSecond=100.0 # Capacity for thread pool queue in the HTTP server httpServerThreadPoolQueueSize=8192 # Capacity for accept queue in the HTTP server httpServerAcceptQueueSize=8192 # Idle timeout for HTTP server connections in milliseconds httpServerIdleTimeout=30000 # Maximum number of inbound http connections. (0 to disable limiting) maxHttpServerConnections=2048 # Max concurrent web requests maxConcurrentHttpRequests=1024 ### --- BookKeeper Client --- ### # Metadata service uri that bookkeeper is used for loading corresponding metadata driver # and resolving its metadata service location. # This value can be fetched using `bookkeeper shell whatisinstanceid` command in BookKeeper cluster. # For example: zk+hierarchical://localhost:2181/ledgers # The metadata service uri list can also be semicolon separated values like below: # zk+hierarchical://zk1:2181;zk2:2181;zk3:2181/ledgers # For using Pulsar's default Metadata Client Driver for BookKeeper, the URI starts with "metadata-store:". # Examples: # - metadata-store:zk:zk1:2181,zk2:2181,zk3:2181/ledgers # - metadata-store:oxia://oxia-server:6648/bookkeeper # - metadata-store:oxia://oxia-server:6648/bookkeeper?batchingMaxDelayMillis=10&batchingMaxSizeKb=256&numSerDesThreads=4 # When using the "metadata-store:" driver with a separated BookKeeper metadata service, supported # MetadataStoreConfig query parameters are allowReadOnlyOperations, batchingEnabled, batchingMaxDelayMillis, # batchingMaxOperations, batchingMaxSizeKb, configFilePath, fsyncEnable, numSerDesThreads, and # sessionTimeoutMillis. Other query parameters are passed through to the metadata store provider. # When the value is empty, the broker will default to using broker's metadataStoreUrl config appended with "/ledgers" bookkeeperMetadataServiceUri= # Authentication plugin to use when connecting to bookies bookkeeperClientAuthenticationPlugin= # BookKeeper auth plugin implementation specifics parameters name and values bookkeeperClientAuthenticationParametersName= bookkeeperClientAuthenticationParameters= # Timeout for BK add / read operations bookkeeperClientTimeoutInSeconds=30 # Number of BookKeeper client worker threads # Default is Runtime.getRuntime().availableProcessors() bookkeeperClientNumWorkerThreads= # Number of BookKeeper client IO threads # Default is Runtime.getRuntime().availableProcessors() * 2 bookkeeperClientNumIoThreads= # Use separated IO threads for BookKeeper client # Default is true, which will use dedicated BookKeeper IO threads bookkeeperClientSeparatedIoThreadsEnabled=true # Speculative reads are initiated if a read request doesn't complete within a certain time # Using a value of 0, is disabling the speculative reads bookkeeperClientSpeculativeReadTimeoutInMillis=0 # Number of channels per bookie bookkeeperNumberOfChannelsPerBookie=16 # Use older Bookkeeper wire protocol with bookie bookkeeperUseV2WireProtocol=true # Enable bookies health check. Bookies that have more than the configured number of failure within # the interval will be quarantined for some time. During this period, new ledgers won't be created # on these bookies bookkeeperClientHealthCheckEnabled=true bookkeeperClientHealthCheckIntervalSeconds=60 bookkeeperClientHealthCheckErrorThresholdPerInterval=5 bookkeeperClientHealthCheckQuarantineTimeInSeconds=1800 #bookie quarantine ratio to avoid all clients quarantine the high pressure bookie servers at the same time bookkeeperClientQuarantineRatio=1.0 # Specify options for the GetBookieInfo check. These settings can be useful # to help ensure the list of bookies is up to date on the brokers. bookkeeperClientGetBookieInfoIntervalSeconds=86400 bookkeeperClientGetBookieInfoRetryIntervalSeconds=60 # Enable rack-aware bookie selection policy. BK will chose bookies from different racks when # forming a new bookie ensemble # This parameter related to ensemblePlacementPolicy in conf/bookkeeper.conf, if enabled, ensemblePlacementPolicy # should be set to org.apache.bookkeeper.client.RackawareEnsemblePlacementPolicy bookkeeperClientRackawarePolicyEnabled=true # Enable region-aware bookie selection policy. BK will chose bookies from # different regions and racks when forming a new bookie ensemble # If enabled, the value of bookkeeperClientRackawarePolicyEnabled is ignored # This parameter related to ensemblePlacementPolicy in conf/bookkeeper.conf, if enabled, ensemblePlacementPolicy # should be set to org.apache.bookkeeper.client.RegionAwareEnsemblePlacementPolicy bookkeeperClientRegionawarePolicyEnabled=false # Minimum number of racks per write quorum. BK rack-aware bookie selection policy will try to # get bookies from at least 'bookkeeperClientMinNumRacksPerWriteQuorum' racks for a write quorum. bookkeeperClientMinNumRacksPerWriteQuorum=2 # Enforces rack-aware bookie selection policy to pick bookies from 'bookkeeperClientMinNumRacksPerWriteQuorum' # racks for a writeQuorum. # If BK can't find bookie then it would throw BKNotEnoughBookiesException instead of picking random one. bookkeeperClientEnforceMinNumRacksPerWriteQuorum=false # Enable/disable reordering read sequence on reading entries. bookkeeperClientReorderReadSequenceEnabled=true # Enable bookie isolation by specifying a list of bookie groups to choose from. Any bookie # outside the specified groups will not be used by the broker bookkeeperClientIsolationGroups= # Enable bookie secondary-isolation group if bookkeeperClientIsolationGroups doesn't # have enough bookie available. bookkeeperClientSecondaryIsolationGroups= # Enable/disable having read operations for a ledger to be sticky to a single bookie. # If this flag is enabled, the client will use one single bookie (by preference) to read # all entries for a ledger. # Please notice that enabling sticky reads also requires that the ensemble size equals write quorum size for the ledger's # persistence policies. bookkeeperEnableStickyReads=true # Set the client security provider factory class name. # Default: org.apache.bookkeeper.tls.TLSContextFactory bookkeeperTLSProviderFactoryClass=org.apache.bookkeeper.tls.TLSContextFactory # Enable tls authentication with bookie bookkeeperTLSClientAuthentication=false # Supported type: PEM, JKS, PKCS12. Default value: PEM bookkeeperTLSKeyFileType=PEM #Supported type: PEM, JKS, PKCS12. Default value: PEM bookkeeperTLSTrustCertTypes=PEM # Path to file containing keystore password, if the client keystore is password protected. bookkeeperTLSKeyStorePasswordPath= # Path to file containing truststore password, if the client truststore is password protected. bookkeeperTLSTrustStorePasswordPath= # Path for the TLS private key file bookkeeperTLSKeyFilePath= # Path for the TLS certificate file bookkeeperTLSCertificateFilePath= # Path for the trusted TLS certificate file bookkeeperTLSTrustCertsFilePath= # Tls cert refresh duration at bookKeeper-client in seconds (0 to disable check) bookkeeperTlsCertFilesRefreshDurationSeconds=300 # Whether the hostname is validated when the broker creates a TLS connection to a bookkeeper bookkeeper_tlsHostnameVerificationEnabled=false # Enable/disable disk weight based placement. Default is false bookkeeperDiskWeightBasedPlacementEnabled=false # Set the interval to check the need for sending an explicit LAC # A value of '0' disables sending any explicit LACs. Default is 0. bookkeeperExplicitLacIntervalInMills=0 # Expose bookkeeper client managed ledger stats to prometheus. default is false # bookkeeperClientExposeStatsToPrometheus=false # If bookkeeperClientExposeStatsToPrometheus is set to true, we can set bookkeeperClientLimitStatsLogging=true # to limit per_channel_bookie_client metrics. default is true # bookkeeperClientLimitStatsLogging=true ### --- Managed Ledger --- ### # Ensemble size (E), Number of bookies to use for storing entries in a ledger. # Please notice that sticky reads enabled by bookkeeperEnableStickyReads=true aren’t used # unless ensemble size (E) equals write quorum (Qw) size. managedLedgerDefaultEnsembleSize=2 # Write quorum (Qw) size, Replication factor for storing entries (messages) in a ledger. managedLedgerDefaultWriteQuorum=2 # Ack quorum (Qa) size, Number of guaranteed copies (acks to wait for before a write is considered completed) managedLedgerDefaultAckQuorum=2 # with OpportunisticStriping=true the ensembleSize is adapted automatically to writeQuorum # in case of lack of enough bookies #bookkeeper_opportunisticStriping=false # You can add other configuration options for the BookKeeper client # by prefixing them with "bookkeeper_". These configurations are applied # to all bookkeeper clients started by the broker (including the managed ledger bookkeeper clients as well as # the BookkeeperPackagesStorage bookkeeper client), except the distributed log bookkeeper client. # The dlog bookkeeper client is configured in the functions worker configuration file. # TCP keep-alive settings for the BookKeeper client connections from the broker to bookies. # These options were introduced in BookKeeper 4.17.3 (see apache/bookkeeper#4683) and are # forwarded to the BookKeeper client via the generic "bookkeeper_" prefix mechanism above. # A value of -1 (BookKeeper default) defers to the operating system's TCP keep-alive settings. # Uncomment and adjust to enable finer-grained keep-alive probing from the broker. # # Note: TCP keep-alive is a two-sided mechanism. Tuning these on the broker (BookKeeper # client) side only affects connections initiated by the broker. To complete the picture # you should also tune the bookie node's OS-level keep-alive settings via sysctl, e.g. # net.ipv4.tcp_keepalive_time / tcp_keepalive_intvl / tcp_keepalive_probes, since the # BookKeeper server (bookie) currently does not expose application-level keep-alive knobs. # Idle time (in seconds) before the first TCP keep-alive probe is sent on an otherwise idle # BookKeeper client connection. #bookkeeper_tcpKeepIdle=300 # Interval (in seconds) between subsequent TCP keep-alive probes when no acknowledgement is # received from the bookie. #bookkeeper_tcpKeepIntvl=60 # Number of unacknowledged TCP keep-alive probes before the connection is considered dead # and closed. #bookkeeper_tcpKeepCnt=5 # How frequently to flush the cursor positions that were accumulated due to rate limiting. (seconds). # Default is 60 seconds managedLedgerCursorPositionFlushSeconds=60 # How frequently to refresh the stats. (seconds). Default is 60 seconds managedLedgerStatsPeriodSeconds=60 # Default type of checksum to use when writing to BookKeeper. Default is "CRC32C" # Other possible options are "CRC32", "MAC" or "DUMMY" (no checksum). managedLedgerDigestType=CRC32C # Number of threads to be used for managed ledger scheduled tasks managedLedgerNumSchedulerThreads= # Amount of memory to use for caching data payload in managed ledger. This memory # is allocated from JVM direct memory and it's shared across all the topics # running in the same broker. By default, uses 1/5th of available direct memory managedLedgerCacheSizeMB= # Evicting cache data by the slowest markDeletedPosition (true) or slowest read position (false). # This setting is ignored when cacheEvictionByExpectedReadCount is true." cacheEvictionByMarkDeletedPosition=false # Evicting cache data by expected read count. Expected read count is calculated by the number of # active cursors with a read position that is behind the position of the cached entry. # This setting will override the cacheEvictionByMarkDeletedPosition setting. cacheEvictionByExpectedReadCount=true # Whether we should make a copy of the entry payloads when inserting in cache. Without a copy, a cached entry keeps # the buffer that it was received in allocated while it stays in the cache. That is a buffer of the Netty connection # that the entry arrived on, from a client or from a bookie, such as a receive buffer or one that the TLS handler or # the frame decoder allocated, and it can be much larger than the entry. # The cache size limit counts only the entry's own size, so size-based eviction doesn't bound that memory, and # managedLedgerCacheEvictionExtendTTLOfEntriesWithRemainingExpectedReadsMaxTimes extends how long it stays allocated. # Dynamic updates apply to subsequent cache insertions; existing cached entries keep their original buffers. # Updating this setting does not clear existing caches. managedLedgerCacheCopyEntries=false # Threshold to which bring down the cache level when eviction is triggered managedLedgerCacheEvictionWatermark=0.9 # Configure the cache eviction interval in milliseconds for the managed ledger cache managedLedgerCacheEvictionIntervalMs=10 # Controls time-to-live (TTL) for entries in the managed ledger (broker) cache. # The TTL can be extended in two ways: # 1. When cacheEvictionByExpectedReadCount is enabled: TTL is extended for entries with remaining # expected reads. The maximum number of extensions is controlled by # managedLedgerCacheEvictionExtendTTLOfEntriesWithRemainingExpectedReadsMaxTimes. # 2. When cacheEvictionExtendTTLOfRecentlyAccessed is enabled: TTL is extended for entries # accessed since the last expiration check. # Default value is 1000ms. managedLedgerCacheEvictionTimeThresholdMillis=1000 # Maximum number of times the cache can extend the TTL of an entry that has remaining expected reads. # Only takes effect when cacheEvictionByExpectedReadCount is enabled. # This helps optimize cache efficiency for scenarios like: # - Key_Shared subscription replays # - Catch-up reads for lagging consumers # - Consumers temporarily falling behind the tail # Entries with remaining expected reads will have their TTL extended up to this many times # before being eligible for eviction. The TTL will be extended by # managedLedgerCacheEvictionTimeThresholdMillis each time. When the cache needs memory, size-based eviction # overrides this protection after requeuing an entry at most once per eviction pass. Both this protection and the # one of managedLedgerCacheEvictionExtendTTLOfRecentlyAccessed apply only in a pass's first cycle through the # cache's entries; after it, the pass removes entries in their order in the queue. Entries added while a pass is # running are past its first cycle, so that pass doesn't requeue them. # Without managedLedgerCacheCopyEntries, a cached entry keeps the larger buffer that it was received in allocated # while its time to live is extended, so consider enabling copying before raising this value. # Default is 5. managedLedgerCacheEvictionExtendTTLOfEntriesWithRemainingExpectedReadsMaxTimes=5 # Controls whether recently accessed entries in the managed ledger cache should have their # lifetime extended before cache eviction. # When enabled: # - During eviction check, if an entry has been accessed since the last check, its expiration # time will be extended by managedLedgerCacheEvictionTimeThresholdMillis # - Makes the cache behave like a Least Recently Used (LRU) cache by keeping frequently # accessed entries longer # - Helps optimize performance for frequently accessed entries while still allowing old unused # entries to be evicted # - Minimum eviction time is 2x managedLedgerCacheEvictionTimeThresholdMillis # When disabled: # - Cache behaves more like a FIFO queue with time-based and size-based eviction # - Minimum eviction time is managedLedgerCacheEvictionTimeThresholdMillis # Default is false, to avoid extending cache retention for entries that have already been read. managedLedgerCacheEvictionExtendTTLOfRecentlyAccessed=false # Enable the BookKeeper batch read API for managed-ledger storage reads: a single RPC fetches # multiple entries, reducing network overhead for sequential reads. Batch read requires # bookkeeperUseV2WireProtocol and BookKeeper's own batch read flag (bookkeeper_batchReadEnabled), # checked on the BookKeeper client when a topic is loaded: regular reads are used otherwise, as # well as for striped ledgers (managedLedgerDefaultEnsembleSize differs from # managedLedgerDefaultWriteQuorum) and for bookies without batch read support. Each batch read # request is bounded by the size limit of the dispatcher read that triggered it (e.g. # dispatcherMaxReadSizeBytes) and by the BookKeeper client's max frame size (maxMessageSize plus # padding); a read needing more data is split into sequential batch read requests. Entries read # this way are copied when inserted in the entry cache. managedLedgerBatchReadEnabled=true # Allow successful ordinary multi-entry managed-ledger reads to complete on the current thread. # Fully cached reads may invoke their callback before the read method returns. Set false to restore # ledger-executor affinity, including bounded inline completion when already on that executor. # False also restores the Exclusive/Failover cache-hit handoff used before PR #26619. # The JVM-wide property -Dpulsar.managedLedger.maxReadCompletionDepth limits nested inline # callbacks in both modes when callbacks issue another read before returning # (default 10, values below 1 use 1). Set it at JVM startup. # The depth accepts Integer.decode syntax, including hexadecimal and leading-zero octal. # At the limit, enabled mode queues to the JVM common ForkJoinPool; disabled mode queues to # the ledger executor. If common-pool parallelism is at most 1, both use the ledger executor. # Common-pool parallelism normally uses available processors minus one (at least one). # Override it with -Djava.util.concurrent.ForkJoinPool.common.parallelism. # A limit of 1 queues every subsequent completion in a nested cached-read chain. # This setting is not dynamic: restart the broker to apply a changed value. The policy is captured # when a managed ledger opens and cannot change for already loaded topics. Failure callbacks, # single-entry reads, and replay callbacks are unaffected. managedLedgerReadEntriesCallbackInline=true # Maximum number of add entry requests handed over to the managed ledger's executor thread in one batch. # Publishing threads queue adds for the ledger's executor, which takes them over in batches of up to this # many adds and processes each batch before other tasks on that thread can run. A batch also stops before taking # an entry that would exceed managedLedgerAddEntryHandoverMaxBatchBytesSize bytes. A larger value reduces scheduling # overhead and contention between publishing threads under high publish rates, but keeps the executor thread # occupied for longer per batch, which can delay add completions, reads and cursor notifications for the # ledgers that share the thread. A smaller value favors those tasks over add throughput. Set to 0 or 1 to # disable batching, so that each add is handed over to the executor as a task of its own. # This setting is dynamic: updates apply to managed ledgers opened after the change; ledgers that are # already open keep the value they opened with. managedLedgerAddEntryHandoverMaxBatchItems=1024 # Maximum total entry size in bytes of a batch of add entry requests handed over to the managed # ledger's executor thread. This keeps a ledger with large entries from occupying the # executor thread for as long as a full batch of managedLedgerAddEntryHandoverMaxBatchItems adds would, # which would delay add completions, reads and cursor notifications for the ledgers that share the thread. # An entry larger than this runs in a batch of its own. Set to 0 to limit # batches only by their number of adds. The default is 5 MB. # This setting is dynamic: updates apply to managed ledgers opened after the change; ledgers that are # already open keep the value they opened with. managedLedgerAddEntryHandoverMaxBatchBytesSize=5242880 # This setting configures the duration of continuing to cache added entries while there are no # active cursors, when the last active cursor has left or immediately after initialization when # the persistent topic and the managed ledger gets loaded. # This setting is ignored unless cacheEvictionByExpectedReadCount is enabled. # The default value is 2 * managedLedgerCacheEvictionTimeThresholdMillis. managedLedgerContinueCachingAddedEntriesAfterLastActiveCursorLeavesMillis= # Configure the threshold (in number of entries) from where a cursor should be considered 'backlogged' # and thus should be set as inactive. # This has no effect when cacheEvictionByExpectedReadCount is enabled. managedLedgerCursorBackloggedThreshold=1000 # Minimum cursors that must be in backlog state to cache and reuse the read entries. # (Default =0 to disable backlog reach cache) # This has no effect when cacheEvictionByExpectedReadCount is enabled. managedLedgerMinimumBacklogCursorsForCaching=0 # Minimum backlog entries for any cursor before start caching reads. # This has no effect when cacheEvictionByExpectedReadCount is enabled. managedLedgerMinimumBacklogEntriesForCaching=1000 # Maximum backlog entry difference to prevent caching entries that can't be reused. # This has no effect when cacheEvictionByExpectedReadCount is enabled. managedLedgerMaxBacklogBetweenCursorsForCaching=1000 # Rate limit the amount of writes per second generated by consumer acking the messages managedLedgerDefaultMarkDeleteRateLimit=1.0 # Max number of entries to append to a ledger before triggering a rollover # A ledger rollover is triggered after the min rollover time has passed # and one of the following conditions is true: # * The max rollover time has been reached # * The max entries have been written to the ledger # * The max ledger size has been written to the ledger managedLedgerMaxEntriesPerLedger=50000 # Minimum time between ledger rollover for a topic managedLedgerMinLedgerRolloverTimeMinutes=10 # Maximum time before forcing a ledger rollover for a topic managedLedgerMaxLedgerRolloverTimeMinutes=240 # Time to rollover ledger for inactive topic (duration without any publish on that topic) # Disable rollover with value 0 (Default value 0) managedLedgerInactiveLedgerRolloverTimeSeconds=0 # Time to evict inactive offloaded ledger for inactive topic # Disable eviction with value 0 managedLedgerInactiveOffloadedLedgerEvictionTimeSeconds=600 # Maximum ledger size before triggering a rollover for a topic (MB) managedLedgerMaxSizePerLedgerMbytes=2048 # Delay between a ledger being successfully offloaded to long term storage # and the ledger being deleted from bookkeeper (default is 4 hours) managedLedgerOffloadDeletionLagMs=14400000 # The number of bytes before triggering automatic offload to long term storage # (default is -1, which is disabled) managedLedgerOffloadAutoTriggerSizeThresholdBytes=-1 # Read priority when ledgers exists in both bookkeeper and the second layer storage # (tiered-storage-first/bookkeeper-first, default is tiered-storage-first) managedLedgerDataReadPriority=tiered-storage-first # The number of seconds before triggering automatic offload to long term storage # (default is -1, which is disabled) managedLedgerOffloadThresholdInSeconds=-1 # The number of bytes permitted per second to read from bookies for offloading on this broker # (default is -1, which is disabled) managedLedgerOffloadFlowPermitsPerSecond=-1 # Trigger offload on topic load or not. Default is false. # triggerOffloadOnTopicLoad=false # Max number of entries to append to a cursor ledger managedLedgerCursorMaxEntriesPerLedger=50000 # Max time before triggering a rollover on a cursor ledger managedLedgerCursorRolloverTimeInSeconds=14400 # Maximum buffer size in MB for bytes read from storage (or from the cache). # This is the memory retained by data read from storage (or cache) until it has been # delivered to the Consumer Netty channel. This provides backpressure for BookKeeper and # tiered storage reads, preventing the broker from having too many concurrent reads and # running into Out of Memory errors when there are multiple concurrent reads to multiple # concurrent consumers. # When left unset (empty), it defaults to the greater of dispatcherMaxReadSizeBytes and 15% of available # JVM direct memory; dispatcherMaxReadSizeBytes is the minimum value so the limiter can never block the # completion of a single read. # Set to 0 to disable the feature. # Set to a value greater than 0 to use that many MB. managedLedgerMaxReadsInFlightSizeInMB= # Read ahead for cursors that read ranges of entries, such as subscriptions catching up with a backlog: when a cursor # reads a range, the managed ledger also reads the next range of the same ledger into the entry cache, unless it's # cached, so that the cursor's next read finds it in the cache or joins the read in progress instead of waiting for # the storage. A cursor has at most one read ahead in progress; a read ahead takes no permits of # managedLedgerMaxReadsInFlightSizeInMB that reads are waiting for, nor ones that would leave more than 70 % of the # limit in use, and is skipped when the entry cache is at its eviction watermark (managedLedgerCacheEvictionWatermark). # Set to false to disable it. managedLedgerReadAheadEnabled=true # Max number of "acknowledgment holes" that are going to be persistently stored. # When acknowledging out of order, a consumer will leave holes that are supposed # to be quickly filled by acking all the messages. The information of which # messages are acknowledged is persisted by compressing in "ranges" of messages # that were acknowledged. After the max number of ranges is reached, the information # will only be tracked in memory and messages will be redelivered in case of # crashes. # Truncations emit a WARN log and increment # pulsar.broker.managed_ledger.cursor.persist.unacked_ranges.truncated. # Note: when managedLedgerPersistIndividualAckAsLongArray is enabled (the default), the persisted size is # bounded by the backlog size (the range of entries the cursor spans), not by this max number of unacked # ranges. For BookKeeper ledger storage, with the default broker maxMessageSize and BookKeeper # nettyMaxFrameSizeBytes, the state fits a backlog of about 30M entries (excluding the # managedLedgerMaxBatchDeletedIndexToPersist storage, whose size is instead relative to the number of # acknowledgment holes). managedLedgerMaxUnackedRangesToPersist=200000 # Maximum number of partially acknowledged batch messages per subscription that will have their batch # deleted indexes persisted. Batch deleted index state is handled when acknowledgmentAtBatchIndexLevelEnabled=true. # When this limit is exceeded, remaining batch message containing the batch deleted indexes will # only be tracked in memory. In case of broker restarts or load balancing events, the batch # deleted indexes will be cleared while redelivering the messages to consumers. # Truncations emit a WARN log and increment # pulsar.broker.managed_ledger.cursor.persist.batch_deleted_indexes.truncated. managedLedgerMaxBatchDeletedIndexToPersist=200000 # When storing acknowledgement state, choose a more compact serialization format that stores # individual acknowledgements as a bitmap which is serialized to an array of long values. managedLedgerPersistIndividualAckAsLongArray=true # Max number of "acknowledgment holes" that can be stored in MetadataStore. If number of unack message range is higher # than this limit then broker will persist unacked ranges into bookkeeper to avoid additional data overhead into # MetadataStore. managedLedgerMaxUnackedRangesToPersistInMetadataStore=200000 # ManagedCursorInfo compression type, option values (NONE, LZ4, ZLIB, ZSTD, SNAPPY). # If value is NONE, then save the ManagedCursorInfo bytes data directly without compression. # Using compression reduces the size of persistent cursor (subscription) metadata. This enables using a higher # managedLedgerMaxUnackedRangesToPersistInMetadataStore value and reduces the overall metadata stored in # the metadata store such as ZooKeeper. managedCursorInfoCompressionType=LZ4 # ManagedCursorInfo compression size threshold (bytes), only compress metadata when origin size more then this value. # 0 means compression will always apply. managedCursorInfoCompressionThresholdInBytes=16384 # ManagedLedgerInfo compression type, option values (NONE, LZ4, ZLIB, ZSTD, SNAPPY). # If value is invalid or NONE, then save the ManagedLedgerInfo bytes data directly without compression. # Using compression reduces the size of the persistent topic metadata. When a topic contains a large number of # individual ledgers in BookKeeper or tiered storage, compression helps prevent the metadata size from exceeding # the maximum size of a metadata store entry (ZNode in ZooKeeper). This also reduces the overall metadata stored # in the metadata store such as ZooKeeper. managedLedgerInfoCompressionType=LZ4 # ManagedLedgerInfo compression size threshold (bytes), only compress metadata when origin size more then this value. # 0 means compression will always apply. managedLedgerInfoCompressionThresholdInBytes=16384 # Skip reading non-recoverable/unreadable data-ledger under managed-ledger's list. It helps when data-ledgers gets # corrupted at bookkeeper and managed-cursor is stuck at that ledger. autoSkipNonRecoverableData=false # Whether to recover a cursor whose cursor ledger fails to open or read with any BookKeeper error, instead of # failing the topic load. The cursor is rewound to the mark-delete position last saved in the cursor metadata, # so the acknowledgments made after that snapshot are lost and those messages are delivered again. # Updating it dynamically only affects topics loaded after the change. managedLedgerForceRecovery=false # Whether to treat any BookKeeper error when reading a schema ledger as if the schema data were deleted, instead of # failing the operation. The topic is then treated as if it had no stored schema, so enabling this can permanently # lose schema history. schemaLedgerForceRecovery=false # Whether to recover cursors lazily when trying to recover a managed ledger backing a persistent topic. # It can improve write availability of topics. # The caveat is now when recovered ledger is ready to write we're not sure if all old consumers last mark # delete position can be recovered or not. lazyCursorRecovery=false # operation timeout while updating managed-ledger metadata. managedLedgerMetadataOperationsTimeoutSeconds=60 # Read entries timeout when broker tries to read messages from bookkeeper. managedLedgerReadEntryTimeoutSeconds=0 # Add entry timeout when broker tries to publish message to bookkeeper (0 to disable it). managedLedgerAddEntryTimeoutSeconds=0 # Managed ledger prometheus stats latency rollover seconds (default: 60s) managedLedgerPrometheusStatsLatencyRolloverSeconds=60 # Whether trace managed ledger task execution time managedLedgerTraceTaskExecution=true # New entries check delay for the cursor under the managed ledger. # If no new messages in the topic, the cursor will try to check again after the delay time. # For consumption latency sensitive scenario, can set to a smaller value or set to 0. # Of course, use a smaller value may degrade consumption throughput. Default is 10ms. managedLedgerNewEntriesCheckDelayInMillis=10 ### --- Load balancer --- ### # Enable load balancer loadBalancerEnabled=true # Percentage of change to trigger load report update loadBalancerReportUpdateThresholdPercentage=10 # minimum interval to update load report loadBalancerReportUpdateMinIntervalMillis=5000 # maximum interval to update load report loadBalancerReportUpdateMaxIntervalMinutes=15 # Frequency of report to collect loadBalancerHostUsageCheckIntervalMinutes=1 # Enable/disable automatic bundle unloading for load-shedding loadBalancerSheddingEnabled=true # Load shedding interval. Broker periodically checks whether some traffic should be offload from # some over-loaded broker to other under-loaded brokers loadBalancerSheddingIntervalMinutes=1 # Prevent the same topics to be shed and moved to other broker more than once within this timeframe loadBalancerSheddingGracePeriodMinutes=30 # Usage threshold to allocate max number of topics to broker loadBalancerBrokerMaxTopics=50000 # Usage threshold to determine a broker as over-loaded loadBalancerBrokerOverloadedThresholdPercentage=85 # Interval to flush dynamic resource quota to ZooKeeper loadBalancerResourceQuotaUpdateIntervalMinutes=15 # enable/disable namespace bundle auto split loadBalancerAutoBundleSplitEnabled=true # enable/disable automatic unloading of split bundles loadBalancerAutoUnloadSplitBundlesEnabled=true # maximum topics in a bundle, otherwise bundle split will be triggered loadBalancerNamespaceBundleMaxTopics=1000 # maximum sessions (producers + consumers) in a bundle, otherwise bundle split will be triggered # (disable threshold check with value -1) loadBalancerNamespaceBundleMaxSessions=1000 # maximum msgRate (in + out) in a bundle, otherwise bundle split will be triggered loadBalancerNamespaceBundleMaxMsgRate=30000 # maximum bandwidth (in + out) in a bundle, otherwise bundle split will be triggered loadBalancerNamespaceBundleMaxBandwidthMbytes=100 # maximum number of bundles in a namespace loadBalancerNamespaceMaximumBundles=128 # Override the auto-detection of the network interfaces max speed. # This option is useful in some environments (eg: EC2 VMs) where the max speed # reported by Linux is not reflecting the real bandwidth available to the broker. # Since the network usage is employed by the load manager to decide when a broker # is overloaded, it is important to make sure the info is correct or override it # with the right value here. The configured value can be a double (eg: 0.8) and that # can be used to trigger load-shedding even before hitting on NIC limits. loadBalancerOverrideBrokerNicSpeedGbps= # Name of load manager to use loadManagerClassName=org.apache.pulsar.broker.loadbalance.impl.ModularLoadManagerImpl # Name of topic bundle assignment strategy to use topicBundleAssignmentStrategy=org.apache.pulsar.common.naming.ConsistentHashingTopicBundleAssigner # Supported algorithms name for namespace bundle split. # "range_equally_divide" divides the bundle into two parts with the same hash range size. # "topic_count_equally_divide" divides the bundle into two parts with the same topics count. # "specified_positions_divide" divides the bundle into several parts by the specified positions. supportedNamespaceBundleSplitAlgorithms=range_equally_divide,topic_count_equally_divide,specified_positions_divide,flow_or_qps_equally_divide # Default algorithm name for namespace bundle split defaultNamespaceBundleSplitAlgorithm=range_equally_divide # Load shedding strategy for the modular load manager (ModularLoadManagerImpl). # Supported: AvgShedder, ThresholdShedder, UniformLoadShedder and OverloadShedder. # Default is AvgShedder since 5.0.0 (ThresholdShedder was the default from 2.10.0 to 4.x). # AvgShedder implements both the shedding and the placement strategy: it pairs the highest and the lowest # loaded brokers, moves load between them once their score gap has exceeded a threshold for several # consecutive checks, and places the unloaded bundles on the broker it chose for them. It must be paired # with loadBalancerLoadPlacementStrategy=AvgShedder (see below). # When the extensible load manager (ExtensibleLoadManagerImpl) is used, set this to # org.apache.pulsar.broker.loadbalance.extensions.scheduler.TransferShedder instead. loadBalancerLoadSheddingStrategy=org.apache.pulsar.broker.loadbalance.impl.AvgShedder # If enabled, when current usage < average usage - threshold, the broker with the highest load will be triggered to unload. lowerBoundarySheddingEnabled=false # Load balance placement strategy for the modular load manager. # Supported: AvgShedder, LeastLongTermMessageRate and LeastResourceUsageWithWeight. # Default is AvgShedder since 5.0.0 (LeastLongTermMessageRate before), which only takes effect together with # loadBalancerLoadSheddingStrategy=AvgShedder. If a different shedding strategy is configured, the broker falls # back to LeastLongTermMessageRate placement and logs a warning; set this key explicitly in that case # (LeastResourceUsageWithWeight is the recommended pairing for ThresholdShedder). loadBalancerLoadPlacementStrategy=org.apache.pulsar.broker.loadbalance.impl.AvgShedder # Whether to narrow the candidate brokers for a new bundle assignment to those owning the fewest bundles of the # same namespace before the placement strategy runs. This distributes bundle counts evenly per namespace but # overrides load-aware placement and can discard the destination AvgShedder planned for an unloaded bundle. # Disabled by default since 5.0.0 (it was enabled before). System namespace bundles are always distributed evenly. loadBalancerDistributeBundlesEvenlyEnabled=false # The broker resource usage threshold. # When the broker resource usage is greater than the pulsar cluster average resource usage, # the threshold shedder will be triggered to offload bundles from the broker. # It only takes effect in the ThresholdShedder strategy. loadBalancerBrokerThresholdShedderPercentage=10 # The broker average resource usage difference threshold. # Average resource usage difference threshold to determine a broker whether to be a best candidate in LeastResourceUsageWithWeight. # (eg: broker1 with 10% resource usage with weight and broker2 with 30% and broker3 with 80% will have 40% average resource usage. # The placement strategy can select broker1 and broker2 as best candidates.) # It only takes effect in the LeastResourceUsageWithWeight strategy. loadBalancerAverageResourceUsageDifferenceThresholdPercentage=10 # Message-rate percentage threshold between highest and least loaded brokers for # uniform load shedding. (eg: broker1 with 50K msgRate and broker2 with 30K msgRate # will have 66% msgRate difference and load balancer can unload bundles from broker-1 # to broker-2) loadBalancerMsgRateDifferenceShedderThreshold=50 # Message-throughput threshold between highest and least loaded brokers for # uniform load shedding. (eg: broker1 with 450MB msgRate and broker2 with 100MB msgRate # will have 4.5 times msgThroughout difference and load balancer can unload bundles # from broker-1 to broker-2) loadBalancerMsgThroughputMultiplierDifferenceShedderThreshold=4 # When calculating new resource usage, the history usage accounts for. # It only takes effect in the ThresholdShedder strategy. loadBalancerHistoryResourcePercentage=0.9 # The BandWidthIn usage weight when calculating new resource usage. loadBalancerBandwidthInResourceWeight=1.0 # The BandWidthOut usage weight when calculating new resource usage. loadBalancerBandwidthOutResourceWeight=1.0 # The CPU usage weight when calculating new resource usage. loadBalancerCPUResourceWeight=1.0 # The direct memory usage weight when calculating new resource usage. # Direct memory usage cannot accurately reflect the machine's load, # and it is not recommended to use it to score the machine's load. loadBalancerDirectMemoryResourceWeight=0 # Bundle unload minimum throughput threshold (MB), avoiding bundle unload frequently. # It only takes effect in the ThresholdShedder strategy. loadBalancerBundleUnloadMinThroughputThreshold=10 # Time to wait for the unloading of a namespace bundle namespaceBundleUnloadingTimeoutMs=60000 # Configuration for AvgShedder, the default shedding and placement strategy since 5.0.0 # The low threshold for the difference between the highest and lowest loaded brokers. loadBalancerAvgShedderLowThreshold = 15 # The high threshold for the difference between the highest and lowest loaded brokers. loadBalancerAvgShedderHighThreshold = 40 # The number of times the low threshold is triggered before the bundle is unloaded. loadBalancerAvgShedderHitCountLowThreshold = 8 # The number of times the high threshold is triggered before the bundle is unloaded. loadBalancerAvgShedderHitCountHighThreshold = 2 # In the UniformLoadShedder and AvgShedder strategy, the maximum unload ratio: the share of the load # difference between the highest and the lowest loaded broker that is moved in one shedding cycle. # Default is 0.5 since 5.0.0 (0.2 before), which lets AvgShedder equalize the two brokers in a single cycle. maxUnloadPercentage = 0.5 ### --- Load balancer extension --- ### # Option to enable the debug mode for the load balancer logics. # The debug mode prints more logs to provide more information such as load balance states and decisions. # (only used in load balancer extension logics) loadBalancerDebugModeEnabled=false # The target standard deviation of the resource usage across brokers # (100% resource usage is 1.0 load). # The shedder logic tries to distribute bundle load across brokers to meet this target std. # The smaller value will incur load balancing more frequently. # (only used in load balancer extension TransferShedder) loadBalancerBrokerLoadTargetStd=0.25 # Threshold to the consecutive count of fulfilled shedding(unload) conditions. # If the unload scheduler consecutively finds bundles that meet unload conditions # many times bigger than this threshold, the scheduler will shed the bundles. # The bigger value will incur less bundle unloading/transfers. # (only used in load balancer extension TransferShedder) loadBalancerSheddingConditionHitCountThreshold=3 # Option to enable the bundle transfer mode when distributing bundle loads. # On: transfer bundles from overloaded brokers to underloaded # -- pre-assigns the destination broker upon unloading). # Off: unload bundles from overloaded brokers # -- post-assigns the destination broker upon lookups). # (only used in load balancer extension TransferShedder) loadBalancerTransferEnabled=true # Maximum number of brokers to unload bundle load for each unloading cycle. # The bigger value will incur more unloading/transfers for each unloading cycle. # (only used in load balancer extension TransferShedder) loadBalancerMaxNumberOfBrokerSheddingPerCycle=3 # Delay (in seconds) to the next unloading cycle after unloading. # The logic tries to give enough time for brokers to recompute load after unloading. # The bigger value will delay the next unloading cycle longer. # (only used in load balancer extension TransferShedder) loadBalanceSheddingDelayInSeconds=180 # Broker load data time to live (TTL in seconds). # The logic tries to avoid (possibly unavailable) brokers with out-dated load data, # and those brokers will be ignored in the load computation. # When tuning this value, please consider loadBalancerReportUpdateMaxIntervalMinutes. #The current default is loadBalancerReportUpdateMaxIntervalMinutes * 2. # (only used in load balancer extension TransferShedder) loadBalancerBrokerLoadDataTTLInSeconds=1800 # Max number of bundles in bundle load report from each broker. # The load balancer distributes bundles across brokers, # based on topK bundle load data and other broker load data. # The bigger value will increase the overhead of reporting many bundles in load data. # Used for ExtensibleLoadManagerImpl and ModularLoadManagerImpl, default value is 10. # User can disable the bundle filtering feature of ModularLoadManagerImpl by setting this value to -1. # Enabling this feature can reduce the pressure on the zookeeper when doing load report. # WARNING: too small value could result in a long load balance time. loadBalancerMaxNumberOfBundlesInBundleLoadReport=10 # Service units'(bundles) split interval. Broker periodically checks whether # some service units(e.g. bundles) should split if they become hot-spots. # (only used in load balancer extension logics) loadBalancerSplitIntervalMinutes=1 # Max number of bundles to split to per cycle. # (only used in load balancer extension logics) loadBalancerMaxNumberOfBundlesToSplitPerCycle=10 # Threshold to the consecutive count of fulfilled split conditions. # If the split scheduler consecutively finds bundles that meet split conditions # many times bigger than this threshold, the scheduler will trigger splits on the bundles # (if the number of bundles is less than loadBalancerNamespaceMaximumBundles). # (only used in load balancer extension logics) loadBalancerNamespaceBundleSplitConditionHitCountThreshold=3 # After this delay, the service-unit state channel tombstones any service units (e.g., bundles) # in semi-terminal states. For example, after splits, parent bundles will be `deleted`, # and then after this delay, the parent bundles' state will be `tombstoned` # in the service-unit state channel. # Pulsar does not immediately remove such semi-terminal states # to avoid unnecessary system confusion, # as the bundles in the `tombstoned` state might temporarily look available to reassign. # Rarely, one could lower this delay in order to aggressively clean # the service-unit state channel when there are a large number of bundles. # minimum value = 30 secs # (only used in load balancer extension logics) loadBalancerServiceUnitStateTombstoneDelayTimeInSeconds=3600 # Name of ServiceUnitStateTableView implementation class to use loadManagerServiceUnitStateTableViewClassName=org.apache.pulsar.broker.loadbalance.extensions.channel.ServiceUnitStateTableViewImpl # Specify ServiceUnitTableViewSyncer to sync service unit(bundle) states between metadata store and # system topic table views during migration from one to the other. One could enable this # syncer before migration and disable it after the migration finishes. # It accepts `MetadataStoreToSystemTopicSyncer` or `SystemTopicToMetadataStoreSyncer` to # enable it. It accepts `None` to disable it." loadBalancerServiceUnitTableViewSyncer=None # Specify the maximum number of concurrent orphan bundle ownership overrides. # The leader broker triggers these overrides upon detecting orphaned bundles. # It identifies orphan bundle ownerships by periodically scanning ownership data # and monitoring for broker shutdowns or inactive states. loadBalancerServiceUnitStateMaxConcurrentOverrides = 64 ### --- Replication --- ### # Enable replication metrics replicationMetricsEnabled=true # Max number of connections to open for each broker in a remote cluster # More connections host-to-host lead to better throughput over high-latency # links. replicationConnectionsPerBroker=16 # Replicator producer queue size replicationProducerQueueSize=1000 # Maximum read-processing steps per persistent replicator before yielding to the broker executor. # A step initiates a read, processes a completed batch, or handles cancellation or rewind; it is not a message limit. # Lower values improve fairness between tasks; higher values reduce scheduling overhead. # Must be at least 1. Requires a broker restart. replicationMaxReadProcessingStepsPerTurn=64 # Replicator prefix used for replicator producer name and cursor name replicatorPrefix=pulsar.repl # Duration to check replication policy to avoid replicator inconsistency # due to missing ZooKeeper watch (disable with value 0) replicationPolicyCheckDurationSeconds=600 # Whether the internal replication of the local cluster will trigger topic auto-creation on the remote cluster. # 1. After enabling namespace-level Geo-Replication: whether the local broker will create topics on the remote # cluster automatically when calling `pulsar-admin topics create-partitioned-topic`. # 2. When enabling topic-level Geo-Replication on a partitioned topic: whether the local broker will create topics on # the remote cluster. # 3. Whether the internal Geo-Replicator in the local cluster will trigger non-persistent topic auto-creation for # remote clusters. # It is not a dynamic config, the default value is "true" to preserve backward-compatible behavior. createTopicToRemoteClusterForReplication=true # Default message retention time. # 0 means retention is disabled. -1 means data is not removed by time quota. defaultRetentionTimeInMinutes=0 # Default retention size. # 0 means retention is disabled. -1 means data is not removed by size quota. defaultRetentionSizeInMB=0 # How often to check whether the connections are still alive keepAliveIntervalSeconds=30 # bootstrap namespaces bootstrapNamespaces= ### --- WebSocket --- ### # Enable the WebSocket API service in broker webSocketServiceEnabled=false # Number of IO threads in Pulsar Client used in WebSocket proxy webSocketNumIoThreads= # Number of threads used by Websocket service webSocketNumServiceThreads= # Number of connections per Broker in Pulsar Client used in WebSocket proxy webSocketConnectionsPerBroker= # Memory limit in MBs for direct memory in Pulsar Client used in WebSocket proxy webSocketPulsarClientMemoryLimitInMB=0 # Time in milliseconds that idle WebSocket session times out webSocketSessionIdleTimeoutMillis=300000 # The maximum size of a text message during parsing in WebSocket proxy webSocketMaxTextFrameSize=1048576 ### --- Metrics --- ### # Whether the '/metrics' endpoint requires authentication. Defaults to false authenticateMetricsEndpoint=false # Enable topic level metrics exposeTopicLevelMetricsInPrometheus=true # Enable consumer level metrics. default is false exposeConsumerLevelMetricsInPrometheus=false # Enable cache metrics data, default value is false metricsBufferResponse=false # Enable producer level metrics. default is false exposeProducerLevelMetricsInPrometheus=false # Enable managed ledger metrics (aggregated by namespace). default is true exposeManagedLedgerMetricsInPrometheus=true # Enable cursor level metrics. default is false exposeManagedCursorMetricsInPrometheus=false # Classname of Pluggable JVM GC metrics logger that can log GC specific metrics # jvmGCMetricsLoggerClassName= # Time in milliseconds that metrics endpoint would time out. Default is 30s. # Increase it if there are a lot of topics to expose topic-level metrics. # Set it to 0 to disable timeout. metricsServletTimeoutMs=30000 # Enable or disable broker bundles metrics. The default value is false. exposeBundlesMetricsInPrometheus=false # Enable or disable custom topic metric labels feature. # If enabled, custom metric labels can be set on topics and will be exposed in Prometheus metrics. # Default is false. exposeCustomTopicMetricLabelsEnabled=false # Enable computing the age of the oldest unacknowledged message for each subscription and exposing it # through topic stats and Prometheus. # When disabled, the broker skips computing per-subscription backlog age and the admin API field # SubscriptionStats.oldestBacklogMessageAgeSeconds remains -1. Default is false. exposeSubscriptionBacklogAgeInPrometheus=false # A comma-separated list of Topic Property keys that are allowed to be exposed as metrics. # Only these keys can be set as custom metric labels on topics. # Example: sla_tier,data_sensitivity,cost_center,app_owner allowedTopicPropertyKeysForMetrics= ### --- Functions --- ### # Enable Functions Worker Service in Broker functionsWorkerEnabled=false #Enable Functions Worker to use packageManagement Service to store package. functionsWorkerEnablePackageManagement=false ### --- Broker Web Stats --- ### # Enable topic level metrics exposePublisherStats=true statsUpdateFrequencyInSecs=60 statsUpdateInitialDelayInSecs=60 healthCheckMetricsUpdateTimeInSeconds=-1 # Enable expose the precise backlog stats. # Set false to use published counter and consumed counter to calculate, this would be more efficient but may be inaccurate. # Default is false. exposePreciseBacklogInPrometheus=false # Enable splitting topic and partition label in Prometheus. # If enabled, a topic name will split into 2 parts, one is topic name without partition index, # another one is partition index, e.g. (topic=xxx, partition=0). # If the topic is a non-partitioned topic, -1 will be used for the partition index. # If disabled, one label to represent the topic and partition, e.g. (topic=xxx-partition-0) # Default is false. splitTopicAndPartitionLabelInPrometheus=false # If true and the client supports partial producer, aggregate publisher stats of PartitionedTopicStats by producerName. # Otherwise, aggregate it by list index. aggregatePublisherStatsByProducerName=false # Interval between checks to see if cluster is migrated and marks topic migrated # if cluster is marked migrated. Disable with value 0. (Default disabled). clusterMigrationCheckDurationSeconds=0 # Flag to start cluster migration for topic only after creating all topic's resources # such as tenant, namespaces, subscriptions at new green cluster. (Default disabled). clusterMigrationAutoResourceCreation=false ### --- Schema storage --- ### # The schema storage implementation used by this broker schemaRegistryStorageClassName=org.apache.pulsar.broker.service.schema.BookkeeperSchemaStorageFactory # Whether to enable schema validation. # When schema validation is enabled, if a producer without a schema attempts to produce the message to a topic with schema, the producer is rejected and disconnected. isSchemaValidationEnforced=false # The schema compatibility strategy at broker level. # Available values: ALWAYS_INCOMPATIBLE, ALWAYS_COMPATIBLE, BACKWARD, FORWARD, FULL, BACKWARD_TRANSITIVE, FORWARD_TRANSITIVE, FULL_TRANSITIVE schemaCompatibilityStrategy=FULL ### --- Ledger Offloading --- ### # The directory for all the offloader implementations offloadersDirectory=./offloaders # Driver to use to offload old data to long term storage (Possible values: aws-s3, google-cloud-storage, azureblob, aliyun-oss, filesystem, S3) # When using google-cloud-storage, Make sure both Google Cloud Storage and Google Cloud Storage JSON API are enabled for # the project (check from Developers Console -> Api&auth -> APIs). managedLedgerOffloadDriver= # Timeout in seconds for the asynchronous offload storage check at broker startup. # Supported drivers write and delete a temporary object to check access. # Failures are logged without failing startup. Set to 0 to disable the check. managedLedgerOffloadStorageCheckTimeoutSeconds=30 # Maximum number of thread pool threads for ledger offloading managedLedgerOffloadMaxThreads=2 # Maximum number of read thread pool threads for ledger offloading managedLedgerOffloadReadThreads=2 # The extraction directory of the nar package. # Available for Protocol Handler, Additional Servlets, Entry Filter, Offloaders, Broker Interceptor. # Default is System.getProperty("java.io.tmpdir"). # Outside of Kubernetes, OS cleanup of /tmp (for example, by systemd-tmpfiles) can delete extracted files while # the broker is running, which causes ClassNotFoundException or NoClassDefFoundError errors. In that case, set this # to a dedicated directory that isn't cleaned up automatically. narExtractionDirectory= # Maximum prefetch rounds for ledger reading for offloading managedLedgerOffloadPrefetchRounds=1 # For Amazon S3 ledger offload, AWS region s3ManagedLedgerOffloadRegion= # For Amazon S3 ledger offload, Bucket to place offloaded ledger into s3ManagedLedgerOffloadBucket= # For Amazon S3 ledger offload, Alternative endpoint to connect to (useful for testing) s3ManagedLedgerOffloadServiceEndpoint= # For Amazon S3 ledger offload, Max block size in bytes. (64MiB by default, 5MiB minimum) s3ManagedLedgerOffloadMaxBlockSizeInBytes=67108864 # For Amazon S3 ledger offload, Read buffer size in bytes (1MiB by default) s3ManagedLedgerOffloadReadBufferSizeInBytes=1048576 # For Google Cloud Storage ledger offload, region where offload bucket is located. # reference this page for more details: https://cloud.google.com/storage/docs/bucket-locations gcsManagedLedgerOffloadRegion= # For Google Cloud Storage ledger offload, Bucket to place offloaded ledger into gcsManagedLedgerOffloadBucket= # For Google Cloud Storage ledger offload, Max block size in bytes. (128MiB by default, 5MiB minimum) # Since JClouds limits the maximum number of blocks to 32, the maximum size of a ledger is 32 times the block size. gcsManagedLedgerOffloadMaxBlockSizeInBytes=134217728 # For Google Cloud Storage ledger offload, Read buffer size in bytes (1MiB by default) gcsManagedLedgerOffloadReadBufferSizeInBytes=1048576 # For Google Cloud Storage, path to json file containing service account credentials. # For more details, see the "Service Accounts" section of https://support.google.com/googleapi/answer/6158849 gcsManagedLedgerOffloadServiceAccountKeyFile= # For Azure BlobStore ledger offload, Blob Container (Bucket) to place offloaded ledger into managedLedgerOffloadBucket= #For File System Storage, file system profile path (Use a relative path, the current dir is the pulsar dir) fileSystemProfilePath=conf/filesystem_offload_core_site.xml #For File System Storage, file system uri fileSystemURI= ### --- Transaction config variables --- ### # Enable transaction coordinator in broker transactionCoordinatorEnabled=false transactionMetadataStoreProviderClassName=org.apache.pulsar.transaction.coordinator.impl.MLTransactionMetadataStoreProvider # Transaction buffer takes a snapshot after the number of transaction operations reaches this value. # If transaction buffer enables snapshot segment, transaction buffer updates snapshot metadata # after the number of transaction operations reaches this value. transactionBufferSnapshotMaxTransactionCount=1000 # The interval time for transaction buffer to take snapshots. # If transaction buffer enables snapshot segment, it is the interval time for transaction buffer to update snapshot metadata. # Unit : millisecond transactionBufferSnapshotMinTimeInMillis=5000 # Whether to enable segmented transaction buffer snapshot to handle a large number of aborted transactions. transactionBufferSegmentedSnapshotEnabled=false # Transaction buffer stores the transaction ID of aborted transactions and takes snapshots. # This configuration determines the size of the snapshot segment. The default value is 256 KB (262144 bytes). transactionBufferSnapshotSegmentSize=262144 # The max concurrent requests for transaction buffer client, default is 1000 transactionBufferClientMaxConcurrentRequests=1000 # The max active transactions per transaction coordinator, default value 0 indicates no limit. maxActiveTransactionsPerCoordinator=0 # MLPendingAckStore maintains a ConcurrentSkipListMap pendingAckLogIndex, # It stores the position in pendingAckStore as its value and saves a position used to determine # whether the previous data can be cleaned up as a key. # transactionPendingAckLogIndexMinLag is used to configure the minimum lag between indexes transactionPendingAckLogIndexMinLag=500 # The transaction buffer client's operation timeout in milliseconds. transactionBufferClientOperationTimeoutInMills=3000 # Provide a mechanism allowing the Transaction Log Store to aggregate multiple records into a batched record and # persist into a single BK entry. This will make Pulsar transactions work more efficiently, aka batched log. # see: https://github.com/apache/pulsar/issues/15370 transactionLogBatchedWriteEnabled=false # If enabled the feature that transaction log batch, this attribute means maximum log records count in a batch. transactionLogBatchedWriteMaxRecords=512 # If enabled the feature that transaction log batch, this attribute means bytes size in a batch,default 4m. transactionLogBatchedWriteMaxSize=4194304 # If enabled the feature that transaction log batch, this attribute means maximum wait time(in millis) for the first # record in a batch transactionLogBatchedWriteMaxDelayInMillis=1 # Provide a mechanism allowing the Pending Ack Store to aggregate multiple records into a batched record and persist # into a single BK entry. This will make Pulsar transactions work more efficiently, aka batched log. # see: https://github.com/apache/pulsar/issues/15370 transactionPendingAckBatchedWriteEnabled=false # If enabled the feature that transaction pending ack log batch, this attribute means maximum log records count in a # batch. transactionPendingAckBatchedWriteMaxRecords=512 # If enabled the feature that transaction pending ack log batch, this attribute means bytes size in a batch, default:4m. transactionPendingAckBatchedWriteMaxSize=4194304 # If enabled the feature that transaction pending ack log batch, this attribute means maximum wait time(in millis) for # the first record in a batch. transactionPendingAckBatchedWriteMaxDelayInMillis=1 ### --- Packages management service configuration variables (begin) --- ### # Enable the packages management service or not enablePackagesManagement=false # The packages management service storage service provide packagesManagementStorageProvider=org.apache.pulsar.packages.management.storage.bookkeeper.BookKeeperPackagesStorageProvider # When the packages storage provider is bookkeeper, you can use this configuration to # control the number of replicas for storing the package packagesReplicas=1 # The bookkeeper ledger root path packagesManagementLedgerRootPath=/ledgers # When using BookKeeperPackagesStorageProvider, you can configure the # bookkeeper client by prefixing configurations with "bookkeeper_". # This config applies to managed ledger bookkeeper clients, as well. ### --- Packages management service configuration variables (end) --- ### #enable or disable strict bookie affinity strictBookieAffinityEnabled=false ### --- Deprecated settings --- ### # These settings are left here for compatibility # The heap memory usage weight when calculating new resource usage. # Deprecated: Memory is no longer used as a load balancing item loadBalancerMemoryResourceWeight=0 # Zookeeper quorum connection string # Deprecated: use metadataStoreUrl instead zookeeperServers= # Configuration Store connection string # Deprecated. Use configurationMetadataStoreUrl globalZookeeperServers= configurationStoreServers= # Zookeeper session timeout in milliseconds # Deprecated: use metadataStoreSessionTimeoutMillis zooKeeperSessionTimeoutMillis=-1 # ZooKeeper operation timeout in seconds # Deprecated: use metadataStoreOperationTimeoutSeconds zooKeeperOperationTimeoutSeconds=-1 # ZooKeeper cache expiry time in seconds # Deprecated: use metadataStoreCacheExpirySeconds zooKeeperCacheExpirySeconds=-1 # Deprecated: this setting has no effect and is retained for compatibility. # Use brokerClientTlsEnabled instead. replicationTlsEnabled=false # Deprecated: this setting has no effect and is retained for compatibility. # Use brokerDeleteInactiveTopicsFrequencySeconds instead. brokerServicePurgeInactiveFrequencyInSeconds=60 # Deprecated - Use backlogQuotaDefaultLimitBytes instead. backlogQuotaDefaultLimitGB=-1 # Deprecated - Use webServicePortTls and brokerServicePortTls instead tlsEnabled=false # Enable Key_Shared subscription (default is enabled) # @deprecated since 2.8.0 subscriptionTypesEnabled is preferred over subscriptionKeySharedEnable. subscriptionKeySharedEnable=true # Max number of "acknowledgment holes" that can be stored in Zookeeper. If number of unack message range is higher # than this limit then broker will persist unacked ranges into bookkeeper to avoid additional data overhead into # zookeeper. # Deprecated: use managedLedgerMaxUnackedRangesToPersistInMetadataStore managedLedgerMaxUnackedRangesToPersistInZooKeeper=-1 # After enabling this feature, Pulsar will stop delivery messages to clients if the cursor metadata is too large to # persist, it will help to reduce the duplicates caused by the ack state that can not be fully persistent. dispatcherPauseOnAckStatePersistentEnabled=false # If enabled, the maximum "acknowledgment holes" will not be limited and "acknowledgment holes" are stored in # multiple entries. persistentUnackedRangesWithMultipleEntriesEnabled=false # Deprecated - Use managedLedgerCacheEvictionIntervalMs instead managedLedgerCacheEvictionFrequency=0 # Number of worker threads to serve non-persistent topic # Deprecated - use topicOrderedExecutorThreadNum instead. numWorkerThreadsForNonPersistentTopic= # The directory to locate broker interceptors brokerInterceptorsDirectory=./interceptors # List of broker interceptor to load, which is a list of broker interceptor names brokerInterceptors=