A method for automatic system upgrade

By setting up multiple business centers and upgrade centers in the energy storage management system, the automated upgrade process is achieved, and the problems of manual upgrades are solved, and the reliability and stability of the system are improved.

CN118519665BActive Publication Date: 2025-03-07CONTEMPORARY NEBULA TECH ENERGY CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410988438.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-23
Publication Date
2025-03-07
Estimated Expiration
2044-07-23

AI Technical Summary

Technical Problem

The existing energy storage management system adopts manual upgrades, resulting in low upgrade efficiency, lagging upgrades, and inconsistent software versions of different devices, increasing software compatibility issues and operation and maintenance complexity.

Method used

A system automatic upgrade method is adopted. By setting up multiple business centers and upgrade centers in the system, dividing the business centers according to the business type, and automatically obtaining upgrade instructions and installation packages through the upgrade center, generating a new business center, replacing the center to be upgraded, and achieving silent upgrade.

Benefits of technology

It realizes automatic system upgrade, saves human resources, improves the reliability and security of upgrades, ensures that all devices are upgraded to the same version, avoids version fragmentation, and maintains system consistency and stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118519665B_ABST
    Figure CN118519665B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for automatic system upgrade, which is applied to a system with multiple business centers and an upgrade center, wherein the upgrade center is used to upgrade the multiple business centers, and comprises the following steps: S1: obtaining an upgrade instruction, taking a business center matching the upgrade instruction as a center to be upgraded, and judging whether a preset upgrade condition is met; if so, executing step S2; if not, sending a failure log to the upgrade center; S2: obtaining an upgrade installation package, generating a new business center according to the upgrade installation package and the center to be upgraded, and judging whether the new business center is successfully generated; if so, executing step S3; if not, sending a failure log to the upgrade center; S3: starting the new business center and closing the center to be upgraded. The automatic upgrade method provided by the present invention can improve the upgrade efficiency and reliability, and reduce the human resource cost of system upgrade.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of energy storage management systems, and in particular to a method for automatic system upgrade. Background Art

[0002] With the popularization of agile development and DevOps concepts, the iteration speed of software products has been significantly improved, and new functions, bug fixes, performance optimization and other upgrades are frequently released. However, the existing energy storage management system still uses manual upgrades, and users need to manually find, download and install upgrade packages, which makes the existing energy storage management system prone to low upgrade efficiency and delayed upgrades. In addition, manual upgrades will cause different software versions on each device, which increases software compatibility issues and operation and maintenance complexity, especially in a multi-device environment that needs to work together, which may lead to functional limitations or data synchronization issues. Faced with many users of different versions, the technical support team needs to deal with various version-related issues, which increases the support cost and difficulty. Summary of the invention

[0003] The technical problem to be solved by the present invention is to provide a method for automatic system upgrade to solve the problem of low upgrade efficiency and delayed upgrade caused by manual upgrade of the existing system.

[0004] In order to solve the above technical problems, the technical solution adopted by the present invention is: a method for automatic system upgrade, which is applied to a system having multiple business centers and an upgrade center, wherein the system is divided into multiple business centers according to business types, and the upgrade center is used to upgrade the multiple business centers, comprising the following steps:

[0005] S1: Obtain an upgrade instruction, take the business center that matches the upgrade instruction as the center to be upgraded, and determine whether the preset upgrade conditions are met; if so, execute step S2; if not, send a failure log to the upgrade center;

[0006] S2: Obtain an upgrade installation package, generate a new service center according to the upgrade installation package and the center to be upgraded, and determine whether the new service center is successfully generated; if so, execute step S3; if not, send a failure log;

[0007] S3: Start the new service center and close the center to be upgraded.

[0008] Furthermore, the step S3 includes the following steps:

[0009] S301: Determine whether the new service center is successfully started; if so, execute step S302; if not, send a failure log to the upgrade center;

[0010] S302: Switch the serial port and determine whether the serial port switching is successful; if so, execute step S303; if not, close the new business center and send a failure log to the upgrade center;

[0011] S303: Determine whether the new business center passes the upgrade verification; if so, close the center to be upgraded; if not, close the new business center and send a failure log to the upgrade center.

[0012] Furthermore, the step S302 also includes: determining whether all serial ports of the lower computer and the new business center can perform data communication normally; if so, executing step S303; if not, closing the new business center and sending a failure log to the upgrade center.

[0013] Furthermore, the step S302 also includes: sending the data of the lower computer to the new service center and the center to be upgraded respectively.

[0014] Furthermore, the multiple business centers in step S1 include: a monitoring center, an operation and maintenance center, an operation center, a strategy center, a background management center, a data center and a database center.

[0015] Furthermore, the step S2 includes the following steps:

[0016] S201: Determine whether the upgrade installation package passes the integrity verification; if so, execute step S202; if not, send the failure log to the upgrade center;

[0017] S202: Generate the new business center according to the upgrade installation package and the business data of the center to be upgraded, and determine whether the new business center is successfully generated; if so, execute step S203; if not, execute step S204;

[0018] S203: Determine whether the new business center passes the validity verification; if so, execute step S3; if not, execute step S204;

[0019] S204: The new business center performs rollback and sends the rollback log to the upgrade center.

[0020] Furthermore, the step S2 further includes:

[0021] S205: Determine whether all the centers to be upgraded correspond to the generation of new business centers; if so, execute step S3; if not, return to execute step S203.

[0022] Furthermore, the method further comprises step S4: creating a soft link according to the name of the center to be upgraded, wherein the soft link points to a new service center matching the center to be upgraded.

[0023] Furthermore, the method further includes step S5: sending upgrade completion information to other service centers, and sending upgrade logs to the upgrade center.

[0024] Furthermore, judging whether the center to be upgraded meets the preset upgrade condition in step S1 includes:

[0025] The version number of the center to be upgraded is compared with the version number of the upgrade instruction to determine whether the version number of the upgrade instruction is greater than the version number of the center to be upgraded; if so, the preset upgrade condition is met; if not, the preset upgrade condition is not met.

[0026] The beneficial effects of the present invention are as follows: the method for automatic system upgrade provided by the present invention can realize automatic upgrade, thereby saving human resources, and improving the reliability and security of system upgrade, ensuring that all devices are upgraded to the same version, avoiding version fragmentation, which is beneficial to maintaining the consistency and stability of the system; in addition, the system divides a plurality of business modules according to business types, which is beneficial to each business module to realize business isolation, and the method performs upgrades based on the business module, and after the business module upgrade fails, the failure problem can be conveniently checked and rolled back easily, thereby ensuring the reliability and stability of the system upgrade; in addition, the method will close the module to be upgraded only after the new business module is successfully generated, which can realize the silent upgrade function, and during the automatic upgrade process, the system does not need to be stopped, and the data of each lower computer can be responded and reported normally, thereby improving the system usage experience of the user during the upgrade process, and further improving the reliability and stability of the system upgrade. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 A flow chart of a method for automatic system upgrade provided by the present invention in one embodiment;

[0028] Figure 2 A flowchart of step S2 of the method for automatic system upgrade provided by the present invention in one embodiment;

[0029] Figure 3 A flowchart of step S3 of the method for automatic system upgrade provided by the present invention in one embodiment;

[0030] Figure 4 A system structure diagram of an automatic system upgrade method provided by the present invention in one embodiment. DETAILED DESCRIPTION

[0031] In order to explain the technical content, achieved objectives and effects of the present invention in detail, the following is an explanation in combination with the implementation modes and the accompanying drawings.

[0032] Please refer to Figures 1 to 4 The present invention provides a method for automatic system upgrade, which is applied to a system having multiple business centers and an upgrade center, wherein the system is divided into multiple business centers according to business types, and the upgrade center is used to upgrade the multiple business centers, including the following steps:

[0033] S1: Obtain an upgrade instruction, take the business center that matches the upgrade instruction as the center to be upgraded, and determine whether the preset upgrade conditions are met; if so, execute step S2; if not, send a failure log to the upgrade center;

[0034] S2: Obtain an upgrade installation package, generate a new business center according to the upgrade installation package and the center to be upgraded, and determine whether the new business center is successfully generated; if so, execute step S3; if not, send a failure log to the upgrade center;

[0035] S3: Start the new service center and close the center to be upgraded.

[0036] From the above description, it can be seen that the beneficial effects of the present invention are: the method for automatic system upgrade provided by the present invention can realize automatic upgrade, thereby saving human resources, and improving the reliability and security of system upgrade, ensuring that all devices are upgraded to the same version, avoiding version fragmentation, which is conducive to maintaining the consistency and stability of the system; in addition, the system is divided into multiple business centers according to business type, which is beneficial for each business center to achieve business isolation, and the method upgrades the system based on the business center. After the business center upgrade fails, it can easily troubleshoot the failure problem and roll back easily, thereby ensuring the reliability and stability of the system upgrade; in addition, the method will close the center to be upgraded only after the new business center is successfully generated, which can realize the silent upgrade function. During the automatic upgrade process, the system does not need to stop, and the data of each lower computer can respond and report normally, thereby improving the user's system usage experience during the upgrade process, and further improving the reliability and stability of the system upgrade.

[0037] Furthermore, the step S3 includes:

[0038] S301: Determine whether the new service center is successfully started; if so, execute step S302; if not, send a failure log to the upgrade center;

[0039] S302: Switch the serial port and determine whether the serial port switching is successful; if so, execute step S303; if not, close the new business center and send a failure log to the upgrade center;

[0040] S303: Determine whether the new business center passes the upgrade verification; if so, close the center to be upgraded; if not, close the new business center and send a failure log to the upgrade center.

[0041] From the above description, it can be seen that the method for automatic system upgrade provided by the present invention follows a predefined standardized process, and performs upgrade verification on the new business center during the automatic upgrade process to ensure that the new business center can replace the center to be upgraded, thereby reducing the impact of the upgrade on the normal use of users and improving the reliability and stability of the system automatic upgrade method.

[0042] Furthermore, the step S302 also includes: determining whether all serial ports of the lower computer and the new business center can perform data communication normally; if so, executing step S303; if not, closing the new business center and sending a failure log to the upgrade center.

[0043] From the above description, it can be seen that before closing the center to be upgraded, verify whether the communication connection between the new business center and the lower computer is normal to ensure the reliability of system operation and avoid the loss of operation and maintenance data due to abnormal communication between the new business center and the lower computer.

[0044] Furthermore, the step S302 also includes: sending the data of the lower computer to the new service center and the center to be upgraded respectively.

[0045] From the above description, it can be seen that before completing the upgrade and closing the center to be upgraded, the data of the lower computer is sent to the center to be upgraded and the new business center respectively to ensure that the data will not be lost during the automatic upgrade process.

[0046] Furthermore, the multiple business centers in step S1 include: a monitoring center, an operation and maintenance center, an operation center, a strategy center, a background management center, a data center and a database center.

[0047] It can be seen from the above description that in the method for automatic system upgrade provided by the present invention, the system is divided into multiple business centers according to business types, which can realize business isolation. Each business center focuses on its own business, which is convenient for troubleshooting when the system fails. In addition, the method is based on the business center for upgrading, which is convenient for troubleshooting upgrade failures and easy to implement the upgrade failure rollback function. The method provided by the present invention has high upgrade efficiency.

[0048] Furthermore, the step S2 includes the following steps:

[0049] S201: Determine whether the upgrade installation package passes the integrity verification; if so, execute step S202; if not, send the failure log to the upgrade center;

[0050] S202: Generate the new business center according to the upgrade installation package and the business data of the center to be upgraded, and determine whether the new business center is successfully generated; if so, execute step S203; if not, execute step S204;

[0051] S203: Determine whether the new business center passes the validity verification; if so, execute step S3; if not, execute step S204;

[0052] S204: The new business center performs rollback and sends the rollback log to the upgrade center.

[0053] From the above description, it can be seen that in the process of generating a new business center, the upgrade installation package is integrity checked, which can prevent the upgrade installation package from being maliciously tampered with or counterfeit upgrades, thereby enhancing the security of the system; when problems occur during the upgrade process, the new business center can be rolled back, and the system can be restored to the state before the new business center was generated, that is, the system is restored to the state before the upgrade, so as to reduce the upgrade risk.

[0054] Furthermore, the step S2 further includes:

[0055] S205: Determine whether all the centers to be upgraded correspond to the generation of new business centers; if so, execute step S3; if not, return to execute step S203.

[0056] From the above description, it can be seen that in some preferred implementations, multiple business systems can be upgraded in sequence through an upgrade installation package to improve upgrade efficiency, and during the upgrade process, it is determined whether all the centers to be upgraded correspond to new business centers to ensure the integrity and reliability of the system upgrade.

[0057] Furthermore, the method further comprises step S4: creating a soft link according to the name of the center to be upgraded, wherein the soft link points to a new service center matching the center to be upgraded.

[0058] From the above description, it can be seen that in the method for automatic system upgrade provided by the present invention, the service name of the business center is composed of a name and a version number. The method ensures the name consistency of the center to be upgraded and the new business center matching the center to be upgraded by creating a soft link, thereby facilitating the management of system services.

[0059] Furthermore, the method further includes step S5: sending upgrade completion information to other service centers, and sending upgrade logs to the upgrade center.

[0060] It can be seen from the above description that after the upgrade is completed, other service centers are notified of the upgrade completion, so as to improve the reliability and stability of the method.

[0061] Furthermore, judging whether the center to be upgraded meets the preset upgrade condition in step S1 includes:

[0062] The version number of the center to be upgraded is compared with the version number of the upgrade instruction to determine whether the version number of the upgrade instruction is greater than the version number of the center to be upgraded; if so, the preset upgrade condition is met; if not, the preset upgrade condition is not met.

[0063] As can be seen from the above description, each business center has a version number, so during the upgrade process, each business center can be upgraded differently without upgrading the entire system, saving system resources and making it easier to implement silent upgrades.

[0064] Embodiment 1

[0065] Please refer to Figures 1 to 4 In the first embodiment of the present invention, a method for automatic system upgrade is provided, which is applied to a system having multiple business centers and an upgrade center, wherein the system is divided into multiple business centers according to business types, and the upgrade center is used to upgrade the multiple business centers, and the method comprises the following steps:

[0066] S1: Obtain an upgrade instruction, take the business center matching the upgrade instruction as the center to be upgraded, and determine whether the preset upgrade conditions are met; if so, execute step S2; if not, send a failure log to the upgrade center.

[0067] The method for automatic system upgrade provided in this embodiment can monitor the upgrade release in real time. Once a new version is available, it will be automatically downloaded and installed immediately, which can reduce the time users have to wait for the new version. The method provided in this embodiment can be used to upgrade a large number of devices at the same time without manual operation one by one, which greatly improves the upgrade efficiency. In particular, when this method is applied in enterprise-level scenarios, it can effectively reduce human resource costs. In addition, the method for automatic system upgrade can also ensure that all devices or users are upgraded to the same version, avoiding version fragmentation, which is beneficial to the consistency and stability of the later operation and maintenance system.

[0068] In this embodiment, the method for automatic system upgrade can be specifically applied to an energy storage management system (EMS). The energy storage management system to which the method is applied is divided into multiple centers according to business types, so that the energy storage management system can achieve business isolation, and each business center can focus on its own business, which can facilitate troubleshooting when a fault occurs in the energy storage management system; in addition, in the method for automatic system upgrade provided in this embodiment, by dividing the energy storage management system into multiple business centers, the energy storage management system can be upgraded according to the business centers, which is convenient for rollback and troubleshooting of the cause of the failure after the upgrade fails.

[0069] like Figure 4 The diagram shows a multi-center structure relationship diagram of the energy storage management system divided according to the method provided in this embodiment. The multiple business centers include: a monitoring center, an operation and maintenance center, an operation center, a strategy center, a background management center, a data center, and a database center.

[0070] Specifically, the monitoring center is used to monitor the performance of each business center and ensure the normal operation of each business center, among which the operation and maintenance center, operation center, strategy center, background management center, data center and database center are all monitored by the monitoring center. The operation center connects to the operation platform, issues charging tasks to the charging piles in the charging station, and reports the operation data of the charging station to the operation platform. The operation and maintenance center is used to display the operation interface of the current charging station and operate the current charging station, such as: issuing instructions to the charging piles, configuring peak and valley electricity, configuring protection parameters, etc., and the operation and maintenance center reports the status information of the charging piles and responds to the instructions of the charging piles to the operation center. The strategy center is used to execute the strategy of the current energy storage management system, ensure the normal operation of the energy storage management system, and provide basic protection for the energy storage management system. The strategy center reports the operation status of the strategy and the relevant instructions of the response strategy to the operation and maintenance center. The background management center is used to operate the configuration of the charging station, such as user permissions, operation strategies and equipment configuration. The data center is used to interact with the equipment and collect and broadcast equipment data. The data center provides equipment interaction functions to the operation center, operation and maintenance center, strategy center and background management center. The database center is used to provide Sqlite database operation services and provide Sqlite database interaction functions to the operation center, operation and maintenance center, strategy center and background management center.

[0071] In this embodiment, each business center of the energy storage management system stores its own version number. Therefore, in the system automatic upgrade method provided in this embodiment, each business center can be upgraded independently of each other, so that each business center of the energy storage management system can achieve differentiated upgrades according to actual needs.

[0072] In the automatic system upgrade method provided in this embodiment, the determination of whether the center to be upgraded meets the preset upgrade condition in the above step S1 includes:

[0073] The version number of the center to be upgraded is compared with the version number of the upgrade instruction to determine whether the version number of the upgrade instruction is greater than the version number of the center to be upgraded; if so, the preset upgrade condition is met; if not, the preset upgrade condition is not met.

[0074] The method for automatic system upgrade provided in this embodiment includes step S2: obtaining an upgrade installation package, generating a new business center based on the upgrade installation package and the center to be upgraded, and determining whether the new business center is generated successfully; if so, executing step S3; if not, sending a failure log to the upgrade center.

[0075] like Figure 2 As shown, in this embodiment, step S2 specifically includes the following steps:

[0076] S201: Determine whether the upgrade installation package passes the integrity verification; if so, execute step S202; if not, send the failure log to the upgrade center;

[0077] S202: Generate the new business center according to the upgrade installation package and the business data of the center to be upgraded, and determine whether the new business center is successfully generated; if so, execute step S203; if not, execute step S204;

[0078] S203: Determine whether the new business center passes the validity verification; if so, execute step S3; if not, execute step S204;

[0079] S204: The new business center performs rollback and sends the rollback log to the upgrade center.

[0080] In this embodiment, the automatic upgrade method of the system is applied. When a problem occurs during the system upgrade, the new business center can be rolled back, so that the system can be automatically restored to the state before the upgrade, which reduces the upgrade risk. The method provided by this embodiment can perform integrity verification on the upgrade installation package before the upgrade to prevent malicious tampering or counterfeit upgrades, thereby enhancing the upgrade security of the system.

[0081] Detailed, such as Figure 2As shown, in this embodiment, the operation platform sends an upgrade instruction to the operation center, and the operation center forwards the upgrade instruction to the upgrade center, which is used to upgrade each business center; the upgrade center can use the business center that matches the upgrade instruction as the center to be upgraded, and the upgrade center can also obtain failure logs, upgrade logs, and rollback logs, and report the above logs and the upgrade status of the system to the operation center, and then the operation center reports the above logs and the upgrade status of the system to the operation platform.

[0082] In this embodiment, obtaining the upgrade installation package in step S2 includes: downloading the upgrade installation package offline or online, and decompressing the upgrade installation package to obtain an upgrade installation package directory.

[0083] In some preferred embodiments of the present invention, multiple service centers in the system may be upgraded simultaneously using one upgrade installation package. To ensure the integrity of the system upgrade, step S2 further includes:

[0084] S205: Determine whether all the centers to be upgraded correspond to the generation of new business centers; if so, execute step S3; if not, return to execute step S203.

[0085] The method for automatic system upgrade provided in this embodiment includes S3: starting the new service center and closing the center to be upgraded.

[0086] Please refer to Figure 3 In this embodiment, step S2 specifically includes the following steps:

[0087] S301: Determine whether the new service center is successfully started; if so, execute step S302; if not, send a failure log to the upgrade center;

[0088] S302: Switch the serial port and determine whether the serial port switching is successful; if so, execute step S303; if not, close the new business center and send a failure log to the upgrade center;

[0089] S303: Determine whether the new business center passes the upgrade verification; if so, close the center to be upgraded; if not, close the new business center and send a failure log to the upgrade center.

[0090] In this embodiment, the center to be upgraded will be closed only after the new business center is generated and it is ensured that the new business center can take over the normal operation of the center to be upgraded. The system does not need to be stopped during the upgrade process, and the data of the lower-level device can be responded and reported normally. Therefore, the method of automatic system upgrade provided in this embodiment is usually automatically completed in the background to reduce the impact of the upgrade on the normal use of users and realize silent upgrade. This usage method can improve the user experience.

[0091] In some upgrade scenarios of the energy storage management system, after the upgrade is completed, the system needs to be restarted or the new business center needs to be restarted to switch from the center to be upgraded to the new business center. In order to minimize the impact of the upgrade on the normal use of users, this method can notify the user in advance and let the user choose the restart time.

[0092] In detail, in this embodiment, the step of switching serial ports described in the above step S302 includes: the center to be upgraded includes multiple first serial ports, and the new business center includes multiple second serial ports that match the multiple first serial ports one by one; closing all the first serial ports, and switching the serial ports of other business centers connected to the first serial ports to the second serial ports that match the first serial ports; broadcasting all the second serial ports to determine whether the serial port switching is successful.

[0093] In detail, in order to further improve the reliability and stability of upgrading using this method, the above-mentioned step S302 also includes: determining whether all serial ports of the lower computer and the new business center can communicate data normally; if so, executing step S303; if not, closing the new business center and sending a failure log to the upgrade center.

[0094] In the method for automatic system upgrade provided in this embodiment, during the upgrade process, the underlying transparent transmission program of the lower computer is not upgraded, and step S302 further includes: the data of the lower computer is sent to the new service center and the center to be upgraded respectively.

[0095] In order to improve the reliability of the automatic upgrade method of the system, during the upgrade process, the lower computer sends data to the new business center and the center to be upgraded respectively through its non-upgraded underlying transparent program to reduce the risk of data loss during the upgrade process.

[0096] In detail, the method for automatic system upgrade provided in this embodiment can be applied to the data center upgrade of the energy storage management system. During the upgrade process, the charging piles push the charging pile data to the old data center (i.e., the center to be upgraded) and the new data center respectively, wherein the old data center only collects the equipment data of the charging piles, and the operation data of the charging piles is pushed to the new data center.

[0097] The method for automatic system upgrade provided in this embodiment follows a predefined standardized process, reduces the possibility of human operational errors, and improves reliability during the upgrade process; precisely because the upgrade process of the method for automatic system upgrade provided in this embodiment is standardized and automated, it can reduce the risk of upgrade failure, thereby reducing the human resource requirements and human resource costs for technical support for system upgrades.

[0098] In summary, the method for automatic system upgrade provided by the present invention can realize automatic upgrade, thereby saving human resources, and improving the reliability and security of system upgrade, ensuring that all devices are upgraded to the same version, avoiding version fragmentation, which is conducive to maintaining the consistency and stability of the system; in addition, the system divides multiple business modules according to business type, which is beneficial for each business module to achieve business isolation, and the method is based on business module upgrade, after the business module upgrade fails, it can be convenient to troubleshoot the failure problem and easy to roll back, thereby ensuring the reliability and stability of the system upgrade; in addition, the method will close the module to be upgraded only after the new business module is successfully generated, which can realize the silent upgrade function. During the automatic upgrade process, the system does not need to stop, and the data of each lower computer can respond and report normally, thereby improving the user's system usage experience during the upgrade process, and further improving the reliability and stability of the system upgrade.

[0099] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent transformations made using the contents of the present invention's specification and drawings, or directly or indirectly applied in related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A method for automatic system upgrade, characterized in that: It is applied to a system having multiple business centers and an upgrade center, wherein the system is divided into multiple business centers according to business types, and the upgrade center is used to upgrade the multiple business centers, and includes the following steps: S1: Obtain an upgrade instruction, take the business center that matches the upgrade instruction as the center to be upgraded, and determine whether the preset upgrade conditions are met; if so, execute step S2; if not, send a failure log to the upgrade center; S2: Obtain an upgrade installation package, generate a new business center according to the upgrade installation package and the center to be upgraded, and determine whether the new business center is successfully generated; if so, execute step S3; if not, send a failure log to the upgrade center; S3: Start the new service center and close the center to be upgraded; The step S3 comprises the following steps: S301: Determine whether the new service center is successfully started; if so, execute step S302; if not, send a failure log to the upgrade center; S302: Switch the serial port and determine whether the serial port switching is successful; if so, execute step S303; if not, close the new business center and send a failure log to the upgrade center; S303: Determine whether the new service center passes the upgrade verification; if so, close the center to be upgraded; if not, close the new service center and send a failure log to the upgrade center; The step S302 further includes: sending the data of the lower computer to the new business center and the center to be upgraded respectively; wherein, during the upgrade process, the underlying transparent transmission program of the lower computer is not upgraded, the center to be upgraded only collects the device data of the lower computer, and the operation data of the lower computer is pushed to the new business center; In step S302, switching the serial port specifically includes: the center to be upgraded includes a plurality of first serial ports, and the new business center includes a plurality of second serial ports that match the plurality of first serial ports one by one; closing all the first serial ports, and switching the serial ports of other business centers connected to the first serial ports to the second serial ports that match the first serial ports; broadcasting all the second serial ports to determine whether the serial port switching is successful; The step S302 further includes: determining whether all serial ports of the lower computer and the new business center can normally communicate data; if so, executing step S303; if not, closing the new business center and sending a failure log to the upgrade center; The process also includes step S4: the service center has a service name composed of a name and a version number, and a soft link is created according to the name of the center to be upgraded, wherein the soft link points to a new service center that matches the center to be upgraded.

2. The method according to claim 1, characterized in that The multiple business centers in step S1 include: a monitoring center, an operation and maintenance center, an operation center, a strategy center, a background management center, a data center and a database center.

3. The method according to claim 1, characterized in that The step S2 comprises the following steps: S201: Determine whether the upgrade installation package passes the integrity verification; if so, execute step S202; if not, send the failure log to the upgrade center; S202: Generate the new business center according to the upgrade installation package and the business data of the center to be upgraded, and determine whether the new business center is successfully generated; if so, execute step S203; if not, execute step S204; S203: Determine whether the new business center passes the validity verification; if so, execute step S3; if not, execute step S204; S204: The new business center performs rollback and sends the rollback log to the upgrade center.

4. The method according to claim 3, characterized in that The step S2 further comprises: S205: Determine whether all the centers to be upgraded correspond to the generation of new business centers; if so, execute step S3; if not, return to execute step S203.

5. The method according to claim 1, characterized in that The method further includes step S5: sending upgrade completion information to other service centers, and sending an upgrade log to the upgrade center.

6. The method according to claim 1, characterized in that In step S1, determining whether the center to be upgraded meets the preset upgrade conditions includes: The version number of the center to be upgraded is compared with the version number of the upgrade instruction to determine whether the version number of the upgrade instruction is greater than the version number of the center to be upgraded; if so, the preset upgrade condition is met; if not, the preset upgrade condition is not met.

Citation Information

Patent Citations

  • Upgrade method, device and system for application instance

    CN108683516A