how many coordinator server can be put in cluster

28 views
Skip to first unread message

Sang Gyu Kim

unread,
Jan 16, 2020, 4:24:35 PM1/16/20
to citus-users
Hello I am trying to test Citus with PostgreSQL. I wonder how many coordinator server can be built on a set of cluster. and how to shard table by regional code like code 1 put it in worker node 1 in East and code 2 put in worker node 2 in West like instead of hashing it.
If anyone has any idea about this, please give some idea.

Thanks,

Eric Lee Green

unread,
Jan 16, 2020, 7:33:15 PM1/16/20
to citus...@googlegroups.com
1) Only one coordinator server is allowed with the current released Open
Source product. This coordinator server can however have a streaming
replica for failover purposes.

2) The hashing algorithm is built into the Citus source code and is not
configurable. If you need to do specific placement based upon geography,
you may wish to use the built-in partitioning mechanism in PostgreSQL 12
instead, which allows you to explicitly specify the partition key
partitioning algorithm (meaning you could use your number as the
partiton key) and, combined with foreign tables, would allow you to
place the partitions upon different servers. This is rather difficult to
configure and manage but if you are always planning to have a fixed
number of partitions and a fixed number of servers, it should be
manageable for your purposes.

Another option you should look at is CockroachDB, which purportedly can
do geographical distribution. Do note that it does not implement the
full PostgreSQL query language and functionality, does not perform well
with many traditional data processing workloads, and its level of
maturity might not be sufficient for some applications. I'd have no
problem building an analytical data warehouse on CockroachDB right now,
but I wouldn't use it to handle the financial data for a bank. But that
is my opinion as someone who has been in this business for 35 years,
your opinion may differ.


Sang Gyu Kim

unread,
Jan 16, 2020, 9:10:53 PM1/16/20
to Eric Lee Green, citus...@googlegroups.com
Hello Eric,  

I really appreciate you for your response. I will check it with postgres 12 and also cockroachdb.  

Thanks again,

Sang

--
You received this message because you are subscribed to the Google Groups "citus-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to citus-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/citus-users/9153bd44-1788-ea32-8352-cefd982eeae4%40gmail.com.
--

Sang Gyu Kim

unread,
Jan 17, 2020, 10:17:00 AM1/17/20
to citus-users
Hello Eric,

I have one more question. so Can users can connect db through only coordination server to see db objects, right?

Thanks,

Sang

Murat Tuncer

unread,
Jan 17, 2020, 10:21:36 AM1/17/20
to Sang Gyu Kim, citus-users

Yes that’s correct.  User’s don’t even need to know about workers in regular usage.

--
You received this message because you are subscribed to the Google Groups "citus-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to citus-users...@googlegroups.com.

Sang Gyu Kim

unread,
Jan 17, 2020, 10:52:18 AM1/17/20
to Murat Tuncer, citus-users
Great, thanks again.

Sang

Denise

unread,
Dec 21, 2022, 8:02:29 PM12/21/22
to citus-users
BAERISD
Reply all
Reply to author
Forward
0 new messages