Urban rail transit standby center system construction method, device, equipment and medium

By deploying a virtual backup center system in multiple target stations, using microservice component set and weight adjustment algorithms, the problems of high cost and low cost performance of the backup center system are solved, and the operational efficiency and flexibility of the urban rail transit system are improved.

CN119088538AActive Publication Date: 2024-12-06BEIJING URBAN CONSTR INTELLIGENT CONTROL TECH CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202411006584.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2024-12-06
Estimated Expiration
2044-07-25

AI Technical Summary

Technical Problem

The reserve center system for urban rail transit needs to be built separately, resulting in the construction cost being disproportionate to the frequency of use and low cost performance, thereby reducing operational efficiency and flexibility.

Method used

Abolish the independent physical reserve system, deploy a virtual reserve system in the server resources of multiple target stations, realize a distributed reserve system through a set of microservice components, and use microservice and weight adjustment algorithms to ensure high availability of the system and flexibility.

Benefits of technology

While reducing the budget burden, the operational efficiency and flexibility of the rail transit system are improved, ensuring the safety and reliability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119088538A_ABST
    Figure CN119088538A_ABST
Patent Text Reader

Abstract

The invention provides a method, a device, equipment and a medium for constructing a standby center system of urban rail transit, and relates to the technical field of urban rail transit, and the method comprises the steps: carrying out the micro-service of the standby center system of the urban rail transit, and obtaining a plurality of micro-service components; classifying the plurality of micro-service components to obtain a plurality of micro-service component sets; and deploying the plurality of micro-service component sets in server resources established by corresponding target stations. According to the method, an independent physical standby center system is cancelled, and a virtual standby center system is deployed in server resources established by a plurality of target stations respectively, namely, a corresponding micro-service component set is deployed, so that the virtual distributed standby center system is adopted under the conditions of reducing budget burden and ensuring safety, and the safety of the target stations is improved. The operation efficiency and flexibility of the rail transit system can be effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of urban rail transit, and in particular to a method, device, equipment and medium for constructing a backup center system of urban rail transit. Background Art

[0002] Urban rail transit is an indispensable public transportation mode in modern cities, so the safety standards of its construction are naturally extremely important. In order to ensure foolproof operational safety, a corresponding rail transit system must be established in accordance with regulations. The rail transit system can include a main and backup dual-center system, namely the main control center system (referred to as: main center system) and the backup control center system (referred to as: backup center system). Among them, the main center system is responsible for the daily rail transit operation and management work, while the backup center system immediately takes over the operation tasks when the main center system fails or needs maintenance, ensuring the continuity and reliability of the rail transit system.

[0003] However, in actual operation, the backup center system needs to be built separately and is used relatively rarely, which results in the construction cost of the backup center system being disproportionate to the frequency of use, and in turn, the cost performance of the backup center system being relatively low. This contradiction is particularly prominent when budget allocation needs to be more precise and efficient, resulting in low operational efficiency and flexibility of the entire rail transit system. Summary of the invention

[0004] The present invention provides a method, device, equipment and medium for constructing a backup center system of urban rail transit, so as to solve the defect in the prior art that the backup center system of urban rail transit needs to be constructed separately and has a low cost performance, resulting in low operating efficiency and flexibility of the rail transit system. By canceling the independent physical backup center system and deploying a virtual backup center system in the server resources built by each of the multiple target stations, that is, deploying the corresponding microservice component set, the virtual distributed backup center system can be used to effectively improve the operating efficiency and flexibility of the rail transit system while reducing the budget burden and ensuring safety.

[0005] The present invention provides a method for constructing a backup center system of urban rail transit, comprising: micro-service-izing the backup center system of urban rail transit to obtain a plurality of micro-service components; classifying the plurality of micro-service components to obtain a plurality of micro-service component sets; and deploying the plurality of micro-service component sets in server resources constructed at corresponding target stations.

[0006] According to a method for constructing a backup center system for urban rail transit provided by the present invention, the method also includes: when it is determined that a main center system of the urban rail transit fails, determining a target server resource from all server resources and accessing the target server resource; switching the main center system to a target microservice component set in the target server resource.

[0007] According to a method for constructing a backup center system for urban rail transit provided by the present invention, determining the target server resource from all server resources includes: adjusting the weights corresponding to all server resources; and determining the server resource corresponding to the maximum weight as the target server resource.

[0008] According to a method for constructing a backup center system of urban rail transit provided by the present invention, the classifying the multiple microservice components to obtain multiple microservice component sets includes: classifying the multiple microservice components according to service priorities to obtain the multiple groups of microservice component sets; The switching of the main center system to the target microservice component set in the target server resources includes: determining the microservice component set with the highest service priority in the target server resources as the target microservice component set; and switching the main center system to the target microservice component set.

[0009] According to a method for constructing a backup center system of urban rail transit provided by the present invention, determining that a main center system of the urban rail transit has failed includes: obtaining a first service status indicator corresponding to the main center system of the urban rail transit; generating a health level of the main center system according to the first service status indicator; and determining that a failure has occurred in the main center system when the health level is less than a preset threshold.

[0010] According to a method for constructing a backup center system for urban rail transit provided by the present invention, the adjustment of the weights corresponding to all server resources includes: performing the following operations for each server resource: obtaining a second service status indicator corresponding to the server resource, the second service status indicator including at least one sub-service status indicator; determining an indicator weight corresponding to the at least one sub-service status indicator; adjusting each indicator weight to obtain each adjusted indicator weight; and generating a weight corresponding to the server resource according to the at least one sub-service status indicator and all adjusted indicator weights.

[0011] According to a method for constructing a backup center system for urban rail transit provided by the present invention, the first service status indicator includes: a first response time, a first server load and a first network condition; generating the health of the main center system based on the first service status indicator includes: taking a weighted sum of the first response time, the first server load and the first network condition to obtain a target result; and determining the target result as the health of the main center system.

[0012] According to a method for constructing a backup center system for urban rail transit provided by the present invention, each sub-service status indicator includes: a second response time, a second server load, and a second network condition; the adjusting of each indicator weight to obtain each adjusted indicator weight includes: adjusting each indicator weight according to the second response time, the second server load, and the second network condition included in each sub-service status indicator to obtain each adjusted indicator weight.

[0013] According to a method for constructing a backup center system of urban rail transit provided by the present invention, the method further includes: in the case of failure recovery, switching the target microservice component set to the main center system.

[0014] The present invention also provides a device for constructing a backup center system for urban rail transit, comprising: a data processing module, used to microservice the backup center system for urban rail transit to obtain multiple microservice components; classify the multiple microservice components to obtain multiple microservice component sets; and a component deployment module, used to deploy the multiple microservice component sets in the server resources built at the corresponding target station.

[0015] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a method for constructing a backup center system for urban rail transit as described in any one of the above-mentioned methods is implemented.

[0016] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for constructing a backup center system for urban rail transit as described in any one of the above-mentioned methods.

[0017] The present invention also provides a computer program product, including a computer program, and when the computer program is executed by a processor, it implements any of the above-mentioned methods for constructing a backup center system for urban rail transit.

[0018] The method, device, equipment and medium for constructing a backup center system for urban rail transit provided by the present invention obtain multiple microservice components by microservice-izing the backup center system for urban rail transit; classify the multiple microservice components to obtain multiple microservice component sets; and deploy the multiple microservice component sets in the server resources built at the corresponding target stations. This method cancels the independent physical backup center system and deploys a virtual backup center system in the server resources built by each of the multiple target stations, that is, deploys the corresponding microservice component sets. In this way, while reducing the budget burden and ensuring safety, the use of a virtual distributed backup center system can effectively improve the operational efficiency and flexibility of the rail transit system. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0020] Figure 1 It is a flow chart of the method for constructing a backup center system for urban rail transit provided by the present invention.

[0021] Figure 2a It is a schematic diagram of the punctuality rate or success rate of the bus provided by the present invention.

[0022] Figure 2b It is a schematic diagram of the average response time provided by the present invention.

[0023] Figure 3 This is one of the scenario schematic diagrams of the method for constructing a backup center system for urban rail transit provided by the present invention.

[0024] Figure 4 This is the second scenario schematic diagram of the method for constructing a backup center system for urban rail transit provided by the present invention.

[0025] Figure 5 It is a structural schematic diagram of a backup center system construction device for urban rail transit provided by the present invention.

[0026] Figure 6 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0027] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0028] It should be noted that the execution subject involved in the embodiment of the present invention can be a backup center system construction device of urban rail transit, or it can be an electronic device. Optionally, the electronic device can include: a computer, a mobile terminal, a wearable device, etc.

[0029] The embodiment of the present invention is further described below by taking an electronic device as an example.

[0030] like Figure 1 As shown, it is a flow chart of the method for constructing a backup center system of urban rail transit provided by the present invention, which may include the following steps.

[0031] 101. Microservice the backup center system of urban rail transit and obtain multiple microservice components.

[0032] Among them, urban rail transit is the backbone of urban public transportation and is a vehicle transportation system that uses track structure for load-bearing and guiding.

[0033] The backup center system, usually called the backup center system or disaster recovery center system, is a key physical facility to ensure business continuity and data security. Optionally, the backup center system may usually include: building facilities, computer rooms and supporting power supply to support real-time or regular backup, storage and recovery of data, ensuring that key services can be quickly restored to normal in an emergency.

[0034] Microservice components are usually responsible for executing specific business functions or tasks and have clear interfaces and boundaries, which help improve the scalability, maintainability and reliability of the backup center system. Optionally, microservice components can include: user services, ticketing services, operation services, data statistics services and reporting services, etc.

[0035] In the process of cloud-based and microservice-based reconstruction of the backup center system of urban rail transit, electronic equipment can move the backup center system to the cloud. Through the high availability and elastic scalability of the cloud computing platform, the system architecture of the backup center system can be transformed into microservices, and the original large single application can be split into multiple fine-grained service components, that is, split into multiple microservice components. Each microservice component can be responsible for an independent function, which is convenient for subsequent management and maintenance.

[0036] Among them, the cloud computing platform is a service platform based on cloud computing technology, which can provide flexible, scalable and shareable computing resources and system services. At the same time, it allows users to process data and applications in a distributed manner on the network, with higher availability, lower cost and faster response time.

[0037] 102. Classify multiple microservice components to obtain multiple microservice component sets.

[0038] Each microservice component set can be regarded as a virtual microservice system, and each microservice component set can include at least one microservice component. It should be noted that the number of microservice component sets is the same as the number of the above-mentioned target stations.

[0039] Classifying and grouping multiple microservice components and forming multiple microservice component sets helps to better understand and manage the microservice architecture of the backup center system. These microservice component sets each have unique advantages and together improve the reliability, stability, flexibility and maintainability of microservices.

[0040] In some embodiments, the electronic device classifies multiple microservice components to obtain multiple microservice component sets, which may include: the electronic device classifies the multiple microservice components according to service priorities to obtain multiple groups of microservice component sets.

[0041] Among them, service priority refers to the evaluation and ranking of the importance and urgency of each microservice component in the microservice architecture based on factors such as business needs, system stability, and user experience.

[0042] Taking into account the real-time and security requirements of the backup center service, multiple microservice components can be classified and grouped according to service priority to obtain multiple sets of microservice component sets. In this way, when resources are limited, the normal operation of key services can be prioritized. In addition, resource allocation based on service priority can ensure that key services receive sufficient resource support, thereby avoiding resource waste and excessive consumption of non-critical services.

[0043] Exemplarily, user services, ticketing services, and operation services are divided into a group of high-priority microservice component sets; data statistics services and report services are divided into a group of low-priority microservice component sets.

[0044] Optionally, after step 101 or step 102, the electronic device may obtain N target stations and the server resources corresponding to each of the N target stations, where N ≥ 2. Specifically, after obtaining all stations involved in urban rail transit, N (e.g., 3-5) large stations may be selected from all stations as N target stations, and server resources may be built at each of the N target stations to ensure that these target stations have sufficient hardware capabilities to carry the microservice components corresponding to the above backup center system.

[0045] Among them, all stations adopt a distributed architecture solution.

[0046] Large stations should take into account the importance of geographical location, the importance of transportation hubs, and the backup capacity in the event of a disaster. Such stations usually have relatively complete facilities and services and can meet the travel needs of a large number of passengers. In addition, the above-mentioned multiple large stations are different.

[0047] Server resources refer to the various hardware and software resources required to operate the server corresponding to the target station. These resources together constitute the operating environment and capabilities of the server, enabling the server to perform various tasks and services to ensure the stable and efficient operation of the station business.

[0048] It should be noted that all server resources can form a line cloud, each carrying the backup center system services.

[0049] 103. Deploy multiple microservice component sets in the server resources built at the corresponding target station.

[0050] After obtaining multiple microservice component sets, electronic devices can build clusters according to multiple nodes for the same type of service and deploy the clusters in multiple target stations. The number of target stations is the same as the number of nodes. Each node has complete service capabilities and can immediately take over the work when other nodes have problems, ensuring service continuity and reliability.

[0051] Exemplarily, the number of nodes is at least three.

[0052] In some embodiments, the method may also include: when it is determined that the main center system of the urban rail transit fails, the electronic device determines the target server resources from all server resources and accesses the target server resources; the electronic device switches the main center system to the target microservice component set in the target server resources.

[0053] The main center system usually refers to the main operation center that undertakes core functions and key services in a large network, computing environment or business system. The main center system is the core component of the system architecture corresponding to urban rail transit, responsible for processing key business logic, data storage, data transmission and interaction with other system components. The main center system usually has the characteristics of high availability, high reliability and high performance to ensure business continuity and stability.

[0054] A failure is a state in which the main center system cannot operate normally as designed or expected due to some reason. These reasons may be physical, such as earthquake damage, equipment damage, wear and tear or aging, or logical, such as network interruption, software error, improper configuration or compatibility issues. In the event of a failure, the main center system may exhibit abnormal behavior such as performance degradation, functional failure, output error or complete shutdown.

[0055] When it is determined that the main central system of urban rail transit fails and the central system cannot operate normally, the electronic device can determine the target server resource from all server resources, and access the target server resource through the control center of the target station corresponding to the target server resource, and then switch the main central system to the target microservice component set in the target server resource to ensure the continuity of key businesses / key services and act as a temporary backup central system.

[0056] It should be noted that the above process can effectively retain the emergency guarantee function of the backup center system when the main center system fails, and has obvious economic advantages.

[0057] In some embodiments, the electronic device determines that a main center system of an urban rail transit has failed, which may include: the electronic device obtains a first service status indicator corresponding to the main center system of the urban rail transit; the electronic device generates a health level of the main center system based on the first service status indicator; when the health level is less than a preset threshold, the electronic device determines that a main center system has failed.

[0058] The first service status indicator is real-time or near real-time to ensure accurate reflection of the main center system status. Optionally, the first service status indicator may include: central processing unit (CPU) usage, memory occupancy, disk space, network delay, service response time, etc.

[0059] Health is used to indicate the normal operation degree of the main center system.

[0060] Optionally, the preset threshold may be set before the electronic device leaves the factory, or may be user-defined, which is not specifically limited here.

[0061] After obtaining the first service status indicator corresponding to the main center system of the urban rail transit, the electronic device assigns an indicator weight to each sub-service status indicator in the first service status indicator according to business requirements and system characteristics; the electronic device then uses weighted average, machine learning algorithm or other statistical methods, combined with all indicator weights and all sub-service status indicators, to calculate a comprehensive health degree, and compares the health degree with a preset threshold: if the health degree is greater than or equal to the preset threshold, it means that the main center system is in normal operation, that is, the main center system has not failed; otherwise, it is determined that the main center system has failed.

[0062] Since the main center system will cause the traffic to suddenly shift to the backup center system when the main center system fails, it will cause a significant change in the station load in an instant. In order to ensure the stability of the rail transit system and the continuity of service, an intelligent load balancing algorithm is needed to optimize resource allocation and traffic management. It should be noted that based on the weighted polling algorithm, two different weight allocation strategies are adopted: the normal operation state weight allocation strategy and the abnormal operation state weight allocation strategy.

[0063] When the main center system is in normal operation, all server resources mainly serve the business needs of the station itself. Electronic equipment can adopt a normal operation weight distribution strategy through the load balancer. Specifically, all the above servers are polled according to the preset normal weights to direct traffic to the own services of each target station. The whole process takes into account the service capabilities, network delays, server loads and other factors of each target station to ensure the response speed and quality of the service.

[0064] When the main center system is in an abnormal operation state, the electronic equipment can adopt the abnormal operation state weight distribution strategy through the load balancer. This operation state weight distribution strategy will direct more traffic to the virtual backup center system distribution service, reduce the load of the station's own services, and avoid server overload caused by excessive traffic. At the same time, the operation state weight distribution strategy will also take into account the real-time response capability and load situation of the virtual backup center system to ensure that the virtual backup center system can effectively undertake the traffic of the main center system.

[0065] In some embodiments, the first service status indicator includes: a first response time, a first server load and a first network condition; the electronic device generates the health of the main center system based on the first service status indicator, which may include: the electronic device performs a weighted summation of the first response time, the first server load and the first network condition to obtain a target result; the electronic device determines the target result as the health of the main center system.

[0066] In the process of determining the health of the main center system, the electronic device can first obtain the first service status indicator and analyze the first service status indicator to obtain indicator parameters such as the first response time, first server load and first network status of the main center system, and then perform weighted summation on the indicator parameters to obtain the target result, and then determine the target result as the health of the main center system.

[0067] It should be noted that the above-mentioned first response time, first server load and first network status can fully reflect the operating status of the main center system. The health determination process can integrate multiple indicators for weighted summation, and can more comprehensively evaluate the overall health of the main center system, avoiding ignoring other potential problems due to one-sided focus on a certain indicator, thereby improving the accuracy of health.

[0068] In some embodiments, the electronic device determines the target server resource from all server resources, which may include: the electronic device adjusts the weights corresponding to all server resources; and the electronic device determines the server resource corresponding to the maximum weight as the target server resource.

[0069] Among them, weight refers to a relative measure used to indicate the importance and priority of different server resources in the overall resource pool. When electronic devices manage and configure server resources, weight is used as a decision basis to determine which resources should be used first or assigned more processing tasks.

[0070] In order to further enhance the adaptive capabilities of all virtual backup center systems, electronic equipment can automatically adjust weight distribution through a load balancer to ensure that the rail transit system can maintain efficient and stable operation under normal or abnormal conditions. Specifically, the weights corresponding to all server resources can be adjusted, and the server resources corresponding to the largest weight among all weights can be determined as target server resources to prepare for switching when a failure occurs in the main center.

[0071] In some embodiments, the electronic device adjusts the weights corresponding to all server resources, which may include: performing the following operations for each server resource: the electronic device obtains a second service status indicator corresponding to the server resource, the second service status indicator including at least one sub-service status indicator; the electronic device determines the indicator weight corresponding to at least one sub-service status indicator; the electronic device adjusts each indicator weight to obtain each adjusted indicator weight; the electronic device generates a weight corresponding to the server resource based on at least one sub-service status indicator and all adjusted indicator weights.

[0072] The second service status indicator is real-time or near real-time to ensure accurate reflection of the server resource status. Optionally, the second service status indicator may include: service disaster recovery strategy, historical data and trends, and service health status, etc. These key indicators are all sub-service status indicators included in the second service status indicator.

[0073] The indicator weight is used to indicate the importance and priority of different sub-service status indicators in the overall service status indicator.

[0074] In the process of adjusting the weights corresponding to all server resources, the electronic device performs the following operations for each server resource: the electronic device first obtains the second service status indicator corresponding to the server resource, and the indicator weights corresponding to all sub-service status indicators included in the second service status indicator; since the flow rate does not change much when the main center system is in normal operation, and the flow rate changes greatly when it is in abnormal operation, in order to ensure the normal operation of the rail transit system, the weight distribution can be automatically adjusted through the load balancer, that is, the weight of each indicator is adjusted to obtain the adjusted indicator weight; finally, the electronic device calculates at least one sub-service status indicator and all adjusted indicator weights to generate the weight corresponding to the server resource. Based on this, the electronic device can finally obtain as many weights as there are server resources, providing data reference for the subsequent determination of the target server resources.

[0075] In some embodiments, each sub-service status indicator includes: a second response time, a second server load, and a second network condition; the electronic device adjusts the weight of each indicator to obtain each adjusted indicator weight, which may include: the electronic device adjusts the weight of each indicator according to the second response time, second server load, and second network condition included in each sub-service status indicator to obtain each adjusted indicator weight.

[0076] In order to ensure the normal operation of the rail transit system, the service status of the server resources, including key indicators such as response time, server load, and network status, can be monitored in real time. Then, based on these key indicators, the load balancer can automatically adjust the weight distribution, that is, adjust the weight of each indicator to obtain the adjusted indicator weights.

[0077] Optionally, the weight corresponding to the mth server resource can be expressed as: m = , m=[1,…,M], M≥2, n≥1.

[0078] Where M represents the total number of server resources; W m represents the weight corresponding to the mth server resource among the M server resources; n represents the total number of sub-service status indicators included in the second service status indicator; represents the i-th sub-service status indicator among n sub-service status indicators; Represents the status indicator of the i-th sub-service The corresponding adjusted indicator weights.

[0079] Optionally, the health status of the service can use an auto-regressive integrated moving average (ARIMA) algorithm to detect abnormalities in traffic, and calculate the health status in combination with fault codes and log records.

[0080] Among them, the ARIMA algorithm can effectively capture the complex patterns in time series data and effectively describe and predict the changing trends of time series data (i.e., health).

[0081] For example, Figure 2a As shown in FIG. 1 , it is a schematic diagram of the punctuality rate or success rate of the bus provided by the present invention; Figure 2b Shown is a schematic diagram of the average response time provided by the present invention.

[0082] Among them, the bus punctuality rate or success rate (Bus_success_rate) measures the ability of the bus to reach the destination within the scheduled time, or represents the reliability and efficiency of the bus service. Figure 2a In the data, Bus_success_rate changes from 06:00 to 12:00 and 18:00; The average response time (Avg_rsp_time) is used to measure the time it takes for the rail transit system to respond to a request. Figure 2b In the example, Avg_rsp_time changes between 06:00-12:00 and 24:00.

[0083] In some embodiments, the electronic device switches the main center system to the target microservice component set in the target server resources, which may include: the electronic device determines the microservice component set with the highest service priority in the target server resources as the target microservice component set; the electronic device switches the main center system to the target microservice component set.

[0084] In order to give priority to the normal operation of key services, the electronic device can first determine the microservice component set with the highest service priority from all microservice component sets of the target server resources, and determine the microservice component set with the highest service priority as the target microservice component set, and then switch the main center system to the target microservice component set. In this way, while minimizing the impact of failures on the business, the electronic device can more easily identify and monitor key services, discover and handle potential problems in a timely manner, thereby reducing the complexity and cost of system maintenance.

[0085] In some embodiments, the method may further include: in the event of failure recovery, the electronic device switches the target microservice component set to the main center system.

[0086] In the case of fault recovery, it means that the main center system has resumed normal operation. At this time, the target microservice component set can be switched to the main center system. The entire switching process needs to be carried out carefully. Among them, careful implementation means that careful planning and strict implementation measures are taken before, during, and after the implementation of the switching process to ensure that the impact of the switching process on ongoing business and services is minimized or completely avoided, that is, to ensure that the switching process will not affect ongoing business and services.

[0087] In an embodiment of the present invention, the backup center system of urban rail transit is microserviced to obtain multiple microservice components; the multiple microservice components are classified to obtain multiple microservice component sets; and the multiple microservice component sets are deployed in the server resources built at the corresponding target stations. This method cancels the independent physical backup center system and deploys a virtual backup center system in the server resources built by each of the multiple target stations, that is, deploys the corresponding microservice component sets. In this way, the use of a virtual distributed backup center system can effectively improve the operational efficiency and flexibility of the rail transit system while reducing the budget burden and ensuring safety.

[0088] In order to better understand the embodiments of the present invention, the embodiments of the present invention are described in detail below: Figure 3 FIG. 1 is a schematic diagram of a scenario of a method for constructing a backup center system for urban rail transit provided by the present invention. Figure 3 In the present invention, the rail transit system may include: a rail transit ring network, a main center system, a backup center system and multiple stations.

[0089] like Figure 4 FIG. 1 is a schematic diagram of a scenario of a method for constructing a backup center system for urban rail transit provided by the present invention. Figure 4In step 1, the backup center system of urban rail transit can be first clouded and reconstructed into microservices to obtain multiple microservice components; step 2, N large stations are selected as N target stations, and server resources are respectively built in these N target stations to carry virtual backup center services; step 3, taking into account the real-time requirements and security requirements of the backup center service, multiple microservice components are classified and grouped to obtain multiple microservice component sets; step 4, for the same type of service, a cluster is built according to multiple nodes, and the cluster is deployed in multiple target stations; step 5, when it is determined that the main center system of urban rail transit fails, the main center system is switched to the target microservice component set in the target server resources; step 6, when the fault is recovered, the target microservice component set is switched to the main center system.

[0090] Combination Figure 3 and Figure 4 It can be seen that in order to solve the defect of the existing technology that the backup center system of urban rail transit needs to be built separately and has a low cost-effectiveness, resulting in low operating efficiency and flexibility of the rail transit system, the electronic equipment cancels the independent physical backup center system and deploys a virtual backup center system in the server resources built by multiple target stations. That is, the corresponding microservice component set is deployed. In this way, the use of a virtual distributed backup center system can effectively improve the operating efficiency and flexibility of the rail transit system while reducing the budget burden and ensuring safety.

[0091] The following is a description of the urban rail transit backup center system construction device provided by the present invention. The urban rail transit backup center system construction device described below and the urban rail transit backup center system construction method described above can be referenced to each other.

[0092] like Figure 5 FIG. 1 is a schematic diagram of the structure of the backup center system construction device for urban rail transit provided by the present invention, which may include: The data processing module 501 is used to microservice the backup center system of the urban rail transit to obtain multiple microservice components; classify the multiple microservice components to obtain multiple microservice component sets; The component deployment module 502 is used to deploy the multiple microservice component sets in the server resources built at the corresponding target station.

[0093] Optionally, the data processing module 501 is also used to determine the target server resources from all server resources and access the target server resources when it is determined that the main center system of the urban rail transit has failed; and switch the main center system to the target microservice component set in the target server resources.

[0094] Optionally, the data processing module 501 is specifically used to adjust the weights corresponding to all server resources; and determine the server resource corresponding to the maximum weight as the target server resource.

[0095] Optionally, the data processing module 501 is specifically used to classify the multiple microservice components according to service priorities to obtain the multiple groups of microservice component sets; The data processing module 501 is also used to determine the microservice component set with the highest service priority in the target server resources as the target microservice component set; and switch the main center system to the target microservice component set.

[0096] Optionally, the data processing module 501 is specifically used to obtain a first service status indicator corresponding to the main center system of the urban rail transit; generate the health of the main center system according to the first service status indicator; and determine that a failure has occurred in the main center system when the health is less than a preset threshold.

[0097] Optionally, the data processing module 501 is specifically used to perform the following operations for each server resource: obtain a second service status indicator corresponding to the server resource, the second service status indicator including at least one sub-service status indicator; determine the indicator weight corresponding to each of the at least one sub-service status indicators; adjust each indicator weight to obtain each adjusted indicator weight; and generate a weight corresponding to the server resource based on the at least one sub-service status indicator and all adjusted indicator weights.

[0098] Optionally, the first service status indicator includes: a first response time, a first server load and a first network condition; the data processing module 501 is specifically used to perform a weighted summation of the first response time, the first server load and the first network condition to obtain a target result; and the target result is determined as the health of the main center system.

[0099] Optionally, each sub-service status indicator includes: a second response time, a second server load and a second network condition; the data processing module 501 is specifically used to adjust the weights of each indicator according to the second response time, the second server load and the second network condition included in each sub-service status indicator to obtain the adjusted indicator weights.

[0100] Optionally, the data processing module 501 is further used to switch the target microservice component set to the main center system in the event of failure recovery.

[0101] like Figure 6As shown, it is a structural schematic diagram of an electronic device provided by the present invention, and the electronic device may include: a processor (processor) 610, a communication interface (Communications Interface) 620, a memory (memory) 630 and a communication bus 640, wherein the processor 610, the communication interface 620, and the memory 630 complete mutual communication through the communication bus 640. The processor 610 can call the logic instructions in the memory 630 to execute the method for constructing a backup center system of urban rail transit, and the method includes: micro-service-izing the backup center system of urban rail transit to obtain multiple micro-service components; classifying the multiple micro-service components to obtain multiple micro-service component sets; and deploying the multiple micro-service component sets in the server resources built at the corresponding target station.

[0102] In addition, the logic instructions in the above-mentioned memory 630 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.

[0103] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the method for building a backup center system for urban rail transit provided by the above methods. The method includes: micro-service-izing the backup center system for urban rail transit to obtain multiple micro-service components; classifying the multiple micro-service components to obtain multiple micro-service component sets; and deploying the multiple micro-service component sets in the server resources built at the corresponding target station.

[0104] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the method for building a backup center system for urban rail transit provided by the above-mentioned methods. The method includes: micro-service-izing the backup center system for urban rail transit to obtain multiple micro-service components; classifying the multiple micro-service components to obtain multiple micro-service component sets; and deploying the multiple micro-service component sets in the server resources built at the corresponding target station.

[0105] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0106] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0107] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for constructing a backup center system for urban rail transit, characterized in that: include: Microservices are implemented on the backup center system of urban rail transit to obtain multiple microservice components; Classifying the multiple microservice components to obtain multiple microservice component sets; The multiple microservice component sets are deployed in the server resources built at the corresponding target station.

2. The method according to claim 1, characterized in that The method further comprises: In the case where it is determined that the main central system of the urban rail transit fails, determining a target server resource from all server resources and accessing the target server resource; The main center system is switched to the target microservice component set in the target server resources.

3. The method according to claim 2, characterized in that Determining the target server resource from all server resources includes: Adjust the weights of all server resources; The server resource corresponding to the maximum weight is determined as the target server resource.

4. The method according to claim 2, characterized in that: The classifying the multiple microservice components to obtain multiple microservice component sets includes: Classifying the multiple microservice components according to service priorities to obtain the multiple groups of microservice component sets; The switching of the main center system to the target microservice component set in the target server resources includes: Determine the microservice component set with the highest service priority in the target server resources as the target microservice component set; Switch the main center system to the target microservice component set.

5. The method according to any one of claims 2 to 4, characterized in that: The determining that the main center system of the urban rail transit fails includes: Obtaining a first service status indicator corresponding to the main center system of the urban rail transit; Generating the health of the main center system according to the first service status indicator; When the health level is less than a preset threshold, it is determined that a failure occurs in the main center system.

6. The method according to claim 3, characterized in that The adjusting the weights corresponding to all server resources includes: Perform the following operations for each server resource: Acquire a second service status indicator corresponding to the server resource, where the second service status indicator includes at least one sub-service status indicator; Determine an indicator weight corresponding to each of the at least one sub-service status indicators; Adjust the weight of each indicator to obtain the adjusted weight of each indicator; A weight corresponding to the server resource is generated according to the at least one sub-service status indicator and all adjusted indicator weights.

7. The method according to claim 5, characterized in that The first service status indicator includes: a first response time, a first server load and a first network status; and generating the health of the main center system according to the first service status indicator includes: Performing a weighted summation on the first response time, the first server load, and the first network status to obtain a target result; The target result is determined as the health of the main center system.

8. The method according to claim 6, characterized in that Each sub-service status indicator includes: a second response time, a second server load, and a second network status; the weight of each indicator is adjusted to obtain the adjusted weight of each indicator, including: According to the second response time, the second server load and the second network condition included in the sub-service status indicators, the weights of the indicators are adjusted to obtain the adjusted weights of the indicators.

9. The method according to any one of claims 2 to 4, characterized in that: The method further comprises: In case of the fault recovery, the target microservice component set is switched to the main center system.

10. A backup center system construction device for urban rail transit, characterized in that: include: The data processing module is used to microservice the backup center system of urban rail transit and obtain multiple microservice components; Classifying the multiple microservice components to obtain multiple microservice component sets; The component deployment module is used to deploy the multiple microservice component sets in the server resources built at the corresponding target station.

11. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method for constructing a backup center system for urban rail transit as described in any one of claims 1 to 9 is implemented.

12. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for constructing a backup center system for urban rail transit as described in any one of claims 1 to 9 is implemented.

Citation Information

Patent Citations

  • Main and standby center switching control subsystem and method of integrated monitoring system

    CN112904754A

  • Micro-service deployment method and device, and computer storage medium

    CN113268251A

  • Urban rail data sharing platform construction method and device and electronic equipment

    CN113672338A

  • Micro-service importance evaluation method and system, and computer readable storage medium

    CN114816931A

  • Power standby dispatching system processing method and device based on micro service and computer equipment

    CN116192616A