Increase the memcached memory in production
The moma instance had around of 1G of memory allowed.
The 256m in the kubernetes environment are probably not enough
Related to swh/infra/sysadm-environment#5212 (closed)
(the -m option is already in MB (https://github.com/memcached/memcached/wiki/ConfiguringServer#commandline-arguments) so I also fixed the default value)
helm diff
[swh] Comparing changes between branches production and memcached_memory (per environment)...
Your branch is up to date with 'origin/production'.
[swh] Generate config in production branch for environment staging, namespace swh...
[swh] Generate config in production branch for environment staging, namespace swh-cassandra...
[swh] Generate config in production branch for environment staging, namespace swh-cassandra-next-version...
[swh] Generate config in memcached_memory branch for environment staging...
[swh] Generate config in memcached_memory branch for environment staging...
[swh] Generate config in memcached_memory branch for environment staging...
Your branch is up to date with 'origin/production'.
[swh] Generate config in production branch for environment production, namespace swh...
[swh] Generate config in production branch for environment production, namespace swh-cassandra...
[swh] Generate config in production branch for environment production, namespace swh-cassandra-next-version...
[swh] Generate config in memcached_memory branch for environment production...
[swh] Generate config in memcached_memory branch for environment production...
[swh] Generate config in memcached_memory branch for environment production...
------------- diff for environment staging namespace swh -------------
--- /tmp/swh-chart.swh.F2WLA8zg/staging-swh.before 2024-01-16 16:01:29.017683830 +0100
+++ /tmp/swh-chart.swh.F2WLA8zg/staging-swh.after 2024-01-16 16:01:30.401688952 +0100
@@ -10416,21 +10416,21 @@
operator: In
values:
- "true"
priorityClassName: swh-storages
containers:
- name: memcached
image: "memcached:1.6.18"
args:
- -m
- - 256m
+ - 256
imagePullPolicy: IfNotPresent
resources:
requests:
memory: 256Mi
cpu: 10m
readinessProbe:
tcpSocket:
port: 11211
initialDelaySeconds: 5
periodSeconds: 10
------------- diff for environment staging namespace swh-cassandra -------------
--- /tmp/swh-chart.swh.F2WLA8zg/staging-swh-cassandra.before 2024-01-16 16:01:29.477685532 +0100
+++ /tmp/swh-chart.swh.F2WLA8zg/staging-swh-cassandra.after 2024-01-16 16:01:30.881690729 +0100
@@ -10376,21 +10376,21 @@
operator: In
values:
- "true"
priorityClassName: swh-cassandra-storages
containers:
- name: memcached
image: "memcached:1.6.18"
args:
- -m
- - 256m
+ - 256
imagePullPolicy: IfNotPresent
resources:
requests:
memory: 256Mi
cpu: 10m
readinessProbe:
tcpSocket:
port: 11211
initialDelaySeconds: 5
periodSeconds: 10
------------- diff for environment staging namespace swh-cassandra-next-version -------------
--- /tmp/swh-chart.swh.F2WLA8zg/staging-swh-cassandra-next-version.before 2024-01-16 16:01:29.865686969 +0100
+++ /tmp/swh-chart.swh.F2WLA8zg/staging-swh-cassandra-next-version.after 2024-01-16 16:01:31.289692240 +0100
@@ -9278,21 +9278,21 @@
operator: In
values:
- "true"
priorityClassName: swh-cassandra-next-version-storages
containers:
- name: memcached
image: "memcached:1.6.18"
args:
- -m
- - 256m
+ - 256
imagePullPolicy: IfNotPresent
resources:
requests:
memory: 256Mi
cpu: 10m
readinessProbe:
tcpSocket:
port: 11211
initialDelaySeconds: 5
periodSeconds: 10
------------- diff for environment production namespace swh -------------
--- /tmp/swh-chart.swh.F2WLA8zg/production-swh.before 2024-01-16 16:01:31.941694653 +0100
+++ /tmp/swh-chart.swh.F2WLA8zg/production-swh.after 2024-01-16 16:01:32.845698000 +0100
@@ -15479,25 +15479,25 @@
operator: In
values:
- "true"
priorityClassName: swh-storages
containers:
- name: memcached
image: "memcached:1.6.18"
args:
- -m
- - 256m
+ - 1024
imagePullPolicy: IfNotPresent
resources:
requests:
- memory: 300Mi
+ memory: 1024Mi
cpu: 100m
readinessProbe:
tcpSocket:
port: 11211
initialDelaySeconds: 5
periodSeconds: 10
livenessProbe:
tcpSocket:
port: 11211
initialDelaySeconds: 15
------------- diff for environment production namespace swh-cassandra -------------
--- /tmp/swh-chart.swh.F2WLA8zg/production-swh-cassandra.before 2024-01-16 16:01:32.165695483 +0100
+++ /tmp/swh-chart.swh.F2WLA8zg/production-swh-cassandra.after 2024-01-16 16:01:33.081698874 +0100
@@ -1933,25 +1933,25 @@
operator: In
values:
- "true"
priorityClassName: swh-cassandra-storages
containers:
- name: memcached
image: "memcached:1.6.18"
args:
- -m
- - 256m
+ - 1024
imagePullPolicy: IfNotPresent
resources:
requests:
- memory: 300Mi
+ memory: 1024Mi
cpu: 100m
readinessProbe:
tcpSocket:
port: 11211
initialDelaySeconds: 5
periodSeconds: 10
livenessProbe:
tcpSocket:
port: 11211
initialDelaySeconds: 15