grpc_child
drunc.controller.children_interface.grpc_child
Classes
gRPCChildNode(name, configuration, uri, connectivity_service, init_token=None)
Bases: ChildNode
Source code in drunc/controller/children_interface/grpc_child.py
Methods:
check_connection()
Probe child connectivity and retry once after reconnecting if needed.
Use the describe endpoint to check if the child is reachable. If not, the node attempts to resolve a fresh endpoint from the connectivity service, rebuild the gRPC channel, and retry the probe once.
Returns:
| Type | Description |
|---|---|
bool
|
True if the child is reachable either immediately or after a successful |
bool
|
reconnection attempt, otherwise False. |
Source code in drunc/controller/children_interface/grpc_child.py
handle_child_grpc_error(error)
Handle gRPC errors from sending commands to the child controller.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
error
|
RpcError
|
The gRPC error to handle. |
required |