> Penghui suggested instead of communicating via Admin API we use the same > methodology used in the new load balancer - using a compacted topic as a > queue: > The system topic you create will have compaction enabled. > You write the pending ledger delete, and the key is ledger-ID and > ledger-type (BK, offloaded). > All brokers will consume this compacted topic as table-view. Basically upon > restart, you read all messages into memory. > When you reading you only keep the messages related to topic the broker > owns, others you discard (table view have filter feature). > For each message in table-view, you delete the ledgers, then write a > message to the topic with same key, null message, meaning it will be > deleted. > > This way you don't need to invent a new private Admin API. > > WDYT?
I got it. it’s a good solution. I will tune the pip using this way.