-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcluster-config-example.yaml
More file actions
33 lines (28 loc) · 1022 Bytes
/
cluster-config-example.yaml
File metadata and controls
33 lines (28 loc) · 1022 Bytes
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
# NetLoader-X Cluster Configuration Example
load_balancer:
# Routing algorithm: round-robin, least-connections, random, weighted-round-robin, ip-hash
algorithm: round-robin
# Backend servers configuration
backends:
# Primary web server 1
- name: web-server-1
workers: 50 # Virtual worker threads
max_queue: 100 # Request queue size
base_latency: 0.05 # Base processing latency (seconds)
max_latency: 2.0 # Max latency under stress
# Primary web server 2
- name: web-server-2
workers: 50
max_queue: 100
base_latency: 0.05
max_latency: 2.0
# Smaller backup/cache server
- name: cache-server
workers: 30
max_queue: 80
base_latency: 0.03
max_latency: 1.5
# Database/Cache layer configuration
database:
connection_pool: 20 # Number of database connections in pool
cache_enabled: true # Enable caching simulation (70% hit rate)