mirror of
https://github.com/sablierapp/sablier.git
synced 2025-12-26 23:21:38 +01:00
Docker classic IsUp will return false when the container defines a healthcheck and is not healthy, otherwise as soon as it's started it's up. Docker swarm will check that the number of required tasks is higher than 1, and that the number of running tasks matches the number of desired tasks. A task is not running when it defines a healthcheck and is not healthy.
11 lines
182 B
Go
11 lines
182 B
Go
package scaler
|
|
|
|
var onereplicas = uint64(1)
|
|
var zeroreplicas = uint64(0)
|
|
|
|
type Scaler interface {
|
|
ScaleUp(name string) error
|
|
ScaleDown(name string) error
|
|
IsUp(name string) bool
|
|
}
|