forked from hardcore-os/plato
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plato.yaml
49 lines (49 loc) · 1.06 KB
/
plato.yaml
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
global:
env: debug
discovery:
endpoints:
- localhost:2379
timeout: 5
cache:
redis:
endpoints:
- 127.0.0.1:6379
ip_conf:
service_path: /plato/ip_dispatcher
prpc:
discov:
name: etcd
endpoints:
- localhost:2379
trace:
enable: true
url: http://127.0.0.1:14268/api/traces
service_name: plato
sampler: 1.0
gateway:
service_name: "plato.access.gateway"
service_addr: "127.0.0.1"
tcp_max_num: 70000
epoll_channel_num: 100
epoll_num: 4
epoll_wait_queue_size: 100
tcp_server_port: 8900
rpc_server_port: 8901
worker_pool_num: 1024
cmd_channel_num: 2048
weight: 100
state_server_endpoint: "127.0.0.1:8902"
state:
service_name: "plato.access.state"
service_addr: "127.0.0.1"
cmd_channel_num: 2048
server_port: 8902
weight: 100
conn_state_slot_range: "0,1024"
gateway_server_endpoint: "127.0.0.1:8901"
user_domain:
service_name: "plato.domain.user"
service_addr: "127.0.0.1"
service_port: 8903
weight: 100
db_dns: "user:password@tcp(127.0.0.1:3306)/database?charset=utf8mb4&parseTime=True&loc=Local"