New features of PGCluster - PostgreSQL wiki · [email protected] [email protected]....
Transcript of New features of PGCluster - PostgreSQL wiki · [email protected] [email protected]....
New features of PGCluster
Nov. 2009Atsushi Mitani
More Stable
PGDay.EU 2009 Copyright(c)2009 At.Mitani 3
PGCluster structureLoad balancer
Cluster DB
Replicator
Physical server
Server service
Life checking each other through the network
PGDay.EU 2009 Copyright(c)2009 At.Mitani 4
Server structure
Admin server
Prove serverClient tools
Prove server
Prove server
Load balancer
Cluster DB
Replicator
Physical server
Server service
Administration service (pgc_admin) and information probe service (pgc_probe) are added into the pgcluster services
PGDay.EU 2009 Copyright(c)2009 At.Mitani 5
Service component
Prove server Cluster DB
service status cluster status
Prove server Cluster DB
service status cluster status
Prove server Cluster DB 1
service status cluster status
Admin server
Prove server
Prove server
Load balancer
Replicator
service status pglb status
service status pgrp status
service status
PGDay.EU 2009 Copyright(c)2009 At.Mitani 6
Automatic recovery
Detect service fail down
Service status
Execute the servicerecovery start
pglb/pgrp/cluster status
admin probe
Service status changed pglb/pgrp/cluster
status
Service Fail downAsk service status
Notice the service status
Confirm the service status
Confirmed the service statusService died
Sync service status during all server
Service died
Request the service recovery
service status as response
Check recovery plan
PGDay.EU 2009 Copyright(c)2009 At.Mitani 7
Simple
PGDay.EU 2009 Copyright(c)2009 At.Mitani 8
Generated setup files
server.conf
pgc_admin.conf
pgc_probe.conf pglb.conf
pgreplicate.conf
cluster.conf
postgresql.conf
pg_hba.conf
server.pem
client.pem
root.pem
$ pgc_admin_init $ pgc_admin_init install
rootcert.pem
Only one file should be described
PGDay.EU 2009 Copyright(c)2009 At.Mitani 9
Thank you
You can download from pgFoundryhttp://pgfoundry.org/projects/pgcluster/
Please send e-mail when you have any question