RAM icon

RAM Architecture

Resilient Adaptive Manager system design

Learn about RAM's distributed architecture, components, and how they work together to provide high availability.

Architecture Features

High Availability

Automatic failover with sub-second detection and recovery.

Real-time Monitoring

Comprehensive metrics and health monitoring for all cluster components.

Enterprise Security

Token-based authentication, SSL/TLS encryption, and rate limiting.

Cloud Native

Docker, Kubernetes, and Helm chart support for modern deployments.

System Components

RAM Controller (ramctrl)

Central management daemon that orchestrates cluster operations and monitors node health.

Key Features

Cluster management
Health monitoring
Failover coordination
Configuration management

RAM Daemon (ramd)

Node-specific daemon that manages local PostgreSQL instances and reports status.

Key Features

PostgreSQL management
Status reporting
Local operations
Health checks

Network Layer

High-performance networking for inter-node communication and data replication.

Key Features

Inter-node communication
Data replication
Heartbeat monitoring
Load balancing

Consensus Engine

Raft-based consensus protocol ensuring cluster consistency and leader election.

Key Features

Leader election
Log replication
Split-brain prevention
Consistency guarantees

Cluster Architecture

RAM implements a distributed architecture with multiple nodes working together to provide high availability and automatic failover.

Primary Node

Active PostgreSQL instance handling read/write operations

Standby Nodes

Replica instances ready for failover and read scaling

Consensus Layer

Raft protocol ensuring consistency and coordination