-
I am more seeking some advice around best practices to use taskiq in a Kubernetes cluster. Kubernetes Jobs are defined as
So in theory if the You can see an initial attempt using If there are any Kubernetes users here, I would love your input as to if |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
No, run them as usual deployments. Because you might want to scale up number of workers. There's only one constraint on schedulers, there should be only one instance running (per schedule source, actually). But this constraint can be achieved by setting number of replicas to one. Personally I use helm charts for my applications and both taskiq workers and schedulers are declared using the same deployment template, but with different Also, declaring them as deployments allows you to specify really fancy scaling policy using keda. |
Beta Was this translation helpful? Give feedback.
No, run them as usual deployments. Because you might want to scale up number of workers. There's only one constraint on schedulers, there should be only one instance running (per schedule source, actually). But this constraint can be achieved by setting number of replicas to one.
Personally I use helm charts for my applications and both taskiq workers and schedulers are declared using the same deployment template, but with different
command
.Also, declaring them as deployments allows you to specify really fancy scaling policy using keda.