Nhan Cao
Nhan Cao

Jun 28, 2021

·
1 min read
·

Nginx HTTP load balancer

Config:

NGINX Docs | HTTP Load Balancing

Load balancing across multiple application instances is a commonly used technique for optimizing resource utilization…

docs.nginx.com

Simple config: nginx.conf

sudo nano /etc/nginx/sites-available/api.nhancv.com

# start of file
# http {
upstream ncluster {
server 127.0.0.1:3000 weight=3;
server 127.0.0.1:3001;
}

server {
listen 80;
listen [::]:80;

server_name api.nhancv.com;

location / {…

--

--

More from Nhan Cao

nhancv.com

Recommended from Medium

Update Crazy

Update Crazy

Factorio Update 1.1.51 Patch Notes (Official) — January 18, 2022

Brendan Fortuner

Brendan Fortuner

Intro to Threads and Processes in Python

Raul Maldonado

Raul Maldonado

Quickly Getting Started with Google Maps API w/Python (July 2018 Platform)

Andrey Pechkurov

Andrey Pechkurov

My new blog

William Hruska

William Hruska

What are the regression testing strategies?

SACHIN KUMAR

SACHIN KUMAR

in

Google Cloud - Community

Ultimate Guide to Build your Own Chatbots and Voicebots from Scratch.

Amit Das

Amit Das

in

OpenEBS

Container Native Storage builds its High Availability in style

RedLogo

RedLogo

Me and Raspberry Pi

my rpi 3 and rpi 4

AboutHelpTermsPrivacy


Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Get unlimited access
Nhan Cao

Nhan Cao

584 Followers

nhancv.com

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech