Balancing a Ceph cluster using read balancer
Balance primary placement groups (PGs) in a cluster. The balancer can optimize the allocation of placement groups across OSDs to achieve a balanced distribution. The balancer can operate either automatically (online), offline, or in a supervised fashion (offline).
Online optimization
Balance primary PGs in a cluster by using the balancer module. Using the balancer module, all offline optimization steps are completed automatically.
Before you begin
Procedure
Offline optimization (Technology Preview)
Before you begin
- A running IBM Storage Ceph cluster.
- Before running the offline read balancer, run the capacity balancer to balance PG placement across OSDs. This will ensure optimal results. Execute the following steps:
- Get the latest copy of your
osdmap.[ceph: root@host01 /]# ceph osd getmap -o map - Run the
upmapbalancer.[ceph: root@host01 /]# ospmaptool map –upmap balance.sh -
The file
balance.shcontains the proposed solution.The commands in this procedure are normal Ceph CLI commands that are run to apply the changes to the cluster.
Run the following command if there are any recommendations in the
balance.shfile.[ceph: root@host01 /]# source balance.sh
- Get the latest copy of your
About this task
Important: Technology Preview features are not supported with IBM production service level agreements (SLAs), might not be functionally complete, and IBM does not recommend using them for production. These features provide early access to upcoming product features, enabling customers to test functionality and provide feedback during the development process.
If you have unbalanced primary OSDs, you can update them with an offline optimizer that is built into the osdmaptool. Run the capacity balancer before running the read balancer to ensure optimal results.Procedure
What to do next
Supervised optimization
upmap-read or read.