forked from happyfish100/libserverframe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample.conf
81 lines (61 loc) · 1.59 KB
/
sample.conf
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
73
74
75
76
77
78
79
80
# connect timeout in seconds
# default value is 10s
connect_timeout = 2
# network timeout in seconds
# default value is 30s
network_timeout = 60
# the base path to store data and log files
base_path = /tmp
# bind an address of this host for inner port
# empty for bind all addresses of this host
inner_bind_addr =
# bind an address of this host for outer port
# empty for bind all addresses of this host
outer_bind_addr =
# the internal server port
inner_port = 5607
# the outer server port
outer_port = 5608
# max concurrent connections this server supported
# default value is 256
max_connections = 1024
# accept thread count
# default value is 1
accept_threads = 1
# work thread count
# default value is 4
work_threads = 16
min_buff_size = 4KB
max_buff_size = 64KB
# max pkg size
# default value is 16K
max_pkg_size = 64KB
# thread stack size, should >= 64KB
# default value is 64KB
thread_stack_size = 256KB
#standard log level as syslog, case insensitive, value list:
### emerg for emergency
### alert
### crit for critical
### error
### warn for warning
### notice
### info
### debug
log_level=info
#unix group name to run this program,
#not set (empty) means run by the group of current user
run_by_group =
#unix username to run this program,
#not set (empty) means run by current user
run_by_user =
# sync log buff to disk every interval seconds
# default value is 10 seconds
sync_log_buff_interval = 10
# if rotate the error log every day
# default value is false
rotate_error_log = true
# keep days of the log files
# 0 means do not delete old log files
# default value is 0
log_file_keep_days = 7