New features of PGCluster - PostgreSQL wiki · [email protected] [email protected]....

9
New features of PGCluster Nov. 2009 Atsushi Mitani

Transcript of New features of PGCluster - PostgreSQL wiki · [email protected] [email protected]....

Page 1: New features of PGCluster - PostgreSQL wiki · mitani@sraw.co.jp pgcluster-general@pgfoundry.org. Title: スライド 1 Author: sra Created Date: 11/7/2009 8:09:47 AM ...

New features of PGCluster

Nov. 2009Atsushi Mitani

Page 2: New features of PGCluster - PostgreSQL wiki · mitani@sraw.co.jp pgcluster-general@pgfoundry.org. Title: スライド 1 Author: sra Created Date: 11/7/2009 8:09:47 AM ...

More Stable

Page 3: New features of PGCluster - PostgreSQL wiki · mitani@sraw.co.jp pgcluster-general@pgfoundry.org. Title: スライド 1 Author: sra Created Date: 11/7/2009 8:09:47 AM ...

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

Page 4: New features of PGCluster - PostgreSQL wiki · mitani@sraw.co.jp pgcluster-general@pgfoundry.org. Title: スライド 1 Author: sra Created Date: 11/7/2009 8:09:47 AM ...

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

Page 5: New features of PGCluster - PostgreSQL wiki · mitani@sraw.co.jp pgcluster-general@pgfoundry.org. Title: スライド 1 Author: sra Created Date: 11/7/2009 8:09:47 AM ...

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

Page 6: New features of PGCluster - PostgreSQL wiki · mitani@sraw.co.jp pgcluster-general@pgfoundry.org. Title: スライド 1 Author: sra Created Date: 11/7/2009 8:09:47 AM ...

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

Page 7: New features of PGCluster - PostgreSQL wiki · mitani@sraw.co.jp pgcluster-general@pgfoundry.org. Title: スライド 1 Author: sra Created Date: 11/7/2009 8:09:47 AM ...

PGDay.EU 2009 Copyright(c)2009 At.Mitani 7

Simple

Page 8: New features of PGCluster - PostgreSQL wiki · mitani@sraw.co.jp pgcluster-general@pgfoundry.org. Title: スライド 1 Author: sra Created Date: 11/7/2009 8:09:47 AM ...

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

Page 9: New features of PGCluster - PostgreSQL wiki · mitani@sraw.co.jp pgcluster-general@pgfoundry.org. Title: スライド 1 Author: sra Created Date: 11/7/2009 8:09:47 AM ...

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

[email protected]

[email protected]