Tagged articles
upstream
26 articles · Page 1 of 1
A comprehensive guide to configuring Nginx upstream for reliable traffic distribution, covering environment validation, weighted round-robin, least_conn, consistent hashing, passive health checks, failover strategies, observability with structured logs, canary deployments, and safe rollback procedures.
FailoverNginxObservability
0 likes · 38 min read

This guide walks through the complete lifecycle of an Nginx reverse‑proxy request on Debian/Ubuntu, covering configuration inspection, server and location selection, URI rewriting, upstream pools, header forwarding, TLS termination, timeouts, buffering, WebSocket upgrades, retry logic, rollback procedures, and troubleshooting common error codes.
NginxTLSWebSocket
0 likes · 21 min read

The article walks through the full request lifecycle to pinpoint where Nginx 502 and 504 errors originate, builds an evidence chain from logs and metrics, and provides concrete steps for configuration, validation, gray‑release, and rollback to reliably resolve upstream timeout issues.
502504Nginx
0 likes · 23 min read

This guide walks through verifying the Nginx environment, configuring a reliable upstream block, setting proper proxy headers and timeouts, validating backend health, handling failures, exposing observability, and performing controlled rollouts to ensure traffic is correctly balanced without service disruption.
LinuxNginxconfiguration
0 likes · 28 min read

A production incident caused by replacing two Nginx reverse proxies introduced an upstream name with an underscore, resulting in invalid Host headers and 400 Bad Request responses from Spring Cloud Gateway; the article details the step‑by‑step investigation, evidence from logs, tcpdump, and code, and presents configuration fixes to restore normal operation.
HTTP 400NginxSRE
0 likes · 15 min read

This article details a systematic performance test of Nginx 1.29.x’s new HTTP/2 upstream support, comparing HTTP/1.1, HTTP/2 with keep‑alive, and HTTP/1.0 baselines across various payload sizes, connection‑pool settings, and large‑header scenarios to determine when protocol upgrades yield real throughput or latency gains.
Nginxh2ch2load
0 likes · 22 min read

In production, Nginx cached DNS lookups for up to a month, causing requests to stale IPs after CDN changes; this article explains the root cause, demonstrates how to configure upstream health checks and the built‑in resolver to ensure timely DNS updates and avoid prolonged outages.
DNSload balancingoperations
0 likes · 6 min read

This article explains how to configure Nginx load balancing with upstream blocks, server weight, ip_hash, and logging variables, and details reverse‑proxy settings such as proxy_pass, proxy_method, header handling, redirects, and error‑fallback options, providing complete code examples for each feature.
Nginxconfigurationload balancing
0 likes · 12 min read

Explain that “keepalive” is a concept used in both NGINX and HTTP protocol but with different meanings. In HTTP, keep‑alive (or persistent connection) is a header that allows a TCP connection to be reused for multiple requests, reducing latency. In NGINX, keepalive refers to the connection‑pool settings for upstream servers, controlling how many persistent connections are kept and their timeout.
HTTPkeepaliveperformance
0 likes · 8 min read

This article explains how to configure Nginx as a load balancer for web applications, covering upstream and proxy_pass definitions, the three built‑in balancing methods, weight and connection settings, fail‑over options, and practical code examples for both HTTP and HTTPS deployments.
Nginxconfigurationload balancing
0 likes · 11 min read

This guide explains how to configure Nginx load balancing and reverse‑proxy features, covering upstream blocks, server directives, ip_hash, logging variables, and essential proxy_* directives with clear code examples and usage tips.
Nginxbackend configurationload balancing
0 likes · 11 min read

This article explains how to configure Nginx load balancing and reverse proxy, covering upstream blocks, server weighting, ip_hash, logging variables, and essential proxy directives with practical code examples for robust backend traffic management.
load balancingreverse-proxyupstream
0 likes · 11 min read

This article explains how to configure Nginx’s proxy features and various load‑balancing algorithms, covering error handling, request methods, timeout settings, header forwarding, upstream definitions, and practical examples to ensure reliable and efficient traffic distribution across multiple backend servers.
Proxyupstream
0 likes · 11 min read

Learn how to set up Nginx as a front‑end load balancer for web applications, define upstream servers and proxy_pass directives, and apply round‑robin, least‑connected, ip‑hash, weight, timeout, and backup server options to optimize traffic distribution and reliability.
BackendNginxload balancing
0 likes · 12 min read

When a remote branch that a local branch tracks is deleted, Git pull and push fail, but you can resolve the issue by checking the current upstream links, re‑associating the local branch with an existing remote branch, or removing the upstream link entirely.
branchpull errorupstream
0 likes · 4 min read

This article walks through a real‑world Nginx reverse‑proxy SSL issue, explains the root cause of 502 and handshake failures caused by missing SNI support, and provides step‑by‑step configuration changes and code snippets to resolve the problem.
NginxSNISSL
0 likes · 8 min read

The article explains the vague but important upstream/downstream terminology in Linux, illustrating its meaning with ISP traffic, kernel development, distribution packaging, application maintenance, and package‑manager automation, and shows why understanding data flow direction matters for developers and maintainers.
downstreamkernelpackage-management
0 likes · 8 min read

This article explains the meaning of Nginx upstream directives max_fails and fail_timeout, shows their default values, walks through a step‑by‑step experiment with two PHP‑FPM backends, and clarifies common misconceptions about failure handling and timeout settings.
BackendNginxPHP-FPM
0 likes · 6 min read


JD TechJun 2, 2021 · Backend Development
This article explains how to configure Nginx as a reverse proxy to maintain long‑lived client and server connections, optimize keep‑alive parameters, and avoid connection churn in high‑QPS scenarios, providing practical code examples and advanced tuning tips.
HTTPNginxconfiguration
0 likes · 10 min read

This step‑by‑step guide shows how to clone a forked GitHub repository, configure the upstream remote, fetch and merge upstream updates, resolve any conflicts, and push the synchronized code back to your fork, ensuring your local copy stays up to date.
GitGitHubfetch
0 likes · 8 min read

This tutorial walks through compiling Nginx from source, configuring a three‑node backend pool with weighted load balancing, setting up reverse‑proxy directives, integrating the nginx_upstream_check_module for health monitoring, and verifying the setup with curl and test commands.
compilationreverse-proxyupstream
0 likes · 12 min read

This article explains Nginx's role as an HTTP, reverse‑proxy, and mail server, introduces load‑balancing concepts, details the upstream and proxy modules, compares scheduling algorithms, and provides step‑by‑step configuration examples with code snippets to set up a functional load‑balancing environment.
Nginxload balancingserver
0 likes · 16 min read

This article examines the weak health_check mechanism of open‑source Nginx, demonstrates a test setup with two Tomcat backends, analyzes access and error logs to show how Nginx retries failed servers, explains the role of max_fails, fail_timeout, and compares it with Nginx Plus features.
Nginxfail_timeouthealth check
0 likes · 10 min read

This tutorial walks through configuring Nginx upstream for load balancing and enabling proxy caching of static resources, covering experiment topology, environment setup, key upstream parameters, example configurations, cache directives, and performance observations.
Nginxcachingload balancing
0 likes · 6 min read

This guide outlines the five primary Nginx load‑balancing methods—Round Robin, Least Connections, Least Time (header or last_byte), IP Hash, and generic Hash—explaining how each algorithm works and showing the corresponding upstream configuration syntax for assigning server weights and parameters.
BackendHashLeast Connections
0 likes · 3 min read

This guide explains how to set up Nginx as a reverse proxy, create an upstream server group, and configure load‑balancing directives so that two web servers can share traffic and handle increased load efficiently.
Backendconfigurationload balancing
0 likes · 4 min read
