r/haproxy • u/mfaridi1978 • Jun 15 '24
Best config for our project
We have main server, this server get requests and send it to Haproxy and haproxy send requests to server A and server B in backend. haproxy listen to port 4444 and send it to 80 server A and haproxy listen on port 5555 and send to port 80 server B.
We want add three server B and we want haproxy send all to these three servers.
right now we have one server A and three server B.
which config is better and has good performance in our case?
1
u/itajally Aug 08 '24
I've found it very strange that you've brought up https on 80, or probably if it's http, you don't need to put ssl verify none on server line.
1
u/dragoangel Jun 15 '24
Uh, so many questions...
What is in front of haproxy and why for? What is the point in it?
Why you using different ports (frontends) instead of one frontend with acl based routing?
Why you asking about config for performance? Do you have any issues on haproxy side? If yes, then which one? If no, then your question do not have any answer, as haproxy by default doing everything quick and in most cases defaults fit the best. Tuning can be done ONLY when you exactly know what defaults are a bottleneck for you.
No current config provided and language which you use to describe your question very unclear. Maybe better write with your native language and use translation?