Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: support citus read scaling #2880

Closed
1 task done
xin-hedera opened this issue Sep 22, 2023 · 1 comment
Closed
1 task done

Feature request: support citus read scaling #2880

xin-hedera opened this issue Sep 22, 2023 · 1 comment

Comments

@xin-hedera
Copy link

What happened?

Citus supports serving read-only queries in the replica clusters formed by replica coordinators and replica worker nodes when:

  • the replica coordinators is configured with citus.use_secondary_nodes = 'always'
  • the read replica worker nodes are added to pg_dist_node using citus_add_secondary_node

The functionality is missing from the latest patroni release v3.1.0 as far as I know.

Being able to load balance read-only queries across all nodes is important since it provides better performance and higher resource utilization.

How can we reproduce it (as minimally and precisely as possible)?

Create a citus cluster using the demo docker-compose yaml file

  • check pg_dist_node to verify there's no secondary node
  • check citus.use_secondary_nodes on replica / standby coordinators to verify it's the default 'never'

What did you expect to happen?

patroni makes it optional to enable load balance read-only queries over all worker nodes

Patroni/PostgreSQL/DCS version

  • Patroni version: 3.1.0
  • PostgreSQL version: 14.8
  • Citus extension version: 11.3
  • DCS (and its version):

Patroni configuration file

N/A

patronictl show-config

N/A

Patroni log files

N/A

PostgreSQL log files

N/A

Have you tried to use GitHub issue search?

  • Yes

Anything else we need to know?

No response

@xin-hedera xin-hedera added the bug label Sep 22, 2023
@xin-hedera xin-hedera changed the title Feature request: support citus read scaling - serve read-only Feature request: support citus read scaling Sep 22, 2023
@CyberDem0n CyberDem0n removed the bug label Sep 25, 2023
@CyberDem0n
Copy link
Member

@xin-hedera please to check/try/test #2755

@CyberDem0n CyberDem0n added this to the Sprint 2023.18 milestone Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants