From f3d6e5178c663e389386c6940764c416928e6d98 Mon Sep 17 00:00:00 2001 From: Oleksii Kliukin Date: Wed, 29 Mar 2017 11:19:57 +0200 Subject: [PATCH 1/2] Add a few slides about Patroni and a diagram. --- postgres_helm/postgres_helm.md | 40 ++++++++++++ postgres_helm/spilo_diagram.svg | 106 ++++++++++++++++++++++++++++++++ 2 files changed, 146 insertions(+) create mode 100644 postgres_helm/spilo_diagram.svg diff --git a/postgres_helm/postgres_helm.md b/postgres_helm/postgres_helm.md index ce692f3..764e381 100644 --- a/postgres_helm/postgres_helm.md +++ b/postgres_helm/postgres_helm.md @@ -109,6 +109,46 @@ Kubecon EU 2017 --- +## Patroni + +* HA PostgreSQL controller +* Etcd, Zookeeper or Consul +* Spilo = Patroni + PostgreSQL + +--- + +![spilo_diagram](spilo_diagram.svg) +--- + +## Patroni customization + +* Callbacks (on_role_chage) +* Custom replica creation +* Pluggable consistency layers + +--- + +## Not just autofailover + +* Synchronous mode +* Cascading replication +* Dynamic configuration + +--- + +## Cluster maintenance +* "Hands-off" mode +* Scheduled failovers and restarts + +--- + +## Controlling Patroni + +* REST API +* patronictl + +--- + ![citus sharded](citus_sharded.png) ### CitusDB diff --git a/postgres_helm/spilo_diagram.svg b/postgres_helm/spilo_diagram.svg new file mode 100644 index 0000000..58e6a4d --- /dev/null +++ b/postgres_helm/spilo_diagram.svg @@ -0,0 +1,106 @@ + + + + Produced by OmniGraffle 7.3 + 2017-03-29 07:29:42 +0000 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Canvas 1 + + + Layer 1 + + + + + + Spilo master pod + + + + + + + + + + + + + + + + + + + + + + Patr + oni + + + + + + + + + Service + + + + + Endpoint + + + + + + + + Client + + + + + + + From c8efa4eb36505515ff8f984affe0d546fb08c397 Mon Sep 17 00:00:00 2001 From: Oleksii Kliukin Date: Wed, 29 Mar 2017 11:22:08 +0200 Subject: [PATCH 2/2] Mention Patroni demo. --- postgres_helm/postgres_helm.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/postgres_helm/postgres_helm.md b/postgres_helm/postgres_helm.md index 764e381..ad712f8 100644 --- a/postgres_helm/postgres_helm.md +++ b/postgres_helm/postgres_helm.md @@ -149,6 +149,10 @@ Kubecon EU 2017 --- +#### Patroni Demo + +--- + ![citus sharded](citus_sharded.png) ### CitusDB