Score:0

HAProxy balance API

cn flag

I have use many hour to search and learn the HAProxy config but i can't make the desired result in any way.

I'll explain my scenario.

I have three different server:

api1.test.eu 10.20.30.130:8764
api2.test.eu 10.20.30.119:8764
api3.test.eu 10.20.30.173:8764

The three CLOUD servers are EQUAL. Behind api1/api2/api3 there is an HTTPS API. So i have created another cloud server:

api.test.eu 10.20.30.223

I have installed HAProxy, NGINX with Certbot/Let's Encrypt for make the endpoint SSL like the others.

The thing i want to do is:

Call api.test.eu and round robin on api1/api2/api3

I have try to play with frontend-backend but with no result. I have try also with listen:

listen haproxy_frontend
   bind *:8764

   balance roundrobin

   server api1 api1.test.eu:8764 check
   server api2 api2.test.eu:8764 check
   server api3 api3.test.eu:8764 check

Not work...

Thanks for any help

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.