Skip to content

Commit

Permalink
[#69] YW: set proxy endpoint timeout with values file
Browse files Browse the repository at this point in the history
Summary:
allow for specifying timeout

This will be needed to ensure platform isn't hit by an accidental DDOS by prometheus slamming the proxy endpoint for an unavailable node.

Test Plan: tested by using "helm template"

Reviewers: sanketh

Reviewed By: sanketh

Differential Revision: https://phabricator.dev.yugabyte.com/D11651
  • Loading branch information
daniel-yb committed Jul 1, 2021
1 parent 52ef9b2 commit d60be54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions stable/yugaware/templates/configs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ data:
swamper.targetPath = /opt/yugabyte/prometheus/targets
swamper.rulesPath = /opt/yugabyte/prometheus/rules
security.enable_auth_for_proxy_metrics = {{ .Values.yugaware.enableProxyMetricsAuth }}
proxy_endpoint_timeout = {{ .Values.yugaware.proxyEndpointTimeoutMs }}
multiTenant = {{ .Values.yugaware.multiTenant }}
releases.path = "/opt/yugabyte/releases"
docker.release = "/opt/yugabyte/release"
Expand Down
1 change: 1 addition & 0 deletions stable/yugaware/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ yugaware:
cpu: 2
memory: 4Gi
enableProxyMetricsAuth: true
proxyEndpointTimeoutMs: 1 minute
# enables features specific for cloud deployments
cloud:
enabled: false
Expand Down

0 comments on commit d60be54

Please sign in to comment.