Load Balancer: (Cloud Computing)

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 24

LOAD BALANCER

(CLOUD COMPUTING)

(PROJECT UNDER RCPLINDIA)


PROJECT BY,

KUSHAGRA MANIK
ABSTRACT

This project under cloud computing deals with


running different websites on the same IP address
but on different port numbers.Cloud computing is
the practice of using a network of remote
servers hosted on the Internet to store, manage,
and process data, rather than a local server or
a personal computer.The level of security is
very good.
INTRODUCTION:

Cloud computing is an information technology (IT)


paradigm that enables ubiquitous access to shared
pools of configurable system resources and
higher-level services that can be
rapidly provisioned with minimal management
effort, often over the Internet. Cloud computing
relies on sharing of resources to achieve coherence
and economies of scale, similar to a public utility.
Third-party clouds enable organizations to focus on
their core businesses instead of expending resources
on computer infrastructure and
maintenance.Advocates note that cloud computing
allows companies to avoid or minimize up-front IT
infrastructure costs.
AMAZON WEB SERVICES:

It is a subsidiary of Amazon.com that


provides on-demand cloud
computing platforms to individuals, companies
and governments, on a paid subscription basis.
The technology allows subscribers to have at
their disposal a full-fledged virtual cluster of
computers, available all the time, through the
Internet. AWS's version of virtual computers
have most of the attributes of a real computer
including hardware (CPU(s) & GPU(s) for
processing, local/RAM memory,
hard-disk/SSD storage); a choice of operating
systems; networking; and pre-loaded
application software such as web
servers, databases, CRM, etc.
AMAZON ELASTIC CLOUD
COMPUTE(EC2):

Amazon Elastic Compute Cloud (EC2) forms a


central part
of Amazon.com's cloud-computing platform, Amaz
on Web Services (AWS), by allowing users to
rent virtual computers on which to run their own
computer applications. EC2 encourages scalable
deployment of applications by providing a web
service through which a user can boot an Amazon
Machine Image (AMI) to configure a virtual
machine, which Amazon calls an "instance",
containing any software desired. A user can create,
launch, and terminate server-instances as needed,
paying by the second for active servers – hence the
term "elastic". EC2 provides users with control over
the geographical location of instances that allows
for latency optimization and high levels
of redundancy.
IMPLEMENTATION:

Create an EC2 machine-


1. Go to your AWS account and choose EC2 on
the services panel.
2. Select REDHAT Linux machine which is
Free Tier eligible.
3. Select the VPCs and subnets and go to
volume settings.
4. We are assigned with a default volume for
the selected EC2 machine so no need to make a
new one.
5. Next, we select the security groups we need
to assign to our EC2 machine i.e.
HTTP(80),Custom,and the default security
group provided to us SSH(20).
6. We had an existing key pair(.ppm format) so
we selected that else we could make a new one
also.
7. Now have a quick review at your EC2
machine and launch it.
8. Then we create one more machine using
same steps as above.
9.Both the instances are created now.
10. Wait for few minutes till it starts running.
WORKING ON PuTTY:

1. Open PuTTY gen and load our key and convert it


into .ppk format and save it.

2. Open PuTTY and copy the public IP address of


the created EC2 machine and copy it in the host
address box and browse the .ppk key on the AUTH
column.

3. Now log in to our EC2 machine

>ec2-user
>sudo su-

After these two commands we log in to the root user


and now we can start working in it.

4. Now we have to download two packages before


we start working.Those two packages are httpd and
wget using the “yum” command.
>yum install httpd*
>yum install wget
5.After installing all the required packages, host a
website of your choice by using the command..
Wget www.websitename.com
Here I am hosting youtube.

6. On the other instance I am hosting


Yahoo.
LOAD BALANCER :

Elastic Load Balancing (ELB) is a load-balancing service


for Amazon Web Services (AWS) deployments. ELB automatically
distributes incoming application traffic and scales resources to
meet traffic demands.

Elastic Load Balancing automatically distributes incoming


application traffic across multiple targets, such as Amazon EC2
instances, containers, and IP addresses. It can handle the varying
load of your application traffic in a single Availability Zone or
across multiple Availability Zones. Elastic Load Balancing offers
three types of load balancers that all feature the high availability,
automatic scaling, and robust security necessary to make your
applications fault tolerant.

Classic Load Balancer

Classic Load Balancer provides basic load balancing across


multiple Amazon EC2 instances and operates at both the request
level and connection level. Classic Load Balancer is intended for
applications that were built within the EC2-Classic network. We
recommend Application Load Balancer for Layer 7 and Network
Load Balancer for Layer 4 when using Virtual Private Cloud (VPC).

Key Features

High Availability
You can distribute incoming traffic across your Amazon EC2
instances in a single Availability Zone or multiple Availability
Zones. Classic Load Balancer automatically scales its request
handling capacity in response to incoming application traffic.

Health Checks
Classic Load Balancer can detect the health of Amazon EC2
instances. When it detects unhealthy EC2 instances, it no longer
routes traffic to those instances and spreads the load across the
remaining healthy instances.

Security Features
When using Amazon Virtual Private Cloud (Amazon VPC), you can
create and manage security groups associated with Classic Load
Balancer to provide additional networking and security options.
You can also create a Classic Load Balancer without public IP
addresses to serve as an internal (non-internet-facing) load
balancer.

SSL Offloading
Classic Load Balancer supports SSL termination, including
offloading SSL decryption from application instances, centralized
management of SSL certificates, and encryption to back-end
instances with optional public key authentication. Flexible cipher
support allows you to control the ciphers and protocols the load
balancer presents to clients.

Sticky Sessions
Classic Load Balancer supports the ability to stick user sessions to
specific Amazon EC2 instances using cookies. Traffic will be routed
to the same instances as the user continues to access your
application.

IPv6 Support
Classic Load Balancer supports the use of both the Internet
Protocol version 4 and 6 (IPv4 and IPv6) for EC2-Classic networks.

Layer 4 or Layer 7 Load Balancing


You can load balance HTTP/HTTPS applications and use Layer
7-specific features, such as X-Forwarded and sticky sessions. You
can also use strict Layer 4 load balancing for applications that rely
purely on the TCP protocol.

Operational Monitoring
Classic Load Balancer metrics such as request count and request
latency are reported by Amazon CloudWatch.
Logging
Use the Access Logs feature to record all requests sent to your
load balancer, and store the logs in Amazon S3 for later analysis.
The logs are useful for diagnosing application failures and
analyzing web traffic. You can use AWS CloudTrail to record
Classic Load Balancer API calls for your account and deliver log
files. The API call history enables you to perform security analysis,
resource change tracking, and compliance auditing.

STEPS FOR CREATING LOAD


BALANCER :

1. Now we create the load balancer.


2. Then we go to classic load balancer and click
there.
3. Assign a name to the load balancer.
4. Now the load balancer is created.
5. The load is created and as soon as both the
instances start working we will copy the DNS and
run it in a new tab.
6. Now we see that youtube and yahoo both the
sites are running on the same DNS provided by the
load balancer.

You might also like