-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.conf.example
67 lines (67 loc) · 1.73 KB
/
config.conf.example
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
<tars>
<application>
enableset=n
setdivision=NULL
<server>
# enable_php_server=1
# node=tars.tarsnode.ServerObj@tcp -h 127.0.0.1 -p 19386 -t 60000
deactivating-timeout=3000
app=PHPDemo
server=PHPTcpServer
localip=127.0.0.1
local=tcp -h 127.0.0.1 -p 18081 -t 3000
basepath=.
datapath=./runtime/
logpath=./runtime/
loglevel=DEBUG
logsize=15M
log=tars.tarslog.LogObj
config=tars.tarsconfig.ConfigObj
notify=tars.tarsnotify.NotifyObj
logLevel=DEBUG
php=/usr/bin/php
buffer_output_size=12582912
open_tcp_nodelay=1
open_eof_check=0
open_eof_split=0
task_worker_num=1
dispatch_mode=2
daemonize=0
<PHPDemo.PHPTcpServer.EventBusObjAdapter>
allow
endpoint=tcp -h 127.0.0.1 -p 18081 -t 60000
handlegroup=PHPDemo.PHPTcpServer.EventBusObjAdapter
maxconns=200000
protocol=tars
queuecap=10000
queuetimeout=60000
servant=PHPDemo.PHPTcpServer.EventBusObj
threads=5
</PHPDemo.PHPTcpServer.EventBusObjAdapter>
<PHPDemo.PHPTcpServer.JobStatObjAdapter>
allow
endpoint=tcp -h 127.0.0.1 -p 18081 -t 60000
handlegroup=PHPDemo.PHPTcpServer.JobStatObjAdapter
maxconns=200000
protocol=tars
queuecap=10000
queuetimeout=60000
servant=PHPDemo.PHPTcpServer.JobStatObj
threads=5
</PHPDemo.PHPTcpServer.JobStatObjAdapter>
</server>
<client>
asyncthread=3
locator=tars.tarsregistry.QueryObj@tcp -h 127.0.0.1 -p 17890
sync-invoke-timeout=20000
async-invoke-timeout=20000
refresh-endpoint-interval=60000
stat=tars.tarsstat.StatObj
property=tars.tarsproperty.PropertyObj
report-interval=60000
modulename=PHPDemo.PHPTcpServer
sample-rate=100000
max-sample-count=50
</client>
</application>
</tars>