|
1 | 1 | # AimRT core configuration |
2 | 2 | aimrt: |
3 | | - log: # log configuration |
4 | | - core_lvl: INFO # core log level, options: Trace/Debug/Info/Warn/Error/Fatal/Off, case-insensitive |
5 | | - default_module_lvl: INFO # module default log level |
6 | | - backends: # log backends |
7 | | - - type: console # print to console |
8 | | - options: |
9 | | - color: true # colored print |
10 | | - - type: rotate_file # print to file and rotate |
11 | | - options: |
12 | | - path: ./log # log file path |
13 | | - filename: my_pb_rpc.log # log file name |
14 | | - max_file_size_m: 4 # log file max size, unit: MB |
15 | | - max_file_num: 10 # max log file num, 0 means unlimited |
16 | | - executor: # executor configuration |
17 | | - executors: # you want to create executors here |
18 | | - - name: work_thread_pool # name |
| 3 | + log: |
| 4 | + backends: |
| 5 | + - type: console |
| 6 | + executor: |
| 7 | + executors: |
| 8 | + - name: client_thread_pool |
19 | 9 | type: asio_thread |
20 | | - options: |
21 | | - thread_num: 2 # thread num |
22 | | - - name: timeout_handle # name |
23 | | - type: time_wheel |
24 | | - options: |
25 | | - bind_executor: work_thread_pool |
26 | | - rpc: # rpc configuration |
27 | | - backends: # rpc backends |
28 | | - - type: local # use local backend |
29 | | - options: |
30 | | - timeout_executor: timeout_handle # set timeout executor |
31 | | - clients_options: # client endpoint options |
32 | | - - func_name: "(.*)" # select some function (support regex) |
| 10 | + - name: server_thread_pool |
| 11 | + type: asio_thread |
| 12 | + rpc: |
| 13 | + backends: |
| 14 | + - type: local |
| 15 | + clients_options: |
| 16 | + - func_name: "(.*)" |
33 | 17 | enable_backends: [local] |
34 | | - servers_options: # server endpoint options |
35 | | - - func_name: "(.*)" # select some function (support regex) |
| 18 | + servers_options: |
| 19 | + - func_name: "(.*)" |
36 | 20 | enable_backends: [local] |
37 | 21 |
|
| 22 | + module: |
| 23 | + pkgs: |
| 24 | + - path: ./libmy_pb_rpc_pkg.so |
| 25 | + enable_modules: [NormalRpcClientModule, NormalRpcServerModule] |
38 | 26 | # Custom module configuration |
39 | | -# the framework will generate a temporary configuration file for each module, |
40 | | -# and the developer can get the configuration file path through the Configurator interface. |
41 | 27 | NormalRpcClientModule: |
42 | 28 | rpc_frq: 1 |
43 | 29 |
|
|
0 commit comments