[X] I searched in the issues and found nothing similar.
Motivation
The Pulsar Admin client uses connection pooling (keep alive) without limiting the number of connections.
When HTTP calls get queued up on the brokers for some reason, the client will keep on opening more connections.
Search before asking
Motivation
The Pulsar Admin client uses connection pooling (keep alive) without limiting the number of connections. When HTTP calls get queued up on the brokers for some reason, the client will keep on opening more connections.
Solution
The AsyncHttpClient used in pulsar-admin-client should be configured to limit the number of connections. This could happen somewhere here: https://github.com/apache/pulsar/blob/e3debb9ad867cb9b977e8bb1b21aab66387b3c5d/pulsar-client-admin/src/main/java/org/apache/pulsar/client/admin/internal/http/AsyncHttpConnector.java#L99-L108
setMaxConnections
andsetMaxConnectionsPerHost
would have to be configured. In addition, it would be useful to usesetPooledConnectionIdleTimeout
to set the timeout to 25 seconds so that pooled connections don't exceed timeouts in typical firewall configurations. The default of 60 seconds conflicts with many firewall idle connection defaults.Alternatives
No response
Anything else?
No response
Are you willing to submit a PR?