-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.example.yaml
More file actions
45 lines (40 loc) · 2.22 KB
/
config.example.yaml
File metadata and controls
45 lines (40 loc) · 2.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Core database engine configuration
engine:
type: "in_memory" # Storage engine type (in_memory/on_disk)
# Network communication settings
network:
address: "127.0.0.1:3223" # Client-facing API endpoint
max_connections: 100 # Maximum concurrent client connections
max_message_size: "4KB" # Max allowed size per client message
idle_timeout: "5m" # Connection timeout for idle clients
# Logging configuration
logging:
level: "info" # Log level (debug|info|warn|error)
output: "stdout" # Output destination (stdout|file_path)
format: "text" # Log format (text|json)
# Write-Ahead Log (WAL) configuration
wal:
enabled: true # Enable WAL for data durability
flushing_batch_size: 100 # Number of operations per flush
flushing_batch_timeout: "10ms" # Max time between flushes
max_segment_size: "10MB" # Maximum size of WAL segment files
data_directory: "./data/wal" # Directory for WAL storage
# Replication settings (choose either master or replica configuration)
replication:
# -------------------------------------------------------------------
# Master node configuration (uncomment to use)
# -------------------------------------------------------------------
# replica_type: "master" # Node replication role
# master_host: "127.0.0.1" # Master node API host
# replication_port: "3233" # Port for replica connections
# replication_timeout: "30s" # Replica connection timeout
# -------------------------------------------------------------------
# Replica node configuration (uncomment to use)
# -------------------------------------------------------------------
# replica_type: "replica" # Node replication role
# master_host: "127.0.0.1" # Master node API host
# replication_port: "3233" # Master's replication port
# sync_interval: "1s" # Replication sync interval
# sync_retry_delay: "500ms" # Delay between sync retries
# sync_retry_count: 3 # Number of sync retries
# read_timeout: "10s" # Read timeout for replica connections