How to configure NGINX as a load balancer

Sdílet
Vložit
  • čas přidán 8. 09. 2024
  • 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:
    linuxacademy.c...
    ===============
    Linux Academy:
    linuxacademy.com/
    ===============
    Try Linux Academy FREE for seven days:
    linuxacademy.c...
    Looking to get your team trained on the latest cloud technologies?
    linuxacademy.c...
    Like us on Facebook:
    / linuxacademycom
    Follow us on Twitter:
    / linuxacademycom
    Connect with us on LinkedIn:
    / linuxacademy
    Read our blog:
    linuxacademy.c...

Komentáře • 37

  • @akhilrajvr9586
    @akhilrajvr9586 Před 9 měsíci +4

    Configured nginx as reverse proxy and load balancer
    Thank you

  • @tamelearninghub
    @tamelearninghub Před 5 měsíci +1

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

  • @randomguy3784
    @randomguy3784 Před rokem +4

    Compact. Precise. Helpful.

  • @SunnySingh021
    @SunnySingh021 Před 6 lety +3

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

  • @alamjim6117
    @alamjim6117 Před 8 měsíci

    no nonsense. straight forward. understood everything. thanks.

  • @amjedjabari1929
    @amjedjabari1929 Před 6 lety +7

    this is a great video, thank you.

  • @dantedt3931
    @dantedt3931 Před rokem +1

    Great video!

  • @sgsandeep
    @sgsandeep Před 4 lety +2

    fantastic one Thank you!

  • @DRiKkOrochha
    @DRiKkOrochha Před 4 lety +3

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

  • @WokCorner
    @WokCorner Před 3 lety +2

    nginx is so easy! Thanks for this video.

  • @bombhoredomains8393
    @bombhoredomains8393 Před 4 lety

    Good job Sir. Thanks very much.

  • @utkarshvashishtha4375
    @utkarshvashishtha4375 Před rokem +2

    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.

  • @cloudsystem3740
    @cloudsystem3740 Před 3 lety

    man that was epic thank you

  • @Hellmiauz
    @Hellmiauz Před 2 lety +2

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

  • @VitalJeevanjot
    @VitalJeevanjot Před 3 lety

    Very nice, Thanx!

  • @tarvinder91
    @tarvinder91 Před 4 lety

    short crispy and concise

  • @feeelgoood9580
    @feeelgoood9580 Před 4 lety

    nice, thank you!

  • @DaCurse0
    @DaCurse0 Před 4 lety +1

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

  • @srikanthlolla3344
    @srikanthlolla3344 Před 4 lety +1

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

  • @_prothegee
    @_prothegee Před 3 lety

    terima kasih

  • @addtyu6176
    @addtyu6176 Před 3 lety +1

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

  • @Tuguj
    @Tuguj Před 4 lety +1

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

  • @blissweb
    @blissweb Před 2 lety

    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 ?

  • @whitebob358
    @whitebob358 Před 3 lety

    nice video

  • @theevilapple_
    @theevilapple_ Před 7 měsíci

    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?

  • @anandadake9960
    @anandadake9960 Před 2 lety

    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 end)....... ?thanks you and Greetings from INDIA!,

  • @SHAHIDKARIMI
    @SHAHIDKARIMI Před 3 lety

    Great...

  • @joja4323
    @joja4323 Před rokem

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

  • @coderman1
    @coderman1 Před 4 lety +1

    acrost is not a word.
    never has been, never will be.

  • @birdyyyy
    @birdyyyy Před 4 lety

    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.

  • @avs.6avs.613
    @avs.6avs.613 Před 4 lety

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

  • @prmswrn
    @prmswrn Před 4 lety

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

  • @Alexandrebluenote
    @Alexandrebluenote Před 3 lety

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