Disk load balancing

YDB supports two methods for the disk load distribution:

Distribute the load evenly across groups

At the bottom of the Hive web-viewer page there is a button named “Reassign Groups”.

Distribute VDisks evenly across block store volumes

If VDisks aren’t evenly distributed across block store volumes, you can move them one at a time from overloaded store volumes.

Changing the number of slots for VDisks on PDisks

To add storage groups, redefine the host config by increasing the number of slots on PDisks.

Before that, you need to get the config to be changed. You can do this with the following command:

  1. Command {
  2. TReadHostConfig{
  3. HostConfigId: <host-config-id>
  4. }
  5. }

Disk load balancing - 图1

  1. kikimr -s <endpoint> admin bs config invoke --proto-file ReadHostConfig.txt

Disk load balancing - 图2

Insert the obtained config into the protobuf below and edit the PDiskConfig/ExpectedSlotCount field value in it.

  1. Command {
  2. TDefineHostConfig {
  3. <host config>
  4. }
  5. }

Disk load balancing - 图3

  1. kikimr -s <endpoint> admin bs config invoke --proto-file DefineHostConfig.txt

Disk load balancing - 图4