citusdata / citusdata/citus

Automatically fail over SELECTs to secondaries

Open
#1,582 0 comments 0 reactions 0 assignees View on GitHub
feature
Dominant language
C
Stars
12.8k
Forks
794
Avg merge
2d 14h
Merged PRs (30d)
31

Description

Automatically failing over SELECT queries to secondaries would significantly increase read availability when a primary node fails. We can now add secondary nodes to `pg_dist_node`, so the planner could generate task placements for secondaries that are tried after the primary. In addition, we could also load-balance between secondary and primary to reduce load on the primary.

A requirement for read-your-writes consistency is that `synchronous_commit = 'remote_apply'` on all nodes.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.