fields | string Retrieve only requested fields from the resource See section fields |
site | string Send the request to the specfifed site |
OK
Bad Request
Unauthorized
Forbidden
Not Found
Service Unavailable (strongbox sealed)
site-name: gothenburg-bergakungen versions: 22.10.3-911e04be: 3
Put the specified host into drain mode. While in drain mode, service instances scheduled to this host will be stopped or rescheduled to other hosts, and no new service instances will be scheduled to this host.
Putting a host in drain mode can be useful in order to e.g., upgrade the operating system or hardware, or do host replacement, with minimal impact on running applications.
When this operation returns successfully, the host is in
drain mode. If the result
parameter is drained
, no
services are running on the host.
Drain mode is an ephemeral state, which means that if supd
is restarted, the host is no longer in drain mode. In
order to ensure that the host will not run any service
instances even after a restart, configure the host's
maintenance-mode
to blocked
.
OK
Bad Request
Unauthorized
Forbidden
Not Found
Service Unavailable (strongbox sealed)
hostname: h02 no-reschedule: true timeout: 30s
result: drained
Optimize how service instances are distributed among hosts on this site. The algorithm attempts to be somewhat conservative, to mainly move service instances when it is a good need for it. However, since normal scheduling rules and filters apply to the rescheduling algorithm, the number of service instances per host is a factor.
OK
Bad Request
Unauthorized
Forbidden
Not Found
Service Unavailable (strongbox sealed)
rescheduled-service-instances: - name: telco.alpine.my-srv-1 from-host: h01 to-host: h02 - name: telco.alpine.my-srv-2 from-host: h02 to-host: h03 - name: telco.alpine.my-srv-3 from-host: h01 to-host: h04