├── .github └── workflows │ ├── kubernetes-test.yaml │ ├── publish-ghcr-container.yaml │ └── tests.yaml ├── .gitmodules ├── .zappr.yaml ├── BUGS.md ├── CONTRIBUTING.rst ├── ENVIRONMENT.rst ├── LICENSE ├── README.rst ├── contrib ├── cloudbuild-branch.yaml ├── cloudbuild-latest.yaml └── cloudbuild-tag.yaml ├── delivery.yaml ├── docs ├── DESIGN.md ├── Spilo_Architecture_High_Level.png ├── Spilo_Architecture_Instance.png ├── admin-guide │ ├── deploy_spilo.md │ ├── failover.md │ ├── scaling.md │ ├── sizing.md │ └── update.md ├── components │ ├── etcd-proxy.md │ └── governor.md ├── configuration.md ├── index.md ├── prerequisites.md └── user-guide │ └── connect_spilo.md ├── etcd-cluster-appliance └── README.md ├── kubernetes └── spilo_kubernetes.yaml ├── mkdocs.yml ├── postgres-appliance ├── .gitignore ├── CODEOWNERS ├── Dockerfile ├── bootstrap │ ├── clone_with_basebackup.py │ ├── clone_with_walg.py │ └── maybe_pg_upgrade.py ├── build_scripts │ ├── base.sh │ ├── compress_build.sh │ ├── dependencies.sh │ ├── locales.sh │ ├── patroni.sh │ ├── post_build.sh │ └── prepare.sh ├── cron_unprivileged.c ├── dependencies │ ├── Dockerfile │ ├── README │ ├── build.sh │ ├── debs │ │ ├── libgdal30_3.4.1+dfsg-1build4_amd64.deb │ │ └── libgdal30_3.4.1+dfsg-1build4_arm64.deb │ └── patches │ │ └── gdal.patch ├── launch.sh ├── major_upgrade │ ├── inplace_upgrade.py │ └── pg_upgrade.py ├── motd ├── pgq_ticker.ini ├── runit │ ├── cron │ │ └── run │ ├── etcd │ │ └── run │ ├── patroni │ │ ├── finish │ │ └── run │ ├── pgbouncer │ │ └── run │ └── pgqd │ │ └── run ├── scripts │ ├── _zmon_schema.dump │ ├── basebackup.sh │ ├── callback_aws.py │ ├── callback_role.py │ ├── configure_spilo.py │ ├── create_user_functions.sql │ ├── hypopg │ │ └── after-create.sql │ ├── metric_helpers.sql │ ├── on_role_change.sh │ ├── patroni_wait.sh │ ├── pg_partman │ │ └── after-create.sql │ ├── pgq │ │ └── after-create.sql │ ├── post_init.sh │ ├── postgres_backup.sh │ ├── postgres_fdw │ │ └── after-create.sql │ ├── renice.sh │ ├── restore_command.sh │ ├── spilo_commons.py │ ├── test_reload_ssl.sh │ ├── upload_pg_log_to_s3.py │ └── walg_restore.sh ├── spilok8s.yaml └── tests │ ├── README.md │ ├── docker-compose.yml │ ├── locales_test │ ├── generate_data.sh │ ├── helper_script.sh │ └── test_locales.sh │ ├── schema.sql │ ├── test_spilo.sh │ ├── test_utils.sh │ └── timescaledb.sql └── tox.ini /.github/workflows/kubernetes-test.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/.github/workflows/kubernetes-test.yaml -------------------------------------------------------------------------------- /.github/workflows/publish-ghcr-container.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/.github/workflows/publish-ghcr-container.yaml -------------------------------------------------------------------------------- /.github/workflows/tests.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/.github/workflows/tests.yaml -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.zappr.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/.zappr.yaml -------------------------------------------------------------------------------- /BUGS.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/BUGS.md -------------------------------------------------------------------------------- /CONTRIBUTING.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/CONTRIBUTING.rst -------------------------------------------------------------------------------- /ENVIRONMENT.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/ENVIRONMENT.rst -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/LICENSE -------------------------------------------------------------------------------- /README.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/README.rst -------------------------------------------------------------------------------- /contrib/cloudbuild-branch.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/contrib/cloudbuild-branch.yaml -------------------------------------------------------------------------------- /contrib/cloudbuild-latest.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/contrib/cloudbuild-latest.yaml -------------------------------------------------------------------------------- /contrib/cloudbuild-tag.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/contrib/cloudbuild-tag.yaml -------------------------------------------------------------------------------- /delivery.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/delivery.yaml -------------------------------------------------------------------------------- /docs/DESIGN.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/docs/DESIGN.md -------------------------------------------------------------------------------- /docs/Spilo_Architecture_High_Level.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/docs/Spilo_Architecture_High_Level.png -------------------------------------------------------------------------------- /docs/Spilo_Architecture_Instance.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/docs/Spilo_Architecture_Instance.png -------------------------------------------------------------------------------- /docs/admin-guide/deploy_spilo.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/docs/admin-guide/deploy_spilo.md -------------------------------------------------------------------------------- /docs/admin-guide/failover.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/docs/admin-guide/failover.md -------------------------------------------------------------------------------- /docs/admin-guide/scaling.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/docs/admin-guide/scaling.md -------------------------------------------------------------------------------- /docs/admin-guide/sizing.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/docs/admin-guide/sizing.md -------------------------------------------------------------------------------- /docs/admin-guide/update.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/docs/admin-guide/update.md -------------------------------------------------------------------------------- /docs/components/etcd-proxy.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/docs/components/etcd-proxy.md -------------------------------------------------------------------------------- /docs/components/governor.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/docs/components/governor.md -------------------------------------------------------------------------------- /docs/configuration.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/docs/configuration.md -------------------------------------------------------------------------------- /docs/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/docs/index.md -------------------------------------------------------------------------------- /docs/prerequisites.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/docs/prerequisites.md -------------------------------------------------------------------------------- /docs/user-guide/connect_spilo.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/docs/user-guide/connect_spilo.md -------------------------------------------------------------------------------- /etcd-cluster-appliance/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/etcd-cluster-appliance/README.md -------------------------------------------------------------------------------- /kubernetes/spilo_kubernetes.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/kubernetes/spilo_kubernetes.yaml -------------------------------------------------------------------------------- /mkdocs.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/mkdocs.yml -------------------------------------------------------------------------------- /postgres-appliance/.gitignore: -------------------------------------------------------------------------------- 1 | scm-source.json 2 | *.sw? 3 | -------------------------------------------------------------------------------- /postgres-appliance/CODEOWNERS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/CODEOWNERS -------------------------------------------------------------------------------- /postgres-appliance/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/Dockerfile -------------------------------------------------------------------------------- /postgres-appliance/bootstrap/clone_with_basebackup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/bootstrap/clone_with_basebackup.py -------------------------------------------------------------------------------- /postgres-appliance/bootstrap/clone_with_walg.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/bootstrap/clone_with_walg.py -------------------------------------------------------------------------------- /postgres-appliance/bootstrap/maybe_pg_upgrade.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/bootstrap/maybe_pg_upgrade.py -------------------------------------------------------------------------------- /postgres-appliance/build_scripts/base.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/build_scripts/base.sh -------------------------------------------------------------------------------- /postgres-appliance/build_scripts/compress_build.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/build_scripts/compress_build.sh -------------------------------------------------------------------------------- /postgres-appliance/build_scripts/dependencies.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/build_scripts/dependencies.sh -------------------------------------------------------------------------------- /postgres-appliance/build_scripts/locales.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/build_scripts/locales.sh -------------------------------------------------------------------------------- /postgres-appliance/build_scripts/patroni.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/build_scripts/patroni.sh -------------------------------------------------------------------------------- /postgres-appliance/build_scripts/post_build.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/build_scripts/post_build.sh -------------------------------------------------------------------------------- /postgres-appliance/build_scripts/prepare.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/build_scripts/prepare.sh -------------------------------------------------------------------------------- /postgres-appliance/cron_unprivileged.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/cron_unprivileged.c -------------------------------------------------------------------------------- /postgres-appliance/dependencies/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/dependencies/Dockerfile -------------------------------------------------------------------------------- /postgres-appliance/dependencies/README: -------------------------------------------------------------------------------- 1 | Rebuild some packages without graphic libraries. 2 | -------------------------------------------------------------------------------- /postgres-appliance/dependencies/build.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/dependencies/build.sh -------------------------------------------------------------------------------- /postgres-appliance/dependencies/debs/libgdal30_3.4.1+dfsg-1build4_amd64.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/dependencies/debs/libgdal30_3.4.1+dfsg-1build4_amd64.deb -------------------------------------------------------------------------------- /postgres-appliance/dependencies/debs/libgdal30_3.4.1+dfsg-1build4_arm64.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/dependencies/debs/libgdal30_3.4.1+dfsg-1build4_arm64.deb -------------------------------------------------------------------------------- /postgres-appliance/dependencies/patches/gdal.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/dependencies/patches/gdal.patch -------------------------------------------------------------------------------- /postgres-appliance/launch.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/launch.sh -------------------------------------------------------------------------------- /postgres-appliance/major_upgrade/inplace_upgrade.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/major_upgrade/inplace_upgrade.py -------------------------------------------------------------------------------- /postgres-appliance/major_upgrade/pg_upgrade.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/major_upgrade/pg_upgrade.py -------------------------------------------------------------------------------- /postgres-appliance/motd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/motd -------------------------------------------------------------------------------- /postgres-appliance/pgq_ticker.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/pgq_ticker.ini -------------------------------------------------------------------------------- /postgres-appliance/runit/cron/run: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/runit/cron/run -------------------------------------------------------------------------------- /postgres-appliance/runit/etcd/run: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/runit/etcd/run -------------------------------------------------------------------------------- /postgres-appliance/runit/patroni/finish: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/runit/patroni/finish -------------------------------------------------------------------------------- /postgres-appliance/runit/patroni/run: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/runit/patroni/run -------------------------------------------------------------------------------- /postgres-appliance/runit/pgbouncer/run: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/runit/pgbouncer/run -------------------------------------------------------------------------------- /postgres-appliance/runit/pgqd/run: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/runit/pgqd/run -------------------------------------------------------------------------------- /postgres-appliance/scripts/_zmon_schema.dump: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/scripts/_zmon_schema.dump -------------------------------------------------------------------------------- /postgres-appliance/scripts/basebackup.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/scripts/basebackup.sh -------------------------------------------------------------------------------- /postgres-appliance/scripts/callback_aws.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/scripts/callback_aws.py -------------------------------------------------------------------------------- /postgres-appliance/scripts/callback_role.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/scripts/callback_role.py -------------------------------------------------------------------------------- /postgres-appliance/scripts/configure_spilo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/scripts/configure_spilo.py -------------------------------------------------------------------------------- /postgres-appliance/scripts/create_user_functions.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/scripts/create_user_functions.sql -------------------------------------------------------------------------------- /postgres-appliance/scripts/hypopg/after-create.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/scripts/hypopg/after-create.sql -------------------------------------------------------------------------------- /postgres-appliance/scripts/metric_helpers.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/scripts/metric_helpers.sql -------------------------------------------------------------------------------- /postgres-appliance/scripts/on_role_change.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/scripts/on_role_change.sh -------------------------------------------------------------------------------- /postgres-appliance/scripts/patroni_wait.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/scripts/patroni_wait.sh -------------------------------------------------------------------------------- /postgres-appliance/scripts/pg_partman/after-create.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/scripts/pg_partman/after-create.sql -------------------------------------------------------------------------------- /postgres-appliance/scripts/pgq/after-create.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/scripts/pgq/after-create.sql -------------------------------------------------------------------------------- /postgres-appliance/scripts/post_init.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/scripts/post_init.sh -------------------------------------------------------------------------------- /postgres-appliance/scripts/postgres_backup.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/scripts/postgres_backup.sh -------------------------------------------------------------------------------- /postgres-appliance/scripts/postgres_fdw/after-create.sql: -------------------------------------------------------------------------------- 1 | GRANT USAGE ON FOREIGN DATA WRAPPER postgres_fdw TO admin; 2 | -------------------------------------------------------------------------------- /postgres-appliance/scripts/renice.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/scripts/renice.sh -------------------------------------------------------------------------------- /postgres-appliance/scripts/restore_command.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/scripts/restore_command.sh -------------------------------------------------------------------------------- /postgres-appliance/scripts/spilo_commons.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/scripts/spilo_commons.py -------------------------------------------------------------------------------- /postgres-appliance/scripts/test_reload_ssl.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/scripts/test_reload_ssl.sh -------------------------------------------------------------------------------- /postgres-appliance/scripts/upload_pg_log_to_s3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/scripts/upload_pg_log_to_s3.py -------------------------------------------------------------------------------- /postgres-appliance/scripts/walg_restore.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/scripts/walg_restore.sh -------------------------------------------------------------------------------- /postgres-appliance/spilok8s.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/spilok8s.yaml -------------------------------------------------------------------------------- /postgres-appliance/tests/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/tests/README.md -------------------------------------------------------------------------------- /postgres-appliance/tests/docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/tests/docker-compose.yml -------------------------------------------------------------------------------- /postgres-appliance/tests/locales_test/generate_data.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/tests/locales_test/generate_data.sh -------------------------------------------------------------------------------- /postgres-appliance/tests/locales_test/helper_script.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/tests/locales_test/helper_script.sh -------------------------------------------------------------------------------- /postgres-appliance/tests/locales_test/test_locales.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/tests/locales_test/test_locales.sh -------------------------------------------------------------------------------- /postgres-appliance/tests/schema.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/tests/schema.sql -------------------------------------------------------------------------------- /postgres-appliance/tests/test_spilo.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/tests/test_spilo.sh -------------------------------------------------------------------------------- /postgres-appliance/tests/test_utils.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/tests/test_utils.sh -------------------------------------------------------------------------------- /postgres-appliance/tests/timescaledb.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zalando/spilo/HEAD/postgres-appliance/tests/timescaledb.sql -------------------------------------------------------------------------------- /tox.ini: -------------------------------------------------------------------------------- 1 | [flake8] 2 | max-line-length=120 3 | --------------------------------------------------------------------------------