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

Improve ports allocation #2859

Merged
merged 2 commits into from
Dec 27, 2024
Merged

Improve ports allocation #2859

merged 2 commits into from
Dec 27, 2024

Conversation

mkoura
Copy link
Collaborator

@mkoura mkoura commented Dec 27, 2024

No description provided.

@mkoura mkoura requested a review from saratomaz as a code owner December 27, 2024 16:00
Updated the port allocation logic to dynamically allocate 100 ports
for every 18 pools. This ensures better scalability and avoids port
conflicts when the number of pools increases.

- Modified `get_instance_ports` method in `cluster_scripts.py`
Adjusted the base port allocation to start from 23000 instead of 32000 to
ensure it does not overlap with the ephemeral port range, which is usually
32768 to 60999. This change helps in preventing potential port conflicts.
@mkoura mkoura force-pushed the imp_port_allocation branch from adbfb8b to bf35e21 Compare December 27, 2024 16:09
@mkoura mkoura merged commit a6bba6e into master Dec 27, 2024
3 checks passed
@mkoura mkoura deleted the imp_port_allocation branch December 27, 2024 16:11
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