MasahikoSawada / pg_keeper

Simplified clustering module for PostgreSQL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Corosync as clustering layer?

ioguix opened this issue · comments

Hi,

Did you ever consider corosync as your underlying cluster layer?

Corosync can manage the cluster group, inform all the members when one of them join/leave, carry messages between your nodes, etc.

I did a bgworker PoC 2 years ago, it was really easy to implement a "hello world" bgworker using corosync's libs (and manpages ;)). My bgworker were just sending hellos to other members that were logging it to their log file. If one of them left, all other were logging if it leaved cleanly (graceful shutdown) or not (crashed) thanks to corosync.

Unfortunately, I fail to find my sources right now :/ But last time I was working on it, I was playing with the quorum ability of corosync :)

I don't have time to dig further this way (I already maintain the PAF project), but if you are interested to work on such a project instead of relaying on the pgsql proto, the TCP/IP stack (corosync uses udp), I'm open to discuss it with you.

If you are not interested, well, just close this issue :)

Good luck with your project !

Cheers,