Component that configures and manages the gRPC server.
Static options of ugrpc::server::ServerComponent :
| Name | Description | Default value |
| port | The port to use for all gRPC services, or 0 to pick any available. | – |
| unix-socket-path | Unix socket absolute path. | – |
| completion-queue-count | Completion queue count to create. Should be ~2 times less than worker threads for best RPS. | 2 |
| channel-args.* | A map of channel arguments, see gRPC Core docs. Each of the elements: value of channel argument, must be string or integer. | {} |
| native-log-level | Min log level for the native gRPC library. Possible values: trace, debug, info, warning, error, critical, none. | error |
| enable-channelz | Enable channelz. | false |
| tls | TLS settings. | – |
| tls.ca | Path to TLS client CA certificate. | – |
| tls.key | Path to TLS certificate key. | – |
| tls.cert | Path to TLS certificate. | – |
| service-defaults | Omitted options for service components will default to the corresponding option from here. | – |
| service-defaults.task-processor | The task processor to use for responses. | – |
Options inherited from components::ComponentBase :
| Name | Description | Default value |
| load-enabled | Set to false to disable loading of the component. | true |
The component name for static config is "grpc-server".
- See also
- https://grpc.github.io/grpc/core/group__grpc__arg__keys.html
Definition at line 31 of file server_component.hpp.