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

create namespace with automatic allocation of load balancing group #491

Merged
merged 1 commit into from
Apr 10, 2024

Conversation

leonidc
Copy link
Collaborator

@leonidc leonidc commented Mar 8, 2024

This is a first commit
The checks would fail since there is a depend on changes in ceph NVMeofGwMon PR would be provided soon
Explanation
each time the new namespace is created code calls nvme-gw show monitor command to update the current list of ana groups of created gateways.(caching is enabled for this expensive call)
Afterwards GWs code analyses whether it is a new ana group (new GW created) - so allocate it; or need to calculate the minimum loaded ana group cluster and return its ana_group

@leonidc leonidc force-pushed the leo_devel branch 5 times, most recently from d20b1a8 to ba836b9 Compare March 12, 2024 17:25
control/cephutils.py Outdated Show resolved Hide resolved
control/cephutils.py Outdated Show resolved Hide resolved
control/cephutils.py Outdated Show resolved Hide resolved
control/cephutils.py Show resolved Hide resolved
control/cephutils.py Show resolved Hide resolved
control/cephutils.py Outdated Show resolved Hide resolved
control/grpc.py Outdated Show resolved Hide resolved
control/cephutils.py Outdated Show resolved Hide resolved
tests/test_namespaces.py Outdated Show resolved Hide resolved
control/grpc.py Outdated Show resolved Hide resolved
Signed-off-by: Leonid Chernin <[email protected]>

fix parsing of anagrp list
fix when created NS only 1st gw chooses the lb group other take it from the request
support create namespace with lb and without lb parameter - automatic allocation lb group
fixing CR comments
env
changes in logic , fixing test_grpc_py
@leonidc leonidc merged commit 8287623 into ceph:devel Apr 10, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Assign load_balancing group to namespace automatically upon namespace addition
2 participants