You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When i start my dragonfly test container via the following command the io threads are correctly set:
# set proactor threads to 1
docker run -it --rm ghcr.io/dragonflydb/dragonfly:v1.25.4-ubuntu --proactor_threads=1
# > I20241204 09:13:18.126736 1 proactor_pool.cc:147] Running 1 io threads
# set proactor threads to 2
docker run -it --rm ghcr.io/dragonflydb/dragonfly:v1.25.4-ubuntu --proactor_threads=2
# > I20241204 09:07:52.068485 1 proactor_pool.cc:147] Running 2 io threads
When i now try to achieve the same in my k3d test kubernetes cluster, it does always set the proactor threads to the amount of threads available to the pod. This would be fine if i currently did have another issue where limiting the pod resources isn't working correctly.
I assume that maybe the entryscript could be handlings things differently in kubernetes, but i didn't dig down that road. Can't imagine any other reason why there would be a difference so far.
To Reproduce
Steps to reproduce the behavior:
k3d cluster create
Install dragonfly operator as per documentation kubectl apply -f https://raw.githubusercontent.com/dragonflydb/dragonfly-operator/main/manifests/dragonfly-operator.yaml
Create dragonfly cluster via Dragonfly resource with args passed
See log message showing a different amount of proactor threads
Expected behavior
Setting proactor threads (potentially other flags are also affected?) should work the same, no matter whether using docker or k8s/containerd
Screenshots
Environment (please complete the following information):
OS: Darwin + Linux
Kernel: 6.10.14-linuxkit
Containerized?: Docker and Kubernetes
Dragonfly Version: 1.25.4
Reproducible Code Snippet
see above at "To reproduce"
Additional context
The text was updated successfully, but these errors were encountered:
I can reproduce it. I have checked the args passed to the container, verified the command that the container run dragonfly --logtostderr --alsologtostderr --primary_port_http_enabled=false --admin_port=9999 --admin_nopass --proactor_threads=1 --maxmemory=512M. Everything looks ok on the k8s side. As it passes --proactor_threads to dragonfly, I am not sure why dragonfly can't configure the threads given that the standalone docker container works. I also tried to run another dragonfly process in the k8s pod container with --proactor_threads - /usr/local/bin/dragonfly --port=6399 --alsologtostderr --proactor_threads=1. Same issue.
So, I don't think its an entrypoint script issue. Maybe the k8s env is somehow preventing dragonfly to configure the threads. I need to dig deeper.
Describe the bug
When i start my dragonfly test container via the following command the io threads are correctly set:
When i now try to achieve the same in my k3d test kubernetes cluster, it does always set the proactor threads to the amount of threads available to the pod. This would be fine if i currently did have another issue where limiting the pod resources isn't working correctly.
snippet from the pod:
I assume that maybe the entryscript could be handlings things differently in kubernetes, but i didn't dig down that road. Can't imagine any other reason why there would be a difference so far.
To Reproduce
Steps to reproduce the behavior:
k3d cluster create
kubectl apply -f https://raw.githubusercontent.com/dragonflydb/dragonfly-operator/main/manifests/dragonfly-operator.yaml
Demo Resource:
Expected behavior
Setting proactor threads (potentially other flags are also affected?) should work the same, no matter whether using docker or k8s/containerd
Screenshots
Environment (please complete the following information):
Reproducible Code Snippet
see above at "To reproduce"
Additional context
The text was updated successfully, but these errors were encountered: