Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft: Achild/http connection #5

Open
wants to merge 1 commit into
base: master-http
Choose a base branch
from

Conversation

andreachild
Copy link
Owner

@andreachild andreachild commented Oct 24, 2024

Changed connection pooling to reflect having switched from long lived web socket connections to short lived http connections:

  • sped up obtaining a new connection by removing method-level synchronization of getAvailableConnection and introducing a separate set for available connections
  • introduced cleanup of idle connections to release resources
  • removed minSize since idle connections are now cleaned up and the pool can become empty if there is no traffic
  • increased maxSize default to 500
  • increased core pool size of ScheduledThreadPoolExecutor that is used for creating new connections to default 20 and introduce configuration setting to modify
  • added logging to help troubleshoot connection related integration tests failures

@andreachild andreachild marked this pull request as ready for review October 29, 2024 07:12
@andreachild andreachild force-pushed the achild/httpConnection branch from a78c73a to 56151e3 Compare October 31, 2024 19:07
… web socket connections to short lived http connections:

-sped up obtaining a new connection by removing method-level synchronization of getAvailableConnection and introducing a separate set for available connections
-introduced cleanup of idle connections to release resources
-removed minSize since idle connections are now cleaned up and the pool can become empty if there is no traffic
-increased maxSize default to 128
-increased core pool size of ScheduledThreadPoolExecutor that is used for creating new connections to number of available processors
-added logging to help troubleshoot connection related integration tests failures
@andreachild andreachild force-pushed the achild/httpConnection branch from 7277d91 to e87d22f Compare October 31, 2024 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant