replicase / pgcapture

A scalable Netflix DBLog implementation for PostgreSQL
Apache License 2.0
220 stars 31 forks source link

feat: set the connection pool size to two for the agent.pg2pulsar commands #34

Closed benjamin99 closed 1 year ago

benjamin99 commented 1 year ago

Description

In the previous implementations, the subscription tracker will always triggered the reconnection process to the pulsar broker. To solve the issue, the PR adjusted the config of the connection pool size of the corresponding pulsar client to two.

rueian commented 1 year ago

Instead of changing the value of MaxConnectionsPerBroker of the current client, I think we should use a new client in the tracker.

benjamin99 commented 1 year ago

Close the PR since it was the seek command of the subscription tracker (before v0.0.46) that caused the reconnections, not the connection pool related issue.