CN114510312A - Visual implementation method and device for cluster master-slave node switching - Google Patents

Visual implementation method and device for cluster master-slave node switching Download PDF

Info

Publication number
CN114510312A
CN114510312A CN202210171084.XA CN202210171084A CN114510312A CN 114510312 A CN114510312 A CN 114510312A CN 202210171084 A CN202210171084 A CN 202210171084A CN 114510312 A CN114510312 A CN 114510312A
Authority
CN
China
Prior art keywords
switching
master
slave
interface
node
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.)
Pending
Application number
CN202210171084.XA
Other languages
Chinese (zh)
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.)
Everbright Technology Co ltd
Original Assignee
Everbright 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 Everbright Technology Co ltd filed Critical Everbright Technology Co ltd
Priority to CN202210171084.XA priority Critical patent/CN114510312A/en
Publication of CN114510312A publication Critical patent/CN114510312A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention provides a visual implementation method and device for switching master nodes and slave nodes of a cluster. The method comprises the following steps: selecting a cluster needing master-slave node switching according to the running states of the master node and the slave nodes of each cluster in the display interface, and clicking a switching button to trigger master-slave node switching of the corresponding cluster; responding to the click operation of a switching button, popping up an independent switching interface and a switching prompt interface, wherein the independent switching interface displays the master-slave relationship, the address and the switching interactive logic information of a node to be switched, and the switching prompt interface displays switching prompt information and a switching determination button; and in response to the click operation of the switching determination button, popping up an independent switching animation interface and a switching result prompting interface, wherein the switching actions of the master node and the slave node are displayed in the switching animation interface in an animation mode, and the switching result information is displayed in the switching result prompting interface. The invention can solve the problem that the whole process of master-slave switching lacks visual support.

Description

Visual implementation method and device for cluster master-slave node switching
Technical Field
The embodiment of the invention relates to the field of communication, in particular to a visual implementation method and device for cluster master-slave node switching.
Background
In a distributed cache system (Redis), a more common computing structure is a master/slave mode, in which one device serves as a master node and the other as slave nodes, and because these computing units work simultaneously, the concept of "clustering" also appears. The so-called clustering is to add the number of servers to provide the same service, so that the servers reach a stable and efficient state. In order to support high availability of a system, the Redis provides a cluster deployment scheme, and when a master node fails or due to service and equipment maintenance requirements and the like, switching between the master node and the slave node needs to be performed in real time.
In the related art, if a deployment scheme of a sentinel mode is not adopted to realize automatic switching of master and slave nodes, a traditional switching mode is that after a certain master node is disconnected, the state of each slave node is acquired through an interface, then master and slave nodes are manually switched, and the switching process is usually completed through codes or manually completed through a list, so that a state sensing switching result is acquired again. However, the switching interactive interface and the switching whole flow of the switching mode lack logicality and intuition, and lack visual support for state detection, trigger action, master-slave exchange process, switching results and the like before switching, and meanwhile lack a function of inquiring historical switching records.
Disclosure of Invention
The embodiment of the invention provides a visual realization method and device for switching master nodes and slave nodes of a cluster, which are used for at least solving the problem that the whole process of master node and slave node switching in the related technology is lack of visual support.
According to an embodiment of the present invention, a method for visually implementing cluster master-slave node switching is provided, which includes: selecting a cluster needing master-slave node switching according to the running states of the master node and the slave nodes of each cluster in the display interface, and clicking a switching button to trigger master-slave node switching of the corresponding cluster; responding to the click operation of a switching button, popping up an independent switching interface and a switching prompt interface, wherein the independent switching interface displays the master-slave relationship, the address and the switching interactive logic information of a node to be switched, and the switching prompt interface displays switching prompt information and a switching determination button; and in response to the click operation of the switching determination button, popping up an independent switching animation interface and a switching result prompting interface, wherein the switching actions of the master node and the slave node are displayed in the switching animation interface in an animation mode, and the switching result information is displayed in the switching result prompting interface.
In an exemplary embodiment, the following contents are displayed in the presentation interface in a cluster unit: the project name, the addresses of the master node and the slave node, and the operating states of the master node and the slave node.
In an exemplary embodiment, selecting a cluster to be switched between master and slave nodes includes: and selecting a single cluster to switch master nodes and slave nodes, or selecting a plurality of clusters in batches to switch the master nodes and the slave nodes at the same time.
In an exemplary embodiment, after selecting a cluster that needs to be switched between a master node and a slave node, the method further includes: when the number of the slave nodes of the corresponding cluster is multiple, selecting one slave node from the multiple slave nodes through a preset strategy to perform master-slave node switching, or randomly selecting one slave node from the multiple slave nodes to perform master-slave node switching.
In an exemplary embodiment, selecting a cluster to be switched between master and slave nodes includes: and selecting the cluster needing master-slave node switching by searching the item name or the cluster address.
In one exemplary embodiment, further comprising: and responding to the click operation of a switching record button in the display interface, and popping up a master-slave switching record interface, wherein the master-slave switching record interface displays the project name, the addresses of the master node and the slave node, the switching operation time and the switching operation result information by taking a cluster as a unit.
In an exemplary embodiment, the switching operation time and the switching operation result information within the recording time are presented in a list form in chronological order, wherein the recording time is a set data retention period.
According to another embodiment of the present invention, a device for visually implementing cluster master-slave node switching is provided, which includes: the trigger module is used for selecting a cluster needing master-slave node switching according to the running states of the master node and the slave nodes of each cluster in the display interface, and clicking a switching button to trigger master-slave node switching of the corresponding cluster; the first response module is used for responding to the click operation of the switching button and popping up an independent switching interface and a switching prompt interface, wherein the independent switching interface displays the master-slave relationship, the address and the switching interactive logic information of a node to be switched, and the switching prompt interface displays switching prompt information and a switching determination button; and the second response module is used for responding to the click operation of the switching determination button and popping up an independent switching animation interface and a switching result prompt interface, wherein the switching actions of the main node and the slave node are displayed in the switching animation interface in an animation mode, and the switching result information is displayed in the switching result prompt interface.
In one exemplary embodiment, further comprising: and the third response module is used for responding to the click operation of a switching record button in the display interface and popping up a master-slave switching record interface, wherein the master-slave switching record interface displays the project name, the addresses of the master node and the slave node, the switching operation time and the switching operation result information by taking a cluster as a unit.
According to a further embodiment of the present invention, there is also provided a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
According to the invention, because the display interface provides real-time state display of the master node and the slave node, a user can see the states of the master node and the slave node at a glance, and the switching action of the master node and the slave node can be displayed by animation when master-slave switching is carried out. Therefore, the problem that the whole process of master-slave switching in the related technology lacks visual support can be solved, and the effect of master-slave switching process visualization is achieved.
Drawings
Fig. 1 is a block diagram of a hardware structure of a computer terminal that operates a cluster master-slave node switching visualization implementation method according to an embodiment of the present invention;
FIG. 2 is a flowchart of a method for implementing visualization of cluster master-slave node switching according to an embodiment of the present invention;
fig. 3 is a block diagram of a configuration of a cluster master-slave node switching visualization implementation apparatus according to an embodiment of the present invention;
fig. 4 is a block diagram of a cluster master-slave node switching visualization implementation apparatus according to another embodiment of the present invention;
FIG. 5 is a diagram illustrating master-slave relationships and a state list according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a master-slave switching interaction interface according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of another master-slave switching interaction interface according to an embodiment of the present invention;
FIG. 8 is a diagram of yet another master-slave switch recording interface according to an embodiment of the present invention.
Detailed Description
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings in conjunction with the embodiments.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the embodiments of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking the operation on a computer terminal as an example, fig. 1 is a block diagram of a hardware structure of a computer terminal for implementing visualization of master-slave node switching of a cluster according to an embodiment of the present invention. As shown in fig. 1, the computer terminal may include one or more processors 102 (only one is shown in fig. 1) (the processor 102 may include, but is not limited to, a Processing device such as a Microprocessor (MCU) or a Programmable logic device (FPGA)) and a memory 104 for storing data, wherein the computer terminal may further include a transmission device 106 for communication function and an input/output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration and is not intended to limit the structure of the computer terminal. For example, the computer terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be configured to store a computer program, for example, a software program and a module of application software, such as a computer program corresponding to the cluster master-slave node switching visualization implementation method in the embodiment of the present invention, and the processor 102 executes the computer program stored in the memory 104, thereby executing various functional applications and data processing, that is, implementing the foregoing method. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to a computer terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the computer terminal. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
Fig. 2 is a flowchart of a method for visually implementing cluster master-slave node switching according to an embodiment of the present invention, where as shown in fig. 2, the flowchart includes the following steps:
step S202, selecting a cluster needing master-slave node switching according to the running states of the master node and the slave nodes of each cluster in the display interface, and clicking a switching button to trigger master-slave node switching of the corresponding cluster;
step S204, responding to the click operation of a switching button, popping up an independent switching interface and a switching prompt interface, wherein the independent switching interface displays the master-slave relationship, the address and the switching interactive logic information of a node to be switched, and the switching prompt interface displays switching prompt information and a switching determination button;
and step S206, responding to the click operation of the switching determination button, and popping up an independent switching animation interface and a switching result prompting interface, wherein the switching actions of the main node and the slave node are displayed in the switching animation interface in an animation mode, and the switching result information is displayed in the switching result prompting interface.
In an exemplary embodiment, the method may further include: the following contents are displayed in the display interface by taking the cluster as a unit: the project name, the addresses of the master node and the slave node, and the operating states of the master node and the slave node.
In step S202 of this embodiment, the method may further include: and selecting a single cluster to switch master nodes and slave nodes, or selecting a plurality of clusters in batch to switch the master nodes and the slave nodes at the same time.
After step S202 in this embodiment, the method may further include: when the number of the slave nodes of the corresponding cluster is multiple, selecting one slave node from the multiple slave nodes through a preset strategy to perform master-slave node switching, or randomly selecting one slave node from the multiple slave nodes to perform master-slave node switching.
In step S202 of this embodiment, the method may further include: and selecting the cluster needing master-slave node switching by searching the item name or the cluster address.
In this embodiment, the method may further include: and responding to the click operation of a switching record button in the display interface, and popping up a master-slave switching record interface, wherein the master-slave switching record interface displays the project name, the addresses of the master node and the slave node, the switching operation time and the switching operation result information by taking a cluster as a unit.
In an exemplary embodiment, the switching operation time and the switching operation result information within the recording time may be presented in a list form in chronological order, where the recording time is a set data retention period.
Through the steps, the display interface provides real-time state display of the master node and the slave node, so that a user can see the states of the master node and the slave node at a glance, and the switching action of the master node and the slave node can be displayed in an animation mode when master-slave switching is carried out. Therefore, the problem that the whole process of master-slave switching in the related technology lacks visual support can be solved, and the effect of master-slave switching process visualization is achieved.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., a Read-Only Memory/Random Access Memory (ROM/RAM), a magnetic disk, an optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a device for visually implementing cluster master-slave node switching is further provided, where the device is used to implement the foregoing embodiments and preferred embodiments, and details are not repeated for what has been described. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 3 is a block diagram of a configuration of a cluster master-slave node switching visualization implementation apparatus according to an embodiment of the present invention, as shown in fig. 3, the apparatus includes: a trigger module 10, a first response module 20 and a second response module 30.
The triggering module 10 is configured to select a cluster that needs to be switched between master nodes and slave nodes according to the operating states of the master nodes and the slave nodes of each cluster in the display interface, and click a switching button to trigger master node and slave node switching of the corresponding cluster;
a first response module 20, configured to pop up an independent switching interface and a switching prompt interface in response to a click operation on a switching button, where the independent switching interface displays a master-slave relationship, an address, and switching interaction logic information of a node to be switched, and the switching prompt interface displays switching prompt information and a switching determination button;
and a second response module 30, configured to pop up an independent switching animation interface and a switching result prompting interface in response to a click operation on a switching determination button, where switching actions of the master node and the slave node are displayed in the switching animation interface in an animation manner, and switching result information is displayed in the switching result prompting interface.
Fig. 4 is a block diagram of a configuration of a cluster master-slave node switching visualization implementation apparatus according to another embodiment of the present invention, and as shown in fig. 4, the apparatus includes, in addition to all modules shown in fig. 3: and a third response module 40, configured to pop up a master-slave switching recording interface in response to a click operation on a switching recording button in the presentation interface, where a cluster is used as a unit in the master-slave switching recording interface to display a project name, addresses of a master node and a slave node, switching operation time, and switching operation result information.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
In order to facilitate understanding of the technical solutions provided by the present invention, the following detailed description will be made with reference to embodiments of specific scenarios.
The embodiment of the invention provides a distributed cache platform, which realizes unified management and control and deployment cooperation, realizes unified management and control of Redis service through a distributed cache platform management and control end, is oriented to development, test and operation and maintenance personnel, provides functions of management, trend analysis, performance optimization and the like of a full life cycle, and further finely manages the existing Redis service on construction and cloud; redis service resource supply capacity is built by combining with a container cloud or a full stack cloud, and the characteristics of a full stack cloud available area are utilized to enhance the perception of a bottom layer architecture, accelerate the fault switching speed and enhance the data persistence capacity; on the basis of the existing nanotube management system, the unified management and control capability of the Redis service is enhanced, and the fine management level and the service output capability are improved; meanwhile, on the basis of Redis containerization standard construction, the normative and maintainability of the Redis service of the container cloud platform are enhanced.
Fig. 5 is a schematic diagram of a master-slave relationship and status list according to an embodiment of the present invention, as shown in fig. 5,
the master-slave relationship and status list includes the following:
showing the project name and the master slave node address by taking a cluster as a unit;
displaying the current running state of the node and providing a switching basis;
the switching can be carried out aiming at a single cluster, and the clusters can also be selected in batch for switching at the same time;
when the cluster has a plurality of slave (slave) nodes, policy switching and random switching are supported; supporting searching and screening of secondary tables and operation thereof;
in this embodiment, the master-slave relationship list includes the same contents as those of the display interface in the above embodiments.
Fig. 6 and 7 are schematic diagrams of a master-slave switching interactive interface according to an embodiment of the present invention, and as shown in fig. 6 and 7, the master-slave switching interactive interface includes the following contents:
clicking 'switching' in a master-slave state list to pop up an independent switching interface, and clearly displaying master-slave relation, addresses and switching interaction logic;
clicking a switching popup switching prompt beside a node in a popup page to perform secondary confirmation to prevent switching errors;
identifying master-slave switching actions through switching animations after switching is determined;
and prompting a switching result and complete switching information after the switching action is finished.
In this embodiment, the master-slave switching interactive interface includes the contents of the switching interface, the switching prompt interface and the switching result prompt interface in the above embodiments.
Fig. 8 is a schematic diagram of a master-slave switching recording interface according to an embodiment of the present invention, and as shown in fig. 8, the master-slave switching recording interface includes the following contents:
clicking 'switching record' in the master-slave state list, and popping up a window to display a previous switching result;
the switching results are displayed in a list, the switching actions and results in the recording time are displayed according to the time sequence, and a data retention period can be set;
the switching record displays the item name, the master slave node address, the operation time, the operation result (e.g., success, failure, and switching path) in units of clusters.
In this embodiment, the master-slave relationship and status list interface provides real-time status display of the master node and the slave node, and the user can see the master node, the slave node and the status at a glance.
In this embodiment, the interface of the master-slave switching interactive interface displays the name of a project, two design elements of a master and a slave, and a switching button. The change effect of the master-slave switching interface uses the state of the switching panel, the dynamic exchange effect of the master and the slave can be displayed when the operation is triggered, a physical space sense in the application is constructed, the visual focus of a user is condensed around a key element, the specific position of the user can be informed, and the user can be clearly instructed.
In the embodiment, when the switching button is clicked, the color of the background changes, the change process of the background color is prompted by the elastic layer, after switching confirmation, the two elements on the interface slide from two sides to the middle respectively, the motion rule of the real object is followed, and the dynamic changes of too many elements do not occur in the single interaction effect, so that the interaction effect is clear, concise and consistent; and a design principle of 'less, namely more' is applied, and result feedback can be quickly given after the exchange is successful.
In this embodiment, the master-slave switch recording interface can record and observe master-slave switch.
An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to perform the steps in any of the above method embodiments when executed.
In an exemplary embodiment, the computer readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention further provide an electronic device, comprising a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
In an exemplary embodiment, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and details of this embodiment are not repeated herein.
It will be apparent to those skilled in the art that the various modules or steps of the invention described above may be implemented using a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and they may be implemented using program code executable by the computing devices, such that they may be stored in a memory device and executed by the computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into various integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (11)

1. A visual implementation method for cluster master-slave node switching is characterized by comprising the following steps:
selecting a cluster needing master-slave node switching according to the running states of the master node and the slave nodes of each cluster in the display interface, and clicking a switching button to trigger master-slave node switching of the corresponding cluster;
responding to the click operation of a switching button, popping up an independent switching interface and a switching prompt interface, wherein the independent switching interface displays the master-slave relationship, the address and the switching interactive logic information of a node to be switched, and the switching prompt interface displays switching prompt information and a switching determination button;
and in response to the click operation of the switching determination button, popping up an independent switching animation interface and a switching result prompting interface, wherein the switching actions of the master node and the slave node are displayed in the switching animation interface in an animation mode, and the switching result information is displayed in the switching result prompting interface.
2. The method according to claim 1, wherein the following is displayed in the presentation interface in a cluster unit: the project name, the addresses of the master node and the slave node, and the operating states of the master node and the slave node.
3. The method of claim 1, wherein selecting the cluster for which master-slave node switching is required comprises:
and selecting a single cluster to switch master nodes and slave nodes, or selecting a plurality of clusters in batches to switch the master nodes and the slave nodes at the same time.
4. The method of claim 1, wherein after selecting the cluster that needs to be switched between master and slave nodes, the method further comprises:
when the number of the slave nodes of the corresponding cluster is multiple, selecting one slave node from the multiple slave nodes through a preset strategy to perform master-slave node switching, or randomly selecting one slave node from the multiple slave nodes to perform master-slave node switching.
5. The method of claim 2, wherein selecting the cluster for which master-slave node switching is required comprises:
and selecting the cluster needing master-slave node switching by searching the item name or the cluster address.
6. The method of claim 1, further comprising:
and responding to the click operation of a switching record button in the display interface, and popping up a master-slave switching record interface, wherein the master-slave switching record interface displays the project name, the addresses of the master node and the slave node, the switching operation time and the switching operation result information by taking a cluster as a unit.
7. The method according to claim 6, wherein the switching operation time and switching operation result information within a recording time, which is a set data retention period, are presented in chronological order in a list form.
8. A visual realization device for cluster master-slave node switching is characterized by comprising:
the trigger module is used for selecting a cluster needing master-slave node switching according to the running states of the master node and the slave nodes of each cluster in the display interface, and clicking a switching button to trigger master-slave node switching of the corresponding cluster;
the first response module is used for responding to the click operation of the switching button and popping up an independent switching interface and a switching prompt interface, wherein the independent switching interface displays the master-slave relationship, the address and the switching interactive logic information of a node to be switched, and the switching prompt interface displays switching prompt information and a switching determination button;
and the second response module is used for responding to the click operation of the switching determination button and popping up an independent switching animation interface and a switching result prompt interface, wherein the switching actions of the main node and the slave node are displayed in the switching animation interface in an animation mode, and the switching result information is displayed in the switching result prompt interface.
9. The apparatus of claim 8, further comprising:
and the third response module is used for responding to the click operation of a switching record button in the display interface and popping up a master-slave switching record interface, wherein the master-slave switching record interface displays the project name, the addresses of the master node and the slave node, the switching operation time and the switching operation result information by taking a cluster as a unit.
10. A computer-readable storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the method of any of claims 1 to 7 when executed.
11. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 7.
CN202210171084.XA 2022-02-23 2022-02-23 Visual implementation method and device for cluster master-slave node switching Pending CN114510312A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210171084.XA CN114510312A (en) 2022-02-23 2022-02-23 Visual implementation method and device for cluster master-slave node switching

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210171084.XA CN114510312A (en) 2022-02-23 2022-02-23 Visual implementation method and device for cluster master-slave node switching

Publications (1)

Publication Number Publication Date
CN114510312A true CN114510312A (en) 2022-05-17

Family

ID=81553527

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210171084.XA Pending CN114510312A (en) 2022-02-23 2022-02-23 Visual implementation method and device for cluster master-slave node switching

Country Status (1)

Country Link
CN (1) CN114510312A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112714022A (en) * 2020-12-29 2021-04-27 平安普惠企业管理有限公司 Control processing method and device for multiple clusters and computer equipment
CN112866388A (en) * 2021-01-20 2021-05-28 网易(杭州)网络有限公司 Server cluster control method and device, storage medium and electronic equipment
CN113253643A (en) * 2021-05-12 2021-08-13 南瑞集团有限公司 Master-slave mode control method and management system based on D5000 master-slave mode control system
CN113407383A (en) * 2021-06-30 2021-09-17 迈普通信技术股份有限公司 Main/standby system switching method and device, server and main/standby system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112714022A (en) * 2020-12-29 2021-04-27 平安普惠企业管理有限公司 Control processing method and device for multiple clusters and computer equipment
CN112866388A (en) * 2021-01-20 2021-05-28 网易(杭州)网络有限公司 Server cluster control method and device, storage medium and electronic equipment
CN113253643A (en) * 2021-05-12 2021-08-13 南瑞集团有限公司 Master-slave mode control method and management system based on D5000 master-slave mode control system
CN113407383A (en) * 2021-06-30 2021-09-17 迈普通信技术股份有限公司 Main/standby system switching method and device, server and main/standby system

Similar Documents

Publication Publication Date Title
CN109634728B (en) Job scheduling method and device, terminal equipment and readable storage medium
CN110413346B (en) Parameter updating method and device
CN109684054A (en) Information processing method and device, electronic equipment and memory
CN109697153A (en) Monitoring method, monitoring system and computer readable storage medium
CN103403686A (en) System and method for root cause analysis
CN111694646A (en) Resource scheduling method and device, electronic equipment and computer readable storage medium
CN110162481A (en) A kind of method for testing software, device, equipment and storage medium
CN110290213A (en) Intelligent robot management method and device and electronic equipment
CN102112940A (en) Method and apparatus for monitoring performance of power delivery control system
CN104991821A (en) Monitor task batch processing method and apparatus
CN108880898A (en) Active and standby containment system switching method and device
CN112653577A (en) Network element management method, device and storage medium
CN109379425A (en) Distributed cluster deployment management method and device
CN106484459B (en) Flow control method and device applied to JavaScript
CN111078348A (en) Interface management method, device, equipment and storage medium
CN111459795A (en) Cluster pressure testing method and device, computer equipment and storage medium
CN114912255A (en) On-line simulation experiment system and method
CN113449031A (en) Data synchronization management method and device and server
CN110188258B (en) Method and device for acquiring external data by using crawler
CN102387137B (en) Implementation method and system of intelligent operation logic of a plurality of network devices
CN114510312A (en) Visual implementation method and device for cluster master-slave node switching
CN116319492A (en) Switch testing method and device, storage medium and electronic equipment
CN108279906A (en) The method and apparatus of application deployment service on the server
CN113301089B (en) Cloud service node deployment method and device
CN114675931A (en) Resource monitoring method and monitoring device for integrated platform instance

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