CN109067570B - Server information display method and device and server - Google Patents

Server information display method and device and server Download PDF

Info

Publication number
CN109067570B
CN109067570B CN201810819649.4A CN201810819649A CN109067570B CN 109067570 B CN109067570 B CN 109067570B CN 201810819649 A CN201810819649 A CN 201810819649A CN 109067570 B CN109067570 B CN 109067570B
Authority
CN
China
Prior art keywords
server
dimensional code
running state
type
state information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810819649.4A
Other languages
Chinese (zh)
Other versions
CN109067570A (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.)
Beijing Infosec Technologies Co Ltd
Original Assignee
Beijing Infosec Technologies 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 Beijing Infosec Technologies Co Ltd filed Critical Beijing Infosec Technologies Co Ltd
Priority to CN201810819649.4A priority Critical patent/CN109067570B/en
Publication of CN109067570A publication Critical patent/CN109067570A/en
Application granted granted Critical
Publication of CN109067570B publication Critical patent/CN109067570B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a server information display method, a server information display device and a server, which are used for generating a two-dimensional code according to the type of the server so as to directly check the current type of the server through the two-dimensional code. The method comprises the following steps: a first server acquires running state information of at least one server in a high-availability HA server cluster, wherein the first server is any one server in the HA server cluster; the first server determines the type of the at least one server according to the running state information, wherein the type comprises an active server and a standby server; the first server generates an inquiry two-dimensional code based on the determined result, and displays the inquiry two-dimensional code on a preset display window of the first server, so that a user can check the type of the at least one server after scanning the inquiry two-dimensional code through terminal equipment.

Description

Server information display method and device and server
Technical Field
The invention relates to the technical field of computers, in particular to a server information display method and device and a server.
Background
The High Availability (HA) server cluster is an example in which at least two servers are used to jointly execute the same service, and the server cluster includes two servers, where one of the two servers can be used as an active server and the other as a standby server, and when the active server fails, the standby server can continue to undertake a service task, so that the system can be automatically guaranteed to continuously provide the service without manual intervention. Wherein, when the standby server provides service, the standby server is automatically converted into the active server, and the failed server is automatically converted into the standby server.
However, in the current HA server cluster, when configuration information of a server needs to be checked, for example, a standby server needs to be maintained, it is necessary to know which server is currently the standby server, and at present, after the server is connected through an external device, a configuration file is obtained from the server, and then it is determined which server is the standby server by checking the configuration file, which is inconvenient.
Disclosure of Invention
The embodiment of the invention provides a server information display method, a server information display device and a server, which are used for generating a two-dimensional code according to the type of the server so as to directly check the current type of the server through the two-dimensional code.
In a first aspect, a method for displaying server information is provided, where the method includes:
a first server acquires running state information of at least one server in an HA server cluster, wherein the first server is any one server in the HA server cluster;
the first server determines the type of the at least one server according to the running state information, wherein the type comprises an active server and a standby server;
the first server generates an inquiry two-dimensional code based on the determined result, and displays the inquiry two-dimensional code on a preset display window of the first server, so that a user can check the type of the at least one server after scanning the inquiry two-dimensional code through terminal equipment.
In the embodiment of the invention, the first server can determine whether the active server or the standby server exists in the at least one server according to the acquired running state information of the at least one server in the HA server cluster, and further generates the query two-dimensional code according to the determination result, and the user can know the type of the at least one server after scanning the query two-dimensional code through the terminal device.
Alternatively to this, the first and second parts may,
the method further comprises the following steps:
the first server acquires the equipment information of the at least one server;
the first server generates a query two-dimensional code based on the determined result, and displays the query two-dimensional code on a preset display window of the first server, including:
and the first server generates the query two-dimensional code based on the determined result and the equipment information, and displays the query two-dimensional code on the preset display window, so that a user can check the type of the at least one server and the equipment information after scanning the query two-dimensional code through terminal equipment.
In the embodiment of the invention, besides the type of the server, the equipment information of the server can be generated and inquired by the two-dimensional code, so that the user can conveniently inquire the equipment information of the server.
Optionally, after the first server generates the query two-dimensional code based on the determined result, the method further includes:
the first server determines whether the running state information of the at least one server is updated;
and if the determination result is yes, the first server determines the type of the at least one server based on the updated running state information, and generates the query two-dimensional code according to the re-determined type.
In the embodiment of the invention, if the running state information of the server is changed, the query two-dimensional code is updated, so that the accuracy of the type of the server acquired by the user is ensured.
Optionally, the determining, by the first server, whether the configuration information of the at least one server is updated includes:
the first server starts a monitoring process to monitor whether the running state information of the at least one server is updated, and when the running state information of the at least one server is updated, the first server can monitor the updated running state information through the monitoring process.
In a second aspect, there is provided a server information presentation apparatus provided in a first server, the apparatus including:
an obtaining unit, configured to obtain running state information of at least one server in a high-availability HA server cluster, where the first server is any one server in the HA server cluster;
a determining unit, configured to determine a type of the at least one server according to the running state information, where the type includes an active server and a standby server;
and the two-dimension code generating unit is used for generating an inquiry two-dimension code based on the determined result and displaying the inquiry two-dimension code on a preset display window of the first server, so that a user can check the type of the at least one server after scanning the inquiry two-dimension code through terminal equipment.
Alternatively to this, the first and second parts may,
the obtaining unit is further configured to: acquiring equipment information of the at least one server;
the two-dimensional code generating unit is further configured to: and generating the query two-dimensional code based on the determined result and the equipment information, and displaying the query two-dimensional code on the preset display window, so that a user can check the type of the at least one server and the equipment information after scanning the query two-dimensional code through terminal equipment.
Alternatively to this, the first and second parts may,
the determining unit is further configured to: determining whether the running state information of the at least one server is updated; if the determination result is yes, determining the type of the at least one server based on the updated running state information;
the two-dimensional code generating unit is further configured to: generating the query two-dimensional code based on the re-determined type.
Optionally, the determining unit is specifically configured to:
and monitoring whether the running state information of the at least one server is updated or not by starting a monitoring process, wherein when the running state information of the at least one server is updated, the determining unit can monitor the updated running state information through the monitoring process.
In a third aspect, a server is provided, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of the first aspect.
In a fourth aspect, a computer-readable storage medium is provided,
the computer readable storage medium stores computer instructions which, when executed on a computer, cause the computer to perform the method of the first aspect.
Drawings
Fig. 1 is a schematic view of an application scenario provided in an embodiment of the present invention;
fig. 2 is a schematic flowchart of a server information displaying method according to an embodiment of the present invention;
fig. 3 is a schematic diagram of scanning query two-dimensional codes to obtain a scanning result according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a server information displaying apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, 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.
Referring to fig. 1, an application scenario diagram of the embodiment of the present invention is shown, and the scenario may include a terminal device 101, an active server 102, a standby server 103, and a storage device 104.
The terminal device 101 may communicate with the active server 102 and the standby server 103 through a wired network or a wireless network to serve the terminal device 101 through the active server 102 and the standby server 103. The Wireless network may be, for example, a Wireless local area network (WIFI), a mobile cellular network, or the like, and certainly, the Wireless network may also be any other possible network, which is not limited in this embodiment of the present invention.
Active server 102 and standby server 103 may form a HA server cluster, and active server 102 and standby server 103 may share storage device 104 therebetween, thereby maintaining data consistency. The state of the other side is known between the active server 102 and the standby server 103 through heartbeat detection, when the active server 102 works normally, the standby server 103 is in a dormant state, and when the active server 102 goes down, the standby server 103 can detect that the active server 102 cannot provide services continuously through heartbeat detection, so that the standby server 103 can automatically take over the active server 102 and continuously perform the tasks performed by the active server 102, and the system can be automatically ensured to continuously provide services for the terminal equipment 101 without manual intervention. Fig. 1 only shows an HA server cluster composed of two servers, but it should be understood that the HA server cluster may further include 3 or 4 or even more servers, which is not limited in this embodiment of the present invention.
At present, in an HA server cluster, when configuration information of a server cannot be directly checked, for example, a standby server therein needs to be maintained, it is necessary to know which server is currently the standby server, at present, after the server is usually connected through an external device, a configuration file is obtained from the server, and then it is determined which server is the standby server by checking the configuration file, which is inconvenient.
In view of this, an embodiment of the present invention provides a server information displaying method, in which a first server can determine, according to acquired running state information of at least one server in an HA server cluster, whether an active server or a standby server is present in the at least one server, and then an inquiry two-dimensional code is generated according to a determination result, and after a user scans the inquiry two-dimensional code through a terminal device, the user can know a type of the at least one server, so that the user does not need to connect to the server through an external device to acquire a configuration file, and needs to acquire the type of the server by referring to the configuration file. And if the running state information of the server is changed, the query two-dimensional code is updated so as to ensure the accuracy of the type of the server acquired by the user.
The technical scheme provided by the embodiment of the invention is described below by combining the accompanying drawings.
Referring to fig. 2, an embodiment of the present invention provides a server information displaying method, which may be applied to the application scenario shown in fig. 1, and the method may be executed by any one server in the application scenario shown in fig. 1. The flow of the method is described below.
Step 201: the first server acquires the running state information of at least one server in the HA server cluster.
In the embodiment of the present invention, the HA server cluster may be composed of two or more servers, and the first server may be any one server in the HA server cluster. Taking an example that the HA cluster server includes two servers, one of the two servers is used as an active server, and the other server is used as a standby server, so that the first server may be the active server, or the first server may also be the standby server.
The at least one server may be one or more servers in a cluster of HA servers. For example, at least one server may be the first server, or may be all the servers in the HA server cluster, or may be a combination of the first server and any other servers.
The operation state information of the server is used to indicate a current operation state of the server, and in the HA server cluster, the operation state of the server may include an active (active) state and a standby (standby) state.
Specifically, the current operating state information of other servers can be obtained through heartbeat detection between the servers in the HA server cluster. The heartbeat detection means that the server sends heartbeat packets to the other side every certain time to inform the other side of the current running state of the server, and then the first server can acquire the running state information of the other side through the heartbeat packets sent by at least one server.
In the specific implementation process, the first server may acquire the running state information of the other servers through a preset information acquisition process. The information acquisition process can acquire the content of the heartbeat packet sent to the first server by other servers so as to acquire the running state information of other servers; alternatively, the information obtaining process can read the running state information of the first server from the configuration file of the first server.
Or, when the HA server cluster includes only two servers, the first server may further obtain the operating state of the other server through its own operating state inference. For example, when the first server is in the active state, the operation state of another server in the HA server cluster can only be the standby state.
In the embodiment of the present invention, besides the type of the server, some other configuration information may be displayed, for example, the device information of the server may be displayed by querying the two-dimensional code. The device information may be displayed simultaneously with the type or may be displayed separately. The device information may include hardware information or software information of the server, for example, the device information may be a node name, an Internet Protocol (IP) address, or software version information of the server.
Generally, when an HA server cluster is established, the device information of the servers in the HA server cluster is written into a configuration file, and the configuration files between the servers may be the same, so that the first server may directly obtain the device information of itself or other servers from the configuration file.
Step 202: the first server determines the type of the at least one server according to the running state information of the at least one server.
In the embodiment of the present invention, after the first server obtains the operation state of the at least one server, the type of the at least one server may be determined according to the operation state information of the at least one server. Specifically, when the acquired running state information of the server is in an active state, it indicates that the type of the server is an active server, or when the acquired running state information of the server is in a standby state, it indicates that the type of the server is a standby server.
Step 203: the first server generates a query two-dimensional code based on the determined result.
In the embodiment of the present invention, after the first server determines the type of the at least one server, the query two-dimensional code may be generated according to the determined type. The query two-dimensional code may be a Quick Response code (QR code) or a stacked two-dimensional barcode.
Similarly, when the device information of at least one server needs to be displayed, the query two-dimensional code may also be generated according to the device information, and correspondingly, if the type of the server and the device information need to be displayed simultaneously, the query two-dimensional code may also be generated according to the determination result of the type and the acquired device information.
For example, if the HA server cluster system includes a first server and a second server, where the first server determines that the server type results in the first server being an active server and the second server being a standby server, the first server may generate the query two-dimensional code based on the result. Specifically, the first server may invoke the two-dimensional code generator to generate the query two-dimensional code.
Specifically, the first server may directly input the determined result into the two-dimensional code generator in a text form, so as to generate the query two-dimensional code.
Of course, the first server may also sort the determined result in the form of a picture or a table, and then input the picture or the table into the two-dimensional code generator, thereby generating the query two-dimensional code.
Step 204: and the first server displays the query two-dimensional code on a preset display window.
In the embodiment of the present invention, a display window may be preset on the first server, and is used to display the generated query two-dimensional code on the display window after the query two-dimensional code is generated. Wherein, this display window can be the less display screen of display area to because the two-dimensional code is not high to the requirement of display screen, therefore this display screen can be the lower display screen of resolution ratio, and this kind of display screen not only can satisfy the requirement of showing the two-dimensional code, and low in manufacturing cost can not additionally increase too much expense, and the practicality is stronger.
In the embodiment of the invention, when a user wants to check the type of the at least one server, the type of the first server can be displayed on the terminal equipment only by scanning the query two-dimensional code displayed on the display window through the terminal equipment with the two-dimensional code scanning function. For example, at present, a mobile phone may be installed with a plurality of applications (applications) capable of supporting two-dimensional code scanning, and then a user may scan and query the two-dimensional code through the APPs.
Please refer to fig. 3, which is a schematic diagram of a scanning result obtained by scanning the query two-dimensional code. The HA server cluster includes two servers, specifically, a node name of an active server is master, an IP address is 192.168.10.22, a node name of a standby server is slave, an IP address is 192.168.10.33, and a server currently providing a service is master.
Based on the above example, in the active server, the text information input to the two-dimensional code generator may be as follows:
"the device is an active server;
active server node name: a master;
IP address: 192.168.10.22, respectively;
backup server node name: slave;
IP address: 192.168.10.33, respectively;
the server currently providing the service: master'
The generated query two-dimensional code is as shown in fig. 3, the user can obtain information contained in the query two-dimensional code through a scanning function of, for example, WeChat, as shown in the right side of fig. 3, the user can directly know that the current device is the active server and relevant information of the active server and the standby server, such as node names and IP addresses, according to the scanning result, the user can directly know the information of the standby server corresponding to the active server through the active server, which is more convenient. In addition, the user may also know whether the device currently providing the service is an active server or a standby server.
Correspondingly, in the standby server, the text information input to the two-dimensional code generator may be as follows:
"the device is a standby server;
active server node name: a master;
IP address: 192.168.10.22, respectively;
backup server node name: slave;
IP address: 192.168.10.33, respectively;
the server currently providing the service: master'
Similarly, after scanning the two-dimensional code on the standby server, the user can know that the device is the standby server, and the related information of the active server and the standby server, such as the node name and the IP address, and can also know whether the device currently providing the service is the active server or the standby server.
Please continue with fig. 2.
Step 205: the first server determines whether the running state information of at least one server is updated.
In the embodiment of the invention, in the HA server cluster, if the active server is down, the standby server is automatically started, the current equipment for providing the server is the standby server, namely, the contents in the two-dimensional code are inquired are changed, and the two-dimensional code is inquired and needs to be updated. In addition, there may be a case where the type of the server is modified manually, for example, the active server may be modified to be the standby server by modifying the configuration file, and the standby server may be modified to be the active server, so that the type of the server is not constant, and therefore, the first server may monitor whether the running state information of at least one server is updated through the monitoring process in the first server. Of course, the listening process may also listen for updates of other information, such as the name of the server or node currently providing the service.
The monitoring process may be substantially the same as the information obtaining process, that is, the monitoring process may also obtain the running state information of the other server from the heartbeat packet, or, if the configuration file is synchronized between the servers in the HA server cluster, may also obtain the running state information of the first server or the other server from the configuration file in the first server. After acquiring the new operating status information, the listening process may determine that the operating status information of at least one server has changed.
Step 206: when the determination in step 205 is yes, the first server determines the type of the at least one server based on the updated operating state information.
And if the running state information of at least one server is not updated, continuously monitoring.
Step 207: and the first server generates a query two-dimensional code according to the redetermined type.
When the type of at least one server is determined again, the first server can regenerate the query two-dimensional code according to the determined type again, and the new query two-dimensional code is displayed on a preset display window of the first server.
In summary, in the embodiment of the present invention, the first server may determine, according to the obtained running state information of the at least one server in the HA server cluster, whether the at least one server is the active server or the standby server, and further generate the query two-dimensional code according to the determination result, and after the user scans the query two-dimensional code through the terminal device, the user may know the type of the at least one server, so that the user does not need to connect to the server through an external device to obtain the configuration file, and needs to obtain the type of the server by referring to the configuration file. In addition, the two-dimensional code only needs a smaller display screen, and the problem that a larger display screen is needed for directly displaying characters on the display screen is avoided. And if the running state information of the server is changed, the query two-dimensional code is updated so as to ensure the accuracy of the type of the server acquired by the user.
Referring to fig. 4, based on the same inventive concept, an embodiment of the present invention provides a server information displaying apparatus, which may be disposed in a first server, and the apparatus includes:
an obtaining unit 401, configured to obtain running state information of at least one server in a high availability HA server cluster, where a first server is any one server in the HA server cluster;
a determining unit 402, configured to determine a type of at least one server according to the running state information, where the type includes an active server and a standby server;
the two-dimensional code generating unit 403 is configured to generate an inquiry two-dimensional code based on the determined result, and display the inquiry two-dimensional code on a preset display window of the first server, so that a user can view the type of at least one server after scanning the inquiry two-dimensional code through the terminal device.
Alternatively to this, the first and second parts may,
the obtaining unit 401 is further configured to: acquiring equipment information of at least one server;
the two-dimensional code generating unit 403 is further configured to: and generating an inquiry two-dimensional code based on the determined result and the equipment information, and displaying the inquiry two-dimensional code on a preset display window, so that a user can check the type and the equipment information of at least one server after scanning the inquiry two-dimensional code through the terminal equipment.
Alternatively to this, the first and second parts may,
a determining unit 402, further configured to: determining whether the running state information of at least one server is updated; if the determination result is yes, determining the type of at least one server based on the updated running state information;
the two-dimensional code generating unit 403 is further configured to: and generating the query two-dimensional code based on the re-determined type.
Optionally, the determining unit 402 is specifically configured to:
the monitoring process is started to monitor whether the running state information of at least one server is updated, and when the running state information of at least one server is updated, the determining unit 402 can monitor the updated running state information through the monitoring process.
The apparatus may be configured to execute the method provided in the embodiment shown in fig. 2, and therefore, for functions and the like that can be realized by each functional module of the device, reference may be made to the description of the embodiment shown in fig. 2, which is not repeated here.
Referring to fig. 5, based on the same inventive concept, an embodiment of the present invention provides a server, which includes at least one processor 501, where the at least one processor 501 is configured to implement the steps of the server information presentation method provided in the embodiment shown in fig. 2 when executing a computer program stored in a memory.
Optionally, at least one of the processors 501 may specifically include a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), one or more integrated circuits for controlling program execution, a hardware circuit developed by using a Field Programmable Gate Array (FPGA), or a baseband processor.
Optionally, at least one processor 501 may include at least one processing core.
Optionally, the server further includes a memory 502, and the memory 502 may include a Read Only Memory (ROM), a Random Access Memory (RAM), and a disk memory. The memory 502 is used for storing data required by the at least one processor 501 during operation. The number of the memories 502 is one or more. The memory 502 is shown in fig. 5, but it should be understood that the memory 502 is not an optional functional block, and is shown in fig. 5 by a dotted line.
Based on the same inventive concept, the embodiment of the present invention provides a computer-readable storage medium storing computer instructions, which, when executed on a computer, cause the computer to perform the method shown in fig. 2.
In particular implementations, the computer-readable storage medium includes: various storage media capable of storing program codes, such as a Universal Serial Bus flash drive (USB), a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, and an optical disk.
In the embodiments of the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the described unit or division of units is only one division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical or other form.
The functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be an independent physical module.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the technical solutions of the embodiments of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device, such as a personal computer, a server, or a network device, or a processor (processor) to execute all or part of the steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media that can store program codes, such as a universal serial bus flash drive (usb flash drive), a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above embodiments are only used to describe the technical solutions of the present application in detail, but the above embodiments are only used to help understanding the method of the embodiments of the present invention, and should not be construed as limiting the embodiments of the present invention. Variations or substitutions that may be readily apparent to one skilled in the art are intended to be included within the scope of the embodiments of the present invention.

Claims (10)

1. A server information display method is characterized by comprising the following steps:
a first server acquires running state information of at least one server in a high-availability HA server cluster, wherein the first server is any one server in the HA server cluster;
the first server determines the type of the at least one server according to the running state information, wherein the type comprises an active server and a standby server;
the first server generates an inquiry two-dimensional code based on the determined result, and displays the inquiry two-dimensional code on a preset display window of the first server, so that a user can check the type of the at least one server after scanning the inquiry two-dimensional code through terminal equipment.
2. The method of claim 1,
the method further comprises the following steps:
the first server acquires the equipment information of the at least one server;
the first server generates a query two-dimensional code based on the determined result, and displays the query two-dimensional code on a preset display window of the first server, including:
and the first server generates the query two-dimensional code based on the determined result and the equipment information, and displays the query two-dimensional code on the preset display window, so that a user can check the type of the at least one server and the equipment information after scanning the query two-dimensional code through terminal equipment.
3. The method of claim 1 or 2, wherein after the first server generates a query two-dimensional code based on a result of the determining, the method further comprises:
the first server determines whether the running state information of the at least one server is updated;
and if the determination result is yes, the first server determines the type of the at least one server based on the updated running state information, and generates the query two-dimensional code according to the re-determined type.
4. The method of claim 1 or 2, wherein the first server determining whether the configuration information of the at least one server is updated comprises:
the first server starts a monitoring process to monitor whether the running state information of the at least one server is updated, and when the running state information of the at least one server is updated, the first server can monitor the updated running state information through the monitoring process.
5. A server information display device arranged in a first server, the device comprising:
an obtaining unit, configured to obtain running state information of at least one server in a high-availability HA server cluster, where the first server is any one server in the HA server cluster;
a determining unit, configured to determine a type of the at least one server according to the running state information, where the type includes an active server and a standby server;
and the two-dimension code generating unit is used for generating an inquiry two-dimension code based on the determined result and displaying the inquiry two-dimension code on a preset display window of the first server, so that a user can check the type of the at least one server after scanning the inquiry two-dimension code through terminal equipment.
6. The apparatus of claim 5,
the obtaining unit is further configured to: acquiring equipment information of the at least one server;
the two-dimensional code generating unit is further configured to: and generating the query two-dimensional code based on the determined result and the equipment information, and displaying the query two-dimensional code on the preset display window, so that a user can check the type of the at least one server and the equipment information after scanning the query two-dimensional code through terminal equipment.
7. The apparatus of claim 5 or 6,
the determining unit is further configured to: determining whether the running state information of the at least one server is updated; if the determination result is yes, determining the type of the at least one server based on the updated running state information;
the two-dimensional code generating unit is further configured to: generating the query two-dimensional code based on the re-determined type.
8. The apparatus according to claim 5 or 6, wherein the determining unit is specifically configured to:
and monitoring whether the running state information of the at least one server is updated or not by starting a monitoring process, wherein when the running state information of the at least one server is updated, the determining unit can monitor the updated running state information through the monitoring process.
9. A server, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1 to 4.
10. A computer storage medium, characterized in that:
the computer storage medium stores computer instructions that, when executed on a computer, cause the computer to perform the method of any of claims 1-4.
CN201810819649.4A 2018-07-24 2018-07-24 Server information display method and device and server Active CN109067570B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810819649.4A CN109067570B (en) 2018-07-24 2018-07-24 Server information display method and device and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810819649.4A CN109067570B (en) 2018-07-24 2018-07-24 Server information display method and device and server

Publications (2)

Publication Number Publication Date
CN109067570A CN109067570A (en) 2018-12-21
CN109067570B true CN109067570B (en) 2021-08-31

Family

ID=64836147

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810819649.4A Active CN109067570B (en) 2018-07-24 2018-07-24 Server information display method and device and server

Country Status (1)

Country Link
CN (1) CN109067570B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111124923B (en) * 2019-12-25 2024-03-22 上海米哈游网络科技股份有限公司 Running state query method and device, server equipment and storage medium
CN112416398A (en) * 2020-11-23 2021-02-26 中国工商银行股份有限公司 Method and device for updating configuration information of main server

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103036719A (en) * 2012-12-12 2013-04-10 北京星网锐捷网络技术有限公司 Cross-regional service disaster method and device based on main cluster servers
CN106982259A (en) * 2017-04-19 2017-07-25 聚好看科技股份有限公司 The failure solution of server cluster
CN108234170A (en) * 2016-12-15 2018-06-29 北京神州泰岳软件股份有限公司 The monitoring method and device of a kind of server cluster

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2888453A1 (en) * 2012-10-22 2014-05-01 Cassidian Communications, Inc. Clustered session management
US20150188928A1 (en) * 2013-12-30 2015-07-02 OnCam, Inc. Private-public chat functionality

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103036719A (en) * 2012-12-12 2013-04-10 北京星网锐捷网络技术有限公司 Cross-regional service disaster method and device based on main cluster servers
CN108234170A (en) * 2016-12-15 2018-06-29 北京神州泰岳软件股份有限公司 The monitoring method and device of a kind of server cluster
CN106982259A (en) * 2017-04-19 2017-07-25 聚好看科技股份有限公司 The failure solution of server cluster

Also Published As

Publication number Publication date
CN109067570A (en) 2018-12-21

Similar Documents

Publication Publication Date Title
US20180285053A1 (en) Screenshot method and apparatus
CN107592237B (en) Resource monitoring method and system of hybrid cloud
JP6968261B2 (en) Computer-implemented methods, information transmission methods, data transmission computing devices, information transmission servers, non-transient, computer-readable media and computer-implemented systems.
CN105376107B (en) Terminal testing method and proxy server
US10110549B2 (en) Method, server and electronic devices of synchronizing notification messages for electronic devices
US10455542B2 (en) Method of synchronizing notification messages for electronic devices and electronic devices
CN109145238B (en) Card display method and device and mobile device
US11343389B2 (en) Writing IPV4 or IPV6 information into an NFC tag attached to an image forming apparatus
CN110968356B (en) Method and device for acquiring configuration information
CN109067570B (en) Server information display method and device and server
CN114036228A (en) Data synchronization method and device based on DataX, electronic device and storage medium
US10169690B2 (en) Communication device that communicates with external device, control method for the same, and storage medium
CN115208951A (en) Request processing method and device, electronic equipment and computer readable storage medium
CN110321172B (en) Partition identification method, device, equipment and storage medium for network block equipment
CN106685708B (en) Method, device and system for determining service relationship
CN109951549B (en) Network page access method and device and computer readable storage medium
JP2012014370A (en) Communication terminal, communication method, communication program, and communication system
US20230126360A1 (en) Wifi network access method, communication method, peripheral apparatus, and storage medium
US20170171357A1 (en) Apparatus and method for assisting in downloading file successfully
US10142393B2 (en) Communication apparatus, communication method, and storage medium
CN114329091A (en) Data directory generation method, device and equipment
CN110855782B (en) Service calling system, method, electronic equipment and readable storage medium
CN112783548B (en) Access method and device of network system
US10218650B2 (en) Information processing system
US10276025B2 (en) Spatial telemeter alert reconnaissance system

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