Hello @Michael_M
This thread for me is very interesting, bcs Dynatrace :dynatrace: + kubernetes ❤️ I’ll do everything I can, whatever it takes.
There is two ways to do this:
First - If you prefer Kubernetes Hard Way (Joking 😃) Second - GitOps is everything. (So true
)
Results: Memory [maxMemory=5521M, initHeap=3072M, maxHeap=5521M, usedMeta=14M, committedMeta=15M, totalPhysicalMemory=6144M, freePhysicalMemory=6031M] from your values [maxMemory**=1536M** …
1) Only If you’re into challenges and spending fun evenings alone with the terminal.
If you have chance to update the StatefulSet and create several ConfigMaps, it’s not a big deal to get what you want.
Ideal if you don’t want change dynakube for some reasons.
You can create configmap:
apiVersion: v1
kind: ConfigMap
metadata:
name: activegate-memory-config
namespace: dynatrace
data:
DT_INIT_HEAP_PERCENT: '50'
DT_MAX_HEAP_PERCENT: '90'
Modify statefulSet + boost req/lim
...
containers:
- name: activegate
...
env:
...
- name: DT_INIT_HEAP_PERCENT
valueFrom:
configMapKeyRef:
name: activegate-memory-config
key: DT_INIT_HEAP_PERCENT
- name: DT_MAX_HEAP_PERCENT
valueFrom:
configMapKeyRef:
name: activegate-memory-config
key: DT_MAX_HEAP_PERCENT
...
limits:
cpu: '1'
memory: 6Gi
requests:
cpu: 500m
memory: 6Gi
2) As mentioned @DanielS you can update dynakube.
You need to provide same env variables to container with name “activeagate”
You can define them here:
# Optional: Add custom environment variables to ActiveGate pods
#
# env: []
You need all the same environment variables from the first point.
DT_INIT_HEAP_PERCENT: 50
DT_MAX_HEAP_PERCENT: 90
Boost request/limits for example to 6Gi from 1.5Gi
Then the operator will work for you.
Mischief managed.
--
After this, you’ll probably want to tune something else — take a look at custom properties:
# customProperties:
# value: |
# [connectivity]
# networkZone=
cat /var/lib/dynatrace/gateway/config/config.properties
Have fun!
Regards,
Aleksandr Romanenkov