All Questions
Tagged with nginx load-balancing
384
questions
0
votes
1
answer
33
views
Understanding Kubernetes load balancing with ingress controller using self-hosted load balancer
I'm looking to better understand load balancing concepts in a "self-hosted" Kubernetes environment.
cluster setup architecture image
I have an external load balancer, let's label it LB. This ...
0
votes
1
answer
26
views
Nginx check running process on destination before forwarding traffic
I'm configuring Nginx as UDP load balancer between four servers with the following configurations:
stream {
server {
listen 7004 udp;
#UDP traffic will be forwarded to the "...
0
votes
0
answers
13
views
How to make nginx use a different mongrel to the one which is handling the current request?
On our site we have a 12 mongrel cluster running, and in my local dev version i have a 5 mongrel cluster. nginx (version: nginx/1.22.0) sits in front.
One of our processes makes a pdf by shelling out ...
0
votes
0
answers
45
views
Nginx - Not distributing traffic to all upstream servers
We have an existing issue on our nginx.. As you can see on the attached screenshot, the requests are not distributed evenly on the 12 servers and only 4 are getting most of the traffic
Hoping you can ...
0
votes
1
answer
111
views
Nginx upstream reponse time occasionally very slow
I have a Ubuntu server that handles a lot of traffic and a lot of sites, occasionally Nginx takes a very long time to respond (20-30 seconds some times, and usually the request times out before that), ...
0
votes
0
answers
45
views
nginx load balancing without proxying trafic
I want to use nginx to load balance http traffic, but without proxying the traffic.
Like this user > lb > server > user
And not a standard proxy like
user > lb > server > lb > ...
1
vote
0
answers
54
views
Load Balancer Server Accessible in Browser But not via `curl localhost`
These are my 3 servers.
Load Balancer-192.168.1.72
Server-01-192.168.1.79
Server-02-192.168.1.80
In Load Balancer Server, I've configured these things in /etc/nginx/conf.d/load-balancer.conf
upstream ...
0
votes
0
answers
55
views
Load balance site with Nginx
I have a rails 4 application served by nginx that is getting more traffic than the server can handle so i want to run a second instance of that app on another server and load balance the traffic ...
0
votes
0
answers
90
views
nginx load balancer cannot send "proxy_host" value correctly
I want to use nginx load balancer. The domain servers used in the upstream section use a shared IP.
Suppose the domain name of the load balancer server is load-balancer.com
upstream test_upstream {
...
0
votes
1
answer
94
views
How to use DSR load balnce from two different network?
I have a server (A) which clients connect to it throw internet and its ip is 195.45.10.2 it route trafic to server (B) and its ip is 85.10 20.2 . So now I want to use some thing like dsr to let server ...
0
votes
1
answer
387
views
Reusing client certificate for TLS proxy with nginx?
I have a TCP application that uses mutual TLS to authenticate connecting clients.
Because of increased traffic I'd like to clusterize the application and load-balance the nodes with nginx. I already ...
1
vote
0
answers
227
views
Get the client ip adress from servlet when tomcat is accessed via nginx-load balancer
I am using nginx as load balancer with a few tomcat servers as backends.
Web-clients are java-scripts which from the website post a request to the Load-balancer.
So the path is following:
client-xhttp-...
0
votes
2
answers
115
views
Load balance the Load balancer
I am looking to get load balancing for my load balancer.
We are looking to create a fully HA network.
All of our servers are redundant, the databases are redundant, but above them is a single server ...
0
votes
1
answer
79
views
nginx forwading request to different url with load balancing
I am new to nginx, I am using it for request forwarding purpose, each incoming request is getting forwarded to another server/url below is my configuration :
http {
include mime....
0
votes
1
answer
742
views
Configuring Nginx and Tomcat to Access HTTPS content
I'm using nginx as a load balancer and reverse proxy for Java spring boot + Angular application on tomcat.
I've total 3 servers, 1 has nginx and other two has application hosted on it.
I've configured ...
0
votes
1
answer
53
views
How can you go about handling 100s of domains with SSL without having a file per domain?
Background
I currently run an ecommerce platform and at this moment in time when setting up a new domain the automated script runs. It starts by verifying the DNS records, generates an Nginx config ...
1
vote
0
answers
72
views
how to load balance my server from linux ips and socks?
i have server and i used to use before this loadbalancer in local docker
upstream pupstream {
least_conn;
server php:9000;
server php:9001;
server php:9002;
server php:9003;
...
0
votes
1
answer
392
views
redirect http to https in nginx load balancer
we have a setup of nginx load balancer where we configure our servers.
Now, the requirement came like all the dns that we are maintaining should be only allowed with https.
Example: tempserver.com is ...
0
votes
1
answer
2k
views
AWS Elastic Beanstalk 504 Gateway Time-out - occasionally failing to connect to target
I have a fairly simple AWS Elastic Beanstalk setup (Rails on Puma, with NGINX) and get intermittent but quite regular 504 Gateway Time-out on the client (typically 10 seconds after making the request)....
1
vote
1
answer
171
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 ...
1
vote
1
answer
593
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
1
answer
709
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 ...
1
vote
2
answers
1k
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
675
views
Loadbalancing websockets with nginx behind haproxy
I have an Nginx instance which serves requests proxied to it from an haproxy. This instance should balance load between several websocket server. To get better performance the load balancing should be ...
0
votes
0
answers
43
views
Apache limits errors when scalling with many domains for Saas app
**Hello everybody ,
I making SaaS app like Shopify and ecwid ,
user create store within 10 mins , once he register he get automatic subdomain with SSL and can add products and payment methods, ...
1
vote
0
answers
468
views
Load Balancing HTTP/2 GRPC persistent connections
Let's take a look at this scenario.
In a traditional LB model, we would have the LB (wether a reverse proxy or not) farm out req/rep to application level servers. This model is fine for the generic ...
0
votes
1
answer
88
views
Assume platform performance based on Nginx - ngx_http_stub_status_module
Nginx is placed in front of a microservice architecture on which we don't have any insight. We retrieve the metrics exposed by the http stub status and would like to compute an indicator of the ...
0
votes
1
answer
1k
views
Obtain real Ip from NGINX which is receiving from external L4 load balancer
When a client use our services, network first go through L4 load balancer of our cloud provider(I don't have much control over this other than customer support).
In our server, traffic first hit the ...
0
votes
1
answer
3k
views
Blocked loading mixed active content
I am using react as my font end, and nodejs as backend which is running on localhost:3016 and I used nginx as reverse proxy and load balancer;
this my nginx conf file for the site
upstream ...
1
vote
0
answers
113
views
Why doesn't throughput improve from adding additional web servers?
I have a load balancer with a dedicated cpu that distributes traffic to two linodes with shared cpus. I'm testing a template website with 9 lazy loaded images, no database queries, that's been ...
4
votes
0
answers
689
views
Nginx not always serving js and css when load balancing between docker containers - works on refresh
I have Nginx set up as a reverse proxy load balancing between two docker containers running all on the same server. When loading a page for the first time, the page loads but I get lots of 404 errors ...
1
vote
0
answers
248
views
Nginx load balancing access location url doesnt redirect to microservice page
nginx load balancer still not working since yesterday. I run a microservice on 3 docker containers on port 4001,4002,4003, on my WSL2 instance, accessed through browser (sudo docker run -d -p 4003:80 -...
0
votes
1
answer
180
views
Why is Server working Slow and bandwidth chokes
We have a cloud server. We have load balancer of 3 server and one public IP. We have master slave for DB Connection.
The application serves some data to users, the users post some data and some files ...
4
votes
2
answers
3k
views
NGINX load balancing: upstream ssl name
I have the following Nginx configuration to balance the load among different nodes. However, when I try to redirect the traffic I obtain 502 Bad gateway.
By reading the error log I found out that the ...
0
votes
0
answers
57
views
NGINX opensource: ensure communication encrypted between balancer and nodes
I'm setting up a load balancer that has to communicate with the other nodes using TLS. This is important since back-end nodes are not in a private network. The configuration is the one below.
The ...
1
vote
1
answer
805
views
NGINX TCP Load Balancing is ip-sticky when it should be random, per request
I have an NGINX server being used as a TCP load balancer. It is default to round-robin load balancing, so my expectation is that for a given client IP, every time they hit the endpoint they will get ...
1
vote
2
answers
352
views
Detecting 502 responses in Nginx Load Balancer
I have the following setup - Nginx load balancer that receives https traffic and passes through to nodes. On each node there is a reverse proxy that handles https traffic and passes data to App1, App2 ...
0
votes
0
answers
133
views
Websites do not loaded properly in Nginx loadbalancing
I have 3 Nginx Servers like this -
lab01.net => 192.168.89.128 (load balancer)
lab02.net => 192.168.89.129 (backend)
lab03.net => 192.168.89.130 (backend)
-------------- lab01.net ...
0
votes
0
answers
395
views
Nginx stream with upstream has same server but different port, get wired result
stream {
map $ssl_preread_server_name $backend_name {
home-s1.frp.xxx.com frp-s1;
home-s2.frp.xxx.com frp-s2;
default web;
}
upstream web {
server 127.0.0....
3
votes
3
answers
1k
views
nginx denies all requests to a virtual host . requests are coming from a nginx tcp forwarder
Summary - need to add whitelist ips to the mysite1.example.com. now when they are added it doesn't work as every request is coming as originated from the load balancer server.
Im working on a setup ...
1
vote
0
answers
52
views
nginx slows down my rest-service by 5x
I have a simple REST service set up that natively (standalone executable) handles 135k/rps.
Service is running on localhost:8181
autocannon benchmark running from separate machine yields:
┌───────────┬...
0
votes
1
answer
2k
views
nginx udp load balancer issues
I am trying to get nginx working to load balance udp traffic. The upstream servers are configured for DSR and do not pass traffic back through nginx. I have a group of ports that I need to forward to ...
-1
votes
1
answer
166
views
How to group data being split and posted to two backend Apache servers behind a frontend Nginx load balancer?
For a requirement of my client, I want to set up a load balancer using Nginx with two upstream backend Apache webservers.
I think it should be like:
Server1: Nginx Load Balancer.
Server2: Apache Web ...
0
votes
1
answer
576
views
Do you need Nginx / Apache for deploying an API?
To my understanding, Nginx/Apache are used to a) serve static content like HTML pages and b) balance requests between servers. I am programming an API in Go. It doesn't need to serve static content ...
0
votes
1
answer
2k
views
high availability with keepalived and nginx on ubuntu
I have two identical linux servers serving the same content through nginx. I want to have high availability through failover with keepalived, that is, server number 1 always serves the content of ...
0
votes
1
answer
3k
views
How to choose upstream based on request header
I am trying to send request to different server if a particular header is set
It gives error invalid URL prefix in "http://"
here is my nginx configuration file
upstream server1 {
...
0
votes
1
answer
1k
views
What are the best settings for reverse proxy with a load-balanced?
I am using a reverse proxy and load balancing. In my scenario, I have three servers. The first server is the proxy. The second and third are docker servers that use swarm. Port 2020 is used for two ...
0
votes
0
answers
445
views
Wordpress running on Nginx Loadbalancer error "The page isn’t redirecting properly"
So I have this setup for my wordpress.
All servers run on Centos 7
MariaDB 10.4.17
Php-FPM 7.4
PHP 7.4
NginX
Server 1, the Front Load Balancing server
Server 2-3-4 the wordpress application served ...
1
vote
1
answer
2k
views
How to choose EC2 instance type for reverse proxy (4 million requests / month)
First time i have to create a reverse proxy on AWS, and i do not know with kind of instance to choose.
I plan to create an EC2 to load balance my traffic between a main website (/) and a wordpress ...
2
votes
0
answers
271
views
How to load balance in nginx based on user category
There will be a web application served by gunicorn with pod instantiated in every node in Kubernetes cluster. External load balancer (limited to the round-robin or least connections methods) drives ...