Corosync is a cluster group communication system with APIs for replicated state machines, process recovery, configuration data, and quorum notifications. Projects such as Pacemaker and Asterisk use it for high availability.
Overview
The Corosync Cluster Engine is a group communication system aimed at high availability within clustered applications. It exposes C APIs for building fault-tolerant software that must coordinate across multiple nodes.
Four API areas are highlighted on the project site. A closed process group model provides extended virtual synchrony for replicated state machines. A simple availability manager can restart an application process after failure. An in-memory configuration and statistics database supports set, get, and change notifications. A quorum subsystem tells applications when quorum is gained or lost.
Internal synchronization algorithms coordinate service state when network partitions occur or merge, including checkpoint handling and reference counting across cluster members. Corosync is positioned as a framework layer underneath cluster resource managers and telephony stacks rather than an end-user application by itself.
Release artifacts are published through GitHub releases, and the project maintains automated build and test infrastructure plus a wiki for support information.
Key features
- Closed process group messaging
- Virtual synchrony for state machines
- Application process restart manager
- In-memory cluster configuration database
- Quorum gain and loss notifications
- Partition and merge synchronization
- Checkpoint reference counting
- C language application APIs
Use cases
- Pacemaker high-availability clusters
- Replicated clustered services
- Quorum-aware failover logic
- Cluster-wide configuration sharing
- Telephony stacks needing cluster sync