-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.yaml
More file actions
72 lines (66 loc) · 1.34 KB
/
config.yaml
File metadata and controls
72 lines (66 loc) · 1.34 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
server:
host: 0.0.0.0
port: 8081
read_timeout: 30s
write_timeout: 30s
idle_timeout: 120s
shutdown_timeout: 30s
max_request_size: 8388608 # 8MB
enable_websocket: true
tls:
enabled: false
cert_file: ""
key_file: ""
ca_file: ""
storage:
type: redis # memory, redis, postgres
max_message_size: 1048576 # 1MB
max_queue_size: 10000
retention_time: 24h
cleanup_interval: 1h
redis:
addresses:
- localhost:6379
password: ""
db: 0
max_retries: 3
pool_size: 100
min_idle_conns: 10
dial_timeout: 5s
read_timeout: 3s
write_timeout: 3s
pool_timeout: 4s
idle_timeout: 5m
idle_check_frequency: 1m
enable_cluster: false
broker:
default_partitions: 4
default_replication: 1
max_message_batch_size: 1000
batch_flush_interval: 100ms
compression_type: snappy # none, snappy, gzip, lz4
compression_level: 6
enable_deduplication: true
deduplication_window: 5m
default_ack_deadline: 30s
max_retries: 3
retry_backoff: 1s
enable_dlq: true
dlq_prefix: "dlq-"
metrics:
enabled: true
port: 9092
path: /metrics
collect_interval: 10s
namespace: pubsubgo
tracing:
enabled: true
service_name: pubsubgo
otlp_endpoint: http://localhost:4318/v1/traces
sampling_rate: 0.1
rate_limit:
enabled: true
requests_per_second: 10000
burst_size: 1000
per_topic: true
per_consumer: false