Repository navigation
Single shard #5420
Closed
Pieter Martin (pietermartin)
started this conversation in
General
Single shard
#5420
Replies: 2 comments 1 reply
|
The cluster will be balanced when calling rebalance_table_shards, but not when tables are created, so you may need to rebalance after creating new tables. Make sure to use colocate_with in create_distributed_table for tables in the same schema, and colocate_with :='none' for the first table in a new schema. (wish GitHub showed some visual hint for new discussion topics) |
1 reply
|
There is a much easier way of distributing a PostgreSQL cluster based on schemas, as of 12.0, see https://www.citusdata.com/blog/2023/07/31/schema-based-sharding-comes-to-postgres-with-citus/. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi,
We have many tables, 50 000+. We'd like to put certain schemas on separate workers/nodes, but have no need to shard individual tables across workers.
Does it make sense to use a shard count of 1?
Will the cluster be able to be balanced?
Will we instead need to move the shards individually using
citus_copy_shard_placement?Thanks
Pieter
All reactions