CN114745757B - Cluster switching method, device, equipment and medium - Google Patents

Cluster switching method, device, equipment and medium Download PDF

Info

Publication number
CN114745757B
CN114745757B CN202210427442.9A CN202210427442A CN114745757B CN 114745757 B CN114745757 B CN 114745757B CN 202210427442 A CN202210427442 A CN 202210427442A CN 114745757 B CN114745757 B CN 114745757B
Authority
CN
China
Prior art keywords
cluster
target
preset
information
available
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210427442.9A
Other languages
Chinese (zh)
Other versions
CN114745757A (en
Inventor
李国伟
贾少龙
颜秉珩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202210427442.9A priority Critical patent/CN114745757B/en
Publication of CN114745757A publication Critical patent/CN114745757A/en
Application granted granted Critical
Publication of CN114745757B publication Critical patent/CN114745757B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0055Transmission or use of information for re-establishing the radio link
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/04Large scale networks; Deep hierarchical networks
    • H04W84/08Trunked mobile radio systems
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses a cluster switching method, device, equipment and medium, which relate to the technical field of computers and comprise the following steps: acquiring a pre-established cluster list; the cluster list is used for recording cluster information of available clusters corresponding to different users. Acquiring a cluster switching request triggered by a target user through a preset cluster switching button; the cluster switching request comprises user information of the target user. And determining a target available cluster corresponding to the target user from the cluster list by using the user information of the target user. And switching the cluster used by the target user from the cluster where the target user is currently located to the target available cluster. Through the above-mentioned technical scheme of this application, can effectively increase the variety of business demand, improve big data platform's flexibility, reduce user use cost, increase big data platform's stability.

Description

Cluster switching method, device, equipment and medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a cluster switching method, apparatus, device, and medium.
Background
At present, with the rapid development of computer and information technology, the data generated by application systems of various industries are greatly increased, the demand for large data platforms is also increasingly large, and the light platform uses a single cluster mode, namely, a single platform can only create one large data cluster. Thus, although the functional requirements of users on a big data platform can be met, a plurality of problems exist: 1. single clusters have poor flexibility. The user cannot configure different function clusters according to the own requirements, so that inconvenience is brought to the use of the user; 2. the single cluster has high coupling degree and poor stability. The user uses the same cluster in all service demands, the coupling degree between different services is high, the maintenance is difficult, and the whole cluster is deactivated after a single service goes wrong, so that all the services using the cluster are affected; 3. the single cluster big data component has single version and difficult upgrading. A single cluster can only install one version of big data component, and can not meet the different version requirements of business on the big data component. Can only be met by constructing a plurality of big data platforms, thereby increasing the cost of users and reducing the efficiency of the platforms; 4. single cluster is single in kind and poor in expandability. The single cluster only supports one version, and can not simultaneously carry out cluster installation of multiple versions, so that flexible expansion of cluster functions is inconvenient.
From the above, how to increase the diversity of service demands, improve the flexibility of the big data platform, reduce the use cost of users, and increase the stability of the big data platform is a problem to be solved in the field in the cluster switching process.
Disclosure of Invention
In view of the above, the present invention aims to provide a cluster switching method, device, equipment and medium, which can increase the diversity of service requirements, improve the flexibility of a big data platform, reduce the use cost of users, and increase the stability of the big data platform. The specific scheme is as follows:
in a first aspect, the present application discloses a cluster switching method, including:
acquiring a pre-established cluster list; the cluster list is used for recording cluster information of available clusters corresponding to different users;
acquiring a cluster switching request triggered by a target user through a preset cluster switching button; the cluster switching request comprises user information of the target user;
determining a target available cluster corresponding to the target user from the cluster list by utilizing the user information of the target user;
and switching the cluster used by the target user from the cluster where the target user is currently located to the target available cluster.
Optionally, before the acquiring the pre-created cluster list, the method further includes:
establishing a cluster list based on a preset list creation method;
storing pre-acquired cluster basic information, target host information registered in a preset available cluster and target component installation information determined based on pre-acquired preset components and target hosts registered in the preset available cluster into the cluster list based on a relational database and a non-relational database; the cluster list is used for recording cluster information of available clusters corresponding to different users.
Optionally, before the storing, in the cluster list, the pre-acquired cluster base information, the target host information registered in the preset available cluster, and the target component installation information determined based on the preset component and the preset target host based on the relational database and the non-relational database, the method further includes:
establishing a preset cluster based on a preset cluster establishment method, and acquiring basic information of the cluster by using a preset information input interface;
and checking the cluster basic information based on a preset information checking rule, if the cluster basic information passes the checking, generating a cluster ID based on the cluster basic information, and storing the cluster basic information and the cluster ID into the preset cluster.
Optionally, before the storing, in the cluster list, the pre-acquired cluster base information, the target host information registered in the preset available cluster, and the target component installation information determined based on the preset component and the preset target host based on the relational database and the non-relational database, the method further includes:
determining a preset available cluster from the preset clusters, and determining all available hosts from all pre-registered hosts in the preset available cluster;
and determining a host to be checked from all available hosts based on a preset host determining method, checking the host to be checked, and determining the host to be checked as a target host if the host to be checked passes the check, so as to obtain target host information registered in the preset available cluster.
Optionally, before the storing, in the cluster list, the pre-acquired cluster base information, the target host information registered in the preset available cluster, and the target component installation information determined based on the preset component and the preset target host based on the relational database and the non-relational database, the method further includes:
creating a preset component list based on all preset components acquired in advance, and then determining a target component from the preset component list;
and determining a host matched with the role demand information of the target component from target host information registered in the preset available cluster, and installing the matched host and the target component based on the role demand information to obtain target component installation information.
Optionally, before the switching the cluster used by the target user from the cluster in which the target user is currently located to the target available cluster, the method further includes:
adding a modification information option for cluster basic information in the preset cluster;
adding a host new option and a host deletion option for the registered hosts in the preset cluster;
and adding a component new option, a component deletion option and a host modification option for installing components to the preset component list.
Optionally, the switching the cluster used by the target user from the cluster where the target user is currently located to the target available cluster includes:
establishing a cluster list page, and storing the target available clusters and cluster information corresponding to the target available clusters into the cluster list page; the cluster information comprises the cluster basic information, the target host information and the target component installation information corresponding to the target available cluster;
and switching the cluster used by the target user from the cluster where the target user is currently located to the target available cluster by using the preset cluster switching button, and displaying the cluster information in a form of a table through the cluster list page.
In a second aspect, the present application discloses a cluster switching device, including:
the cluster list acquisition module is used for acquiring a pre-created cluster list; the cluster list is used for recording cluster information of available clusters corresponding to different users;
the cluster switching request acquisition module is used for acquiring a cluster switching request triggered by a target user through a preset cluster switching button; the cluster switching request comprises user information of the target user;
the target available cluster determining module is used for determining a target available cluster corresponding to the target user from the cluster list by utilizing the user information of the target user;
and the cluster switching module is used for switching the cluster used by the target user from the cluster where the target user is currently positioned to the target available cluster.
In a third aspect, the present application discloses an electronic device comprising:
a memory for storing a computer program;
and the processor is used for executing the computer program to realize the cluster switching method.
In a fourth aspect, the present application discloses a computer storage medium for storing a computer program; wherein the computer program when executed by a processor implements the steps of the cluster switching method disclosed previously.
It can be seen that the present application provides a cluster switching method, including obtaining a pre-created cluster list; the cluster list is used for recording cluster information of available clusters corresponding to different users; acquiring a cluster switching request triggered by a target user through a preset cluster switching button; the cluster switching request comprises user information of the target user; determining a target available cluster corresponding to the target user from the cluster list by utilizing the user information of the target user; and switching the cluster used by the target user from the cluster where the target user is currently located to the target available cluster. According to the method and the device, the cluster switching request is acquired, the target available cluster is found from the cluster information of the available clusters corresponding to different users in the preset cluster list, then the currently used cluster is switched to the target available cluster, the diversity of service requirements can be effectively increased, the flexibility of a big data platform is improved, the use cost of the users is reduced, and the stability of the big data platform is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a cluster switching method disclosed in the present application;
fig. 2 is a flowchart of a cluster switching method disclosed in the present application;
fig. 3 is a specific flowchart of a cluster switching method disclosed in the present application;
fig. 4 is a specific flowchart of a cluster switching method disclosed in the present application;
fig. 5 is a schematic structural diagram of a cluster switching device disclosed in the present application;
fig. 6 is a block diagram of an electronic device provided in the present application.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Under the current background, with the rapid development of computer and information technology, the data generated by various industry application systems are greatly increased, the demand for large data platforms is also increasingly large, and the instruction platform uses a single-cluster mode, i.e. a single platform can only create one large data cluster. Thus, although the functional requirements of users on a big data platform can be met, a plurality of problems exist: single cluster has bad flexibility, high coupling degree, bad stability, single component version and bad expandability. From the above, how to increase the diversity of service demands, improve the flexibility of the big data platform, reduce the use cost of users, and increase the stability of the big data platform is a problem to be solved in the field in the cluster switching process.
Referring to fig. 1, the embodiment of the invention discloses a cluster switching method, which specifically may include:
step S11: acquiring a pre-established cluster list; the cluster list is used for recording cluster information of available clusters corresponding to different users.
In this embodiment, before acquiring the pre-created cluster list, the method further includes: establishing a cluster list based on a preset list creation method, and then storing pre-acquired cluster basic information, target host information registered in a preset available cluster and target component installation information determined based on pre-acquired preset components and target hosts registered in the preset available cluster into the cluster list based on a relational database and a non-relational database; the cluster list is used for recording cluster information of available clusters corresponding to different users.
In this embodiment, a preset cluster is established based on a preset cluster establishment method, the cluster basic information is acquired by using a preset information input interface, then the cluster basic information is checked based on a preset information check rule, if the cluster basic information is checked, a cluster ID is generated based on the cluster basic information, and the cluster basic information and the cluster ID are stored in the preset cluster. Determining a preset available cluster from the preset available clusters, determining all available hosts from all pre-registered hosts in the preset available clusters, determining a host to be checked from all available hosts based on a preset host determining method, checking the host to be checked, and determining the host to be checked as a target host if the host to be checked passes the checking, so as to obtain target host information registered in the preset available cluster. Creating a preset component list based on all preset components acquired in advance, determining a target component from the preset component list, determining a host matched with role demand information of the target component from target host information registered in the preset available cluster, and installing the matched host and the target component based on the role demand information to obtain target component installation information.
Step S12: acquiring a cluster switching request triggered by a target user through a preset cluster switching button; the cluster switching request comprises user information of the target user.
Step S13: and determining a target available cluster corresponding to the target user from the cluster list by using the user information of the target user.
Step S14: and switching the cluster used by the target user from the cluster where the target user is currently located to the target available cluster.
In this embodiment, before switching the cluster used by the target user from the cluster currently located by the target user to the target available cluster, the method further includes: adding a modification information option for cluster basic information in the preset cluster; adding a host new option and a host deletion option for the registered hosts in the preset cluster; and adding a component new option, a component deletion option and a host modification option for installing components to the preset component list.
In this embodiment, a cluster list created in advance is obtained; the cluster list is used for recording cluster information of available clusters corresponding to different users; acquiring a cluster switching request triggered by a target user through a preset cluster switching button; the cluster switching request comprises user information of the target user; determining a target available cluster corresponding to the target user from the cluster list by utilizing the user information of the target user; and switching the cluster used by the target user from the cluster where the target user is currently located to the target available cluster. According to the method and the device, the cluster switching request is acquired, the target available cluster is found from the cluster information of the available clusters corresponding to different users in the preset cluster list, then the currently used cluster is switched to the target available cluster, the diversity of service requirements can be effectively increased, the flexibility of a big data platform is improved, the use cost of the users is reduced, and the stability of the big data platform is improved.
Referring to fig. 2, the embodiment of the invention discloses a cluster switching method, which specifically may include:
step S21: acquiring a pre-established cluster list; the cluster list is used for recording cluster information of available clusters corresponding to different users.
Step S22: acquiring a cluster switching request triggered by a target user through a preset cluster switching button; the cluster switching request comprises user information of the target user.
Step S23: and determining a target available cluster corresponding to the target user from the cluster list by using the user information of the target user.
Step S24: establishing a cluster list page, and storing the target available clusters and the cluster information corresponding to the target available clusters into the cluster list page; the cluster information includes the cluster base information, the target host information, and the target component installation information corresponding to the target available cluster.
Step S25: and switching the cluster used by the target user from the cluster where the target user is currently located to the target available cluster by using the preset cluster switching button, and displaying the cluster information in a form of a table through the cluster list page.
In this embodiment, a cluster list created in advance is obtained; the cluster list is used for recording cluster information of available clusters corresponding to different users; acquiring a cluster switching request triggered by a target user through a preset cluster switching button; the cluster switching request comprises user information of the target user; determining a target available cluster corresponding to the target user from the cluster list by utilizing the user information of the target user; and switching the cluster used by the target user from the cluster where the target user is currently located to the target available cluster. According to the method and the device, the cluster switching request is acquired, the target available cluster is found from the cluster information of the available clusters corresponding to different users in the preset cluster list, then the currently used cluster is switched to the target available cluster, the diversity of service requirements can be effectively increased, the flexibility of a big data platform is improved, the use cost of the users is reduced, and the stability of the big data platform is improved.
For example, as shown in fig. 3, the cluster basic information is obtained through a cluster creator by using a preset information input interface, then validity verification is performed, the verified information is used to generate a cluster ID, the cluster ID is stored in the preset cluster, then all available hosts are displayed, after a user selects a host, the selected host is checked (network check, security check, resource check, etc.), the checked host is determined to be a target host, target host information is obtained after the check passes, all preset components are displayed through a preset component list, for example, HDFS (a distributed file system of Hadoop, hadoop Distribute File System), HBase (a distributed storage system of Hadoop, a program frame of a distributed running program of Hadoop), and a user of yann (a cluster resource manager system of Hadoop, yet Another Resource Negotiator, etc.) can determine a target component according to own needs, determine a host matched with role requirement information of the target component, and finally complete the installation of the component, so as to obtain the modified basic information of the target component in the preset cluster; adding a host new option and a host deletion option for the registered hosts in the preset cluster; adding a component new option, a component deletion option and a host modification option for installing components to the preset component list, and finally sending cluster information (including cluster basic information, target host information, target component installation information, routing information and the like) to a cluster manager.
Wherein Hadoop (Apache Hadoop) is a distributed system infrastructure. The user may develop the distributed program without knowing the details of the distributed underlying layer. And the power of the clusters is fully utilized to perform high-speed operation and storage. The design idea of the Hadoop system is a hierarchical design structure, namely the design idea is that the same hierarchy is not interacted, each layer only knows the work of the user, and data and information provided by the next layer are processed. Hadoop consists of members HDFS, mapReduce, HBase, hive (a data warehouse tool of Hadoop) and ZooKeeper (open source distributed coordination service).
For example, as shown in fig. 4, the cluster manager establishes a cluster list, and then saves the acquired cluster information (including cluster base information, target host information, target component installation information, routing information, etc.) to the cluster list based on the relational database and the non-relational database; the cluster list is used for recording cluster information of available clusters corresponding to different users; the routing information, for example, when the cluster is performing installation component operation, closes an installation page, saves an installation step to the unit, and automatically switches to a previous step when the cluster is operated again; after a cluster switching request triggered by a target user through a preset cluster switching button is acquired, the cluster switching request contains user information of the target user, and an administrator has the highest authority after logging in and can allocate and store cluster authorities of all common users; and determining a target available cluster corresponding to the target user from a cluster list by utilizing the user information of the target user, then sending the target available cluster and cluster information corresponding to the target available cluster to a cluster switcher, and after the cluster switcher obtains the target available cluster and the cluster information corresponding to the target available cluster, switching the cluster used by the target user from the cluster currently located by the target user to the target available cluster through a pre-established cluster list page, and displaying the cluster information in a form of a table.
Referring to fig. 5, an embodiment of the present invention discloses a cluster switching device, which may specifically include:
a cluster list acquisition module 11, configured to acquire a cluster list created in advance; the cluster list is used for recording cluster information of available clusters corresponding to different users;
the cluster switching request acquisition module 12 is configured to acquire a cluster switching request triggered by a target user through a preset cluster switching button; the cluster switching request comprises user information of the target user;
a target available cluster determining module 13, configured to determine a target available cluster corresponding to the target user from the cluster list by using user information of the target user;
and the cluster switching module 14 is used for switching the cluster used by the target user from the cluster where the target user is currently located to the target available cluster.
In this embodiment, a cluster list created in advance is obtained; the cluster list is used for recording cluster information of available clusters corresponding to different users; acquiring a cluster switching request triggered by a target user through a preset cluster switching button; the cluster switching request comprises user information of the target user; determining a target available cluster corresponding to the target user from the cluster list by utilizing the user information of the target user; and switching the cluster used by the target user from the cluster where the target user is currently located to the target available cluster. According to the method and the device, the cluster switching request is acquired, the target available cluster is found from the cluster information of the available clusters corresponding to different users in the preset cluster list, then the currently used cluster is switched to the target available cluster, the diversity of service requirements can be effectively increased, the flexibility of a big data platform is improved, the use cost of the users is reduced, and the stability of the big data platform is improved.
In some specific embodiments, the cluster list acquiring module 11 may specifically include:
the cluster list establishing module is used for establishing a cluster list based on a preset list establishing method;
the information storage module is used for storing pre-acquired cluster basic information, target host information registered in a preset available cluster and target component installation information determined based on a pre-acquired preset component and target hosts registered in the preset available cluster into the cluster list based on a relational database and a non-relational database; the cluster list is used for recording cluster information of available clusters corresponding to different users.
In some specific embodiments, the cluster list acquiring module 11 may specifically include:
the cluster basic information acquisition module is used for establishing a preset cluster based on a preset cluster establishment method and acquiring the cluster basic information by utilizing a preset information input interface;
and the cluster basic information storage module is used for verifying the cluster basic information based on a preset information verification rule, generating a cluster ID based on the cluster basic information if the cluster basic information is verified, and storing the cluster basic information and the cluster ID into the preset cluster.
In some specific embodiments, the cluster list acquiring module 11 may specifically include:
the available host determining module is used for determining a preset available cluster from the preset clusters and determining all available hosts from all pre-registered hosts in the preset available cluster;
and the target host information acquisition module is used for determining a host to be checked from all the available hosts based on a preset host determination method, checking the host to be checked, and determining the host to be checked as a target host if the host to be checked passes the check, so as to obtain the target host information registered in the preset available cluster.
In some specific embodiments, the cluster list acquiring module 11 may specifically include:
the target component determining module is used for creating a preset component list based on all preset components acquired in advance, and then determining a target component from the preset component list;
and the target component installation information determining module is used for determining a host matched with the role demand information of the target component from target host information registered in the preset available cluster, and installing the matched host and the target component based on the role demand information so as to obtain target component installation information.
In some specific embodiments, the cluster switching module 14 may specifically include:
the first option adding module is used for adding modification information options for cluster basic information in the preset clusters;
the second option adding module is used for adding a host newly-added option and a host deleted option for the registered hosts in the preset cluster;
and the third option adding module is used for adding an additional option of a component, a deletion option of the component and a host modification option for installing the component for the preset component list.
In some specific embodiments, the cluster switching module 14 may specifically include:
the cluster information storage module is used for establishing a cluster list page and storing the target available clusters and cluster information corresponding to the target available clusters to the cluster list page; the cluster information comprises the cluster basic information, the target host information and the target component installation information corresponding to the target available cluster;
and the cluster information display module is used for switching the cluster used by the target user from the cluster where the target user is currently positioned to the target available cluster by utilizing the preset cluster switching button, and displaying the cluster information in a form of a table through the cluster list page.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input output interface 25, and a communication bus 26. Wherein the memory 22 is configured to store a computer program that is loaded and executed by the processor 21 to implement relevant steps in the cluster switching method performed by the electronic device disclosed in any of the foregoing embodiments.
In this embodiment, the power supply 23 is configured to provide an operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and an external device, and the communication protocol to be followed is any communication protocol applicable to the technical solution of the present application, which is not specifically limited herein; the input/output interface 25 is used for acquiring external input data or outputting external output data, and the specific interface type thereof may be selected according to the specific application requirement, which is not limited herein.
The memory 22 may be a carrier for storing resources, such as a read-only memory, a random access memory, a magnetic disk, or an optical disk, and the resources stored thereon include an operating system 221, a computer program 222, and data 223, and the storage may be temporary storage or permanent storage.
The operating system 221 is used for managing and controlling various hardware devices on the electronic device 20 and the computer program 222, so as to implement the operation and processing of the data 223 in the memory 22 by the processor 21, which may be Windows, unix, linux or the like. The computer program 222 may further comprise a computer program capable of performing other specific tasks in addition to the computer program capable of performing the cluster switching method performed by the electronic device 20 as disclosed in any of the previous embodiments. The data 223 may include, in addition to the data received by the cluster switching device and transmitted by the external device, data collected by the own input/output interface 25, and so on.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Further, the embodiment of the application also discloses a computer readable storage medium, wherein the storage medium stores a computer program, and when the computer program is loaded and executed by a processor, the cluster switching method steps disclosed in any embodiment are realized.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above description of the cluster switching method, apparatus, device and storage medium provided by the present invention applies specific examples to illustrate the principles and embodiments of the present invention, where the above description of the examples is only for helping to understand the method and core ideas of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (9)

1. A cluster switching method, comprising:
acquiring a pre-established cluster list; the cluster list is used for recording cluster information of available clusters corresponding to different users;
acquiring a cluster switching request triggered by a target user through a preset cluster switching button; the cluster switching request comprises user information of the target user;
determining a target available cluster corresponding to the target user from the cluster list by utilizing the user information of the target user;
switching the cluster used by the target user from the cluster where the target user is currently located to the target available cluster;
before the acquisition of the pre-created cluster list, the method further comprises:
establishing a cluster list based on a preset list creation method;
storing pre-acquired cluster basic information, target host information registered in a preset available cluster and target component installation information determined based on pre-acquired preset components and target hosts registered in the preset available cluster into the cluster list based on a relational database and a non-relational database; the cluster list is used for recording cluster information of available clusters corresponding to different users.
2. The cluster switching method according to claim 1, wherein before the storing of the pre-acquired cluster base information, the target host information registered in the preset available cluster, and the target component installation information determined based on the preset component and the preset target host to the cluster list based on the relational database and the non-relational database, further comprises:
establishing a preset cluster based on a preset cluster establishment method, and acquiring basic information of the cluster by using a preset information input interface;
and checking the cluster basic information based on a preset information checking rule, if the cluster basic information passes the checking, generating a cluster ID based on the cluster basic information, and storing the cluster basic information and the cluster ID into the preset cluster.
3. The cluster switching method according to claim 1, wherein before the storing of the pre-acquired cluster base information, the target host information registered in the preset available cluster, and the target component installation information determined based on the preset component and the preset target host to the cluster list based on the relational database and the non-relational database, further comprises:
determining a preset available cluster from the preset clusters, and determining all available hosts from all pre-registered hosts in the preset available cluster;
and determining a host to be checked from all available hosts based on a preset host determining method, checking the host to be checked, and determining the host to be checked as a target host if the host to be checked passes the check, so as to obtain target host information registered in the preset available cluster.
4. The cluster switching method according to claim 1, wherein before the storing of the pre-acquired cluster base information, the target host information registered in the preset available cluster, and the target component installation information determined based on the preset component and the preset target host to the cluster list based on the relational database and the non-relational database, further comprises:
creating a preset component list based on all preset components acquired in advance, and then determining a target component from the preset component list;
and determining a host matched with the role demand information of the target component from target host information registered in the preset available cluster, and installing the matched host and the target component based on the role demand information to obtain target component installation information.
5. The cluster switching method according to any one of claims 1 to 4, wherein before switching the cluster used by the target user from the cluster in which the target user is currently located to the target available cluster, further comprising:
adding a modification information option for cluster basic information in the preset cluster;
adding a host new option and a host deletion option for the registered hosts in the preset cluster;
and adding a component new option, a component deletion option and a host modification option for installing components to the preset component list.
6. The cluster switching method according to claim 1, wherein the switching the cluster used by the target user from the cluster in which the target user is currently located to the target available cluster includes:
establishing a cluster list page, and storing the target available clusters and cluster information corresponding to the target available clusters into the cluster list page; the cluster information comprises the cluster basic information, the target host information and the target component installation information corresponding to the target available cluster;
and switching the cluster used by the target user from the cluster where the target user is currently located to the target available cluster by using the preset cluster switching button, and displaying the cluster information in a form of a table through the cluster list page.
7. A cluster switching device, comprising:
the cluster list acquisition module is used for acquiring a pre-created cluster list; the cluster list is used for recording cluster information of available clusters corresponding to different users;
the cluster switching request acquisition module is used for acquiring a cluster switching request triggered by a target user through a preset cluster switching button; the cluster switching request comprises user information of the target user;
the target available cluster determining module is used for determining a target available cluster corresponding to the target user from the cluster list by utilizing the user information of the target user;
the cluster switching module is used for switching the cluster used by the target user from the cluster where the target user is currently located to the target available cluster;
the device is also used for establishing a cluster list based on a preset list creation method; storing pre-acquired cluster basic information, target host information registered in a preset available cluster and target component installation information determined based on pre-acquired preset components and target hosts registered in the preset available cluster into the cluster list based on a relational database and a non-relational database; the cluster list is used for recording cluster information of available clusters corresponding to different users.
8. An electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the cluster handover method according to any one of claims 1 to 6.
9. A computer-readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements a cluster switching method as claimed in any one of claims 1 to 6.
CN202210427442.9A 2022-04-22 2022-04-22 Cluster switching method, device, equipment and medium Active CN114745757B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210427442.9A CN114745757B (en) 2022-04-22 2022-04-22 Cluster switching method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210427442.9A CN114745757B (en) 2022-04-22 2022-04-22 Cluster switching method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN114745757A CN114745757A (en) 2022-07-12
CN114745757B true CN114745757B (en) 2023-07-25

Family

ID=82283316

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210427442.9A Active CN114745757B (en) 2022-04-22 2022-04-22 Cluster switching method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN114745757B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115344327B (en) * 2022-08-19 2023-07-28 中电金信软件有限公司 Application module switching method and device, electronic equipment and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109660607A (en) * 2018-12-05 2019-04-19 北京金山云网络技术有限公司 A kind of service request distribution method, method of reseptance, device and server cluster
CN110138862A (en) * 2019-05-16 2019-08-16 北京字节跳动网络技术有限公司 Method for processing business, device, gateway and medium based on application service
CN114079582A (en) * 2020-08-18 2022-02-22 成都鼎桥通信技术有限公司 Group calling method of cluster terminal and cluster terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109802985B (en) * 2017-11-17 2021-01-29 北京金山云网络技术有限公司 Data transmission method, device, equipment and readable storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109660607A (en) * 2018-12-05 2019-04-19 北京金山云网络技术有限公司 A kind of service request distribution method, method of reseptance, device and server cluster
CN110138862A (en) * 2019-05-16 2019-08-16 北京字节跳动网络技术有限公司 Method for processing business, device, gateway and medium based on application service
CN114079582A (en) * 2020-08-18 2022-02-22 成都鼎桥通信技术有限公司 Group calling method of cluster terminal and cluster terminal

Also Published As

Publication number Publication date
CN114745757A (en) 2022-07-12

Similar Documents

Publication Publication Date Title
US11088903B2 (en) Hybrid cloud network configuration management
US10079837B2 (en) Distributed topology enabler for identity manager
CN107431651B (en) Life cycle management method and equipment for network service
CN107800565B (en) Inspection method, inspection device, inspection system, computer equipment and storage medium
EP3447965B1 (en) Network function instance management method and relevant device
CN113495921A (en) Routing method and device of database cluster
CN103118073A (en) Virtual machine data persistence storage system and method in cloud environment
CN114924751A (en) Method and device for distributing service access request flow
CN114745757B (en) Cluster switching method, device, equipment and medium
CN114301914A (en) Cloud edge coordination method and device and storage medium
CN110798358A (en) Distributed service identification method and device, computer readable medium and electronic equipment
CN109040331B (en) Electronic business card processing method and device, computing equipment and storage medium
US20190215366A1 (en) Cloud Metadata Discovery API
CN114244703B (en) Bare metal server checking and deploying method, device, equipment and medium
CN111191256B (en) Method and device for configuring user permission
CN109327529B (en) Distributed scanning method and system
CN112288396A (en) Multi-system user attribute information management method and device and electronic equipment
CN106844058B (en) Management method and device for virtualized resources
CN115150281B (en) Network construction method and device for data center
CN115277662B (en) Proxy service switching test method, system, electronic equipment and readable medium
US11953972B2 (en) Selective privileged container augmentation
US20240143352A1 (en) Unified Management Interface
EP3387533A1 (en) Disaster recovery of cloud resources
CN114490128A (en) Data storage method and device under remote multi-active architecture
CN118260095A (en) Method and device for server management

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant