Slackbot
07/26/2023, 2:31 PMsijieg
07/26/2023, 3:08 PMDaniel Gerendas
07/26/2023, 3:17 PMensemblePlacementPolicy=org.apache.bookkeeper.client.ZoneawareEnsemblePlacementPolicy
and in broker.conf set both bookkeeperClientRackawarePolicyEnabled=false and bookkeeperClientRegionawarePolicyEnabled=falseDaniel Gerendas
07/26/2023, 3:18 PMbin/pulsar-admin bookies set-bookie-rack --bookie bookie1:3181 --hostname bookie-host:3181 --group test --rack us-east-1/us-east-1a/rack1sijieg
07/26/2023, 3:18 PMbookkeeperClientRackawarePolicyEnabled and bookkeeperClientRegionawarePolicyEnabled are set to falseDaniel Gerendas
07/26/2023, 3:21 PMsijieg
07/26/2023, 3:27 PMZoneawareEnsemblePlacementPolicy. However, I don't think this is used by Pulsar. ZoneawareEnsemblePlacementPolicy is similar to RackawarePolicy . Pulsar supports Rackaware and Regional as part of its tooling. So in most of the cloud environments, you can map zone to rack (your network path would be something like us-east-1/us-east-1a). Then you can enable bookkeeperClientRackawarePolicyEnabled . Then you should be good.Daniel Gerendas
07/26/2023, 3:30 PMDaniel Gerendas
07/27/2023, 2:53 PMbookkeeperClientRackawarePolicyEnabled to true in the broker.conf and the ensemblePlacementPolicy in bookkeeper.conf to org.apache.bookkeeper.client.RackawareEnsemblePlacementPolicy and configured the racks for the bookies like this:
testgroup {
172.16.2.190: 3181=BookieInfoImpl(rack=us-east-1a, hostname=172.16.2.190: 3181),
172.16.1.112: 3181=BookieInfoImpl(rack=us-east-1a, hostname=172.16.1.112: 3181),
172.16.3.6: 3181=BookieInfoImpl(rack=us-east-1b, hostname=172.16.3.6: 3181)
}
and I’m still getting the following warning:
New ensemble: [172.16.2.190:3181, 172.16.3.6:3181, 172.16.1.112:3181] is not adhering to Placement Policy. quarantinedBookies: []
after setting the racks should I restart bookkeeper or broker? I’ve tried a few things but nothing really worked. Your help would be appreciated. Thanks in advancesijieg
07/27/2023, 2:55 PMHang Chen
07/27/2023, 3:09 PMHang Chen
07/27/2023, 3:12 PM/us-east-1a instead of us-east-1aDaniel Gerendas
07/27/2023, 3:23 PMbookkeeperClientMinNumRacksPerWriteQuorum was set to 2, I just set the bookies to 3 different racks, added the / to the rack names and restarted the broker, but still getting the warningsijieg
07/27/2023, 3:35 PMHang Chen
07/27/2023, 3:43 PMHang Chen
07/27/2023, 3:44 PMDaniel Gerendas
08/02/2023, 8:44 AMHang Chen
08/03/2023, 10:10 AM