canonical / canonical/postgresql-k8s-operator
Add test for DCS failsafe mode, simulating k8s API being down
- Dominant language
- Python
- Stars
- 15
- Forks
- 33
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 37
Description
https://github.com/canonical/postgresql-k8s-operator/pull/677 enables DCS failsafe mode which should improve stability in overloaded environments where the k8s can become temporarily unavailable.
We should add integration tests for that scenario, stopping or otherwise disabling access to the k8s API and verify that the primary doesn't step down. We should also verify that the primary will step down if it cannot connect to all the replicas.
Contributor guide
Research direction
Start by reading PR #677 and the repository's existing integration tests to find how DCS failsafe mode and Kubernetes API access are exercised. Add coverage for a temporarily unavailable Kubernetes API, verifying that the primary stays up, and for failure to connect to all replicas, verifying that the primary steps down.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kubernetes, postgresql, python
- Domain
- databases, devops, testing-qa
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100