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

Cluster switching method, device, equipment and medium Download PDF

Info

Publication number
CN114745757A
CN114745757A CN202210427442.9A CN202210427442A CN114745757A CN 114745757 A CN114745757 A CN 114745757A CN 202210427442 A CN202210427442 A CN 202210427442A CN 114745757 A CN114745757 A CN 114745757A
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.)
Granted
Application number
CN202210427442.9A
Other languages
Chinese (zh)
Other versions
CN114745757B (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

Images

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

Abstract

The application discloses a cluster switching method, a device, equipment and a 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 the 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 technical scheme, the diversity of service demands can be effectively increased, the flexibility of the big data platform is improved, the use cost of a user is reduced, and the stability of the big data platform is improved.

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 computers and information technologies, a large amount of data generated by application systems in various industries is increased, the demand for large data platforms is increased, and the Insight platform uses a single cluster mode, that is, only one large data cluster can be created by a single platform. Although the functional requirements of users for large data platforms can be met, a plurality of problems still exist: 1. single cluster flexibility is poor. A user cannot configure different function clusters according to the requirement of the user, so that inconvenience is brought to the user; 2. the single cluster coupling degree is high, and the stability is poor. All the services of a user use the same cluster, the coupling degree between different services is high, the maintenance is difficult, and the whole cluster can be stopped after a single service is in error, so that all the services using the cluster are influenced; 3. the single cluster big data assembly is single in version and difficult to upgrade. A single cluster can only install one version of big data components and cannot meet the requirements of different versions of the big data components by businesses. The method can be met only by building a plurality of big data platforms, so that the user cost is increased, and the platform efficiency is reduced; 4. the single cluster has single type and poor expandability. The single cluster only supports one version, and the cluster installation of multiple versions cannot be carried out simultaneously, so that the flexible extension of the cluster function is inconvenient.
Therefore, in the cluster switching process, how to increase the diversity of service requirements, 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.
Disclosure of Invention
In view of this, an object of the present invention is to provide a cluster switching method, apparatus, device and medium, which can increase diversity of service requirements, improve flexibility of a big data platform, reduce user usage cost, and increase 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 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.
Optionally, before the obtaining the pre-created cluster list, the method further includes:
establishing a cluster list based on a preset list establishing 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 to 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, based on the relational database and the non-relational database, the cluster basic information acquired in advance, target host information registered in a preset available cluster, and target component installation information determined based on a preset component and a preset target host to the cluster list, the method further includes:
establishing a preset cluster based on a preset cluster establishing method, and acquiring the cluster basic information by using a preset information input interface;
and verifying the cluster basic information based on a preset information verification rule, if the verification of the cluster basic information passes, generating a cluster ID based on the cluster basic information, and storing the cluster basic information and the cluster ID to the preset cluster.
Optionally, before the storing, based on the relational database and the non-relational database, the cluster basic information acquired in advance, target host information registered in a preset available cluster, and target component installation information determined based on a preset component and a preset target host to the cluster list, 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 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 target host information registered in the preset available cluster.
Optionally, before the storing, based on the relational database and the non-relational database, the cluster basic information acquired in advance, target host information registered in a preset available cluster, and target component installation information determined based on a preset component and a preset target host to the cluster list, 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 requirement information of the target component from the target host information registered in the preset available cluster, and installing the matched host and the target component based on the role requirement information to obtain target component installation information.
Optionally, before switching the cluster used by the target user from the cluster where the target user is currently located to the target available cluster, the method further includes:
adding an information modification option for the cluster basic information in the preset cluster;
adding a host newly-added option and a host deleting option for the registered host in the preset cluster;
and adding a component newly-adding option, a component deleting option and a host modifying option for installing the components for 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 cluster and cluster information corresponding to the target available cluster to the cluster list page; the cluster information comprises the cluster base 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 current cluster of the target user to the target available cluster by using the preset cluster switching button, and displaying the cluster information in a table form 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-established 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;
a target available cluster determining module, configured to determine, from the cluster list, a target available cluster corresponding to the target user by using 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 located to the target available cluster.
In a third aspect, the present application discloses an electronic device, comprising:
a memory for storing a computer program;
a processor configured to execute the computer program to implement the foregoing cluster switching method.
In a fourth aspect, the present application discloses a computer storage medium for storing a computer program; wherein the computer program realizes the steps of the cluster switching method disclosed in the foregoing when being executed by a processor.
The method comprises the steps of obtaining 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 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. According to the method and the device, the cluster switching request is obtained, the target available cluster is found from the cluster information of the available clusters corresponding to different users in the preset cluster list, and then the currently used cluster is switched to the target available cluster, so that the diversity of service requirements can be effectively increased, the flexibility of the 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 used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
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 detailed flowchart of a cluster switching method disclosed in the present application;
fig. 4 is a detailed flowchart of a cluster switching method disclosed in the present application;
fig. 5 is a schematic structural diagram of a cluster switching apparatus disclosed in the present application;
fig. 6 is a block diagram of an electronic device provided in the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the current background, with the rapid development of computers and information technologies, a large amount of data generated by application systems of various industries is increased, the demand on large data platforms is increased, and the Insight platform uses a single cluster mode, that is, only one large data cluster can be created by a single platform. Although the functional requirements of users for large data platforms can be met, a plurality of problems still exist: the single cluster has poor flexibility, high coupling degree, poor stability, single component version and poor expandability. Therefore, how to increase the diversity of service requirements, improve the flexibility of the big data platform, reduce the use cost of users, and increase the stability of the big data platform in the cluster switching process is a problem to be solved in the field.
Referring to fig. 1, an embodiment of the present invention discloses a cluster switching method, which may specifically 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 establishing 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 to 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 establishing method, a preset information input interface is used to obtain the cluster basic information, then the cluster basic information is verified based on a preset information verification rule, if the cluster basic information is verified, 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. And determining a preset available cluster from the preset clusters, determining all available hosts from all pre-registered hosts in the preset available cluster, then determining a host to be inspected from all the available hosts based on a preset host determination method, inspecting the host to be inspected, and determining the host to be inspected as a target host if the host to be inspected passes the inspection so as to obtain the target host information registered in the preset available cluster. The method comprises the steps of creating a preset component list based on all preset components acquired in advance, then determining a target component from the preset component list, then determining a host matched with role demand information of the target component from target host information registered in a 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 the 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 where the target user is currently located to the target available cluster, the method further includes: adding an information modification option for the cluster basic information in the preset cluster; adding a host newly-added option and a host deleting option for the registered host in the preset cluster; and adding a component newly-adding option, a component deleting option and a host modifying option for installing the components for the preset component list.
In the embodiment, a pre-created cluster list 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 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. According to the method and the device, the cluster switching request is obtained, the target available cluster is found from the cluster information of the available clusters corresponding to different users in the preset cluster list, and then the currently used cluster is switched to the target available cluster, so that the diversity of service requirements can be effectively increased, the flexibility of the 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, an embodiment of the present invention discloses a cluster switching method, which may specifically 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 the 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 cluster and the cluster information corresponding to the target available cluster to 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 current cluster of the target user to the target available cluster by using the preset cluster switching button, and displaying the cluster information in a table form through the cluster list page.
In the embodiment, a pre-created cluster list 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 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. According to the method and the device, the cluster switching request is obtained, the target available cluster is found from the cluster information of the available clusters corresponding to different users in the preset cluster list, and then the currently used cluster is switched to the target available cluster, so that the diversity of service requirements can be effectively increased, the flexibility of the 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 creator acquires the cluster basic information through a preset information input interface, performs validity check, generates a cluster ID through checked information, stores the cluster ID to the preset cluster, displays all available hosts, checks (network check, security check, resource check, etc.) the selected host after the host is selected by the user, determines the checked host as a target host if the check is passed, and obtains target host information, and displays all preset components through a preset component list, for example, HDFS (distributed File System of Hadoop, Hadoop distribution File System), HBase (distributed storage System of Hadoop, Hadoop Database), MapReduce (programming framework of a distributed running program of Hadoop), Yarn (cluster resource manager System of Hadoop, yet antenna Resource router, etc.) users can determine target components according to their own needs, determine hosts matched with the role requirement information of the target components, finally complete the installation of the components to obtain the target component installation information, and then add modification information options to the cluster basic information in the preset cluster; adding a host newly-added option and a host deleting option for the registered host in the preset cluster; and adding a component newly-adding option, a component deleting option and a host modifying option for installing the components for 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 the cluster manager.
Wherein, Hadoop (Apache Hadoop) is a distributed system infrastructure. A user can develop a distributed program without knowing the distributed underlying details. The power of the cluster is fully utilized to carry out high-speed operation and storage. The design idea of the Hadoop system is a hierarchical design structure, namely, the design idea is that interaction is not performed between the same layers, each layer only knows own work, and data and information provided by the next layer are processed. Hadoop consists of members such as HDFS, MapReduce, HBase, Hive (a data warehouse tool for Hadoop), and ZooKeeper (open source distributed coordination service).
For example, as shown in fig. 4, the cluster manager establishes a cluster list, and then stores the acquired cluster information (including cluster basic information, target host information, target component installation information, routing information, and the like) 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; when the routing information such as the cluster is carrying out the operation of installing the components, the installation page is closed, the installation step is stored in the unit at this time, and the operation of the cluster is automatically switched to the previous step; then after a cluster switching request triggered by a target user through a preset cluster switching button is obtained, the cluster switching request comprises user information of the target user, and an administrator has the highest authority after logging in, so that cluster authority can be distributed and stored for all common users; and after the cluster switcher obtains the target available cluster and the cluster information corresponding to the target available cluster, the cluster used by the target user is switched from the current cluster of the target user to the target available cluster through a pre-established cluster list page, and the cluster information is displayed in a table form.
Referring to fig. 5, an embodiment of the present invention discloses a cluster switching device, which may specifically include:
a cluster list obtaining module 11, configured to obtain a pre-created cluster list; the cluster list is used for recording cluster information of available clusters corresponding to different users;
a cluster switching request obtaining module 12, configured to obtain 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, by using the user information of the target user, a target available cluster corresponding to the target user from the cluster list;
a cluster switching module 14, configured to switch the cluster used by the target user from the cluster where the target user is currently located to the target available cluster.
In the embodiment, a pre-created cluster list 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 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. According to the method and the device, the cluster switching request is obtained, the target available cluster is found from the cluster information of the available clusters corresponding to different users in the preset cluster list, and then the currently used cluster is switched to the target available cluster, so that the diversity of service requirements can be effectively increased, the flexibility of the 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 obtaining 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 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 some specific embodiments, the cluster list obtaining module 11 may specifically include:
the cluster basic information acquisition module is used for establishing a preset cluster based on a preset cluster establishing method and acquiring the cluster basic information by using 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 verification of the cluster basic information passes, and storing the cluster basic information and the cluster ID to the preset cluster.
In some specific embodiments, the cluster list obtaining module 11 may specifically include:
an available host determination module, configured to determine a preset available cluster from the preset clusters, and determine 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 the 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 obtaining 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 requirement information of the target component from the target host information registered in the preset available cluster, and installing the matched host and the target component based on the role requirement information to obtain the 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 an information modification option to the cluster basic information in the preset cluster;
a second option adding module, configured to add a host adding option and a host deleting option to the registered host in the preset cluster;
and the third option adding module is used for adding a component newly-adding option, a component deleting option and a host modifying option for installing the components 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 cluster and the cluster information corresponding to the target available cluster to the cluster list page; the cluster information comprises the cluster base 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 current cluster of the target user 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.
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. The memory 22 is configured to store a computer program, and the computer program is loaded and executed by the processor 21 to implement relevant steps in the cluster switching method executed by an electronic device disclosed in any of the foregoing embodiments.
In this embodiment, the power supply 23 is configured to provide a working 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 a communication protocol followed by the communication interface is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited herein; the input/output interface 25 is configured to obtain external input data or output data to the outside, and a specific interface type thereof may be selected according to specific application requirements, which is not specifically limited herein.
In addition, the storage 22 is used as a carrier for storing resources, and may be a read-only memory, a random access memory, a magnetic disk or an optical disk, etc., the resources stored thereon include an operating system 221, a computer program 222, data 223, etc., and the storage mode may be a transient storage mode or a permanent storage mode.
The operating system 221 is used for managing and controlling each hardware device and the computer program 222 on the electronic device 20, so as to realize the operation and processing of the data 223 in the memory 22 by the processor 21, which may be Windows, Unix, Linux, and the like. The computer program 222 may further include a computer program that can be used to perform other specific tasks in addition to the computer program that can be used to perform the cluster switching method performed by the electronic device 20 disclosed in any of the foregoing embodiments. The data 223 may include data received by the cluster switching device and transmitted by an external device, or may include data collected by the self input/output interface 25.
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. A software module may reside 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, an embodiment of the present application further discloses a computer-readable storage medium, where a computer program is stored in the storage medium, and when the computer program is loaded and executed by a processor, the steps of the cluster switching method disclosed in any of the foregoing embodiments are implemented.
Finally, it should also be noted that, in this document, 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. Also, 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 an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing detailed description is directed to a cluster switching method, apparatus, device and storage medium, and the principles and embodiments of the present invention are described herein with reference to specific examples, which are merely used to help understand the method and core concepts of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

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 using the user information of the target user;
and switching the cluster used by the target user from the current cluster of the target user to the target available cluster.
2. The cluster switching method according to claim 1, wherein before the obtaining the pre-created cluster list, further comprising:
establishing a cluster list based on a preset list establishing 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 to 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.
3. The cluster switching method according to claim 2, wherein before storing, in the cluster list, pre-acquired cluster basic information, target host information registered in a preset available cluster, and target component installation information determined based on a preset component and a preset target host based on a relational database and a non-relational database, the method further comprises:
establishing a preset cluster based on a preset cluster establishing method, and acquiring the cluster basic information by using a preset information input interface;
and verifying the cluster basic information based on a preset information verification rule, if the verification of the cluster basic information passes, generating a cluster ID based on the cluster basic information, and storing the cluster basic information and the cluster ID to the preset cluster.
4. The cluster switching method according to claim 2, wherein before storing, in the cluster list, pre-acquired cluster basic information, target host information registered in a preset available cluster, and target component installation information determined based on a preset component and a preset target host based on a relational database and a non-relational database, the method 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 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 target host information registered in the preset available cluster.
5. The cluster switching method according to claim 2, wherein before storing, in the cluster list, pre-acquired cluster basic information, target host information registered in a preset available cluster, and target component installation information determined based on a preset component and a preset target host based on a relational database and a non-relational database, the method 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 requirement information of the target component from the target host information registered in the preset available cluster, and installing the matched host and the target component based on the role requirement information to obtain target component installation information.
6. The method according to any one of claims 2 to 5, wherein before switching the cluster used by the target user from the cluster where the target user is currently located to the target available cluster, the method further comprises:
adding an information modification option for the cluster basic information in the preset cluster;
adding a host newly-added option and a host deleting option for the registered host in the preset cluster;
and adding a component newly-adding option, a component deleting option and a host modifying option for installing the components for the preset component list.
7. The cluster switching method according to claim 1, wherein switching the cluster used by the target user from the cluster where the target user is currently located to the target available cluster comprises:
establishing a cluster list page, and storing the target available cluster and cluster information corresponding to the target available cluster to the cluster list page; the cluster information comprises the cluster base 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 current cluster of the target user to the target available cluster by using the preset cluster switching button, and displaying the cluster information in a table form through the cluster list page.
8. A cluster switching apparatus, comprising:
the cluster list acquisition module is used for acquiring a pre-established 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;
a target available cluster determining module, configured to determine, from the cluster list, a target available cluster corresponding to the target user by using 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 located to the target available cluster.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the cluster switching method as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium for storing a computer program; wherein the computer program when executed by a processor implements the cluster switching method as claimed in any one of claims 1 to 7.
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 true CN114745757A (en) 2022-07-12
CN114745757B 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)

Cited By (1)

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

Citations (4)

* 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
US20200351328A1 (en) * 2017-11-17 2020-11-05 Beijing Kingsoft Cloud Network Technology Co., Ltd. Data transmission method, device, equipment, and readable storage medium
CN114079582A (en) * 2020-08-18 2022-02-22 成都鼎桥通信技术有限公司 Group calling method of cluster terminal and cluster terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200351328A1 (en) * 2017-11-17 2020-11-05 Beijing Kingsoft Cloud Network Technology Co., Ltd. Data transmission method, device, equipment, and readable storage medium
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

Cited By (2)

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

Also Published As

Publication number Publication date
CN114745757B (en) 2023-07-25

Similar Documents

Publication Publication Date Title
CN108305072B (en) Method, apparatus, and computer storage medium for deploying a blockchain network
CN107431651B (en) Life cycle management method and equipment for network service
US20190207812A1 (en) Hybrid cloud network configuration management
CN109670297B (en) Method and device for opening service permission, storage medium and electronic equipment
EP3447965B1 (en) Network function instance management method and relevant device
US20060253848A1 (en) Method and apparatus for solutions deployment in a heterogeneous systems management environment
CN113495921B (en) Routing method and device for database cluster
US11398989B2 (en) Cloud service for cross-cloud operations
US9736272B2 (en) Generation and distribution of named, definable, serialized tokens
US11429568B2 (en) Global namespace for a hierarchical set of file systems
US20200257576A1 (en) Verifying transfer of detected sensitive data
US20200213262A1 (en) System and method for automating actions in distributed computing
CN110780912B (en) Hierarchical spanning tree software patch with segment support
WO2022242595A1 (en) Detecting resource redundancy and conflicts in heterogeneous computing environment
CN114924751A (en) Method and device for distributing service access request flow
US11157292B2 (en) Instance mapping engine and tools
CN114745757B (en) Cluster switching method, device, equipment and medium
US10579598B2 (en) Global namespace for a hierarchical set of file systems
CN113128197A (en) Method and device for managing application production versions
US10942787B2 (en) Instance mapping engine and tools
US11068140B2 (en) Intelligent overflow menu
CN114328026A (en) Virtual disk backup method, device, equipment and medium
US11953972B2 (en) Selective privileged container augmentation
US11875202B2 (en) Visualizing API invocation flows in containerized environments
US20240143352A1 (en) Unified Management Interface

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