Main and standby server switching event identification method and device for passenger information system
By acquiring real-time traffic data from the primary and backup servers of the passenger information system, and using the switch port mapping table and traffic changes to automatically identify primary and backup server switching events, the problem of time-consuming and misjudgment-prone identification methods in existing technologies is solved, achieving efficient and accurate event identification and ensuring system stability.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-30
- Publication Date
- 2026-04-14
AI Technical Summary
The existing passenger information system requires maintenance personnel to manually investigate and compare primary and backup server switching events, which is time-consuming, prone to misjudgment, and lacks automation and efficiency.
By acquiring real-time traffic data from the primary and backup servers, and utilizing the switch port mapping table and changes in traffic volume, the system automatically identifies primary/backup server switching events and generates notification messages.
It improves the efficiency and accuracy of identifying primary and backup server switchover events, reduces manual intervention time, and ensures stable system operation.
Smart Images

Figure CN121864565A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of rail transit technology, and in particular to a method and apparatus for identifying primary and backup server switching events in a passenger information system. Background Technology
[0002] The Passenger Information System (PIS), based on telecommunications technology, is equipped with multiple primary and backup servers in the primary and backup control centers. These servers store pre-made playlists and various media files. During daily operation, the system can transmit the playlists and corresponding media files to the station and onboard playback controllers according to the operation commands issued by the publishing terminals.
[0003] The failover event of the central server in the passenger information system is a crucial aspect of operation and maintenance. The failover mechanism between the primary and backup servers is a key element in ensuring stable system operation. It enables a rapid switchover of services to the backup server when the primary server fails or requires maintenance, thereby preventing system service interruptions and ensuring the passenger information system can continuously and stably provide services to passengers. However, the current method for handling failover events in passenger information systems requires maintenance personnel to meticulously check, compare, and analyze relevant data to ultimately determine whether a failover event has occurred. This process, from event occurrence to problem localization, often takes a considerable amount of time and requires maintenance personnel to possess extensive experience and expertise, and carries the risk of misjudging the failover event.
[0004] Therefore, there is an urgent need for a method and apparatus for identifying primary and backup server switching events in passenger information systems to solve the above problems. Summary of the Invention
[0005] To address the problems existing in the prior art, the present invention provides a method and apparatus for identifying primary and backup server switching events in a passenger information system.
[0006] This invention provides a method for identifying primary / backup server switchover events in a passenger information system, comprising: The system acquires first and second traffic information from the passenger information system during the current monitoring period. The first traffic information is real-time traffic data generated by the main server in the passenger information system during the current monitoring period. The second traffic information is real-time traffic data generated by the backup server corresponding to the main server during the current monitoring period. Based on each of the first traffic information and each of the second traffic information, the target master server and the target backup server corresponding to the target master server for the current monitoring period are determined from multiple master servers and multiple backup servers of the passenger information system. The target master server and the target backup server are redundant backups of each other, and the real-time traffic size relationship between the target master server and the target backup server changes during the current monitoring period. Based on the target primary server and the target backup server, a corresponding first prompt message for the server primary / backup switch event is constructed, wherein the first prompt message for the server primary / backup switch event indicates a prompt message indicating a switch from the target primary server to the target backup server.
[0007] According to the present invention, a method for identifying primary / backup server switchover events in a passenger information system further includes: Receive a first instruction, wherein the first instruction includes operation information for adjusting the monitoring cycle of each master server and the corresponding backup server monitored by the passenger information system; In response to the first instruction, the duration of the monitoring period for each master server and the corresponding backup server is adjusted so as to identify the master server and the corresponding backup server in the passenger information system according to the adjusted monitoring period.
[0008] According to the present invention, a method for identifying primary / backup server switching events in a passenger information system includes, wherein obtaining each first traffic information and each second traffic information of the passenger information system within the current monitoring period comprises: Based on the service function type information of the server in the passenger information system, the duration of the monitoring period corresponding to each primary and backup server in the passenger information system that has a redundant backup relationship is determined, wherein the primary and backup servers include the primary server and the backup server corresponding to the primary service. Based on the duration of the monitoring period corresponding to each of the primary and backup servers, the passenger information system obtains each of the first traffic information and each of the second traffic information within the current monitoring period.
[0009] According to the present invention, a method for identifying primary / backup server switchover events in a passenger information system further includes: Obtain the switch port information corresponding to the primary server and the backup server respectively; Based on the port information and the redundancy backup relationship between the primary server and the backup server, a switch port mapping table is constructed. The acquisition of passenger information system for each first flow and each second flow within the current monitoring period also includes: Based on the switch port mapping table, the switch ports of each server in the passenger information system are monitored to obtain the first traffic information and the second traffic information of the passenger information system in the current monitoring period.
[0010] According to the present invention, a method for identifying a primary / backup server switchover event in a passenger information system includes determining, based on each first traffic information and each second traffic information, a target primary server and a target backup server corresponding to the target primary server from multiple primary servers and multiple backup servers of the passenger information system for the current monitoring period, comprising: Determine whether the real-time traffic relationship between each main service and the corresponding backup server of each main server in the passenger information system changes at adjacent time points during the current monitoring period. If there exists a primary server and a backup server that are redundantly backed up by each other, where the first traffic information at the previous moment is greater than the second traffic information and the first traffic information at the current moment is less than the second traffic information, then the target primary server and the target backup server corresponding to the target primary server are determined.
[0011] According to the present invention, a method for identifying a primary / standby server switchover event in a passenger information system, after constructing a first notification message for the corresponding primary / standby server switchover event based on the target primary server and the target standby server, the method further includes: If it is determined that the first traffic information at the current moment is less than the second traffic information, and the first traffic information at the next moment is greater than the second traffic information, a corresponding server master / slave switch event second prompt message is generated, wherein the server master / slave switch event second prompt message indicates a prompt message indicating a switch from the target backup server to the target master server.
[0012] The present invention also provides a primary / backup server switchover event identification device for a passenger information system, comprising: The port traffic monitoring module is used to acquire various first traffic information and various second traffic information of the passenger information system in the current monitoring period. The first traffic information is the real-time traffic data generated by the main server of the passenger information system in the current monitoring period; the second traffic information is the real-time traffic data generated by the backup server corresponding to the main server in the current monitoring period. The master-slave switchover event monitoring module is used to determine the target master server and the target backup server corresponding to the target master server from multiple master servers and multiple backup servers of the passenger information system for the current monitoring period based on each of the first traffic information and each of the second traffic information. The target master server and the target backup server are redundant backups of each other, and the real-time traffic size relationship between the target master server and the target backup server changes during the current monitoring period. The primary / standby switchover event notification module is used to construct corresponding primary / standby switchover event first notification information based on the target primary server and the target standby server, wherein the primary / standby switchover event first notification information indicates a notification information indicating a switchover from the target primary server to the target standby server.
[0013] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the primary / backup server switching event identification method for a passenger information system as described above.
[0014] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the primary / backup server switching event identification method for a passenger information system as described above.
[0015] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the primary / backup server switching event recognition method for a passenger information system as described above.
[0016] The present invention provides a method and apparatus for identifying primary and backup server switching events in a passenger information system. By acquiring real-time traffic data of the primary and backup servers within the current monitoring period of the passenger information system, and based on this traffic information, accurately determining the target primary server and its corresponding target backup server from the primary and backup servers, and finally constructing a first prompt information for the server primary and backup switching event based on the target primary and backup servers, the method and apparatus improve the efficiency and accuracy of identifying primary and backup switching events in the passenger information system. Attached Figure Description
[0017] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0018] Figure 1 A flowchart illustrating the primary / backup server switching event identification method for a passenger information system provided by the present invention; Figure 2 A schematic diagram of the structure of the primary / backup server switching event identification device for a passenger information system provided by the present invention; Figure 3 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation
[0019] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.
[0020] Figure 1 This is a flowchart illustrating the primary / backup server switchover event identification method for a passenger information system provided by the present invention, as shown below. Figure 1 As shown, the present invention provides a method for identifying primary / backup server switchover events in a passenger information system, comprising: Step 101: Obtain the first flow information and the second flow information of the passenger information system in the current monitoring period, wherein the first flow information is the real-time flow data generated by the main server of the passenger information system in the current monitoring period; and the second flow information is the real-time flow data generated by the backup server corresponding to the main server in the current monitoring period. In this invention, in order to achieve accurate monitoring of the switching status of the primary and backup servers of the passenger information system, it is first necessary to obtain key data. This is done by enabling the Simple Network Management Protocol (SNMP) on the switches corresponding to the primary and backup servers, obtaining the access port information of each server, and creating a detailed switch port mapping table.
[0021] Furthermore, the switch port traffic is collected periodically to obtain the first and second traffic information of the passenger information system within the current monitoring period. In this invention, the first traffic information refers to the real-time traffic data generated by the main server in the passenger information system during the current monitoring period, reflecting the workload of the main server during that time period; the second traffic information is the real-time traffic data generated by the backup server corresponding to the main server during the current monitoring period, reflecting the operating status of the backup server during the same period. It should be noted that in this invention, the passenger information system involves multiple main servers and multiple backup servers. These main and backup servers, based on their specific functional types, can be divided into interface servers (one or more can be set according to requirements), central servers (one or more can be set according to requirements), central train video servers, network management servers, log audit servers, and central storage device servers, etc. These servers of different functional types are all configured with main servers and backup servers with redundant backup relationships.
[0022] Step 102: Based on each of the first traffic information and each of the second traffic information, determine the target master server and the target backup server corresponding to the target master server from the multiple master servers and multiple backup servers of the passenger information system for the current monitoring period, wherein the target master server and the target backup server are mutually redundant backups, and the real-time traffic size relationship between the target master server and the target backup server changes during the current monitoring period; In this invention, after obtaining the first traffic information and the second traffic information, the target master server and the corresponding target backup server for the current monitoring period are selected from multiple master servers and multiple backup servers of the passenger information system. The target master server and the target backup server have a redundant backup relationship. Under normal circumstances, the target master server undertakes the main business processing, while the target backup server is in a standby state, ready to take over the business at any time.
[0023] During the current monitoring period, the real-time traffic relationship between the target primary server and the target backup server changes. Typically, the primary server's traffic is about 50% higher than the backup server's. However, when the primary server fails or needs to switch over, its corresponding port traffic decreases rapidly, while the backup server's corresponding port traffic increases rapidly. This change in traffic volume helps identify the target server. For example, before a primary / backup server switchover, the backup control center's server port traffic is usually about 35% lower than the primary control center's server port traffic. After the switchover event, the primary control center's server port traffic becomes about 35% lower than the backup control center's server port traffic, indicating a traffic reversal. In this case, the system will push the primary / backup switchover event information to maintenance personnel based on the actual situation.
[0024] Step 103: Based on the target primary server and the target backup server, construct the corresponding first prompt information for the server primary / backup switch event, wherein the first prompt information for the server primary / backup switch event indicates a prompt information for switching from the target primary server to the target backup server.
[0025] In this invention, after identifying the target primary server and the target backup server, a corresponding primary / backup switchover event notification message is constructed. This notification message clearly indicates a switchover from the target primary server to the target backup server, thereby generating a corresponding alarm signal to promptly inform maintenance personnel that a primary / backup switchover event has occurred in the system. By constructing such a notification message, maintenance personnel can quickly become aware of changes in the system status and take timely measures to ensure the continuous and stable operation of the passenger information system and guarantee that passengers can obtain the information they need normally.
[0026] The present invention provides a method for identifying primary and backup server switching events in a passenger information system. By acquiring real-time traffic data of the primary and backup servers within the current monitoring period of the passenger information system, and based on this traffic information, accurately determining the target primary server and its corresponding target backup server from the primary and backup servers, and finally constructing a first prompt information for the server primary and backup switching event based on the target primary and backup servers, the method improves the efficiency and accuracy of identifying primary and backup switching events in the passenger information system.
[0027] Based on the above embodiments, the method further includes: Receive a first instruction, wherein the first instruction includes operation information for adjusting the monitoring cycle of each master server and the corresponding backup server monitored by the passenger information system; In response to the first instruction, the duration of the monitoring period for each master server and the corresponding backup server is adjusted so as to identify the master server and the corresponding backup server in the passenger information system according to the adjusted monitoring period.
[0028] In this invention, during the operation and maintenance management of the passenger information system, a first instruction is received, containing specific operational information. This information is used to adjust the monitoring cycle of each main server and its corresponding backup server monitored by the passenger information system. The monitoring cycle is the time interval between the system's status monitoring and data collection operations on the main and backup servers, and the first instruction is used to modify this time interval.
[0029] Specifically, upon receiving the first instruction, the monitoring cycle for each master server and its corresponding backup server is adjusted based on the operational information contained in the instruction. For example, if the original monitoring cycle was to check the server status every 10 seconds, after receiving the first instruction, the monitoring cycle might be adjusted to check every 5 seconds or every 2 seconds.
[0030] In this invention, adjusting the monitoring cycle aims to more accurately and effectively identify server failover events between the primary server and its corresponding backup server in the passenger information system. Different monitoring cycles are suitable for different system operating states and business needs. If the passenger information system experiences frequent failures recently, shortening the monitoring cycle allows maintenance personnel to more promptly detect changes in traffic and abnormal states between the primary and backup servers, thereby identifying failover events more quickly. Conversely, when the passenger information system is operating relatively stably, appropriately extending the monitoring cycle can reduce unnecessary monitoring overhead and improve the overall system operating efficiency. By monitoring according to the adjusted monitoring cycle, this invention enables more rational resource allocation, ensuring a rapid response when failover events occur and guaranteeing the stable operation of the passenger information system.
[0031] Based on the above embodiments, the acquisition of each first flow information and each second flow information of the passenger information system within the current monitoring period includes: Based on the service function type information of the server in the passenger information system, the duration of the monitoring period corresponding to each primary and backup server in the passenger information system that has a redundant backup relationship is determined, wherein the primary and backup servers include the primary server and the backup server corresponding to the primary service. Based on the duration of the monitoring period corresponding to each of the primary and backup servers, the passenger information system obtains each of the first traffic information and each of the second traffic information within the current monitoring period.
[0032] In this invention, different servers in the passenger information system perform different service functions. For example, some servers are responsible for displaying train timetable information, while others are responsible for playing multimedia advertisements. Based on these service function types, the primary and backup servers in the passenger information system, which have a redundant backup relationship, are analyzed. In this invention, the primary and backup servers consist of a primary server and its corresponding backup server. They cooperate with each other, and when the primary server fails, the backup server can quickly take over the business to ensure the normal operation of the system.
[0033] The monitoring cycle length will vary for primary and backup servers with different service functions. For example, for primary and backup servers handling critical business (such as emergency information dissemination), due to the high importance and real-time requirements of their business, a shorter monitoring cycle may be set, such as monitoring every 1-2 seconds, to promptly identify potential problems. Conversely, for primary and backup servers handling relatively non-critical business (such as regular advertising playback), the monitoring cycle can be appropriately extended, such as monitoring every 5-10 seconds. This reduces unnecessary monitoring resource consumption while ensuring stable system operation. This method allows for the reasonable determination of the monitoring cycle length for each primary and backup server.
[0034] Furthermore, after determining the duration of the monitoring period for each primary and backup server, monitoring tasks are executed according to these durations. Within the current monitoring period, the first traffic information of each primary server and the second traffic information of its corresponding backup server in the passenger information system are acquired. The first traffic information refers to the real-time traffic data generated by the primary server within the current monitoring period, reflecting the workload of the primary server during that time period; the second traffic information is the real-time traffic data generated by the backup server within the current monitoring period, reflecting the backup server's operating status during the same period. For example, if the monitoring period for a primary or backup server is set to once every 5 seconds, then traffic data for both the primary and backup servers will be collected within each 5-second monitoring period. This traffic data is an important basis for subsequent maintenance operations such as identifying server primary / backup switchover events. By analyzing the traffic data, changes in the operating status between the primary and backup servers can be detected in a timely manner, thereby ensuring the stable operation of the passenger information system.
[0035] Based on the above embodiments, the method further includes: Obtain the switch port information corresponding to the primary server and the backup server respectively; Based on the port information and the redundancy backup relationship between the primary server and the backup server, a switch port mapping table is constructed. The acquisition of passenger information system for each first flow and each second flow within the current monitoring period also includes: Based on the switch port mapping table, the switch ports of each server in the passenger information system are monitored to obtain the first traffic information and the second traffic information of the passenger information system in the current monitoring period.
[0036] In this invention, the first step is to obtain the switch port information corresponding to each of the primary and backup servers. Switch ports are crucial interfaces for connecting servers to the network; different servers connect to the switch through specific ports to achieve data transmission and communication. This invention, through relevant technical means such as viewing network topology diagrams and using network management tools, can clearly identify which switch port each primary and backup server is specifically connected to. Obtaining this port information provides the foundational data for subsequent operations.
[0037] Furthermore, based on the acquired port information and the redundancy backup relationship between the primary and backup servers, a switch port mapping table is constructed. Redundancy backup means that the primary and backup servers cooperate with each other; when the primary server fails, the backup server can quickly take over the services, ensuring the normal operation of the system. The switch port mapping table, as a data structure, associates the primary and backup servers with their corresponding switch ports. For example, the table clearly shows that primary server A is connected to switch port 1, and its corresponding backup server B is connected to switch port 2. Through such a mapping table, operations and maintenance personnel can clearly understand the correspondence between servers and switch ports, facilitating subsequent management and monitoring.
[0038] Furthermore, during the acquisition of the first and second traffic information of the passenger information system within the current monitoring period, the switch ports of each server in the passenger information system are monitored according to the switch port mapping table. This invention uses monitoring tools or software to collect traffic data on these ports in real time. For example, for switch port 1 corresponding to primary server A, the data traffic of this port is continuously monitored within the current monitoring period to obtain the first traffic information of primary server A; similarly, traffic monitoring is also performed on switch port 2 corresponding to backup server B to obtain the second traffic information of backup server B. In this way, real-time traffic data of each primary and backup server within the current monitoring period can be accurately obtained, providing strong data support for subsequent analysis of server operating status and identification of primary / backup switchover events.
[0039] Based on the above embodiments, determining the target master server and the target backup server corresponding to the target master server from multiple master servers and multiple backup servers of the passenger information system according to each of the first traffic information and each of the second traffic information includes: Determine whether the real-time traffic relationship between each main service and the corresponding backup server of each main server in the passenger information system changes at adjacent time points during the current monitoring period. If there exists a primary server and a backup server that are redundantly backed up by each other, where the first traffic information at the previous moment is greater than the second traffic information and the first traffic information at the current moment is less than the second traffic information, then the target primary server and the target backup server corresponding to the target primary server are determined.
[0040] In this invention, to promptly detect state switching between primary and backup servers, it is necessary to determine whether the real-time traffic relationship between each primary server and its corresponding backup server changes in adjacent time intervals. Specifically, this invention continuously collects real-time traffic data from the primary and backup servers within the current monitoring period. The first traffic information represents the real-time traffic data generated by the primary server at the current time, and the second traffic information represents the real-time traffic data generated by the backup server corresponding to the primary server at the current time. Then, the traffic data at adjacent time intervals is compared; for example, comparing the traffic at the current time t with the traffic at the previous time t-1. If the traffic relationship between the primary and backup servers changes in adjacent time intervals, it indicates a change in system state, i.e., a switchover operation has occurred between the primary and backup servers.
[0041] Furthermore, at the previous moment, the first traffic information (primary server traffic) was greater than the second traffic information (backup server traffic), indicating that the primary server was handling the main business processing tasks and had high traffic. At the current moment, the first traffic information is less than the second, indicating a sudden decrease in primary server traffic and an increase in backup server traffic, consistent with typical characteristics of a primary server switching to a backup server. For example, under normal circumstances, the primary server handles a large volume of business with high traffic, while the backup server is in standby mode with low traffic. When the primary server fails or undergoes a switchover, business is transferred to the backup server, causing an increase in backup server traffic and a decrease in primary server traffic. When a traffic reversal is detected between a primary and backup server with a redundant backup relationship, they can be identified as the target primary and target backup servers for further analysis and processing, such as creating server primary / backup switchover event notifications, thereby ensuring the stable operation of the passenger information system.
[0042] Based on the above embodiments, after constructing the corresponding first notification information for server primary / standby switchover event according to the target primary server and the target standby server, the method further includes: If it is determined that the first traffic information at the current moment is less than the second traffic information, and the first traffic information at the next moment is greater than the second traffic information, a corresponding server master / slave switch event second prompt message is generated, wherein the server master / slave switch event second prompt message indicates a prompt message indicating a switch from the target backup server to the target master server.
[0043] In this invention, the traffic information of the primary server and the backup server is continuously monitored in real time. The first traffic information represents the real-time traffic data generated by the primary server at a specific moment, while the second traffic information represents the real-time traffic data of the backup server corresponding to the primary server at the same moment. At the current moment, the first traffic information is less than the second traffic information, indicating that the traffic of the backup server exceeds that of the primary server at the current moment, suggesting that the primary server previously experienced a failure or switchover, and the service was transferred to the backup server. At the next moment, if the first traffic information is greater than the second traffic information, it indicates that the service may have returned to the primary server. For example, suppose that at a certain moment t, the primary server transfers the service to the backup server for some reason (such as a brief failure or maintenance switchover). At this time, the traffic of the backup server (second traffic information) will rise rapidly, exceeding the traffic of the primary server (first traffic information). At the next moment t+1, the primary server recovers or the switchover operation is completed, and the service returns to the primary server, causing the traffic of the primary server to exceed that of the backup server again.
[0044] In this invention, upon identifying the specific traffic change pattern described above, a second notification message for a corresponding server primary / backup switchover event is generated. This notification message clearly indicates a switchover from the target backup server to the target primary server, thereby promptly informing maintenance personnel that a switchover from the backup server to the primary server has occurred. This allows maintenance personnel to understand the changes in system status in a timely manner, take appropriate measures, ensure the continuous and stable operation of the passenger information system, and guarantee that passengers can obtain the information they need normally.
[0045] The following describes the primary / backup server switching event identification device for a passenger information system provided by the present invention. The primary / backup server switching event identification device for a passenger information system described below and the primary / backup server switching event identification method for a passenger information system described above can be referred to in correspondence with each other.
[0046] Figure 2 This is a schematic diagram of the structure of the primary / backup server switching event identification device for a passenger information system provided by the present invention, as shown below. Figure 2As shown, the present invention provides a primary / backup server switchover event identification device for a passenger information system, including a port traffic monitoring module 201, a primary / backup switchover event monitoring module 202, and a primary / backup switchover event prompting module 203. The port traffic monitoring module 201 is used to acquire various first traffic information and various second traffic information of the passenger information system within the current monitoring period. The first traffic information is real-time traffic data generated by the primary server in the passenger information system during the current monitoring period; the second traffic information is real-time traffic data generated by the backup server corresponding to the primary server during the current monitoring period. The primary / backup switchover event monitoring module 202 is used to identify the primary / backup server switchover event based on the first traffic information and the second traffic information within the current monitoring period. The second traffic information involves determining the target primary server and the corresponding target backup server for the current monitoring period from multiple primary servers and multiple backup servers of the passenger information system. The target primary server and the target backup server are mutually redundant and their real-time traffic volume varies during the current monitoring period. The primary / backup switchover event notification module 203 is used to construct a corresponding first notification message for a server primary / backup switchover event based on the target primary server and the target backup server. This first notification message indicates a switchover from the target primary server to the target backup server.
[0047] The present invention provides a primary / backup server switching event identification device for a passenger information system. By acquiring real-time traffic data of the primary and backup servers within the current monitoring period of the passenger information system, and based on this traffic information, it accurately identifies the target primary server and its corresponding target backup server from the primary and backup servers. Finally, it constructs a first prompt information for the server primary / backup switching event based on the target primary and backup servers, thereby improving the identification efficiency and accuracy of primary / backup switching events in the passenger information system.
[0048] The apparatus provided in this embodiment of the invention is used to execute the above-described method embodiments. For specific processes and details, please refer to the above embodiments, which will not be repeated here.
[0049] Figure 3 This is a schematic diagram of the structure of the electronic device provided by the present invention, such as... Figure 3As shown, the electronic device may include: a processor 301, a communications interface 302, a memory 303, and a communication bus 304, wherein the processor 301, the communications interface 302, and the memory 303 communicate with each other through the communication bus 304. The processor 301 can call logical instructions in the memory 303 to execute a method for identifying a primary / backup server switchover event in a passenger information system. This method includes: acquiring first traffic information and second traffic information from the passenger information system during the current monitoring period, wherein the first traffic information is real-time traffic data generated by the primary server in the passenger information system during the current monitoring period; and the second traffic information is real-time traffic data generated by the backup server corresponding to the primary server during the current monitoring period; determining, based on the first traffic information and the second traffic information, a target primary server and a target backup server corresponding to the target primary server from multiple primary servers and multiple backup servers in the passenger information system during the current monitoring period, wherein the target primary server and the target backup server are mutually redundant and the real-time traffic volume relationship between the target primary server and the target backup server changes during the current monitoring period; and constructing a corresponding first prompt message for a server primary / backup switchover event based on the target primary server and the target backup server, wherein the first prompt message for the server primary / backup switchover event indicates a prompt message indicating a switchover from the target primary server to the target backup server.
[0050] Furthermore, the logical instructions in the aforementioned memory 303 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, essentially, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0051] On the other hand, the present invention also provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, wherein when the program instructions are executed by a computer, the computer is able to execute the primary / backup server switching event identification method for a passenger information system provided by the above methods, the method comprising: acquiring each first flow information and each second flow information of the passenger information system in the current monitoring period, wherein the first flow information is real-time flow data generated by the primary server of the passenger information system in the current monitoring period; and the second flow information is real-time flow data generated by the backup server corresponding to the primary server in the current monitoring period. Based on the first traffic information and the second traffic information, a target master server and a target backup server corresponding to the target master server are determined from multiple master servers and multiple backup servers of the passenger information system for the current monitoring period. The target master server and the target backup server are redundant backups of each other, and the real-time traffic volume relationship between the target master server and the target backup server changes during the current monitoring period. Based on the target master server and the target backup server, a corresponding first prompt message for server master-backup switchover event is constructed. The first prompt message for server master-backup switchover event indicates a prompt message indicating a switchover from the target master server to the target backup server.
[0052] In another aspect, the present invention also provides a non-transitory computer-readable storage medium storing a computer program thereon. When executed by a processor, the computer program is implemented to perform the primary / backup server switching event identification method for a passenger information system provided in the above embodiments. The method includes: acquiring various first traffic information and various second traffic information of the passenger information system in the current monitoring period, wherein the first traffic information is real-time traffic data generated by the primary server of the passenger information system in the current monitoring period; the second traffic information is real-time traffic data generated by the backup server corresponding to the primary server in the current monitoring period; determining, based on the various first traffic information and various second traffic information, a target primary server and a target backup server corresponding to the target primary server in the current monitoring period from multiple primary servers and multiple backup servers of the passenger information system, wherein the target primary server and the target backup server are mutually redundant backups, and the real-time traffic volume relationship between the target primary server and the target backup server changes in the current monitoring period; constructing a corresponding primary / backup server switching event first prompt information based on the target primary server and the target backup server, wherein the primary / backup server switching event first prompt information indicates a prompt information of switching from the target primary server to the target backup server.
[0053] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0054] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0055] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for identifying primary / backup server switchover events in a passenger information system, characterized in that, include: The system acquires first and second traffic information from the passenger information system during the current monitoring period. The first traffic information is real-time traffic data generated by the main server in the passenger information system during the current monitoring period. The second traffic information is real-time traffic data generated by the backup server corresponding to the main server during the current monitoring period. Based on each of the first traffic information and each of the second traffic information, the target master server and the target backup server corresponding to the target master server for the current monitoring period are determined from multiple master servers and multiple backup servers of the passenger information system. The target master server and the target backup server are redundant backups of each other, and the real-time traffic size relationship between the target master server and the target backup server changes during the current monitoring period. Based on the target primary server and the target backup server, a corresponding first prompt message for the server primary / backup switch event is constructed, wherein the first prompt message for the server primary / backup switch event indicates a prompt message indicating a switch from the target primary server to the target backup server.
2. The method for identifying primary / backup server switching events in a passenger information system according to claim 1, characterized in that, The method further includes: Receive a first instruction, wherein the first instruction includes operation information for adjusting the monitoring cycle of each master server and the corresponding backup server of the passenger information system. In response to the first instruction, the duration of the monitoring period for each master server and the corresponding backup server is adjusted so as to identify server master / backup switch events for the master server and the corresponding backup server in the passenger information system according to the adjusted monitoring period.
3. The method for identifying primary / backup server switching events in a passenger information system according to claim 2, characterized in that, The acquisition of passenger information system for each first flow and each second flow within the current monitoring period includes: Based on the service function type information of the server in the passenger information system, the duration of the monitoring period corresponding to each primary and backup server in the passenger information system that has a redundant backup relationship is determined, wherein the primary and backup servers include the primary server and the backup server corresponding to the primary service. Based on the duration of the monitoring period corresponding to each of the primary and backup servers, the passenger information system obtains each of the first traffic information and each of the second traffic information within the current monitoring period.
4. The method for identifying primary / backup server switching events in a passenger information system according to claim 1 or 3, characterized in that, The method further includes: Obtain the switch port information corresponding to the primary server and the backup server respectively; Based on the port information and the redundancy backup relationship between the primary server and the backup server, a switch port mapping table is constructed. The acquisition of passenger information system for each first flow and each second flow within the current monitoring period also includes: Based on the switch port mapping table, the switch ports of each server in the passenger information system are monitored to obtain the first traffic information and the second traffic information of the passenger information system in the current monitoring period.
5. The method for identifying primary / backup server switching events in a passenger information system according to claim 4, characterized in that, The step of determining the target master server and the target backup server corresponding to the target master server for the current monitoring period from multiple master servers and multiple backup servers of the passenger information system based on each of the first traffic information and each of the second traffic information includes: Determine whether the real-time traffic relationship between each main service and the corresponding backup server of each main server in the passenger information system changes at adjacent time points during the current monitoring period. If there exists a primary server and a backup server that are redundantly backed up by each other, where the first traffic information at the previous moment is greater than the second traffic information and the first traffic information at the current moment is less than the second traffic information, then the target primary server and the target backup server corresponding to the target primary server are determined.
6. The method for identifying primary / backup server switching events in a passenger information system according to claim 5, characterized in that, After constructing the first notification information for the corresponding server primary / standby switchover event based on the target primary server and the target standby server, the method further includes: If it is determined that the first traffic information at the current moment is less than the second traffic information, and the first traffic information at the next moment is greater than the second traffic information, a corresponding server master / slave switch event second prompt message is generated, wherein the server master / slave switch event second prompt message indicates a prompt message indicating a switch from the target backup server to the target master server.
7. A primary / backup server switchover event identification device for a passenger information system, characterized in that, include: The port traffic monitoring module is used to acquire various first traffic information and various second traffic information of the passenger information system in the current monitoring period. The first traffic information is the real-time traffic data generated by the main server of the passenger information system in the current monitoring period; the second traffic information is the real-time traffic data generated by the backup server corresponding to the main server in the current monitoring period. The master-slave switchover event monitoring module is used to determine the target master server and the target backup server corresponding to the target master server from multiple master servers and multiple backup servers of the passenger information system for the current monitoring period based on each of the first traffic information and each of the second traffic information. The target master server and the target backup server are redundant backups of each other, and the real-time traffic size relationship between the target master server and the target backup server changes during the current monitoring period. The primary / standby switchover event notification module is used to construct corresponding primary / standby switchover event first notification information based on the target primary server and the target standby server, wherein the primary / standby switchover event first notification information indicates a notification information indicating a switchover from the target primary server to the target standby server.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that, When the processor executes the computer program, it implements the primary / backup server switching event recognition method for a passenger information system as described in any one of claims 1 to 6.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the primary / backup server switching event recognition method for a passenger information system as described in any one of claims 1 to 6.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the primary / backup server switching event recognition method for a passenger information system as described in any one of claims 1 to 6.