• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

timescale / patroni / 9500713889
100%

Build:
DEFAULT BRANCH: master
Ran 13 Jun 2024 01:41PM UTC
Jobs 3
Files 56
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

13 Jun 2024 01:37PM UTC coverage: 99.775% (-0.09%) from 99.862%
9500713889

push

github

web-flow
Make member xlog updates frequency configurable in K8s

In the past, Patroni had to update the member key every `loop_wait` interval to prevent its disappearance due to TTL. In Kubernetes, the member key won't disappear, however, Patroni still updates it regularly to propagate current xlog location.

Make those updates configurable. If `kubernetes.xlog_cache_ttl` is set to a positive value and no other member data (i.e. role or timeline) changes, do not update the member pod annotation more frequently than the value of `xlog_cache_ttl` seconds.

This reduces the load on the K8s API, as we don't have to update the pod every loop_wait interval. 

If the member needs to be updated due to other reasons (i.e. role change), the xlog position is set to the up-to-date one received from Postgres.

When DEBUG logging is turned on, Patroni will emit log messages similar to the one below when the xlog-only update is withheld because of this parameter:

```
2024-06-06 11:34:36,308 DEBUG: prevented pod update, keeping cached xlog value for up to 10 seconds
```

This parameter is set to 0 by default, so this feature is disabled unless turned on explicitly by the user. The maximum value is 3600s.

21 of 33 new or added lines in 4 files covered. (63.64%)

13772 of 13803 relevant lines covered (99.78%)

2.98 hits per line

Jobs
ID Job ID Ran Files Coverage
1 unit-windows - 9500713889.1 13 Jun 2024 01:47PM UTC 0
98.7
GitHub Action Run
2 unit-ubuntu - 9500713889.2 13 Jun 2024 01:47PM UTC 0
99.78
GitHub Action Run
3 unit-macos - 9500713889.3 13 Jun 2024 01:47PM UTC 0
99.72
GitHub Action Run
Source Files on build 9500713889
Detailed source file information is not available for this build.
  • Back to Repo
  • 4164ebe5 on github
  • Prev Build on master (#9188970374)
  • Next Build on master (#9504949049)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc