Module constants

Module constants 

Source
Expand description

V2 WAL Recovery Constants

This module defines all constants used throughout the recovery system, including performance targets, validation thresholds, and configuration limits.

Modules§

format
Recovery file format constants
monitoring
Recovery monitoring constants
performance
Recovery performance constants
scanning
WAL scanning constants
state_machine
Recovery state machine constants
strategies
Recovery strategy constants
transaction
Transaction validation constants
v2
V2-specific recovery constants
validation
Recovery validation constants

Constants§

DEFAULT_BATCH_SIZE
Default batch size for transaction replay
DEFAULT_RECOVERY_TIMEOUT_SECONDS
Recovery timeout in seconds
EMERGENCY_RECOVERY_TIMEOUT_SECONDS
Emergency recovery timeout in seconds
FAST_RECOVERY_TIMEOUT_SECONDS
Fast recovery timeout in seconds
MAX_INCOMPLETE_TRANSACTIONS
Maximum allowed incomplete transactions in WAL
MAX_RECOVERY_ATTEMPTS
Maximum number of recovery attempts before giving up
MAX_RECOVERY_SIZE
Maximum recovery file size (bytes) - 500MB
MAX_RETRY_DELAY_SECONDS
Maximum delay between recovery attempts (seconds)
MAX_WAL_SIZE_FOR_AUTO_RECOVERY
Maximum WAL file size for automatic recovery (bytes)
MIN_RECOVERY_SIZE
Minimum recovery file size (bytes)
MIN_RETRY_DELAY_SECONDS
Minimum delay between recovery attempts (seconds)
RECOVERY_COMPLETION_MAGIC
Completion record marker for recovery operations
RECOVERY_MAGIC
Recovery file magic number for integrity validation
RECOVERY_PROGRESS_INTERVAL
Progress reporting interval during recovery (transactions)
RECOVERY_PROGRESS_MAGIC
Progress record marker for recovery operations
RECOVERY_RETRY_BACKOFF_MULTIPLIER
Recovery retry backoff multiplier
RECOVERY_VERSION
Recovery file version