You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add health checks for liveness and readiness (#71)
This adds HTTP-based health checks at `/liveness` and `/readiness`.
It also adds new CLI flags:
* `--health-check` which toggles the HTTP health checks (off by default)
* `--readiness-timeout` controls how long an outage needs to be before considering the proxy not ready
This also moves most of the "command" code into a new file `run.go` so that the CLI is testable.
Also, we're now correctly handling signals.
Bundlestring`help:"Path to secure connect bundle" short:"b" env:"BUNDLE"`
36
-
Usernamestring`help:"Username to use for authentication" short:"u" env:"USERNAME"`
37
-
Passwordstring`help:"Password to use for authentication" short:"p" env:"PASSWORD"`
38
-
ContactPoints []string`help:"Contact points for cluster. Ignored if using the bundle path option." short:"c" env:"CONTACT_POINTS"`
39
-
ProtocolVersionstring`help:"Initial protocol version to use when connecting to the backend cluster (default: v4, options: v3, v4, v5, DSEv1, DSEv2)" short:"n" env:"PROTOCOL_VERSION"`
40
-
MaxProtocolVersionstring`help:"Max protocol version supported by the backend cluster (default: v4, options: v3, v4, v5, DSEv1, DSEv2)" short:"m" env:"MAX_PROTOCOL_VERSION"`
41
-
Bindstring`help:"Address to use to bind serve" short:"a" env:"BIND"`
HeartbeatInterval time.Duration`help:"Interval between performing heartbeats to the cluster" default:"30s" env:"HEARTBEAT_INTERVAL"`
45
-
IdleTimeout time.Duration`help:"Time between successful heartbeats before a connection to the cluster is considered unresponsive and closed" default:"60s" env:"IDLE_TIMEOUT"`
0 commit comments