forked from trpc-group/trpc-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtrpc_cpp.yaml
More file actions
42 lines (39 loc) · 1.19 KB
/
Copy pathtrpc_cpp.yaml
File metadata and controls
42 lines (39 loc) · 1.19 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
global:
threadmodel:
default: # Use Fiber(m:n coroutine) threadmodel
- instance_name: default_instance # Need to be unique if you config mutiple default threadmodel instances
io_handle_type: separate # merge(io and handle thread are the same) or separate(io and handle thread are different)
io_thread_num: 2 # Num of network io thread, Must be greater than or equal to 1
handle_thread_num: 6 # Business logic hanlde thread num
server:
app: test
server: forword
admin_port: 8889
admin_ip: 0.0.0.0
enable_server_stats: true
service:
- name: trpc.test.forword.Forward
protocol: trpc
network: tcp
ip: 0.0.0.0
port: 12346
client:
service:
- name: trpc.test.helloworld.Greeter
target: 0.0.0.0:12345
protocol: trpc
timeout: 1000
network: tcp
conn_type: long
is_conn_complex: true
selector_name: direct
plugins:
log:
default:
- name: default
min_level: 2 # 0-trace, 1-debug, 2-info, 3-warn, 4-error, 5-critical
sinks:
local_file:
filename: forward_server.log
custom:
value: 10