Pulsar sync with nothing to sync
Both clusters are fresh.

The recording shows kurkik pulsar sync on the demo sandbox; its data differs from this example.
The plan
Section titled “The plan”Nothing changes yet. --dry-run only shows what would happen.
$ kurkik pulsar sync a.yaml b --all --dry-runSync a.yaml into b - Apache Pulsar, cluster b (http://pulsar-b:8080)owns: namespaces public/default (the document's x-kurkik.pulsar.server.namespaces); permissions, as x-kurkik.pulsar.server.acl declares themplan: <digest>Run one sync per cluster at a time: two at once each plan against a state the other is changing.
Nothing to change.
left alone (1) and 1 difference sync does not act on - servers, messages, undeclared settings; kurkik pulsar diff shows them
0 changesexit 0$ kurkik pulsar sync a.yaml b --all --yesSync a.yaml into b - Apache Pulsar, cluster b (http://pulsar-b:8080)owns: namespaces public/default (the document's x-kurkik.pulsar.server.namespaces); permissions, as x-kurkik.pulsar.server.acl declares themplan: <digest>Run one sync per cluster at a time: two at once each plan against a state the other is changing.
Nothing to change.
left alone (1) and 1 difference sync does not act on - servers, messages, undeclared settings; kurkik pulsar diff shows them
0 changesexit 0The documents
Section titled “The documents”source.yaml, 70 lines
asyncapi: 3.0.0info: title: a Apache Pulsar API version: 1.0.0-SNAPSHOT description: Generated by reading Apache Pulsar of a (http://pulsar-a:8080).servers: standalone: host: pulsar-a:6650 protocol: pulsar protocolVersion: "4.0" description: Apache Pulsar cluster standalone. bindings: pulsar: bindingVersion: 0.1.0 x-kurkik: pulsar: server: cluster: standalone brokers: - localhost:8080 schemaRegistryUrl: http://pulsar-a:8080 schemaRegistryVendor: pulsar namespaces: - public/default namespacePolicies: public/default: schema-autoupdate: "on" tenants: - tenant: public adminRoles: [] allowedClusters: - standalone security: - security: NONE tls: false acl: [] functions: [] sources: [] sinks: [] brokerConfiguration: advertisedAddress: localhost backlogQuotaDefaultLimitGB: "10.0" bookkeeperClientMinNumRacksPerWriteQuorum: "1" bookkeeperClientReorderReadSequenceEnabled: "false" bookkeeperNumberOfChannelsPerBookie: "1" brokerDeleteInactiveTopicsEnabled: "false" clusterName: standalone 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-a:6650 webServiceUrl: http://pulsar-a:8080 producerConfiguration: {} consumerConfiguration: {}channels: {}operations: {}target.yaml, 70 lines
asyncapi: 3.0.0info: title: b Apache Pulsar API version: 1.0.0-SNAPSHOT description: Generated by reading Apache Pulsar of b (http://pulsar-b:8080).servers: standalone: host: pulsar-b:6650 protocol: pulsar protocolVersion: "4.0" description: Apache Pulsar cluster standalone. bindings: pulsar: bindingVersion: 0.1.0 x-kurkik: pulsar: server: cluster: standalone brokers: - localhost:8080 schemaRegistryUrl: http://pulsar-b:8080 schemaRegistryVendor: pulsar namespaces: - public/default namespacePolicies: public/default: schema-autoupdate: "on" tenants: - tenant: public adminRoles: [] allowedClusters: - standalone security: - security: NONE tls: false acl: [] functions: [] sources: [] sinks: [] brokerConfiguration: advertisedAddress: localhost backlogQuotaDefaultLimitGB: "10.0" bookkeeperClientMinNumRacksPerWriteQuorum: "1" bookkeeperClientReorderReadSequenceEnabled: "false" bookkeeperNumberOfChannelsPerBookie: "1" brokerDeleteInactiveTopicsEnabled: "false" clusterName: standalone 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-b:6650 webServiceUrl: http://pulsar-b:8080 producerConfiguration: {} consumerConfiguration: {}channels: {}operations: {}How to build this setup yourself
Clusters
Pulsar a
Pulsar b
Sync
kurkik conn add pulsar a --admin-url http://pulsar-a:8080 --service-url pulsar://pulsar-a:6650 --client 4.0kurkik conn add pulsar b --admin-url http://pulsar-b:8080 --service-url pulsar://pulsar-b:6650 --client 4.0kurkik pulsar export a --this-cluster-only --acls --consumers --namespace public/default --stdout > a.yaml # source.yaml (and b's, before: target.yaml)kurkik pulsar sync a.yaml b --all --dry-run # plan.txt (and -o json: plan.json)kurkik pulsar sync a.yaml b --all --yes # apply.txt, and the reverse patch: rollback.yamlkurkik pulsar diff a.yaml b --all # after.txtkurkik pulsar sync revert ~/.local/state/kurkik/sync/b/b-<time>.snapshot.yaml b --force --yes # revert.txtAll flags: kurkik pulsar sync · more Apache Pulsar sync examples
Copyright © 2026 Pavel Bodiachevskii