How to configure NGINX as a load balancer

Поделиться
HTML-код
  • Опубликовано: 24 авг 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...

Комментарии • 37

  • @akhilrajvr9586
    @akhilrajvr9586 8 месяцев назад +2

    Configured nginx as reverse proxy and load balancer
    Thank you

  • @tamelearninghub
    @tamelearninghub 4 месяца назад

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

  • @randomguy3784
    @randomguy3784 Год назад +3

    Compact. Precise. Helpful.

  • @SunnySingh021
    @SunnySingh021 6 лет назад +2

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

  • @alamjim6117
    @alamjim6117 8 месяцев назад

    no nonsense. straight forward. understood everything. thanks.

  • @amjedjabari1929
    @amjedjabari1929 6 лет назад +7

    this is a great video, thank you.

  • @Hellmiauz
    @Hellmiauz 2 года назад +2

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

  • @dantedt3931
    @dantedt3931 Год назад +1

    Great video!

  • @sgsandeep
    @sgsandeep 4 года назад +2

    fantastic one Thank you!

  • @utkarshvashishtha4375
    @utkarshvashishtha4375 Год назад +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.

  • @DRiKkOrochha
    @DRiKkOrochha 4 года назад +3

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

  • @cloudsystem3740
    @cloudsystem3740 3 года назад

    man that was epic thank you

  • @bombhoredomains8393
    @bombhoredomains8393 4 года назад

    Good job Sir. Thanks very much.

  • @WokCorner
    @WokCorner 3 года назад +2

    nginx is so easy! Thanks for this video.

  • @DaCurse0
    @DaCurse0 4 года назад +1

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

  • @Tuguj
    @Tuguj 4 года назад +1

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

  • @VitalJeevanjot
    @VitalJeevanjot 3 года назад

    Very nice, Thanx!

  • @addtyu6176
    @addtyu6176 3 года назад +1

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

  • @feeelgoood9580
    @feeelgoood9580 4 года назад

    nice, thank you!

  • @theevilapple_
    @theevilapple_ 7 месяцев назад

    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?

  • @blissweb
    @blissweb 2 года назад

    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 ?

  • @coderman1
    @coderman1 4 года назад +1

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

  • @tarvinder91
    @tarvinder91 4 года назад

    short crispy and concise

  • @joja4323
    @joja4323 Год назад

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

  • @anandadake9960
    @anandadake9960 2 года назад

    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!,

  • @_prothegee
    @_prothegee 2 года назад

    terima kasih

  • @srikanthlolla3344
    @srikanthlolla3344 4 года назад

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

  • @whitebob358
    @whitebob358 3 года назад

    nice video

  • @birdyyyy
    @birdyyyy 4 года назад

    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 4 года назад

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

  • @SHAHIDKARIMI
    @SHAHIDKARIMI 3 года назад

    Great...

  • @Alexandrebluenote
    @Alexandrebluenote 3 года назад

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

  • @prmswrn
    @prmswrn 3 года назад

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