|
| 1 | +0) Design |
| 2 | + |
| 3 | +General concept oberview. wiki link. This repo implements Snapshot Sharing mechnism. |
| 4 | +Protocol description. README.protocol |
| 5 | +Presentation |
| 6 | + |
| 7 | +1) Installing |
| 8 | + |
| 9 | +* patch postgres |
| 10 | +* install extension |
| 11 | +* configure two postgreses |
| 12 | +* run dtmd |
| 13 | +* run postgreses |
| 14 | + |
| 15 | +1b) Automatic provisioning |
| 16 | + |
| 17 | +* For a wide deploy we use ansible. Layouts/Farms. More details later. |
| 18 | + |
| 19 | +2) Usage |
| 20 | + |
| 21 | +now you can use global tx between this two nodes |
| 22 | + |
| 23 | +table with two columns |
| 24 | +```sql |
| 25 | +example |
| 26 | +``` |
| 27 | + |
| 28 | +3) Consistency testing |
| 29 | + |
| 30 | +To ensure consistency we use simple bank test: perform a lot of simultaneous transfers between accounts on different servers, while constantly checking total amount of money on all accounts. |
| 31 | + |
| 32 | +go run ... |
| 33 | + |
| 34 | +also there is the test for measuring select performance. |
| 35 | + |
| 36 | +4) Using with fdw. |
| 37 | + |
| 38 | +patch |
| 39 | +go run ... |
| 40 | + |
| 41 | +5) Using with pg_shard |
| 42 | + |
| 43 | +checkout repo |
| 44 | +go run ... |
| 45 | + |
| 46 | +6) Results |
| 47 | + |
| 48 | +Some graphs |