In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces you how to add Pool Member, the content is very detailed, interested friends can refer to, hope to be helpful to you.
Now that we have Load Balance Pool "web servers" and VIP, we need to add member to Pool and learn how to use cloud image. Prepare two instance: "Web1" and "Web2".
Use Ubuntu Cloud Image
Since the cirros image cannot run the HTTP service, we will use Ubuntu Cloud Image.
Download address is http://uec-images.ubuntu.com/trusty/current/trusty-server-cloudimg-amd64-disk1.img
Unlike previous instance, Web1 and Web2 use a Key Pair named "cloud".
This is because the password of the Ubuntu Cloud Image default user "ubuntu" is randomly generated, and access through Key Pair is a more convenient method.
Here is how to configure Key Pair:
Generate Key Pair through ssh-keygen.
Where cloud.key.pub is the public key and needs to be added to the ~ / .ssh/authorized_keys file of instance. Cloud.key is the private key that is used to access instance.
Import Pair Key into OpenStack to go to Project-> Compute-> Access & Security menu, and click the "Import Key Pair" button on the Key Pairs tab.
Copy the contents of cloud.key.pub.
Paste into the Public Key input box, name Key Pair "cloud", and click "Import Key Pair".
Key Pair "cloud" imported successfully.
Use Key Pair "cloud". When launch instance, select Key Pair "cloud" in the Access & Security tab. OpenStack automatically adds the public key to the instance's ~ / .ssh/authorized_keys file.
Ssh instance . Specify the private key with-I cloud.key and ssh "Web1" and "Web2" with the ubuntu user.
Log in to instance directly without a password.
Note: for demonstration purposes, here we are performing ssh in the namespace of router, the main purpose of which is network reachability.
"Web1" and "Web2" are ready to be added to Pool. Click the "Add Member" button in the Members tab of Project-> Network-> Load Balancers.
Pool selects "web servers". Choose "Web1" and "Web2" in Member (s). Protocol Port is set to "80".
Click "Add" and member is added successfully.
Pool Member is available, and in the next section we will create a Monitor for Pool for Member health checks.
On how to add Pool Member to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.