Rebalance Citus shards across worker nodes with rebalance_table_shards

domain: docs.citusdata.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Add or resize worker nodes as needed before rebalancing so there's somewhere for shards to move to
  2. Run SELECT rebalance_table_shards('<representative_table>') from the coordinator to rebalance that table's whole colocation group
  3. Choose a rebalance strategy via the rebalance_strategy parameter if the default by_shard_count doesn't fit (e.g. by_disk_size for skewed multi-tenant workloads)
  4. Monitor progress with SELECT * FROM get_rebalance_progress() while shards are moving
  5. Confirm the final distribution with citus_shards once the rebalance job completes

Known gotchas

Related routes

Distribute a Postgres table across Citus worker nodes with create_distributed_table
docs.citusdata.com · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans