postgres-operator/pkg/cluster
Oleksii Kliukin 0181a1b5b1
Introduce a repair scan to fix failing clusters (#304)
A repair is a sync scan that acts only on those clusters that indicate
that the last add, update or sync operation on them has failed. It is
supposed to kick in more frequently than the repair scan. The repair
scan still remains to be useful to fix the consequences of external
actions (i.e. someone deletes a postgres-related service by mistake)
unbeknownst to the operator.

The repair scan is controlled by the new repair_period parameter in the
operator configuration. It has to be at least 2 times more frequent than
a sync scan to have any effect (a normal sync scan will update both last
synced and last repaired attributes of the controller, since repair is
just a sync underneath).

A repair scan could be queued for a cluster that is already being synced
if the sync period exceeds the interval between repairs. In that case a
repair event will be discarded once the corresponding worker finds out
that the cluster is not failing anymore.

Review by @zerg-junior
2018-07-24 11:21:45 +02:00
..
cluster.go Introduce a repair scan to fix failing clusters (#304) 2018-07-24 11:21:45 +02:00
cluster_test.go Improve the pod moving behavior during the Kubernetes cluster upgrade. (#281) 2018-05-03 10:20:24 +02:00
exec.go Fix exec into pods to resize volumes for multi-container pods. 2018-06-04 14:51:39 +02:00
filesystems.go Make use of kubernetes client-go v4 2017-07-25 15:25:17 +02:00
k8sres.go Improve generation of Scalyr container environment. (#346) 2018-07-24 11:16:24 +02:00
k8sres_test.go Deprecate old LB options, fix endpoint sync. (#287) 2018-05-15 15:19:18 +02:00
pg.go Some improvements for golint, ineffassign and misspell 2018-02-19 17:46:31 +01:00
pod.go Use Patroni API to set bootstrap-only options. (#299) 2018-05-29 12:35:25 +02:00
resources.go Use Patroni API to set bootstrap-only options. (#299) 2018-05-29 12:35:25 +02:00
sync.go Make AWS region configurable in the operator cofig map (#333) 2018-06-27 17:29:02 +02:00
types.go add comments on roles 2017-09-11 17:44:32 +02:00
util.go Allow configuring the operator via the YAML manifest. (#326) 2018-07-16 16:20:46 +02:00
volumes.go Avoid showing an extra error when resizing volume fails (#350) 2018-07-20 14:12:25 +02:00