How to configure NGINX as a load balancer

preview_player
Показать описание
NGINX is primarily used as a web server, a reverse proxy, and/or a load balancer.

In this short video, we'll go over how you can take an existing NGINX reverse proxy setup and convert it to load balance traffic to multiple backend servers.

NGINX does a great job of load balancing traffic, but that doesn't mean it needs to be complicated to configure and by the end of this video you should see that it isn't complicated at all.

Presented by one of our Training Architects, Keith Thompson.

===============

If you'd like to learn more about NGINX you should check out the NGINX Web Server Deep Dive course that is currently free during August 2018:

===============

Linux Academy:

===============

Try Linux Academy FREE for seven days:

Looking to get your team trained on the latest cloud technologies?

Like us on Facebook:

Follow us on Twitter:

Connect with us on LinkedIn:

Read our blog:
Рекомендации по теме
Комментарии
Автор

Configured nginx as reverse proxy and load balancer
Thank you

akhilrajvr
Автор

no nonsense. straight forward. understood everything. thanks.

alamjim
Автор

God bless. This is a perfect startup to an entire new topic 🎉🎉

tamelearninghub
Автор

Wtf man! I was just watching Load balancing tutorial and got your notification 🔔

SunnySingh
Автор

Great video, it helped me a lot! Greetings from Brazil! Thank you!

DRiKkOrochha
Автор

Great video. But can I put the same config on multiple machines ?? If this is running on one machine and that machine goes down, do I lose the routing ? ... even if all the other machines are up and running ?

blissweb
Автор

nginx is so easy! Thanks for this video.

WokCorner
Автор

Hi, It was really helpful, but i facing problem to achieve the same thing but on socket (TCP protocol).
It will be really appreciated if can help me with this.

utkarshvashishtha
Автор

How should your app be setup? Do you need to listen on multiple ports?

DaCurse
Автор

hey can anyone you help me out how do we specify location as static in the video, i am getting confused

avs.avs.
Автор

Great video, i have one Question my backend server is running on other port(5000, 1, 2) for that i used proxy_pass in location /api/ block how i can load balance backend too (with front ?thanks you and Greetings from INDIA!,

anandadake
Автор

how does it determine which server to send the load to?

addtyu
Автор

wow amazing... Now I have to chance to see this error [emerg] "http" directive is not allowed here in /etc/nginx/conf.d/

Tuguj
Автор

Hello I have HostGator with a dedicated server. Wanted to add a couple more dedicated servers and was wondering if this would load balance them for me.

birdyyyy
Автор

I created a conf file conf.d unable to start nginx it’s throwing error journalctl please help me on this

srikanthlolla
Автор

Hi, how would I do with the location /static { } section if the apps weren't in the localhost but in different servers?
Thank you.

Alexandrebluenote
Автор

hey, thanks for the tutorial.
I have a site running with nginx & php fpm & sqlite3 for database. if I just copy the site's content from one server to another, then the data isn't gonna sync automatically.

TLDR: how can i make this work with dynamic sites?
anyone knows a solution?

theevilapple_
Автор

Will this interfere with my current NGINX HTTPS reverse proxy setup and SSL certificates?

joja
Автор

Thank you. I am trying to configure load balancer for two different docker containers. Is it possible through nginx?

prmswrn
Автор

So the server that has the application is also the load balancer. You don't need an extra load balancer.

Hellmiauz