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

Fixed stale minConnectionPoolSizePerEndpoint config. #36599

Merged
merged 4 commits into from
Sep 21, 2023

Conversation

jeet1995
Copy link
Member

@jeet1995 jeet1995 commented Aug 30, 2023

This PR enables CosmosClient / CosmosAsyncClient initialization to read the latest value set on system property - COSMOS.MIN_CONNECTION_POOL_SIZE_PER_ENDPOINT when creating min pool size no. of connections for a given endpoint used by a container for which proactive connection management is enabled.

The minConnectionPoolSizePerEndpoint set on ContainerDirectConnectionMetadata (container-level settings) & DirectConnectionConfig (client-level settings) will be compared against the latest value COSMOS.MIN_CONNECTION_POOL_SIZE_PER_ENDPOINT system property to determine connection pool size for the endpoint belonging to a given container.

@azure-sdk
Copy link
Collaborator

API change check

APIView has identified API level changes in this PR and created following API reviews.

azure-cosmos

Copy link
Member

@kushagraThapar kushagraThapar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @jeet1995

@jeet1995
Copy link
Member Author

/azp run java - cosmos - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jeet1995 jeet1995 merged commit 0fbfd34 into Azure:main Sep 21, 2023
58 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants