GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — [PIP 154] Max active transaction limitation for transaction coordinator · Issue #15133 · apache/pulsar Closed Description
MotivationCurrently, the transaction coordinator does not limit the number of active transactions, which may cause the following problems:
ImplementationAdd configadd maxActiveTransactions into broker.conf # The max active transactions in one transaction coordinator maxActiveTransactionsPerCoordinator=10000 How to handle the number of active transactions reach the maxActiveTransactions?If reach the maxActiveTransactions, return the Exception to client. It has a lot of disadvantages:
DesignWhen this op request reach the maxActiveTransactions, coordinator don't return any response for this request. ignore this request directly. In this way, broker don't need to add any exception for this config. Let's we can see, how does this way will affect the client?If broker don't return the reponse for this request, the op of open txn will timeout. and in coordinator client, it has a semaphore to control the op of txn(open, add produce topic, add ack topic, end txn). In the timeout time, the coordinator client only can open the number of semaphore txns. Any other request will be block. So this design slove this two problems:
WorriesIf you are worried that this design will affect the client-side experience, because the open transaction will always time out and other txn op will be blocked. I think your worry is superfluous, At this time, you should consider increasing the performance of the cluster or find the problematic client to repair. flow chartCompatibility, Deprecation, and Migration PlanmaxActiveTransactions default = 0, if maxActiveTransactions will not block open txn Test Planreach maxActiveTransactions client open txn will timeout Rejected AlternativesIf reach the maxActiveTransactions, return the Exception to client. It has a lot of disadvantages:
Reacted by ran and Tao Jiuming Activity
MetadataMetadataAssigneesTypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |