hatzisn Expert Licensed User Longtime User Sep 15, 2023 #1 Hello everyone, I have managed to get the HAProxy to work correctly with WebSockets in RoundRobin mode. The fact is this: 1) Let's suppose I have three containers/servers that save their logs in different folders in the host system and a shared among them folder in the host system where they save some data. For the shake of brevity let's call this folder "Data". 2) If I create a picture from one of them and then save it in "Data", when I will try to update this picture in the page, it will proceed to the next "server" to load it. This is no problem if we are talking about one server with lots of same "containers/servers" but if we are talking about more than one then it will be a mess as it will save it in the first server's Shared Folder and it will proceed to the next server and will look in the shared folder there to load it. Is it possible to "lock" the client to the first aproached server in round robin? Last edited: Sep 15, 2023
Hello everyone, I have managed to get the HAProxy to work correctly with WebSockets in RoundRobin mode. The fact is this: 1) Let's suppose I have three containers/servers that save their logs in different folders in the host system and a shared among them folder in the host system where they save some data. For the shake of brevity let's call this folder "Data". 2) If I create a picture from one of them and then save it in "Data", when I will try to update this picture in the page, it will proceed to the next "server" to load it. This is no problem if we are talking about one server with lots of same "containers/servers" but if we are talking about more than one then it will be a mess as it will save it in the first server's Shared Folder and it will proceed to the next server and will look in the shared folder there to load it. Is it possible to "lock" the client to the first aproached server in round robin?
EnriqueGonzalez Expert Licensed User Longtime User Sep 15, 2023 #2 you are looking for sticky sessions: https://www.haproxy.com/blog/enable-sticky-sessions-in-haproxy Upvote 0
hatzisn Expert Licensed User Longtime User Sep 15, 2023 #3 Thank you very much!!! It works!!! I had tried with balance source with no luck... Upvote 0
hatzisn Expert Licensed User Longtime User Sep 25, 2023 #4 In the following link I have found the way to compile the HAProxy with Quic support in a docker image. I have not tried it yet if it works, although I have managed to build the image. The building of this image takes almost for ever but I hope when I try it the time will worth it and I will post the results here. GitHub - iuridiniz/haproxy-quic-docker: HAProxy + OpenSSL3 + QUIC (HTTP/3) - HAProxy - The Reliable, High Performance TCP/HTTP Load Balancer HAProxy + OpenSSL3 + QUIC (HTTP/3) - HAProxy - The Reliable, High Performance TCP/HTTP Load Balancer - iuridiniz/haproxy-quic-docker github.com Upvote 0
In the following link I have found the way to compile the HAProxy with Quic support in a docker image. I have not tried it yet if it works, although I have managed to build the image. The building of this image takes almost for ever but I hope when I try it the time will worth it and I will post the results here. GitHub - iuridiniz/haproxy-quic-docker: HAProxy + OpenSSL3 + QUIC (HTTP/3) - HAProxy - The Reliable, High Performance TCP/HTTP Load Balancer HAProxy + OpenSSL3 + QUIC (HTTP/3) - HAProxy - The Reliable, High Performance TCP/HTTP Load Balancer - iuridiniz/haproxy-quic-docker github.com