Skip to content

[feature request] Support the connectionsPerBroker config #221

Closed

Description

@BewareMyPower

See https://github.com/apache/pulsar/blob/e0098ee0c34643371f53ee921bdc361e163f6387/pulsar-client-api/src/main/java/org/apache/pulsar/client/api/ClientBuilder.java#L275

Currently the connection pool is enabled and cannot be disabled because the constructor is private.

Client(const std::string& serviceUrl, const ClientConfiguration& clientConfiguration,
bool poolConnections);

So if there are many producers created by the same Client, including the case that a topic has many partitions, all producers will share the same TCP connection and the number of send requests might reach the limit: https://github.com/apache/pulsar/blob/e0098ee0c34643371f53ee921bdc361e163f6387/pulsar-broker-common/src/main/java/org/apache/pulsar/broker/ServiceConfiguration.java#L681

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions