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

Source: Internet
Author: User

650) this.width=650; "Src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20161208-1481159363140080157.jpg "/>

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

650) this.width=650; "Src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20161208-1481159363646024871.jpg "/>

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. The
  2. Generates a Key Pair through Ssh-keygen.
    650) this.width=650; "Src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20161208-1481159363775005403.jpg "/>
    where cloud.key.pub is the public key and needs to be added to instance ~/.ssh/ The Authorized_keys file. Cloud.key is the private key that is used to access instance.

  3. Import pair key into OpenStack into the Access & Security menu, Compute, Project, click on "Import Key Pair" on the Key Pairs tab Button.
    650) this.width=650; "Src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20161208-1481159363913028087.jpg "/>

    Copies the contents of the cloud.key.pub.
    650) this.width=650; "Src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20161208-1481159364048004225.jpg "/>

    Paste into the public key input box, name the Key Pair" Cloud ", and click" Import Key Pair ".
    650) this.width=650; "Src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20161208-1481159364196015918.jpg "/>
    Key Pair" Cloud "was successfully imported.
    650) this.width=650; "Src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20161208-1481159364428059430.jpg "/>

  4. 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.
    650) this.width=650; "Src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20161208-1481159364615005326.jpg "/>

  5. SSH instance. Use the-I cloud.key to specify the private key and the Ubuntu user ssh "Web1" and "Web2".
    650) this.width=650; "Src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20161208-1481159364774007049.jpg "/>
    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.

650) this.width=650; "Src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20161208-1481159364995067686.jpg "/>

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

650) this.width=650; "Src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20161208-1481159365128038052.jpg "/>

Click "Add", member add success.

650) this.width=650; "Src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20161208-1481159365281032352.jpg "/>

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


650) this.width=650; "Src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20161208-1481194909368028640.png "alt=" two-dimensional code + fingerprint. png "/>

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.