I am testing a bit with etherpad. You can create a simple collaboration notepad, by generating a unique string at the end of the url, like this:
group1 is using Riseup Pad
group2 is using Riseup Pad
How would I create a haproxy cfg that would redirect users to a specific backend based on a previously used url?
Say I have one server running and thus all urls are going to be on that server. When the load increases I scale this task to 2 servers.
Now haproxy needs to remember what urls where on the first server and keep users there. But if there is a new request for a url that is on the first server, the first server should still receive it.
If there is a new url the new url should be send to the 2nd server.
Thus in this scenario, you need to scale to 2nd server at 80% load or so, so you can still facilitate new users on this first server.
2 posts - 1 participant