Questions tagged [load-balancing]
Load balancing deal with the techniques involved on using multiple systems to deal with high demands, balancing the load between those multiple systems. Questions deal with networking and server load balancing, using dedicated hardware or not.
2,780
questions
2
votes
1
answer
8k
views
Configuring HAProxy with Virtual IPs
I would like to create a redundant HAProxy configuration with:
Keepalived - for determining which HA Proxy is active
HAProxy - for doing load balancing and failover
I will be using a cloud service ...
0
votes
2
answers
3k
views
Azure Internal Load Balancer not Working
I'm trying to configure an Azure Internal Load Balancer, I have created in Basic SKU and Standard SKU. I want to use it with a SQL Server VM (TCP 1433), but is not working, when I test it with tcping ...
5
votes
2
answers
1k
views
Early warning of port exhaustion in Linux
AFAIK, port exhaustion happens when a host is trying to establish a lot of connections to another server and the sessions used up all the available ephemeral ports. e.g.
192.168.1.1:port -> 10.20....
0
votes
1
answer
270
views
Apache httpd: mod_proxy_hcheck URL based HTTP basic authentication
I am trying to use mode_proxy_hcheck to do health checks and failover for an application that requires HTTP Basic authentication.
<proxy balancer://serverpool>
BalancerMember http://username:...
0
votes
1
answer
5k
views
Google cloud load balancer health check issue
I just created 2 VMs instance for my web service.
I bind two ports 80 and 8080 for different web service.
Firewall policy was allow tcp:80 and 8080
First, I created a http load balancer (80 port) ...
1
vote
2
answers
1k
views
Why should Cloudflare LB point to another AWS/GC/etc. LB?
I am aware Cloudflare has a security focus, but considering it also provides load balancing, why should I have it point to yet another load balancer e.g. AWS ELB?
1
vote
1
answer
203
views
NGINX module wrapper for external software
I am looking into customizing the behavior of our NGINX load balancers dynamically per request. Basically I want like to do things like filter bad requests, dynamically determine the upstream server ...
0
votes
2
answers
2k
views
Nginx failover with upstream load balancer not working, 504 when server 1 is down
I have an nginx docker container balancer that acts as a balancer for 3 nginx docker containers server_1, server_2, server_3.
Load balancing works fine, it hits all servers in a fashion depending on ...
2
votes
1
answer
4k
views
Best way to enable DDoS protection on many individual GCP compute instances without load balancing?
I've been scouring through the Google Cloud Armor docs for information about DDoS protection of a GCP compute VM instance. From what I've found, Google Cloud Armor Managed Protection provides ...
3
votes
3
answers
3k
views
Ubuntu Pound Reverse Proxy Load Balancing Based off active server load?
I have Pound installed on a loadbalancer. It seems to work okay, except that it randomly assigns the backend server to forward the request to. I've put 1 backend machine under so much load that it ...
1
vote
1
answer
207
views
Accept incoming traffic from loadbalancer as ingress, but send traffic originating from host to default gateway
Setup
I have Linux virtual machines running on google cloud platform that are behind an external TCP forwarding loadbalancer.
The loadbalancer works by forwarding TCP traffic to healthy instances as-...
2
votes
1
answer
2k
views
SQL Server Load Balancing Splitting Read/Write Operations
Hello We have 3 nodes of SQL Server 2014 Standard Edition one of them as primary and the other one as Replication of the Primary using Transactional Replication database
We want to use the other 2 ...
1
vote
1
answer
3k
views
How to set up cluster with SESSION replication in Coldfusion 10?
I am not able to set up a cluster with session replication. I have successfully set up a cluster with sticky session.
When googled I found a lot of links explaining the same issue, like
http://...
3
votes
1
answer
2k
views
Using ALB to target PHP-FPM ECS containers
I'd love to know if this is actually posible but I'm sure I've seen it demonstrated by one of our old AWS TAMs.
I am serving PHP-FPM containers (port 9000) out of ECS hosting a PHP application. I am ...
5
votes
1
answer
3k
views
How to not redirect when cookie is set in haproxy?
On my site I redirect users with mobile devices to a mobile site using my Haproxy loadbalancer. I got some complaints about that and want to offer the users a link back to the "classic" portal. As not ...
1
vote
1
answer
2k
views
Load balancing between two (or more) GRE tunnels
I have a hosted service (think zScaler™) that is having me send my traffic to it via GRE tunnels. I am given two appliances and want to load balance my traffic between the two tunnels.
I could ...
0
votes
0
answers
144
views
How to proxy traffic with failover based on http error codes?
There are two endpoints. I want:
proxy / service in front of two endpoints
send all requests to a chosen primary endpoint
if the primary responds with e.g. 404, a failover happens sending the request ...
1
vote
2
answers
3k
views
Frontend IP is not opening up the website in google cloud load balancer
So, Yesterday I have setup load balancer for my WordPress instances on compute engine. I have created an instance group. In load balancer, I have reserved on static IP for my frontend as well. I am ...
1
vote
3
answers
6k
views
How can I know remote server's hostname in SFTP?
We have 2 remote servers for redundancy and SFTP connection is distributed to these 2 servers by F5 VIP. We connect to the server with sftp [email protected] (xxx.yyy.zzz.www is the VIP) and F5....
1
vote
1
answer
1k
views
HAProxy: sending email-alert to multiple recipients
Please advise:
I was asked to configure HAProxy on Ubuntu, with very little knowledge.
The current configuration load-balances about 20 webservers and monitors them for heartbeat.
whenever a site ...
2
votes
1
answer
1k
views
Redirecting port 8080 traffic to a different server in AWS
I have two servers under the same domain name:
Apache webserver listening to port 80
Node.js server listening to port 8080
What do I need to do in order to run each server on a different ec2 ...
0
votes
1
answer
3k
views
AWS Load Balancer 502 Bad Gateway
I have multiple node web servers hosted on EC2 with a Load Balancer, and some users are getting a 502 even before the request reaches the server.
I don't have the logs of those requests inside the ...
1
vote
2
answers
1k
views
AWS application can't connect to external API without public IP address
I have a Django application that's running on AWS EC2. That application occasionally makes requests to an external API (stripe.com). I tested it extensively and it passed all my tests. When I deployed ...
1
vote
0
answers
89
views
Could we use DNS round robin with nscd's dns cache?
I try to use DNS round robin with nscd's dns cache.
But I am not convinced about the belows.
nscd respect the dns record ttl at its dns reply
the traffic from clients with nscd are distributed ...
1
vote
1
answer
717
views
how to pass domain name through load balancer nginx
i have a load balancer with nginx and pass traffic to other servers.
everything is working fine but i am allowing my clients to add their own custom domain name or use a subdomain from my domain and i ...
0
votes
0
answers
279
views
DNS configuration for HAproxy
About to set up a lab environment with HAproxy for test purposes. HAproxy will load-balance (round robin) two web servers (Apache), running two virtual hosts on each server. Site A will be hosted on ...
3
votes
1
answer
2k
views
Can apache proxy/load balancer redirect requests to other available balancer member when it gets timeout from a hanging server?
I am using apache2.4.6 and tomcat8 to implement a load balance solution.
I'd like to know whether apache balancer will redirect requests to another balancer member if it gets timeout error from one ...
-1
votes
1
answer
125
views
Redirect Large Number of Web Sites from Azure to AWS
What is the best-practice method (considering cost, complexity and performance) to redirect a large number of websites to another server? Each site's DNS contains an A record pointing to an old IP ...
0
votes
1
answer
3k
views
curl ip address of load balancer
I have an application running on a VM, that sits behind an internal load balancer in Azure. I can reach it locally on /api without any problem.
I have configured the rules for the load balancer to ...
0
votes
1
answer
278
views
Multiple WP websites, high availability setup
We are moving to a new production environment and I came up with the following setup. For the 20-25 client websites we have, I wanted to do the following:
DigitalOcean Load Balancer
Two DO Droplets ...
0
votes
1
answer
778
views
Load balancing on multiple servers
first of all I am very new to the subject and the headline maybe wrong but here is what I would like to achieve:
Currently I have web server as origin which all clients connect to but as you can guess ...
11
votes
2
answers
20k
views
hardware recommendations for HAProxy for a small or medium traffic site
I am interested in setting up HAProxy for use as a load balancer for a set of small traffic web applications. The use is growing and might become medium sized in the near term (6 months or so). Mainly ...
0
votes
1
answer
2k
views
Apache balancing towards Weblogic backends, mod_wl vs mod_proxy_balancer
for a lot of years now, we have been using an Apache Server with Mod_wl plugin to balance sessions towards multiple backend Weblogic webservers.
Now after a a while we also started using the same ...
5
votes
4
answers
11k
views
POST of large file is timing out, when running through ARR
When POST'ing a large file through ARR, the request times out after 120 seconds. The client recieves error code 502 Bad Gateway. I have configured the "proxy timeout" of the web farm to be 600 seconds....
1
vote
1
answer
1k
views
AWS PrivateLink connection with HTTPS
I have two VPCs, a consumer VPC and a service VPC. Consumer application HAS to access the service via AWS PrivateLink and it HAS to be an HTTPS call. Here is my current setup, which works:
Note that ...
4
votes
1
answer
2k
views
nginx proxy_pass is being ignored
I have an Nginx server which works as a proxy server.
I also have 3 different NodeJS Express servers running on ports 8080, 9090 and 8888 (all working correctly).
Servers 8080 and 9090 execute the ...
1
vote
1
answer
2k
views
How can I TCP (layer 4) load balance with haproxy and still do roundrobin or leastconn balancing?
I am trying to load balance with haproxy on VirtualBox just to see that things work as they should before I go on to set it up on Digital Ocean. I am able to decide how to balance requests when I ...
0
votes
1
answer
2k
views
Active-Standby Load Balancer in Azure
For one my project, I need active-standby loadbalancer in Azure. In the backend, I have two VM instances (primary/secondary manner). Load balancer will send traffic to only one instance (primary). If ...
1
vote
2
answers
2k
views
NGINX is not respecting DNS TTL of Upstream Server
I have an NGINX TCP load balancer with the following configuration:
user myusername;
worker_processes auto;
error_log /var/log/nginx/error.log;
pid /run/nginx.pid;
include /usr/share/nginx/modules/*....
0
votes
1
answer
3k
views
How to work Stun/Turn Server (COturn) Under Aws Network load balancer with TLS
I have just setup a coturn server, it works perfectly fine when using the ip or teh domain without loadbalancer, it was tested using this online tool :
https://webrtc.github.io/samples/src/content/...
2
votes
2
answers
2k
views
WordPress behind haproxy: $_POST being reset
So here's the sitch:
Load balancer (haproxy) delivering to 3 web servers and a database server, 5 servers in total with memcache sessions being shared between the web servers. I can confirm that ...
0
votes
1
answer
3k
views
AWS Auto Scaling and CodeDeploy never leaves Pending:Wait
I am having an issue with Auto Scaling on AWS. It seems a lot of people have had similar issues, but I haven't been able to find anything that resolves my specific problem. When I manually increase ...
1
vote
2
answers
1k
views
Unexpected behaviour when dynamically add node in HAproxy server
I wanted to use HAProxy for my web app for load balancing purpose. I am trying to add a new rabbitmq node dynamically in HAProxy server using command : haproxy -p /var/run/haproxy.pid -sf $(cat /var/...
-1
votes
2
answers
6k
views
Why AWS classic ELB with HTTP protocol doesn't work with websockets? [closed]
I know that there is an ALB and NLB option that works with websockets. I can't understand why classic ELB with HTTP protocol doesn't work with websocket connections, although at the instance there is ...
0
votes
1
answer
65
views
One HTTP load balancer for instances in multiple data centers
We have a multitenant product where each customer get's their own subdomain (customer1.app.com, customer2.app.com, customer3.app.com). Additionally each of the customers get their own dedicated VM. ...
2
votes
1
answer
2k
views
How does load balancer verify self-signed certificates from the server
In my application, I have multiple instances of the server running behind a load balancer.
Usually, SSL offloading takes place at the load-balancer in the case of AWS Application Load Balancers, and ...
0
votes
2
answers
406
views
Optimal use of multiple interfaces to download a large file (a riff on load balancing)
Lets assume a simple setup:
A linux box with 2 interfaces, each with a 5 mbps download cap, so a theoretical total download bandwidth of 10 mbps.
A remote server unlimited in bandwidth holds a file ...
0
votes
1
answer
859
views
File sync between two server behind load balancer
I have a best practice question. We have an app running on two servers behind a load balancer. Most data is in a common DB, user uploaded files are in object-storage. So not much to keep in sync, ...
0
votes
1
answer
344
views
SSL Cert Issues with Proxy Server Configuration
Running into an issue when applying an SSL cert to one of our reverse proxy servers - "This server could not prove it is <servername>". I think I might be confusing some of the SAN ...
1
vote
1
answer
38
views
Can enabling load balancing on a cluster jeopardise high availability?
I'm considering enabling load balancing on our data gateway clusters for Power BI, where we have two servers in a cluster, and the secondary is configured as a failover for the primary (only ...