From 72600e4f0f4bfca2613e33debf2c34ee0cdc85a9 Mon Sep 17 00:00:00 2001 From: Conrad Ludgate Date: Fri, 10 May 2024 10:38:42 +0100 Subject: [PATCH] add connect-compute-lock arg --- charts/neon-proxy/Chart.yaml | 2 +- charts/neon-proxy/README.md | 6 +++--- charts/neon-proxy/templates/deployment.yaml | 4 ++++ charts/neon-proxy/values.yaml | 4 +++- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/charts/neon-proxy/Chart.yaml b/charts/neon-proxy/Chart.yaml index e483440..e20464a 100644 --- a/charts/neon-proxy/Chart.yaml +++ b/charts/neon-proxy/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: neon-proxy description: Neon Proxy type: application -version: 1.7.23 +version: 1.7.24 appVersion: "0.1.0" kubeVersion: "^1.18.x-x" home: https://neon.tech diff --git a/charts/neon-proxy/README.md b/charts/neon-proxy/README.md index b5458fc..4c56363 100644 --- a/charts/neon-proxy/README.md +++ b/charts/neon-proxy/README.md @@ -1,6 +1,6 @@ # neon-proxy -![Version: 1.7.23](https://img.shields.io/badge/Version-1.7.23-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) [![Lint and Test Charts](https://github.com/neondatabase/helm-charts/actions/workflows/lint-test.yaml/badge.svg)](https://github.com/neondatabase/helm-charts/actions/workflows/lint-test.yaml) +![Version: 1.7.24](https://img.shields.io/badge/Version-1.7.24-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) [![Lint and Test Charts](https://github.com/neondatabase/helm-charts/actions/workflows/lint-test.yaml/badge.svg)](https://github.com/neondatabase/helm-charts/actions/workflows/lint-test.yaml) Neon Proxy @@ -70,12 +70,12 @@ Kubernetes: `^1.18.x-x` | settings.awsAccessKeyId | string | `""` | (string) AWS Access Key ID | | settings.awsRegion | string | `""` | (string) Aws region to retrieve credentials | | settings.awsSecretAccessKey | string | `""` | (string) AWS Secret Access Key | +| settings.connectComputeLock | string | `""` | (string) Configures the locking of connect_compute per compute | | settings.controlplane_token | string | `""` | (string) JWT token to pass to control plane management API | | settings.disableDynamicRateLimiter | bool | `true` | (bool) Disable dynamic rate limiter | | settings.domain | string | `""` | domain used in TLS cert for client postgres connections | | settings.endpointCacheConfig | string | `""` | (string) Config for cache for all valid endpoints | -| settings.endpointRpsLimits[0] | string | `"300@1s"` | | -| settings.endpointRpsLimits[1] | string | `"250@10m"` | | +| settings.endpointRpsLimits | list | `["300@1s","250@10m"]` | (list) list of rate limiters for wake_compute over different time intervals | | settings.extraDomains | list | `[]` | domains used in extra TLS certs for client postgres connections | | settings.httpPoolOptIn | bool | `true` | (bool) Sets the SQL over HTTP Pool to opt-in-only mode if true. Set false to enable it always | | settings.metricBackupCollectionChunkSize | string | `"4194304"` | (string) How large each chunk of the metric backup files should be in bytes | diff --git a/charts/neon-proxy/templates/deployment.yaml b/charts/neon-proxy/templates/deployment.yaml index 32b4ccb..bbb877b 100644 --- a/charts/neon-proxy/templates/deployment.yaml +++ b/charts/neon-proxy/templates/deployment.yaml @@ -145,6 +145,10 @@ spec: - --wake-compute-lock - {{ . }} {{- end }} + {{- with .Values.settings.connectComputeLock }} + - --connect-compute-lock + - {{ . }} + {{- end }} {{- with .Values.settings.redisNotifications}} - --redis-notifications - {{ . }} diff --git a/charts/neon-proxy/values.yaml b/charts/neon-proxy/values.yaml index 7fe16b6..6136346 100644 --- a/charts/neon-proxy/values.yaml +++ b/charts/neon-proxy/values.yaml @@ -61,6 +61,8 @@ settings: controlplane_token: "" # settings.wakeComputeLock -- (string) Configures the locking of wake_compute per endpoint wakeComputeLock: "permits=0" + # settings.connectComputeLock -- (string) Configures the locking of connect_compute per compute + connectComputeLock: "" # settings.redisNotifications -- (url) Configures redis client redisNotifications: "" # settings.sqlOverHttpTimeout -- (string) timeout for http connection requests @@ -69,7 +71,7 @@ settings: httpPoolOptIn: true # settings.disableDynamicRateLimiter -- (bool) Disable dynamic rate limiter disableDynamicRateLimiter: true - # settings.endpointRpsLimit -- (list) list of rate limiters for wake_compute over different time intervals + # settings.endpointRpsLimits -- (list) list of rate limiters for wake_compute over different time intervals endpointRpsLimits: - 300@1s - 250@10m