Version 0.900 Mar. 25
th
, 2010
Contents
1 What Is Postgres-XC? 6
2 Postgres-XC’s Goal 6
3 How To Scale Out Both Reads And Writes? 8
3.1 Parallelism In Postgres-XC . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
3.2 Postgres-XC’s Global Transaction Management . . . . . . . . . . . . . . . . 10
4 Postgres-XC Key Components 10
4.1 GTM (Global Transaction Manager) . . . . . . . . . . . . . . . . . . . . . . 10
4.1.1 How PostgreSQL Manages Transactions . . . . . . . . . . . . . . . . 10
4.1.2 Making Transaction Management Global . . . . . . . . . . . . . . . 12
4.2 Coordinator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
4.3 Data Node . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
4.4 Interaction Between Key Components . . . . . . . . . . . . . . . . . . . . . 16
5 Isn’t GTM A Performance Bottleneck? 16
5.1 Primitive GTM Implementation . . . . . . . . . . . . . . . . . . . . . . . . 18
5.2 GTM Proxy Implementation . . . . . . . . . . . . . . . . . . . . . . . . . . 19
5.3 Coordinator And Data Node Connection . . . . . . . . . . . . . . . . . . . . 21
6 Performance And Stability 21
6.1 DBT-1-Based Benchmark . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
6.2 Test Environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
7 Test Result 24
7.1 Throughput And Scalability . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
7.2 CPU Usage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
7.3 Network Workload . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Page 3
评论0