Add Pool Member-5 minutes a day to play with OpenStack (123)

Source: Internet
Author: User

We already have the Load Balance Pool "Web Servers" and VIP, and then we need to add member to the pool and learn how to use cloud image. Prepare two instance first: "Web1" and "Web2".

using Ubuntu Cloud Image

Since the Cirros Mirror cannot run the HTTP service, we will use Ubuntu Cloud image.
To Http://uec-images.ubuntu.com/trusty/current/trusty-server-cloudimg-amd64-disk1.img

Unlike previous instance, WEB1 and Web2 use Key Pair named "Cloud."
This is because Ubuntu Cloud Image Default User "ubuntu" Password is randomly generated, access via Key Pair is a more convenient method.

Here's how to configure the Key Pair:

  1. Generate Key Pair via Ssh-keygen.

    Where Cloud.key.pub is the public key and needs to be added to the instance ~/.ssh/authorized_keys file. Cloud.key is the private key that is used to access instance.

  2. Import pair key into OpenStack into the Access & Security menu, Project---Compute, click the "Import Key Pair" button on the Key Pairs tab.


    Copy the contents of the cloud.key.pub.


    Paste into the Public key input box, name the Key pair "cloud", and click "Import key Pair".

    Key Pair "Cloud" was successfully imported.

  3. Use the Key Pair "cloud". Launch instance, select Key Pair "Cloud" in the Access & Security tab. OpenStack automatically adds the public key into the instance ~/.ssh/authorized_keys file.

  4. SSH instance. Use the-I cloud.key to specify the private key and the Ubuntu user ssh "Web1" and "Web2".

    Login instance without a password directly.
    Note: For the sake of demonstration, here we execute SSH in router's namespace, the main purpose is to reach the network.

"Web1" and "Web2" are ready to be added to the Pool. Click the "Add Member" button in the Members tab of the Load balancers, Project, Network.

Pool Select "Web Servers". Select "Web1" and "Web2" in Member (s). Protocol Port is set to "80".

Click "Add", member add success.

Pool Member There, the next section we will create a Monitor for the Pool for Member health checks.

Add Pool Member-5 minutes a day to play with OpenStack (123)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.