In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "the method of building linux cluster". In the daily operation, I believe that many people have doubts about the method of building linux cluster. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful for you to answer the doubts about "how to build linux cluster". Next, please follow the editor to study!
1. Brief introduction of the cluster:
Cluster technology is a relatively new technology. Through cluster technology, we can obtain relatively high benefits in terms of performance, reliability and flexibility at a lower cost, and its task scheduling is the core technology of the cluster system.
If a thing is done by multiple people, it is similar to a cluster. We all bear the pressure, if some people ask for temporary leave, others can share his task, things will not be delayed. And when he finishes his own business, he will still be assigned new tasks, which will not break the rhythm. The cluster is simulated to do such a thing, in fact, most companies also use the cluster to provide services to users. Whether it's apache or nginx. We don't want to suddenly not found while browsing the web. Then you need to know about clusters. This scheduling method and idea is very beneficial for us to do anything.
two。 The frame diagram of the cluster:
Here we want to emphasize some of the features of the cluster:
Heartbeat monitoring: the clusters are connected to each other, and when there is a problem with the service, they break the link, but they all think that there is something wrong with each other.
Let's build a highly available cluster today:
1. Experimental environment:
1. System: redhat6.5
two。 Host: a total of three nodes, one master control node (with real machine) and two load nodes (with virtual machine)
Note: this high-availability cluster is redhat's software, and there is no third-party company software, so if you have a local yum source on your computer, you can definitely do it.
two。 Steps for building a cluster:
(1) our virtual machines can be made using snapshots (saving resources).
For these three nodes, we have the following points to pay attention to:
1. The firewalls of the three are closed.
two。 The three nodes parse each other (edit / etc/hosts)
3. Selinux shutdown of the control node
4. To configure the yum source accurately
5. The time must be synchronized, otherwise an error will occur in the process of encryption or authentication
Let's solve the above problems one by one.
(2) Control node:
First modify the Yum source:
The following [HighAvailability], [LoadBalancer], [ResilientStorage] and [ScalableFielSystem] are all at the mount point of iso, and we need to add them manually. This is the address of the above yum:
When you are finished, copy this yum.repo file to the yum directory of the other two load nodes:
After copying, all three nodes refresh at the same time:
At the control node, install the luci software, which is the cluster control software:
The ricci software needs to be installed at the load node:
After completion, start the service at the control node:
He will tell you the network address of the web console, but before opening web, please make sure that your control node has the apache service installed, and before doing this, we will change the password of the ricci user on the load node, which will be used later.
Then open the web page and pop up the content:
The user is root, and the password is the root password of the control node.
Click create to create a cluster, and some pages pop up:
Set cluster parameters:
It takes a long time to add. The two load nodes install cman, rgmanager, modclusterd, and clvmd services, and restart after the service installation is complete. After the cluster is successfully added, it is as follows:
The two-node cluster is built in this way, but this is only the most basic work. The cluster can provide highly available services to the outside world, which will be explained next time.
At this point, the study on "the method of building linux cluster" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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: 242
*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.