You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "lhotari (via GitHub)" <gi...@apache.org> on 2024/02/08 13:16:32 UTC
[I] Add HTTP connection pooling for Pulsar Admin client [pulsar]
lhotari opened a new issue, #22041:
URL: https://github.com/apache/pulsar/issues/22041
### Search before asking
- [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar.
### Motivation
The Pulsar Admin client doesn't current use connection pooling.
It will open a new TCP/IP connection for each call. This isn't very efficient.
### Solution
The AsyncHttpClient used in pulsar-admin-client should be configured for connection pooling by default.
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`, `setMaxConnectionsPerHost` and `setPooledConnectionIdleTimeout` would have to be configured.
### Alternatives
_No response_
### Anything else?
_No response_
### Are you willing to submit a PR?
- [ ] I'm willing to submit a PR!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Set limits for number of opened HTTP connections for Pulsar Admin client [pulsar]
Posted by "lhotari (via GitHub)" <gi...@apache.org>.
lhotari commented on issue #22041:
URL: https://github.com/apache/pulsar/issues/22041#issuecomment-1938136260
UPDATE: It turns out that HTTP connection pooling is already configured, but there's no limit of the number of pooled connections.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Set limits for number of opened HTTP connections for Pulsar Admin client [pulsar]
Posted by "lhotari (via GitHub)" <gi...@apache.org>.
lhotari closed issue #22041: Set limits for number of opened HTTP connections for Pulsar Admin client
URL: https://github.com/apache/pulsar/issues/22041
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org