Skip to content

Commit 72c20f4

Browse files
authored
feat: raise shared memory defaults on the 3.9.x chart line (#311)
1 parent 5bd7705 commit 72c20f4

3 files changed

Lines changed: 15 additions & 13 deletions

File tree

charts/gateway/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ type: application
1616
# Versions are expected to follow Semantic Versioning (https://semver.org/)
1717
# major.minor mirrors the API7 EE release line (3.9.x), patch is this chart's
1818
# own counter on that line and is decoupled from the app patch (see appVersion).
19-
version: 3.9.2
19+
version: 3.9.3
2020

2121
# This is the version number of the application being deployed. This version number should be
2222
# incremented each time you make changes to the application. Versions are not expected to

charts/gateway/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ The command removes all the Kubernetes components associated with the chart and
5656
| api7ee.status_endpoint.ip | string | `"0.0.0.0"` | The IP address and port on which the status endpoint will listen. |
5757
| api7ee.status_endpoint.port | int | `7085` | The port on which the status endpoint will listen. |
5858
| apisix.affinity | object | `{}` | Set affinity for API7 Gateway deploy |
59-
| apisix.customLuaSharedDicts | list | `[]` | Add custom [lua_shared_dict](https://github.com/openresty/lua-nginx-module#toc88) settings, click [here](https://github.com/apache/apisix-helm-chart/blob/master/charts/apisix/values.yaml#L27-L30) to learn the format of a shared dict |
59+
| apisix.customLuaSharedDicts | list | `[{"name":"kubernetes","size":"64m"},{"name":"nacos","size":"64m"},{"name":"consul","size":"64m"}]` | Add custom [lua_shared_dict](https://github.com/openresty/lua-nginx-module#toc88) settings, click [here](https://github.com/apache/apisix-helm-chart/blob/master/charts/apisix/values.yaml#L27-L30) to learn the format of a shared dict |
6060
| apisix.customizedConfig | object | `{}` | If apisix.enableCustomizedConfig is true, full customized config.yaml. Please note that other settings about APISIX config will be ignored |
6161
| apisix.deleteURITailSlash | bool | `false` | Delete the '/' at the end of the URI |
6262
| apisix.dnsConfig | object | `{}` | Custom DNS settings for the APISIX pods |
@@ -71,6 +71,7 @@ The command removes all the Kubernetes components associated with the chart and
7171
| apisix.extraLuaPath | string | `""` | |
7272
| apisix.hostNetwork | bool | `false` | |
7373
| apisix.http.luaSharedDict.access-tokens | string | `"1m"` | |
74+
| apisix.http.luaSharedDict.api-calls-for-portal | string | `"64m"` | |
7475
| apisix.http.luaSharedDict.balancer-ewma | string | `"10m"` | |
7576
| apisix.http.luaSharedDict.balancer-ewma-last-touched-at | string | `"10m"` | |
7677
| apisix.http.luaSharedDict.balancer-ewma-locks | string | `"10m"` | |
@@ -92,7 +93,7 @@ The command removes all the Kubernetes components associated with the chart and
9293
| apisix.http.luaSharedDict.plugin-limit-req | string | `"10m"` | |
9394
| apisix.http.luaSharedDict.status_report | string | `"1m"` | |
9495
| apisix.http.luaSharedDict.tars | string | `"1m"` | |
95-
| apisix.http.luaSharedDict.tracing_buffer | string | `"10m"` | |
96+
| apisix.http.luaSharedDict.tracing_buffer | string | `"32m"` | |
9697
| apisix.http.luaSharedDict.upstream-healthcheck | string | `"10m"` | |
9798
| apisix.http.luaSharedDict.worker-events | string | `"10m"` | |
9899
| apisix.httpRouter | string | `"radixtree_host_uri"` | Defines how apisix handles routing: - radixtree_uri: match route by uri(base on radixtree) - radixtree_host_uri: match route by host + uri(base on radixtree) - radixtree_uri_with_parameter: match route by uri with parameters |
@@ -103,7 +104,7 @@ The command removes all the Kubernetes components associated with the chart and
103104
| apisix.lru | object | `{"secret":{"count":512,"neg_count":512,"neg_ttl":60,"ttl":300}}` | fine tune the parameters of LRU cache for some features like secret |
104105
| apisix.lru.secret.neg_ttl | int | `60` | in seconds |
105106
| apisix.lru.secret.ttl | int | `300` | in seconds |
106-
| apisix.meta.luaSharedDict.prometheus-metrics | string | `"15m"` | |
107+
| apisix.meta.luaSharedDict.prometheus-metrics | string | `"256m"` | |
107108
| apisix.nodeSelector | object | `{}` | Node labels for API7 Gateway pod assignment |
108109
| apisix.normalizeURILikeServlet | bool | `false` | The URI normalization in servlet is a little different from the RFC's. See https://github.com/jakartaee/servlet/blob/master/spec/src/main/asciidoc/servlet-spec-body.adoc#352-uri-path-canonicalization, which is used under Tomcat. Turn this option on if you want to be compatible with servlet when matching URI path. |
109110
| apisix.podAnnotations | object | `{}` | Annotations to add to each pod |

charts/gateway/values.yaml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ apisix:
3636

3737
meta:
3838
luaSharedDict:
39-
prometheus-metrics: 15m
39+
prometheus-metrics: 256m
4040

4141
stream:
4242
luaSharedDict:
@@ -64,7 +64,7 @@ apisix:
6464
plugin-limit-count-redis-cluster-slot-lock: 1m
6565
plugin-limit-count-advanced: 10m
6666
plugin-limit-count-advanced-redis-cluster-slot-lock: 1m
67-
tracing_buffer: 10m
67+
tracing_buffer: 32m
6868
plugin-api-breaker: 10m
6969
etcd-cluster-health-check: 10m
7070
discovery: 1m
@@ -74,6 +74,7 @@ apisix:
7474
tars: 1m
7575
cas-auth: 10m
7676
status_report: 1m
77+
api-calls-for-portal: 64m
7778

7879
# -- fine tune the parameters of LRU cache for some features like secret
7980
lru:
@@ -91,15 +92,15 @@ apisix:
9192

9293
# -- Add custom [lua_shared_dict](https://github.com/openresty/lua-nginx-module#toc88) settings,
9394
# click [here](https://github.com/apache/apisix-helm-chart/blob/master/charts/apisix/values.yaml#L27-L30) to learn the format of a shared dict
94-
customLuaSharedDicts: []
95-
# - name: kubernetes
96-
# size: 20m
97-
# - name: nacos
98-
# size: 20m
95+
customLuaSharedDicts:
96+
- name: kubernetes
97+
size: 64m
98+
- name: nacos
99+
size: 64m
100+
- name: consul
101+
size: 64m
99102
# - name: foo
100103
# size: 10k
101-
# - name: bar
102-
# size: 1m
103104

104105
extraLuaPath: ""
105106
extraLuaCPath: ""

0 commit comments

Comments
 (0)