spilo | Highly available elephant herd: HA PostgreSQL cluster using Docker | Continuous Deployment library
kandi X-RAY | spilo Summary
kandi X-RAY | spilo Summary
Highly available elephant herd: HA PostgreSQL cluster using Docker
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Get placeholders
- Get instance metadata
- Get the listen IP address
- Set the value in placeholders
- Write a Wale environment
- Write configuration to file
- Change the owner of a resource
- Rsync replica
- Kill patroni
- Prepare new pgdata
- Setup package
- Create the ssh tunnel
- Write a cron job
- Write ssl certificates
- Get DCS configuration
- Get metadata for instance
- Upload file to S3
- Determine provider
- Drops obsolete objects from the cluster
- Performs a point - in - time recovery
- Rebuild statistics
- Create log environment
- Read configuration file
- Parse command line options
- Parse command line options
- Write REST API certificates
- Compress postgresql log file
spilo Key Features
spilo Examples and Code Snippets
spilo - a minimalistic IRC bouncer
Copyright (C) 2018 Aaron Weiss
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either v
Community Discussions
Trending Discussions on spilo
QUESTION
I have a PostgreSQL Kubernetes Service based on Patroni/Spilo. This Kubernetes service deploys a cluster of three PostgreSQL pods + three Etcd pods. During maintenance, I had a failure and I wasn't able to restore the old configuration that worked fine before the rolling update.
I searched for documentation and it seems StatefulSets doesn't support rollbacks as deployment. I found this thread that references this doc.
To be honest, however, I didn't understand how to proceed.
My cluster has the following pods:
...ANSWER
Answered 2021-Dec-14 at 13:42To undo changes that have been made, first checkout the rollout history kubectl rollout history sts -n
.
Get more details about a revision kubectl rollout history sts --revision -n
.
Undo the changes kubectl rollout undo sts --to-revision -n
QUESTION
I have the following Kubernetes YAML with a StatefulSet I use to deploy a PostgreSQL cluster with Patroni. However, the question is relative to how Kubernetes registers Pod names in CoreDNS.
According to this documentation in the Stable Network ID section if I create a Headless service called spilodemo-svc
for my Pods I can access them using the short hostname (podname.servicename):
ANSWER
Answered 2021-Oct-27 at 11:14After almost three days of tests, I found a solution. The solution depends on two things:
- how Kubernetes works;
- how Patroni works.
How Kubernetes Works
When you create a StatefulSet deployment (but this is true also for Deployment), let's say with 3 pods, Kubernetes register in CoreDNS three DNS names:
QUESTION
I making a POC, in my test I killed the primary node, other node take the primary role, the new replica rewind.... but dead whit this messages:
...ANSWER
Answered 2021-Mar-15 at 22:53After go inside the docker, exec a patronictl -c ... reinit, wait and your node will be online again....❗
QUESTION
I have installed https://github.com/zalando/postgres-operator on my K8S cluster on namespace postgres
...ANSWER
Answered 2020-May-17 at 13:14It seems you missed out the database owner rights and the role for the application, here is the correct manifest:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install spilo
You can use spilo like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page