Is it possible to run a cluster of shlink servers behind a load balancer, with shlink-web-client and a single database? #2307
-
Shlink version4.2.3 PHP version8.4.1 How do you serve ShlinkSelf-hosted nginx Database engineMariaDB Database version10.5.26 SummaryHi, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
When you say "one backend" I guess you mean one database server. This is definitely possible. You can have multiple Shlink instances all connected to the same database server. Just make sure they use different databases. You would only need one shlink-web-client instance also, as it can handle multiple servers at once, even on different versions of Shlink. |
Beta Was this translation helpful? Give feedback.
Sorry, I misunderstood.
What you want is to setup a cluster of Shlink instances. That's also possible, and in that case you should point them to the same database.
When you need to update Shlink, simply downscale to one instance, update it, and then upscale again to the desired amount of instances, but this process would depend on how you orchestrate and automate your infrastructure.