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

Fixing default citus.local_shared_pool_size calculation #7640

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

lucasbfernandes
Copy link

@lucasbfernandes lucasbfernandes commented Jul 2, 2024

Description:

This PR fixes the default calculation for citus.local_shared_pool_size when a value is not set for the GUC.

The original approach was to divide citus.client_max_connections by 2, which could lead to errors even when there is enough room for new loopback connections.

Example:

Assuming citus.client_max_connections = 80 and the current active client backend count is 40, the following line would create an error if the new loopback connection issuer were not a superuser:

https://github.com/citusdata/citus/blob/main/src/backend/distributed/connection/shared_connection_stats.c#L383-L386

@lucasbfernandes lucasbfernandes changed the title Fixing citus.local_shared_pool_size calculation when ot Fixing default citus.local_shared_pool_size calculation Jul 2, 2024
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