rook / rook

Storage Orchestration for Kubernetes
https://rook.io
Apache License 2.0
12k stars 2.65k forks source link

mgr: setting balancer mode from cluster spec. #14232

Closed sp98 closed 3 days ago

sp98 commented 2 weeks ago

This PR adds a settings option in the Module struct which can help users to futher customize the balancer module with a differet mode.

Testing: updated the balancer mode to crush-compat.

kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl exec [POD] -- [COMMAND] instead.
sh-4.4$ ceph balancer status 
{
    "active": true,
    "last_optimize_duration": "0:00:00.000653",
    "last_optimize_started": "Fri May 17 07:59:01 2024",
    "mode": "crush-compat",
    "no_optimization_needed": false,
    "optimize_result": "Distribution is already perfect",
    "plans": []
}
sh-4.4$ exit

Checklist: