forked from trpc-group/trpc-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtrpc_cpp_fiber.yaml
More file actions
39 lines (37 loc) · 1.04 KB
/
Copy pathtrpc_cpp_fiber.yaml
File metadata and controls
39 lines (37 loc) · 1.04 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
global:
threadmodel:
fiber: # Use Fiber(m:n coroutine) threadmodel
- instance_name: fiber_instance # Need to be unique if you config mutiple fiber threadmodel instances
# Fiber worker thread num
# If not specified, will use number of cores on the machine.
# In a Numa architecture, the workers will be automatically grouped (8-15 cores per group),
# while in Uma architecture, they will not be grouped.
concurrency_hint: 8
server:
app: test
server: forword
admin_port: 8889
admin_ip: 0.0.0.0
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
sinks:
local_file:
filename: forward_server.log