canonical / canonical/postgresql-operator

Improve monitoring of Cross-Site-Replication

Open
#1,824 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
20
Forks
36
Avg merge
4d 15h
Merged PRs (30d)
30

Description

Cross site Replication should be monitored on a postgresql level. Today we discovered an issue with cross-site replication not working. The secondary site didn't replicate. But there were no alerts or anything pointing us to it. I only found it because I was testing a new user for a database.
We need a way to continuously monitor cross-site replication and throw a warning via cos if it stops working.

This is adjacent to #1808, but in this case juju did work (even switchovers on the primary were correctly communicated to the secondary via relation), but the postgresql replication didn't work.

Contributor guide

Open the contributing guide

Research direction

No files or tests are named in the issue. Start by examining how PostgreSQL cross-site replication status can be checked and where COS warnings are emitted; done means a stopped replication link is detected continuously and produces a warning, including when Juju relations and switchovers still work.

Written by the indexing model from the issue text.

Assessment

Tech stack
postgresql, python
Domain
databases, observability
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.