Our great sponsors
-
kube-sidekiq-autoscale
Dynamically scale k8s resources using the amount of enqueued Sidekiq jobs to determine the load
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
We've done something very similar to auto scale Sidekiq worker containers running on preemptible/spot VM nodes within Google Cloud Kubernetes Engine using https://github.com/streemau/kube-sidekiq-autoscale.
Not sure about EKS on AWS but on GCP spot instances have a 30s graceful shutdown which is enough for most of our jobs to complete, otherwise they'll be picked up again by the next worker since we use Sidekiq Pro and its https://github.com/sidekiq/sidekiq/wiki/Reliability feature