You can join me on my whatsapp group for quick free queries and solution chat.whatsapp.com/E96jXVnZacM8MzffHKJkpv Mention this question in group by refering this video
The requested files come from server A and server B to the server of HAProxy. All traffic is being collected in the HAProxy server. So if heavy traffic occurs, HAProxy server may get down due to high traffic. Why should we use HAProxy then? Could you please explain?
Answer is HA proxy is anle to hamdle concurrent requests in millions because it is wprking as a proxy only. And you can vertically scale the server amd perform some OS level tuning to boost the performance Refer to below doc www.google.com/amp/s/www.freecodecamp.org/news/how-we-fine-tuned-haproxy-to-achieve-2-000-000-concurrent-ssl-connections-d017e61a4d27/amp/
You can use HA proxy server right behind the NLB or load balancer and you can use some service discovery to discover your backend resources and map from ha proxy
@@mohitguptaji the thing is fargate ips keep on changing due to which my application connection is breaking. I was suggested to use reverse proxy with fixed ip so that all fargate containers can send and receive request through this reverse proxy server
Whenever i try to write my frontend. I keep having error. Saying that. My frontend server name is not recognised. And my back end name and ip address is not recognised as well. Please help me with this
@@mohitguptaji thank you for replying. sir main outbound data xfer ka pooch raha hu. Load balancing server pe calculate hoga ya webserver pe. Example ke liye agar 10mb file download karni hai to outbound traffic server a/b pe calculate hoga ya balancing server pe? Ya fir load balancing server request ko sirf redirect karya hai?
@@unauthorizedaccess8062 if your a,b backend servers are on private network then charge would be very less. The main data transfer cost would be on LB because it will serve the file directly to client
I though running curl localhost on the workstation will try to get the index.html file in workstation (if any) was there any settings you did apart from the settings in HA Proxy config? I thought you will "curl servera" or serverb. Did you point localhost to the 2 remote servers?
hey my haproxy is on rehl 7 and its unable to bind to a port. I have checked it and selinux is also disable as well as firewall . Also no other process is running on that bind port. What should i do .?
@@mohitguptaji as per the requiremnet. Earlier the haproxy set up was running fine including these three ports. but not now. I haven't made any change to it.
@@mohitguptaji I already follow your tutorial fully. I do this on personal my LAB. I have 2 node backend server and 1 load balancer. But all network is in diferent subnet. Is this work in diferent subnet for HAproxy? Help me. If you want to remote my pc.. please
@@ITLAB91 doesnt matter if submet is different , they must be reachable . I can help you here only if you want my personal emvolvement then some commericial would be involved bro
@@mohitguptaji my servers is reachable one each other. . this server1 hostname = server1.local, server2 hostname =server2.local. following my haproxy.cfg frontend app_servers *:80 default_backend apps frontend main bind *:5000 acl url_static path_beg -i /static /images /javascript /stylesheets acl url_static path_end -i .jpg .gif .png .css .js use_backend static if url_static default_backend web-servers #--------------------------------------------------------------------- # static backend for serving up images, stylesheets and such #--------------------------------------------------------------------- backend static balance roundrobin server static 127.0.0.1:4331 check #--------------------------------------------------------------------- # round robin balancing between the various backends #--------------------------------------------------------------------- backend app balance roundrobin server app1 127.0.0.1:5001 check server app2 127.0.0.1:5002 check server app3 127.0.0.1:5003 check server app4 127.0.0.1:5004 check backend web-servers server servera server1.local:80 check server serverb server2.local:80 check
He is being real, that's what happens in real life, we misspell things, forget minor things, what matters is that he understands the concept, that's better than flawless pre-made tutorials, and try to stop such childish comments and grow up