{"repo":"xataio/cnpg-i-scale-to-zero","free":true,"listed":false,"github":"https://github.com/xataio/cnpg-i-scale-to-zero","clone":"git clone https://github.com/xataio/cnpg-i-scale-to-zero.git","description":"CNPG plugin to manage scale to zero functionality","language":"Go","stars":36,"topics":["cnpg","cnpg-i","postgresql","scale-to-zero","plugin"],"license":"Apache-2.0","category":"databases-storage","readme_excerpt":"CNPG-I Scale-to-Zero Plugin A CNPG-I plugin that automatically hibernates inactive CloudNativePG clusters to optimize resource usage and reduce costs. Overview This plugin monitors PostgreSQL database activity and automatically hibernates clusters after a configurable inactivity period. How It Works 1. The plugin injects a sidecar HTTP server into each PostgreSQL pod. The server returns the number of open connections. 2. The central plugin periodically requests the connection count from the primary pod. 3. Successful responses with open connections reset the inactivity period. Errors or unavailable data do not count as inactivity. 4. After consecutive zero-connection responses for the configured period, the plugin hibernates the cluster and suspends its scheduled backup. Architecture Installation See the installation guide for prerequisites, deployment, configuration, verification, and troubleshooting. Container Images The plugin consists of two container images: - Plugin : ghcr.io/xataio/cnpg-i-scale-to-zero - Sidecar : ghcr.io/xataio/cnpg-i-scale-to-zero-sidecar Image Tags We publish different image tags for different use cases: Local Docker library - dev : local docker images built using make docker-build-dev GHCR Development Tags - main : Latest development build from the main branch - main- : Specific commit builds from main branch Release Tags - latest : Latest stable release - v1.0.0 , v1.1.0 , etc.: Specific version releases Usage Enable the plugin and scale-to-zero a","default_branch":null,"files":null,"tree":[],"storefront":"/r/xataio","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/xataio/cnpg-i-scale-to-zero/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}