Skip to content

Commit e12293f

Browse files
committed
edit and reorg
1 parent 0fdffef commit e12293f

File tree

1 file changed

+21
-27
lines changed

1 file changed

+21
-27
lines changed

articles/postgresql/hyperscale/howto-scale-rebalance.md

Lines changed: 21 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -12,49 +12,43 @@ ms.date: 07/20/2021
1212

1313
# Rebalance shards in Hyperscale (Citus) server group
1414

15-
To take advantage of newly added nodes you must rebalance distributed table
16-
[shards](concepts-distributed-data.md#shards), which means moving
17-
some shards from existing nodes to the new ones. Hyperscale (Citus) offers
18-
zero-downtime rebalancing, meaning queries can run without interruption during
15+
To take advantage of newly added nodes, rebalance distributed table
16+
[shards](concepts-distributed-data.md#shards). Rebalancing moves shards from existing nodes to the new ones. Hyperscale (Citus) offers
17+
zero-downtime rebalancing, meaning queries continue without interruption during
1918
shard rebalancing.
2019

21-
## Determine if the server group needs a rebalance
20+
## Determine if the server group is balanced
2221

23-
The Azure portal can show you whether data is distributed equally between
24-
worker nodes in a server group. To see it, go to the **Shard rebalancer** page
25-
in the **Server group management** menu. If data is skewed between workers,
26-
you'll see the message **Rebalancing is recommended**, along with a list of the
27-
size of each node.
22+
The Azure portal shows whether data is distributed equally between
23+
worker nodes in a server group or not. From the **Server group management** menu, select **Shard rebalancer**.
2824

29-
If data is already balanced, you'll see the message **Rebalancing is not
30-
recommended at this time**.
25+
- If data is skewed between workers: You'll see the message, **Rebalancing is recommended** and a list of the size of each node.
3126

32-
## Run the shard rebalancer
27+
- If data is balanced: You'll see the message, **Rebalancing is not recommended at this time**.
3328

34-
To start the shard rebalancer, you need to connect to the coordinator node of
35-
the server group and run the
36-
[rebalance_table_shards](reference-functions.md#rebalance_table_shards)
37-
SQL function on distributed tables. The function rebalances all tables in the
29+
## Run the Shard rebalancer
30+
31+
To start the Shard rebalancer, connect to the coordinator node of the server group and then run the [rebalance_table_shards](reference-functions.md#rebalance_table_shards) SQL function on distributed tables.
32+
33+
The function rebalances all tables in the
3834
[colocation](concepts-colocation.md) group of the table named in its
39-
argument. Thus you do not have to call the function for every distributed
40-
table, just call it on a representative table from each colocation group.
35+
argument. You don't have to call the function for every distributed
36+
table. Instead, call it on a representative table from each colocation group.
4137

4238
```sql
4339
SELECT rebalance_table_shards('distributed_table_name');
4440
```
4541

4642
## Monitor rebalance progress
4743

48-
To watch the rebalancer after you start it, go back to the Azure portal. Open
49-
the **Shard rebalancer** page in **Server group management**. It will show the
50-
message **Rebalancing is underway** along with two tables.
44+
You can view the rebalance progress from the Azure portal. From the **Server group management** menu, select **Shard rebalancer** . The
45+
message **Rebalancing is underway** displays with two tables:
5146

52-
The first table shows the number of shards moving into or out of a node, for
53-
example, "6 of 24 moved in." The second table shows progress per database
54-
table: name, shard count affected, data size affected, and rebalancing status.
47+
- The first table shows the number of shards moving into or out of a node. For
48+
example, "6 of 24 moved in."
49+
- The second table shows progress per database table: name, shard count affected, data size affected, and rebalancing status.
5550

56-
Select the **Refresh** button to update the page. When rebalancing is complete,
57-
it will again say **Rebalancing is not recommended at this time**.
51+
Select **Refresh** to update the page. When rebalancing is complete, you'll see the message **Rebalancing is not recommended at this time**.
5852

5953
## Next steps
6054

0 commit comments

Comments
 (0)