23
1 NTT Communications Cloudⁿ Load Balancing Advanced Operation Manual Ver.1.0 Please refrain from any secondary distribution (distributing, copying, or providing this booklet or any similar acts) of the content of the booklet.

Load Balancing Advanced Operation Manualinfo_e.cloudn-service.com/wp-content/uploads/documents/...to Elastic Load Balancing (ELB) of AWS. By using Cloudn Load Balancing Advanced, a

  • Upload
    others

  • View
    19

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Load Balancing Advanced Operation Manualinfo_e.cloudn-service.com/wp-content/uploads/documents/...to Elastic Load Balancing (ELB) of AWS. By using Cloudn Load Balancing Advanced, a

1

NTT Communications

Cloudⁿ

Load Balancing Advanced

Operation Manual

Ver.1.0

Please refrain from any secondary distribution (distributing, copying,

or providing this booklet or any similar acts) of the content of the

booklet.

Page 2: Load Balancing Advanced Operation Manualinfo_e.cloudn-service.com/wp-content/uploads/documents/...to Elastic Load Balancing (ELB) of AWS. By using Cloudn Load Balancing Advanced, a

2

Version Date of Update Revision

Ver.1.0 September 26, 2013 First edition created

Page 3: Load Balancing Advanced Operation Manualinfo_e.cloudn-service.com/wp-content/uploads/documents/...to Elastic Load Balancing (ELB) of AWS. By using Cloudn Load Balancing Advanced, a

3

1 Introduction P4 - 1) Outlook of the Service

2) What Should Be Prepared in Advance

3) Starting to Use the LBA Service

3 Using the LBA Service P8 - 1) Creating a New LBA (Basic Config)

2) Registering a Virtual Server under an LBA

3) Modifying an LBA (Detailed Setting)

4) Deleting an LBA

5) Registering an SSL Certificate

Contents

2 Preparing the Use of the LBA Service P7 1) Starting Up the LBA Console

4 Precautions P23 1) Precautions for Creating an LBA

Page 4: Load Balancing Advanced Operation Manualinfo_e.cloudn-service.com/wp-content/uploads/documents/...to Elastic Load Balancing (ELB) of AWS. By using Cloudn Load Balancing Advanced, a

1-1) Outlook of the Service

4

This manual describes the method of using Cloudn Load Balancing Advanced (LBA).

Cloudn Load Balancing Advanced (LBA) is a load distribution service that automatically distributes application traffic to two or more Cloudn Compute virtual servers and is equivalent to Elastic Load Balancing (ELB) of AWS. By using Cloudn Load Balancing Advanced, a great amount of traffic coming over the Internet can be efficiently processed with two or more Cloudn Compute virtual servers in use, and it is possible to construct a scalable system that is not restricted by the performance of a single virtual server.

Some major functions available are as described below. Red letters indicate the functions newly added from version 2. ■Distribution of Application Traffic

When a load balancer is created, a special virtual server, called load balancer instance (LBI), is created in the zone specified at the time of creation, and the application traffic (HTTP and HTTP) arriving the virtual server is distributed to the Cloudn Compute virtual servers having been registered in advance.

The number of LBI's automatically increases or decreases based on the number of average simultaneous connections.

The type of load balance is layer 4 (TCP/SSL) and layer 7 (HTTP/HTTPS). The HTTP/HTTPS session from a client is terminated with LBI. By using Cookie, a session with a virtual server can be maintained. By registering the SSL certificate to the load balancer, SSL communications can be

conducted from the client to the load balancer. ■Health Check

The Cloudn Load Balancing Advanced service executes a health check on the virtual servers where the load is distributed, and, if a virtual server should fail to respond correctly, the virtual server is excluded from the destination of load distribution.

Health checks also of excluded virtual servers are continuously executed, and an excluded virtual server is added to the destination of load distribution when it normally responds.

As default, the health check of a virtual server is conducted with port 80 by using the TCP protocol.

When the HTTP/HTTPS protocol is used for a health check, an access is made to a specific URL path, and a judgment is made depending on whether a successful response (a 200 number) is returned.

VM

VM

VM User of an application

program

Traffic to LBA is distributed with

DNS round robin!

DNS

LBA itself scales up to process a large

amount of traffic.

Internet

Page 5: Load Balancing Advanced Operation Manualinfo_e.cloudn-service.com/wp-content/uploads/documents/...to Elastic Load Balancing (ELB) of AWS. By using Cloudn Load Balancing Advanced, a

Starting to Use the LBA Service

From the Cloudn portal, start using the LBA service. For the method of starting to use

the service, see section 3-1), "Starting to Use the Service" in "Cloudn Portal Operation

Manual".

A Service to Connect to the Internet

Prepare a service to connect to the Internet.

Example: OCN Dial Access Service, OCN ADSL Connection Service, Super OCN, or other always-on connection service

*An Internet connection service provided from some other company can be used.

* If a proxy sever is used in the customer's company, check that "https (port number 443)" is open.

5

Equipment to Connect to the Internet

Prepare the equipment necessary to have an access to an intranet or the Internet such

as a personal computer, a modem, and so forth.

To use Cloudn AutoScaling, the following prerequisites need to be prepared.

1-2) What Should Be Prepared in Advance

Page 6: Load Balancing Advanced Operation Manualinfo_e.cloudn-service.com/wp-content/uploads/documents/...to Elastic Load Balancing (ELB) of AWS. By using Cloudn Load Balancing Advanced, a

The use of the LBA service is started.

1-3) Starting to Use the LBA Service

6

The use of the LBA service is started.

Login to the Cloudⁿ Portal, and hover the mouse over the "LBA" icon of the East

Japan Region to view and click on "Sign Up Now".

1

2

Click

Page 7: Load Balancing Advanced Operation Manualinfo_e.cloudn-service.com/wp-content/uploads/documents/...to Elastic Load Balancing (ELB) of AWS. By using Cloudn Load Balancing Advanced, a

2-1) Starting Up the LBA Console

7

Start up the LBA console from the Cloudn Portal.

1 Login to the Cloudⁿ Portal, and hover the mouse over the "LBA" icon of the region of

the use to view and click on "Console".

The LBA consol starts up in a new window, and "Load Balancing Advanced (LBA)

List" is displayed as an initial screen.

2

Click

Page 8: Load Balancing Advanced Operation Manualinfo_e.cloudn-service.com/wp-content/uploads/documents/...to Elastic Load Balancing (ELB) of AWS. By using Cloudn Load Balancing Advanced, a

3-1) Creating a New LBA (Basic Config)

8

Enter the LBA name. If a listener needs to be added, fill in the listeners setting (LBA

Protocol, LBA Port, Compute Protocol, Compute Port, and SSL Certificate), and click on

the "Add" button.

Click on the "Create (Basic Config)" button.

1

2

A new load balancer is created.

To fill in the SSL certificate, it is required to complete the registration of the SSL

certificate in advance (see page 22).

If HTTPS or SSL is selected as the LBA protocol, the SSL certificate is required. If

TCP is selected as the Compute protocol, TCP or SSL can be selected as the LBA

protocol.

As default HTTP is included in the Listeners setting. If it is not required, it can be

deleted.

Page 9: Load Balancing Advanced Operation Manualinfo_e.cloudn-service.com/wp-content/uploads/documents/...to Elastic Load Balancing (ELB) of AWS. By using Cloudn Load Balancing Advanced, a

3-1) Creating a New LBA (Basic Config)

9

An LBA is created when "OK" is clicked.

3

4

Check the Listeners setting, and click on the "OK" button.

The status changes from "Creating"to "Running" in several minutes, indicating the

completion of creating the LBA.

Page 10: Load Balancing Advanced Operation Manualinfo_e.cloudn-service.com/wp-content/uploads/documents/...to Elastic Load Balancing (ELB) of AWS. By using Cloudn Load Balancing Advanced, a

The following description uses a specific example to explain the method of registering a virtual

server created separately on Compute (East Japan Region) to the load balancer created in

section 3-1).

3-2) Registering a Virtual Server under an LBA

10

Click on "Instances".

Click on the "Modify (Detailed Config)" button.

1

2

Page 11: Load Balancing Advanced Operation Manualinfo_e.cloudn-service.com/wp-content/uploads/documents/...to Elastic Load Balancing (ELB) of AWS. By using Cloudn Load Balancing Advanced, a

3-2) Registering a Virtual Server under an LBA

11

Select the virtual server to be registered to the LBA from "Your Instances

(Unregistered with LBA)" in the lower part of the screen and click on the "Register

Instances with LBA" button.

3

Page 12: Load Balancing Advanced Operation Manualinfo_e.cloudn-service.com/wp-content/uploads/documents/...to Elastic Load Balancing (ELB) of AWS. By using Cloudn Load Balancing Advanced, a

3-2) Registering a Virtual Server under an LBA

12

When a click is made on the "OK" button, the virtual server is registered to the LBA, and

the virtual server registered to the "Instances Registered with LBA" is displayed.

4

The status of the virtual server can be checked with a health check on the virtual

server. "InService" denotes healthy servers, while "OutOfService denotes unhealthy

servers.

To conduct a health check, the health check setting needs to be completed in

advance (see page 16).

Page 13: Load Balancing Advanced Operation Manualinfo_e.cloudn-service.com/wp-content/uploads/documents/...to Elastic Load Balancing (ELB) of AWS. By using Cloudn Load Balancing Advanced, a

The Listeners setting (detailed setting) is to be made.

3-3) Modifying an LBA (Detailed Setting)

13

The Listeners setting (detailed setting) of the LBA is to be made. Select a protocol, and

click on the "Modify" button.

Click on the "Listeners" link.

1

2

Page 14: Load Balancing Advanced Operation Manualinfo_e.cloudn-service.com/wp-content/uploads/documents/...to Elastic Load Balancing (ELB) of AWS. By using Cloudn Load Balancing Advanced, a

3-3) Modifying an LBA (Detailed Setting)

14

Select the method of maintaining sessions. Select "Enable Load Balancer Generated

Cookie Stickiness" and fill in the "Expiation Period". Or, select "Enable Application

Generated Cookie Stickiness" and fill in the "Cookie Name". Check the settings, and

click on the "OK" button.

3

The Listeners settings (LBA Protocol, LBA Port, Compute Protocol, Compute Port,

and SSL Certificate) can be also changed from the above screen.

Page 15: Load Balancing Advanced Operation Manualinfo_e.cloudn-service.com/wp-content/uploads/documents/...to Elastic Load Balancing (ELB) of AWS. By using Cloudn Load Balancing Advanced, a

3-3) Modifying an LBA (Detailed Setting)

15

When a click is made on the "OK" button, the settings are changed.

4

After the settings are hanged, the screen described above reappears.

Page 16: Load Balancing Advanced Operation Manualinfo_e.cloudn-service.com/wp-content/uploads/documents/...to Elastic Load Balancing (ELB) of AWS. By using Cloudn Load Balancing Advanced, a

The health check settings are to be made.

3-3) Modifying an LBA (Detailed Setting)

16

5 Click on the "Health Check" link.

Page 17: Load Balancing Advanced Operation Manualinfo_e.cloudn-service.com/wp-content/uploads/documents/...to Elastic Load Balancing (ELB) of AWS. By using Cloudn Load Balancing Advanced, a

3-3) Modifying an LBA (Detailed Setting)

17

Set up the method of the health check from the LBA to Compute, and click on the "OK"

button.

6

Page 18: Load Balancing Advanced Operation Manualinfo_e.cloudn-service.com/wp-content/uploads/documents/...to Elastic Load Balancing (ELB) of AWS. By using Cloudn Load Balancing Advanced, a

3-3) Modifying an LBA (Detailed Setting)

18

When a click is made on the "OK" button, the settings are changed.

7

The screen does not change after the settings are changed.

Page 19: Load Balancing Advanced Operation Manualinfo_e.cloudn-service.com/wp-content/uploads/documents/...to Elastic Load Balancing (ELB) of AWS. By using Cloudn Load Balancing Advanced, a

A security group (restriction on sending and receiving communications) is to be applied to the

LBA.

3-3) Modifying an LBA (Detailed Setting)

19

Select an applicable security group, and click on the "Apply" button.

Click on the "Security" link.

8

9

Make selection separately from the security groups having been created with the

Compute (East Japan Region) service.

Page 20: Load Balancing Advanced Operation Manualinfo_e.cloudn-service.com/wp-content/uploads/documents/...to Elastic Load Balancing (ELB) of AWS. By using Cloudn Load Balancing Advanced, a

3-3) Modifying an LBA (Detailed Setting)

20

When a click is made on the "OK" button, the settings are changed.

10

The screen does not change after the settings are changed.

Page 21: Load Balancing Advanced Operation Manualinfo_e.cloudn-service.com/wp-content/uploads/documents/...to Elastic Load Balancing (ELB) of AWS. By using Cloudn Load Balancing Advanced, a

An LBA is to be deleted.

3-4) Deleting an LBA

21

Select an LBA to be deleted, and click on the "Delete" button.

1

2

When a click is made on the "OK" button, the LBA is deleted.

Page 22: Load Balancing Advanced Operation Manualinfo_e.cloudn-service.com/wp-content/uploads/documents/...to Elastic Load Balancing (ELB) of AWS. By using Cloudn Load Balancing Advanced, a

An SSL certificate is to be registered.

3-5) Registering an SSL Certificate

22

Click on the "SSL Certificates Registration" button.

1

2

Fill in "Certificate Name", "Private Key", "Certificate", and "Intermediate CA

Certificate", and click on the "Register" button.

Page 23: Load Balancing Advanced Operation Manualinfo_e.cloudn-service.com/wp-content/uploads/documents/...to Elastic Load Balancing (ELB) of AWS. By using Cloudn Load Balancing Advanced, a

4-1) Precautions for Creating an LBA

23

・To use an LBA, it is required to use Compute and an LBA. Start using Compute

form the Cloudn Portal.

・To define an alias of a DNS, use the Cloudn DNS.

・Upload SSL certificate documents in the X.509 PEM format.

An SSL certificate registered to a listener cannot be deleted.

When data is entered, pay attention not to enter a return code at the last.

・A session cannot be maintained if the LBA protocol is "TCP"/"SSL" with a listener.

・When Compute is registered, the Availability Zone of the LBA is changed

depending on the Availability Zone of the Compute to be registered to the LBA. At

this time, the following message appears:

"To change the zone of the LBA, the list of LBA's is displayed. Do you want to

continue?"

Follow the message, and wait for the Availability Zone changing processing on the

LBA list screen.

・As for the LBA, when Computes are registered, it is recommended that the same

number of Computes should be assigned to each zone to distribute the load equally

to each zone.