SlideShare a Scribd company logo
Load Balancing Container with
Nginx
PRESENTED BY:
KUMAR MAYANK
GUIDED BY:
MRS.NEENA ELSA JOSE PRAKASH
OverView:
• Containerization
• Handling HTTP Request
• Load Balancer
• Nginx
• Nginx Implementation
• Configuring the Nginx
• Demonstration
• Nginx major clients
• Conclusion
• Reference
CONTAINERIZATION
• Containerization is a lightweight alternative to full
machine virtualization that involves encapsulating an
application in a container with its own operating
environment.
• Docker containers are designed to run on everything
from physical computers to virtual machines, bare-
metal servers, OpenStack cloud clusters, public
instance and more.
CONTAINERIZATION
• Abstraction of the host system away from the
containerized application.
• Extremely lightweight, isolated execution
environments.
• Simple Dependency Management and Application
Versioning
Handling HTTP Request
Server
Default port no.: 80
client
server
clients
• Increasing load on a single
server.
• Less reliable
SOLUTION:
• Load Balancing using multiple Duplicate server.
CHALLENGE:
• Each server will have it’s unique IP.
• Handling multiple IPs.
LOAD BALANCER
• Load balancing refers to efficiently distributing
incoming network traffic across a group of backend
servers, also known as a server farm or server pool.
• Distributes client requests or network load efficiently
across multiple servers
LOAD BALANCER (cont..)
• Ensures high availability and reliability by sending
requests only to servers that are online
• Provides the flexibility to add or subtract servers as
demand dictates
NGINX:
NGINX was written by Igor Sysoev, a Russian
system and software engineer. From the very beginning
NGINX was created with a vision on how the pressure
for content and the increasing number of web and
mobile users will transform the essential infrastructure
elements used by the Internet focused companies.
NGINX:
NGINX has been really successful with customers in
a Variety of market areas which include Service
providers, Media & Entertainment, Online Retail, Social
Media and more.
Today over 10% of the top 1,000,000 Internet web
sites and 25% of the top 1,000 web sites run on NGINX,
including Groupon, LivingSocial, Playdom, Zappos,
Hulu, TechCrunch, Dropbox, Yandex, WordPress and
many others.
NGINX:
• NGINX is the best-in-class load balancing solutions
used by high-traffic websites such as Dropbox, Netflix,
and Zynga.
• As a software-based load balancer, NGINX is much
less expensive than hardware-based solutions with
similar capabilities.
• The comprehensive load balancing capabilities in
NGINX enables to build a highly optimized application
delivery network.
NGINX: (cont..)
The following load balancing mechanisms (or methods) are supported
in nginx:
• round-robin — requests to the application servers are distributed in
a round-robin fashion,
• least-connected — next request is assigned to the server with the
least number of active connections,
• ip-hash — a hash-function is used to determine what server should
be selected for the next request (based on the client’s IP address).
Default Nginx load balancing configuration:
The simplest configuration for load balancing with nginx may look like
the following:
Nginx Implementation:
Multiple
servers
Multiple
clients
NGINX server
• Default port no.: 80
Configuring the Nginx
Configuring the Nginx
• Create Container for Nginx server
• Start Nginx server Container
• Attach Nginx server Container
Configuring the Nginx
• Install Nginx web server
• Open Nginx Configuration file
Configuring the Nginx
• Configuration:
• Start or Restart Nginx Service
Demonstration :
NGINX users:
Conclusion:
• NGINX has the lowest memory footprint possible and
optimizes CPU usage while delivering maximum
performance even on a very inexpensive server
hardware.
• NGINX supports all the major standards and
protocols, providing the set of features necessary
today to build a scalable web setup.
• NGINX configuration is logical and flexible and allows
more efficiency and scalability in day-to-day
engineering.
References:
• http://nginx.org/en/docs/http/load_balancing.html
• http://www.hostingadvice.com/how-to/nginx-vs-
apache/
• https://www.upguard.com/articles/apache-vs-nginx
• https://docs.docker.com/reference/
• https://docs.docker.com/engine/reference/commandl
ine/container/
Thank you.
Q&A

More Related Content

PPTX
NGINX Installation and Tuning
PPTX
Supercharge Application Delivery to Satisfy Users
PPTX
NGINX for Application Delivery & Acceleration
PDF
KubeCon + CloudNative Con NA 2021 | A New Generation of NATS
PPTX
Running Neutron at Scale - Gal Sagie & Eran Gampel - OpenStack Day Israel 2016
PPTX
The 3 Models in the NGINX Microservices Reference Architecture
PDF
Monitoring Highly Dynamic and Distributed Systems with NGINX Amplify
PPTX
Amazon Cloud Overview
NGINX Installation and Tuning
Supercharge Application Delivery to Satisfy Users
NGINX for Application Delivery & Acceleration
KubeCon + CloudNative Con NA 2021 | A New Generation of NATS
Running Neutron at Scale - Gal Sagie & Eran Gampel - OpenStack Day Israel 2016
The 3 Models in the NGINX Microservices Reference Architecture
Monitoring Highly Dynamic and Distributed Systems with NGINX Amplify
Amazon Cloud Overview

What's hot (20)

PDF
Apache Kafka - Martin Podval
PDF
Serverless for the Cloud Native Era with Fission
PDF
Devoxx Morocco 2016 - Microservices with Kafka
PDF
Effectively-once semantics in Apache Pulsar
PDF
Pulsar - flexible pub-sub for internet scale
PDF
Service Discovery 101
PDF
Single tenant software to multi-tenant SaaS using K8S
PPTX
What's New in NGINX Plus R8
PDF
Microservices Using Docker Containers for Magento 2
PPTX
Serverless
PDF
GopherCon 2017 - Writing Networking Clients in Go: The Design & Implementati...
PPTX
What’s New in NGINX Ingress Controller for Kubernetes Release 1.5.0
PPTX
Apache Bookkeeper and Apache Zookeeper for Apache Pulsar
PPTX
Maximizing PHP Performance with NGINX
PPTX
NATS for Modern Messaging and Microservices
PDF
Apache BookKeeper: A High Performance and Low Latency Storage Service
PDF
The Easiest Way to Configure Security for Clients AND Servers (Dani Traphagen...
PPTX
What's New in NGINX Plus R7?
PDF
October 2016 HUG: Pulsar,  a highly scalable, low latency pub-sub messaging s...
PPTX
Xen Cloud Platform by Tim Mackey
Apache Kafka - Martin Podval
Serverless for the Cloud Native Era with Fission
Devoxx Morocco 2016 - Microservices with Kafka
Effectively-once semantics in Apache Pulsar
Pulsar - flexible pub-sub for internet scale
Service Discovery 101
Single tenant software to multi-tenant SaaS using K8S
What's New in NGINX Plus R8
Microservices Using Docker Containers for Magento 2
Serverless
GopherCon 2017 - Writing Networking Clients in Go: The Design & Implementati...
What’s New in NGINX Ingress Controller for Kubernetes Release 1.5.0
Apache Bookkeeper and Apache Zookeeper for Apache Pulsar
Maximizing PHP Performance with NGINX
NATS for Modern Messaging and Microservices
Apache BookKeeper: A High Performance and Low Latency Storage Service
The Easiest Way to Configure Security for Clients AND Servers (Dani Traphagen...
What's New in NGINX Plus R7?
October 2016 HUG: Pulsar,  a highly scalable, low latency pub-sub messaging s...
Xen Cloud Platform by Tim Mackey
Ad

Similar to Load Balancing Container with Nginx (20)

PPTX
Scale your application to new heights with NGINX and AWS
PPTX
Load Balancing Apps in Docker Swarm with NGINX
PDF
Microservices with NGINX pdf
PPTX
DockerCon US 2016 - Docker Networking deep dive
PPTX
Docker for Ops: Docker Networking Deep Dive, Considerations and Troubleshooti...
PPTX
Introducing the Microservices Reference Architecture Version 1.2
PPTX
Introduction to NGINX web server
PDF
Using NGINX and NGINX Plus as a Kubernetes Ingress
PDF
ITB2017 - Nginx ppf intothebox_2017
PDF
NGINX: The Past, Present and Future of the Modern Web
PPTX
LOAD BALANCING ALGORITHMS
PPTX
Optimising nfv service chains on open stack using docker
PPTX
Optimising nfv service chains on open stack using docker
PPTX
Optimising nfv service chains on open stack using docker
PDF
Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P...
PPTX
Containers and Docker
PDF
Load Balancing Applications on Kubernetes with NGINX
PPTX
MCSA 70-412 Chapter 09
PDF
Building a sdn solution for the deployment of web application stacks in docker
PPTX
Kubernetes: від знайомства до використання у CI/CD
Scale your application to new heights with NGINX and AWS
Load Balancing Apps in Docker Swarm with NGINX
Microservices with NGINX pdf
DockerCon US 2016 - Docker Networking deep dive
Docker for Ops: Docker Networking Deep Dive, Considerations and Troubleshooti...
Introducing the Microservices Reference Architecture Version 1.2
Introduction to NGINX web server
Using NGINX and NGINX Plus as a Kubernetes Ingress
ITB2017 - Nginx ppf intothebox_2017
NGINX: The Past, Present and Future of the Modern Web
LOAD BALANCING ALGORITHMS
Optimising nfv service chains on open stack using docker
Optimising nfv service chains on open stack using docker
Optimising nfv service chains on open stack using docker
Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P...
Containers and Docker
Load Balancing Applications on Kubernetes with NGINX
MCSA 70-412 Chapter 09
Building a sdn solution for the deployment of web application stacks in docker
Kubernetes: від знайомства до використання у CI/CD
Ad

Recently uploaded (20)

PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
Cloud computing and distributed systems.
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Approach and Philosophy of On baking technology
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
A Presentation on Artificial Intelligence
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Per capita expenditure prediction using model stacking based on satellite ima...
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Cloud computing and distributed systems.
Digital-Transformation-Roadmap-for-Companies.pptx
Agricultural_Statistics_at_a_Glance_2022_0.pdf
gpt5_lecture_notes_comprehensive_20250812015547.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Approach and Philosophy of On baking technology
Diabetes mellitus diagnosis method based random forest with bat algorithm
Building Integrated photovoltaic BIPV_UPV.pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
Assigned Numbers - 2025 - Bluetooth® Document
MYSQL Presentation for SQL database connectivity
A Presentation on Artificial Intelligence
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Mobile App Security Testing_ A Comprehensive Guide.pdf
Encapsulation_ Review paper, used for researhc scholars

Load Balancing Container with Nginx

  • 1. Load Balancing Container with Nginx PRESENTED BY: KUMAR MAYANK GUIDED BY: MRS.NEENA ELSA JOSE PRAKASH
  • 2. OverView: • Containerization • Handling HTTP Request • Load Balancer • Nginx • Nginx Implementation • Configuring the Nginx • Demonstration • Nginx major clients • Conclusion • Reference
  • 3. CONTAINERIZATION • Containerization is a lightweight alternative to full machine virtualization that involves encapsulating an application in a container with its own operating environment. • Docker containers are designed to run on everything from physical computers to virtual machines, bare- metal servers, OpenStack cloud clusters, public instance and more.
  • 4. CONTAINERIZATION • Abstraction of the host system away from the containerized application. • Extremely lightweight, isolated execution environments. • Simple Dependency Management and Application Versioning
  • 7. server clients • Increasing load on a single server. • Less reliable
  • 8. SOLUTION: • Load Balancing using multiple Duplicate server. CHALLENGE: • Each server will have it’s unique IP. • Handling multiple IPs.
  • 9. LOAD BALANCER • Load balancing refers to efficiently distributing incoming network traffic across a group of backend servers, also known as a server farm or server pool. • Distributes client requests or network load efficiently across multiple servers
  • 10. LOAD BALANCER (cont..) • Ensures high availability and reliability by sending requests only to servers that are online • Provides the flexibility to add or subtract servers as demand dictates
  • 11. NGINX: NGINX was written by Igor Sysoev, a Russian system and software engineer. From the very beginning NGINX was created with a vision on how the pressure for content and the increasing number of web and mobile users will transform the essential infrastructure elements used by the Internet focused companies.
  • 12. NGINX: NGINX has been really successful with customers in a Variety of market areas which include Service providers, Media & Entertainment, Online Retail, Social Media and more. Today over 10% of the top 1,000,000 Internet web sites and 25% of the top 1,000 web sites run on NGINX, including Groupon, LivingSocial, Playdom, Zappos, Hulu, TechCrunch, Dropbox, Yandex, WordPress and many others.
  • 13. NGINX: • NGINX is the best-in-class load balancing solutions used by high-traffic websites such as Dropbox, Netflix, and Zynga. • As a software-based load balancer, NGINX is much less expensive than hardware-based solutions with similar capabilities. • The comprehensive load balancing capabilities in NGINX enables to build a highly optimized application delivery network.
  • 14. NGINX: (cont..) The following load balancing mechanisms (or methods) are supported in nginx: • round-robin — requests to the application servers are distributed in a round-robin fashion, • least-connected — next request is assigned to the server with the least number of active connections, • ip-hash — a hash-function is used to determine what server should be selected for the next request (based on the client’s IP address).
  • 15. Default Nginx load balancing configuration: The simplest configuration for load balancing with nginx may look like the following:
  • 19. Configuring the Nginx • Create Container for Nginx server • Start Nginx server Container • Attach Nginx server Container
  • 20. Configuring the Nginx • Install Nginx web server • Open Nginx Configuration file
  • 21. Configuring the Nginx • Configuration: • Start or Restart Nginx Service
  • 24. Conclusion: • NGINX has the lowest memory footprint possible and optimizes CPU usage while delivering maximum performance even on a very inexpensive server hardware. • NGINX supports all the major standards and protocols, providing the set of features necessary today to build a scalable web setup. • NGINX configuration is logical and flexible and allows more efficiency and scalability in day-to-day engineering.
  • 25. References: • http://nginx.org/en/docs/http/load_balancing.html • http://www.hostingadvice.com/how-to/nginx-vs- apache/ • https://www.upguard.com/articles/apache-vs-nginx • https://docs.docker.com/reference/ • https://docs.docker.com/engine/reference/commandl ine/container/

Editor's Notes

  • #5:  A containerized application should not rely on or be concerned with details about the underlying host's resources or architecture. This simplifies development assumptions about the operating environment. Likewise, to the host, every container is a black box. It does not care about the details of the application inside. Containers are isolated at the process level, sharing the host's kernel. This means that the container itself does not include a complete operating system, leading to almost instant startup times. Developers can easily run hundreds of containers from their workstation without an issue. The host system does not have to be concerned with the dependencies needed to run a specific application. As long as it can run Docker, it should be able to run all Docker containers.
  • #10:  routing client requests across all servers capable of fulfilling those requests in a manner that maximizes speed and capacity utilization and ensures that no one server is overworked, which could degrade performance. If a single server goes down, the load balancer redirects traffic to the remaining online servers. When a new server is added to the server group, the load balancer automatically starts to send requests to it.
  • #11:  routing client requests across all servers capable of fulfilling those requests in a manner that maximizes speed and capacity utilization and ensures that no one server is overworked, which could degrade performance. If a single server goes down, the load balancer redirects traffic to the remaining online servers. When a new server is added to the server group, the load balancer automatically starts to send requests to it.
  • #18: A reverse proxy server is a type of proxy server that typically sits behind the firewall in a private network and directs client requests to the appropriate backend server. A reverse proxy provides an additional level of abstraction and control to ensure the smooth flow of network traffic between clients and servers.