Hi 👋 . Looking at this Helm chart [1], and seeing it has a HorizontalPodAutoscaler (hpa) is seems it is possible to run multiple supertokens-core instances that connect to the same database.
- Is this assumption correct?
- Does anyone have experience running multiple supertokens-core instances? Are there things to look out for?
[1]: https://github.com/supertokens/supertokens-docker-mysql/tree/master/helm-chart
r
rp_st
02/08/2024, 1:05 PM
hey @michael_pxr we have this setup for many users. You can scale the cors horizontally behing a load balancer, and it works well
m
michael_pxr
02/08/2024, 1:08 PM
ok. great to know!
michael_pxr
02/08/2024, 1:11 PM
E.g. one issue we have with keycloak is that the keycloak instances register themselves in the database on startup. But sometimes an instance will crash before it can remove its. Then it can't start up again, due to those records already existing.
I hope we won't run into similar issues when migrating to supertokens 🤞
r
rp_st
02/08/2024, 1:11 PM
yeaa.. no such issues!
rp_st
02/08/2024, 1:11 PM
the core is fully stateless and can be removed / added at any time