Trên GitHub, zalando/spilo đã đạt 1.9k sao, nhóm Developer Tools, ngôn ngữ Python. Highly available elephant herd: HA PostgreSQL cluster using Docker
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
=========================================
Spilo: HA PostgreSQL Clusters with Docker
Spilo is a Docker image that provides PostgreSQL and Patroni <https://github.com/zalando/patroni>__ bundled together. Patroni is a template for PostgreSQL HA. Multiple Spilos can create a resilient High Available PostgreSQL cluster. For this, you'll need to start all participating Spilos with identical etcd <https://github.com/coreos/etcd>__ addresses and cluster names.
Spilo's name derives from სპილო [spiːlɒ], the Georgian word for "elephant."
Real-World Usage and Plans
Spilo is currently evolving: Its creators are working on a Postgres operator that would make it simpler to deploy scalable Postgres clusters in a Kubernetes environment, and also do maintenance tasks. Spilo would serve as an essential building block for this. There is already a Helm chart <https://github.com/kubernetes/charts/tree/master/incubator/patroni>__ that relies on Spilo and Patroni to provision a five-node PostgreSQL HA cluster in a Kubernetes+Google Compute Engine environment. (The Helm chart deploys Spilo Docker images, not just "bare" Patroni.)
How to Use This Docker Image
.. important::
We encourage users to build the Docker images themselves from source code using the latest tags to benefit from ongoing improvements and fixes. The team continues to maintain the project and address issues, but does not make regular releases nor publishes latest Docker images.
Spilo's setup assumes that you've correctly configured a load balancer (HAProxy, ELB, Google load balancer) that directs client connections to the master. There are two ways to achieve this: A) if the load balancer relies on the status code to distinguish between the healthy and failed nodes (like ELB), then one needs to configure it to poll the API URL; otherwise, B) you can use callback scripts to change the load balancer configuration dynamically.
Available container registry and image architectures
Spilo images are made available in the GitHub container registry (ghcr.io). Images are build and published as linux/amd64 and linux/arm64 on tag. For PostgreSQL version 14 currently availble images can be found here: https://github.com/zalando/spilo/pkgs/container/spilo-14
How to Build This Docker Image
$ cd postgres-appliance
$ docker build --tag $YOUR_TAG .
There are a few build arguments defined in the Dockerfile and it is possible to change them by specifying --build-arg arguments:
WITH_PERL=false # set to true if you want to install perl and plperl packages into image
PGVERSION="12"
PGOLDVERSIONS="9.5 9.6 10 11"
DEMO=false # set to true to build the smallest possible image which will work only on Kubernetes
TIMESCALEDB_APACHE_ONLY=true # set to false to build timescaledb community version (Timescale License)
TIMESCALEDB_TOOLKIT=true # set to false to skip installing toolkit with timescaledb community edition. Only relevant when TIMESCALEDB_APACHE_ONLY=false
ADDITIONAL_LOCALES= # additional UTF-8 locales to build into image (example: "de_DE pl_PL fr_FR")
Run the image locally after build:
$ docker run -it your-spilo-image:$YOUR_TAG
Have a look inside the container:
$ docker exec -it $CONTAINER_NAME bash
Connecting to PostgreSQL
Administrative Connections
PostgreSQL is configured by default to listen to port 5432. Spilo master initializes PostgreSQL and creates the superuser and replication user (postgres and standby by default).
You'll need to setup Spilo to create a database and roles for your application(s). For example:
Once you have created a database and roles for your application, you can connect to Spilo just like you want to connect to any other PostgreSQL cluster:
Spilo is configured via environment variables, the values of which are either supplied manually via the environment (whenever Spilo is launched as a set of Docker containers) or added in the configuration file or manifest (whenever Spilo is used in the Docker orchestration environment, such as Kubernetes or Docker Compose).
Please go here <https://github.com/zalando/spilo/blob/master/ENVIRONMENT.rst>__ to see our list of environment variables.
To supply env variables manually via the environment for local testing:
docker run -it -e YOUR_ENV_VAR=test your-spilo-image:latest
Issues and Contributing
Spilo welcomes questions via our issues tracker <https://github.com/zalando/spilo/issues>. We also greatly appreciate fixes, feature requests, and updates; before submitting a pull request, please visit our contributor guidelines <https://github.com/zalando/spilo/blob/master/CONTRIBUTING.rst>.
License
This project uses the Apache 2.0 license <https://github.com/zalando/spilo/blob/master/LICENSE>__.
zalando/spilo thuộc nhóm Developer Tools trên TopGit, cùng 7 topic GitHub. Trang Trending và Topics liệt kê các repo cùng số sao và cùng ngôn ngữ để so sánh.
Đọc thêm về zalando/spilo ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/zalando/spilo là nguồn chính thức.
Vì sao zalando/spilo được xếp vào nhóm Developer Tools?
TopGit xếp zalando/spilo vào nhóm Developer Tools dựa trên GitHub topics và mô tả của repo (gắn thẻ: "data-infrastructure", "docker", "docker-image"). Việc phân loại dựa trên metadata thật của repo, không phải đoán theo cảm tính biên tập.
zalando/spilo có bao nhiêu sao?
zalando/spilo có 1.9k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/zalando/spilo. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
zalando/spilo có những chủ đề gì?
GitHub topics của zalando/spilo: "data-infrastructure", "docker", "docker-image", "high-availability", "patroni", "postgresql", "python". TopGit xếp repo vào nhóm Developer Tools.
zalando/spilo còn đang phát triển không?
Commit gần nhất trên zalando/spilo là 17 ngày trước (theo timestamp GitHub). Repo có 460 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
zalando/spilo viết bằng ngôn ngữ gì?
zalando/spilo chủ yếu viết bằng Python. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Đọc đầy đủ README ở tab phía trên.
Muốn nghe thêm một ý kiến về spilo?
Hỏi một AI đọc được trang này — một cú bấm là có ngay nhận định về spilo.