From d1af2f85c06725fa495386c90256b23f04eafecb Mon Sep 17 00:00:00 2001 From: jakub-bochenski Date: Mon, 9 Oct 2023 09:32:17 +0200 Subject: [PATCH 1/2] feat: Add parameter for key hashing algorithm (#110) --- components/tyk-gateway/templates/deployment-gw-repset.yaml | 2 +- components/tyk-gateway/values.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/components/tyk-gateway/templates/deployment-gw-repset.yaml b/components/tyk-gateway/templates/deployment-gw-repset.yaml index 1cdea685..3704fc3a 100644 --- a/components/tyk-gateway/templates/deployment-gw-repset.yaml +++ b/components/tyk-gateway/templates/deployment-gw-repset.yaml @@ -207,7 +207,7 @@ spec: - name: TYK_GW_HASHKEYS value: "true" - name: TYK_GW_HASHKEYFUNCTION - value: "murmur128" + value: "{{ .Values.gateway.hashKeyFunction }}" - name: TYK_GW_HTTPSERVEROPTIONS_ENABLEWEBSOCKETS value: "true" - name: TYK_GW_HTTPSERVEROPTIONS_MINVERSION diff --git a/components/tyk-gateway/values.yaml b/components/tyk-gateway/values.yaml index 4adbeb06..d9040d35 100644 --- a/components/tyk-gateway/values.yaml +++ b/components/tyk-gateway/values.yaml @@ -207,6 +207,8 @@ gateway: # - chart-example.local tls: [] + hashKeyFunction: murmur128 + # Sharding gateway allows you to selectively load APIs to specific gateways. # If enabled make sure you have at least one gateway that is not sharded. # Also be sure to match API segmentation tags with the tags selected below. From ac53055aa0ce6bfc675bcf0d7a80c6f5c00e5f24 Mon Sep 17 00:00:00 2001 From: jakub-bochenski Date: Mon, 9 Oct 2023 10:02:11 +0200 Subject: [PATCH 2/2] refactor: Remove TYK_GW_OPTIMISATIONSUSEASYNCSESSIONWRITE setting (#119) I believe this is obsolete, see https://github.com/TykTechnologies/tyk-docs/issues/3279 Co-authored-by: Pranshu <104971506+singhpr@users.noreply.github.com> --- components/tyk-gateway/templates/deployment-gw-repset.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/components/tyk-gateway/templates/deployment-gw-repset.yaml b/components/tyk-gateway/templates/deployment-gw-repset.yaml index 3704fc3a..5095810a 100644 --- a/components/tyk-gateway/templates/deployment-gw-repset.yaml +++ b/components/tyk-gateway/templates/deployment-gw-repset.yaml @@ -143,8 +143,6 @@ spec: value: "/mnt/tyk-gateway/policies" - name: TYK_GW_STORAGE_MAXIDLE value: "1000" - - name: TYK_GW_OPTIMISATIONSUSEASYNCSESSIONWRITE - value: "true" - name: TYK_GW_ENABLENONTRANSACTIONALRATELIMITER value: "true" - name: TYK_GW_POLICIES_POLICYSOURCE