OLicense High Availability & Disaster Recovery
This guide covers implementing high availability, redundancy, and disaster recovery for OLicense servers to ensure continuous access to enterprise software licenses. OLicense provides robust clustering capabilities, database replication, and geographic distribution features designed for enterprise environments.
Architecture Overview
OLicense high availability architecture ensures zero-downtime license access across distributed environments:
Database High Availability
PostgreSQL Cluster Configuration
OLicense relies on a robust database backend for license state management. Configure PostgreSQL with streaming replication:
# Primary PostgreSQL configuration
# /etc/postgresql/15/main/postgresql.conf
# Basic settings
listen_addresses = '*'
port = 5432
max_connections = 200
shared_buffers = 256MB
effective_cache_size = 1GB
# Write-ahead logging
wal_level = replica
max_wal_senders = 10
max_replication_slots = 10
wal_keep_size = 100MB
# Archiving
archive_mode = on
archive_command = 'rsync -a %p olicense-backup:/var/lib/postgresql/15/archive/%f'
# Replication
hot_standby = on
hot_standby_feedback = on
Standby Database Configuration
# Standby PostgreSQL configuration
# /etc/postgresql/15/main/postgresql.conf
# Standby-specific settings
hot_standby = on
hot_standby_feedback = on
primary_conninfo = 'host=olicense-db-primary port=5432 user=replicator'
primary_slot_name = 'standby_slot'
restore_command = 'cp /var/lib/postgresql/15/archive/%f %p'
recovery_target_timeline = 'latest'