Pulsar 4.0 to 5.0 broker setting changes
Which settings moved, which need you, which differ.

The recording shows kurkik pulsar migrate-diff on the demo sandbox; its data differs from this example.
Command
Section titled “Command”kurkik pulsar migrate-diff four five --strictOutput
Section titled “Output”four (Pulsar 4.0) vs five (Pulsar 5.0)
Broker configuration ~ standalone dispatchThrottlingRateInMsg - dispatchThrottlingRateInMsg differs. (four: 1000, five: 2000)
Migrations - server manual replaced broker sslFactoryPluginParams -> tlsFactoryConfig - The parameters of the new factory, a JSON object or key=value list: carry them over by hand once the factory class is ported. (four: verify=true) manual removed broker subscriptionSharedUseClassicPersistentImplementation - 5.0 has only the PIP-379 Shared dispatcher: the classic implementation 4.0 could switch back to is gone. (four: true)
Defaults moved - server (24) broker acknowledgmentAtBatchIndexLevelEnabled: false -> true broker bookkeeperClientSeparatedIoThreadsEnabled: false -> true broker defaultNumberOfNamespaceBundles: 4 -> 32 broker dispatcherMaxReadBatchSize: 100 -> 500 broker internalListenerName: null -> internal broker keySharedLookAheadMsgInReplayThresholdPerConsumer: 2000 -> 4000 broker keySharedLookAheadMsgInReplayThresholdPerSubscription: 20000 -> 40000 broker loadBalancerDistributeBundlesEvenlyEnabled: true -> false broker loadBalancerLoadPlacementStrategy: org.apache.pulsar.broker.loadbalance.impl.LeastLongTermMessageRate -> org.apache.pulsar.broker.loadbalance.impl.AvgShedder broker loadBalancerLoadSheddingStrategy: org.apache.pulsar.broker.loadbalance.impl.ThresholdShedder -> org.apache.pulsar.broker.loadbalance.impl.AvgShedder broker managedCursorInfoCompressionType: NONE -> LZ4 broker managedLedgerInfoCompressionType: NONE -> LZ4 broker managedLedgerMaxBatchDeletedIndexToPersist: 10000 -> 200000 broker managedLedgerMaxReadsInFlightSizeInMB: 0 -> null broker managedLedgerMaxUnackedRangesToPersist: 10000 -> 200000 broker managedLedgerMaxUnackedRangesToPersistInMetadataStore: 1000 -> 200000 broker managedLedgerPersistIndividualAckAsLongArray: false -> true broker maxUnloadPercentage: 0.2 -> 0.5 broker schemaRegistryCompatibilityCheckers: [org.apache.pulsar.broker.service.schema.ProtobufNativeSchemaCompatibilityCheck, org.apache.pulsar.broker.service.schema.JsonSchemaCompatibilityCheck, org.apache.pulsar.broker.service.schema.AvroSchemaCompatibilityCheck] -> [org.apache.pulsar.broker.service.schema.ExternalSchemaCompatibilityCheck, org.apache.pulsar.broker.service.schema.ProtobufNativeSchemaCompatibilityCheck, org.apache.pulsar.broker.service.schema.JsonSchemaCompatibilityCheck, org.apache.pulsar.broker.service.schema.AvroSchemaCompatibilityCheck] broker tlsHostnameVerificationEnabled: false -> true broker transactionBufferProviderClassName: org.apache.pulsar.broker.transaction.buffer.impl.TopicTransactionBufferProvider -> org.apache.pulsar.broker.transaction.buffer.impl.DispatchingTransactionBufferProvider broker transactionPendingAckStoreProviderClassName: org.apache.pulsar.broker.transaction.pendingack.impl.MLPendingAckStoreProvider -> org.apache.pulsar.broker.transaction.pendingack.impl.DispatchingTransactionPendingAckStoreProvider broker webServiceTlsProvider: Conscrypt -> none client tlsHostnameVerificationEnable: false -> true
Defaults moved - operation (1) consumer cryptoFailureAction: FAIL -> null
Notes - Not compared: ACLs, consumers. Add --acls --consumers to compare them too. - Four runs the Pulsar 4.0 line and Five the 5.0 line: settings are compared through both lines' catalogs (4.0 from 4.0.14, 5.0 from 5.0.0) and the settings each renamed, retyped, replaced or dropped.
Drift: 1 changed · 0 unmanaged · 0 missing · 0 re-check (drift) - 33 matched · 2 migration(s), 2 manual · 25 default(s) moved
exit 2Exit code 2: drift found, so a CI job can stop here.
| Mark | Means |
|---|---|
~ |
both sides have it, but it differs |
! |
only the first side has it |
+ |
only the second side has it |
Other ways to give a side
Section titled “Other ways to give a side”| Compare | Command | Result |
|---|---|---|
| two clusters | kurkik pulsar migrate-diff four five --strict |
Drift: 1 changed · 0 unmanaged · 0 missing · 0 re-check (drift) - 33 matched · 2 migration(s), 2 manual · 25 default(s) moved |
| a document and a cluster | kurkik pulsar migrate-diff four.yaml five --strict |
Drift: 1 changed · 0 unmanaged · 0 missing · 0 re-check (drift) - 33 matched · 2 migration(s), 2 manual · 25 default(s) moved |
| two documents | kurkik pulsar migrate-diff four.yaml five.yaml --strict |
Drift: 1 changed · 0 unmanaged · 0 missing · 0 re-check (drift) - 33 matched · 2 migration(s), 2 manual · 25 default(s) moved |
Download the JSON report (-o json)
The documents compared
Section titled “The documents compared”four.yaml, 162 lines
asyncapi: 3.0.0info: title: four Apache Pulsar API version: 1.0.0-SNAPSHOT description: Generated by reading Apache Pulsar of four (http://pulsar-four:8080).servers: standalone: host: pulsar-four:6650 protocol: pulsar protocolVersion: "4.0" description: Apache Pulsar cluster standalone. bindings: pulsar: bindingVersion: 0.1.0 tenant: shop x-kurkik: pulsar: server: cluster: standalone brokers: - localhost:8080 schemaRegistryUrl: http://pulsar-four:8080 schemaRegistryVendor: pulsar namespacePolicies: public/default: schema-autoupdate: "on" shop/orders: schema-autoupdate: "on" tenants: - tenant: public adminRoles: [] allowedClusters: - standalone - tenant: shop adminRoles: - shop-admin allowedClusters: - standalone security: - security: NONE tls: false acl: [] consumers: [] producers: [] functions: [] sources: [] sinks: [] brokerConfiguration: advertisedAddress: localhost backlogQuotaDefaultLimitGB: "10.0" bookkeeperClientMinNumRacksPerWriteQuorum: "1" bookkeeperClientReorderReadSequenceEnabled: "false" bookkeeperNumberOfChannelsPerBookie: "1" clusterName: standalone dispatchThrottlingRateInMsg: "1000" enablePackagesManagement: "true" forceDeleteNamespaceAllowed: "true" functionsWorkerEnablePackageManagement: "true" isRunningStandalone: "true" loadBalancerEnabled: "false" loadManagerClassName: org.apache.pulsar.broker.loadbalance.NoopLoadManager managedLedgerCacheEvictionFrequency: "100.0" managedLedgerDefaultAckQuorum: "1" managedLedgerDefaultEnsembleSize: "1" managedLedgerDefaultMarkDeleteRateLimit: "0.1" managedLedgerDefaultWriteQuorum: "1" metadataStoreUrl: rocksdb:///pulsar/data/metadata packagesManagementStorageProvider: org.apache.pulsar.packages.management.storage.filesystem.FileSystemPackagesStorageProvider sslFactoryPluginParams: verify=true statusFilePath: /usr/local/apache/htdocs subscriptionSharedUseClassicPersistentImplementation: "true" topicPublisherThrottlingTickTimeMillis: "2" webSocketServiceEnabled: "true" clientConfiguration: serviceUrl: pulsar://pulsar-four:6650 webServiceUrl: http://pulsar-four:8080 producerConfiguration: {} consumerConfiguration: {}channels: persistent-shop-orders-created: address: persistent://shop/orders/created bindings: pulsar: bindingVersion: 0.1.0 namespace: orders persistence: persistent x-kurkik: pulsar: channel: topic: persistent://shop/orders/created tenant: shop namespace: orders persistence: persistent partitions: 0 geo-replication: - standalone topicConfiguration: partitions: 0 persistence: persistent replication-clusters: - standalone schema-autoupdate: "on" persistent-shop-orders-paid: address: persistent://shop/orders/paid bindings: pulsar: bindingVersion: 0.1.0 namespace: orders persistence: persistent x-kurkik: pulsar: channel: topic: persistent://shop/orders/paid tenant: shop namespace: orders persistence: persistent partitions: 2 geo-replication: - standalone topicConfiguration: partitions: 2 persistence: persistent replication-clusters: - standalone schema-autoupdate: "on"operations: receive_persistent-shop-orders-created: action: receive channel: $ref: "#/channels/persistent-shop-orders-created" x-kurkik: pulsar: operation: security: [] consumerConfiguration: {} receive_persistent-shop-orders-paid: action: receive channel: $ref: "#/channels/persistent-shop-orders-paid" x-kurkik: pulsar: operation: security: [] consumerConfiguration: {} send_persistent-shop-orders-created: action: send channel: $ref: "#/channels/persistent-shop-orders-created" x-kurkik: pulsar: operation: security: [] producerConfiguration: {} send_persistent-shop-orders-paid: action: send channel: $ref: "#/channels/persistent-shop-orders-paid" x-kurkik: pulsar: operation: security: [] producerConfiguration: {}five.yaml, 160 lines
asyncapi: 3.0.0info: title: five Apache Pulsar API version: 1.0.0-SNAPSHOT description: Generated by reading Apache Pulsar of five (http://pulsar-five:8080).servers: standalone: host: pulsar-five:6650 protocol: pulsar protocolVersion: "5.0" description: Apache Pulsar cluster standalone. bindings: pulsar: bindingVersion: 0.1.0 tenant: shop x-kurkik: pulsar: server: cluster: standalone brokers: - localhost:8080 schemaRegistryUrl: http://pulsar-five:8080 schemaRegistryVendor: pulsar namespacePolicies: public/default: schema-autoupdate: "on" shop/orders: schema-autoupdate: "on" tenants: - tenant: public adminRoles: [] allowedClusters: - standalone - tenant: shop adminRoles: - shop-admin allowedClusters: - standalone security: - security: NONE tls: false acl: [] consumers: [] producers: [] functions: [] sources: [] sinks: [] brokerConfiguration: advertisedAddress: localhost backlogQuotaDefaultLimitGB: "10.0" bookkeeperClientMinNumRacksPerWriteQuorum: "1" bookkeeperClientReorderReadSequenceEnabled: "false" bookkeeperNumberOfChannelsPerBookie: "1" clusterName: standalone dispatchThrottlingRateInMsg: "2000" enablePackagesManagement: "true" forceDeleteNamespaceAllowed: "true" functionsWorkerEnablePackageManagement: "true" isRunningStandalone: "true" loadBalancerEnabled: "false" loadManagerClassName: org.apache.pulsar.broker.loadbalance.NoopLoadManager managedLedgerCacheEvictionFrequency: "100.0" managedLedgerDefaultAckQuorum: "1" managedLedgerDefaultEnsembleSize: "1" managedLedgerDefaultMarkDeleteRateLimit: "0.1" managedLedgerDefaultWriteQuorum: "1" metadataStoreUrl: rocksdb:///pulsar/data/metadata packagesManagementStorageProvider: org.apache.pulsar.packages.management.storage.filesystem.FileSystemPackagesStorageProvider statusFilePath: /usr/local/apache/htdocs topicPublisherThrottlingTickTimeMillis: "2" webSocketServiceEnabled: "true" clientConfiguration: serviceUrl: pulsar://pulsar-five:6650 webServiceUrl: http://pulsar-five:8080 producerConfiguration: {} consumerConfiguration: {}channels: persistent-shop-orders-created: address: persistent://shop/orders/created bindings: pulsar: bindingVersion: 0.1.0 namespace: orders persistence: persistent x-kurkik: pulsar: channel: topic: persistent://shop/orders/created tenant: shop namespace: orders persistence: persistent partitions: 0 geo-replication: - standalone topicConfiguration: partitions: 0 persistence: persistent replication-clusters: - standalone schema-autoupdate: "on" persistent-shop-orders-paid: address: persistent://shop/orders/paid bindings: pulsar: bindingVersion: 0.1.0 namespace: orders persistence: persistent x-kurkik: pulsar: channel: topic: persistent://shop/orders/paid tenant: shop namespace: orders persistence: persistent partitions: 2 geo-replication: - standalone topicConfiguration: partitions: 2 persistence: persistent replication-clusters: - standalone schema-autoupdate: "on"operations: receive_persistent-shop-orders-created: action: receive channel: $ref: "#/channels/persistent-shop-orders-created" x-kurkik: pulsar: operation: security: [] consumerConfiguration: {} receive_persistent-shop-orders-paid: action: receive channel: $ref: "#/channels/persistent-shop-orders-paid" x-kurkik: pulsar: operation: security: [] consumerConfiguration: {} send_persistent-shop-orders-created: action: send channel: $ref: "#/channels/persistent-shop-orders-created" x-kurkik: pulsar: operation: security: [] producerConfiguration: {} send_persistent-shop-orders-paid: action: send channel: $ref: "#/channels/persistent-shop-orders-paid" x-kurkik: pulsar: operation: security: [] producerConfiguration: {}How to build this setup yourself
Clusters
Fixture
pulsar-admin tenants create shop --allowed-clusters standalone --admin-roles shop-adminpulsar-admin namespaces create shop/orders --clusters standalonepulsar-admin topics create persistent://shop/orders/createdpulsar-admin topics create-partitioned-topic persistent://shop/orders/paid --partitions 2Side four
pulsar-admin --admin-url http://pulsar-four:8080 brokers update-dynamic-config --config subscriptionSharedUseClassicPersistentImplementation --value truepulsar-admin --admin-url http://pulsar-four:8080 brokers update-dynamic-config --config dispatchThrottlingRateInMsg --value 1000Side five
pulsar-admin --admin-url http://pulsar-five:8080 brokers update-dynamic-config --config dispatchThrottlingRateInMsg --value 2000Compare
kurkik conn add pulsar four --admin-url http://pulsar-four:8080 --service-url pulsar://pulsar-four:6650 --client 4.0kurkik conn add pulsar five --admin-url http://pulsar-five:8080 --service-url pulsar://pulsar-five:6650 --client 5.0kurkik pulsar export four --this-cluster-only --acls --consumers --stdout > four.yamlkurkik pulsar export five --this-cluster-only --acls --consumers --stdout > five.yamlkurkik pulsar migrate-diff four five --strict # cluster-vs-clusterkurkik pulsar migrate-diff four.yaml five --strict # document-vs-clusterkurkik pulsar migrate-diff four.yaml five.yaml --strict # document-vs-documentAll flags: kurkik pulsar migrate-diff · more Apache Pulsar migrate-diff examples
Copyright © 2026 Pavel Bodiachevskii