class documentation
class NodeServiceClient(client.Client): (source)
Constructor: NodeServiceClient(channel)
Undocumented
Method | set |
SetUnhealthy marks the node underlying the Compute VM as unhealthy, which has the following effect: |
Constant | __PB2 |
Undocumented |
Class Variable | __service |
Undocumented |
Inherited from Client
:
Method | __init__ |
Undocumented |
Method | request |
Undocumented |
Class Variable | __service |
Undocumented |
Instance Variable | _channel |
Undocumented |
def set_unhealthy(self, request:
NodeSetUnhealthyRequest
, metadata: abc.Iterable[ builtins.tuple[ builtins.str, builtins.str]] | None
= None, timeout: builtins.float | None
= None, credentials: grpc.CallCredentials | None
= None, compression: grpc.Compression | None
= None, retries: builtins.int | None
= 3, per_retry_timeout: builtins.float | None
= None) -> request_1.Request[ NodeSetUnhealthyRequest, NodeSetUnhealthyResponse]
:
(source)
¶
SetUnhealthy marks the node underlying the Compute VM as unhealthy, which has the following effect: 1. Scheduler makes the best effort not to assign new VMs to the unhealthy node, but in case of no capacity, the VM can be assigned to an unhealthy node. 2. The existing VMs continue to work on the node, but after stop/start via Compute API they most probably will be assigned to a different node. To use this rpc one needs to obtain `compute.node.setUnhealthy` permission for the VM's parent container. The permission is granted to the TSA inside the VM.
Undocumented
Value |
|