NGINX can use three different methods to connect to upstream servers: round-robin, least connections, and IP hashing. In this video, learn how to turn NGINX into a load balancer by configuring upstreams to use these methods.
- [Instructor] Proxying and load balancing…are similar functions for NGINX.…But you have no idea how similar they are.…In fact, they're pretty much the same.…The only difference is the number of servers in the upstream…and the method used to connect…to each of the servers in turn.…The documentation at nginx.org gives more details…on using NGINX as a load balancer.…Let's take a look at the different…load balancing methods NGINX uses.…NGINX uses three methods to connect to upstream servers.…Round robin, least connections, and IP hashing.…
These methods are indicated with directives…applied within an upstream block.…The default method is round robin.…And there's no directive to use this method.…Requests are sent to each upstream server one at a time…with no preference given to the server.…This is an easy, reasonable method…for evenly distributing a load over several servers.…With the least connections method,…NGINX considers the number of connections…an upstream server is already processing.…The server with the fewest connections will be preferred…
- Installing NGINX on Linux
- Configuring a virtual host
- Installing PHP and MariaDB for the LEMP stack
- Securing sites with NGINX
- Creating SSL certificates
- Reverse proxies
- Load balancing
Skill Level Beginner
DevOps Foundations: Infrastructure as Codewith Ernest Mueller2h 6m Intermediate
1. Install and Configure NGINX
2. The Linux, NGINX, MySQL, and PHP Stack
3. NGINX Security
4. Reverse Proxies and Load Balancers
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.