patroni icon indicating copy to clipboard operation
patroni copied to clipboard

Feature Request: Support for multiple databases with the Citus integration

Open scottybrisbane opened this issue 2 years ago • 3 comments

Describe the feature request

We’re actively using Citus + Patroni with multiple "citus-enabled" databases in production and would really like to be able to use the new Citus integration with Patroni in our setup. Currently this integration only supports clusters with a single "citus-enabled" database which prevents us from using the new functionality.

scottybrisbane avatar Feb 22 '23 22:02 scottybrisbane

We would be very interested in using multiple Citus enabled databases with Patroni as well. I am not currently familiar with the codebase but if there is something we could do to help move this forward, let me know.

lkral-navmatix avatar Mar 22 '23 09:03 lkral-navmatix

I'm also very interested in this feature (and in our case it only need to support few databases - 5 or so; no more than 10)

DBexpert avatar Jun 06 '23 15:06 DBexpert

few databases - 5 or so; no more than 10

Usually people create many databases in a single cluster because they are small or because the host where cluster runs has a lot of hardware resources. In both cases it is about efficiently utilizing resources.

Citus solves a different problem. You have a lot of data so it doesn't fit into a single machine and you want to spread this data across many of machines.

Therefore, creating multiple databases (especially so many) with a Citus extension is an antipattern. Either you have to few data and you don't need Citus, or you better run multiple Citus clusters, with one DB per cluster.

In other words, this feature will never be a top priority.

CyberDem0n avatar Jun 07 '23 07:06 CyberDem0n