Skip to content

Commit

Permalink
Improve Patroni slide and notes.
Browse files Browse the repository at this point in the history
Change the digram colors and add an image for the live demo slide.
  • Loading branch information
alexeyklyukin committed Mar 29, 2017
1 parent c8efa4e commit e723825
Show file tree
Hide file tree
Showing 4 changed files with 127 additions and 65 deletions.
Binary file added postgres_helm/elephant_patroni_live_demo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions postgres_helm/notes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,18 @@ Helm

Oleksii

Patroni
- RAFT is the fabric that holds together your PostgreSQL containers
- External consistent key-value store instead of built-in one:
advantages:
- PostgreSQL failure doesn't break the consensus
- use well-tested RAFT implementations (i.e. Etcd or Consul)
disadvantages:
- onen needs to operate extra services
Features:
- synchronous vs asynchronous replication (consistency vs availability)
- some parameters need to be kept in sync on all cluster nodes (max_connections)

CitusDB
- sharded postgres
- query node, plus shard nodes
Expand All @@ -36,6 +48,7 @@ giant robot elephant from The Nantes Project
elephant helm by Blank Williams
robot elephant by Robert Chew
robot with elephant by Mark F Stosiak
stubborn elephant by Kolja Wilcke @01k



Expand Down
41 changes: 31 additions & 10 deletions postgres_helm/postgres_helm.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,44 +113,57 @@ Kubecon EU 2017

* HA PostgreSQL controller
* Etcd, Zookeeper or Consul
* Spilo = Patroni + PostgreSQL
* Spilo = Patroni + PostgreSQL

---

![spilo_diagram](spilo_diagram.svg)

---

## Patroni customization
## Extensibility

* Callbacks (on_role_chage)
* Custom replica creation
* Pluggable consistency layers
* callbacks
* custom replica creation methods
* pluggable consistent KV-stores

---

## Not just autofailover
## More than autofailover

* Synchronous mode
* Cascading replication
* Dynamic configuration
* synchronous mode
* cascading replication
* dynamic configuration

---

## Cluster maintenance

* "Hands-off" mode
* Scheduled failovers and restarts

---

## Controlling Patroni
## Interfaces

* REST API
* patronictl

---

## Helm parameters

* cluster name
* Etcd host
* number of replicas
* credentials

---

#### Patroni Demo

![patroni demo](elephant_patroni_live_demo.png)

---

![citus sharded](citus_sharded.png)
Expand Down Expand Up @@ -228,6 +241,14 @@ github.com/jberkus/atomicdb

---

## Spilo demo:

* Helm Chart:
<br />github.com/alexeyklyukin/
<br />/charts/incubator/patroni

---

# ¿questions?

.left-column-narrow[
Expand Down
Loading

0 comments on commit e723825

Please sign in to comment.