Method, device, electronic device and program product for upgrading operating system of cloud service
By configuring virtual resources in cloud services and using container orchestration technology, the problem of service outage of cloud services needs to be stopped when upgrading the operating system of cloud services is solved, and the operating system upgrade without service interruption is achieved, and the user experience is improved.
Patent Information
- Application Number
- CN202411912391.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-24
- Publication Date
- 2025-04-04
AI Technical Summary
When upgrading the operating system, existing cloud services need to be discontinued to avoid service interruption, which will affect the user experience.
By configuring specified virtual resources, the service content of cloud services is migrated to virtual resources to run, and using the Pods eviction instructions of container orchestration technology, the Pods of network element nodes that need to be upgraded synchronously are migrated to other network element nodes to avoid service interruptions. Then, the upgrade is based on the upgrade strategy of the target network element node in the target version, and after successful, the system upgrade script is run to complete the operating system upgrade.
It has achieved the upgrade of the operating system of cloud services without stopping service, avoiding service interruptions and improving user experience.
Smart Images

Figure CN119766649A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of cloud technology, and in particular to a method, device, electronic device and program product for upgrading an operating system of a cloud service. Background Art
[0002] Cloud services refer to business platforms provided on demand by the cloud. By deploying various computing resources, storage resources, and application services on network element nodes, users can access and use them through the network anytime and anywhere.
[0003] Currently, cloud services need to upgrade the operating system while the service is suspended. Since users cannot access or use the service during the upgrade period, the experience is greatly affected. Summary of the invention
[0004] The purpose of this application is to provide a method, device, equipment and computer program product for determining illegal web pages, which can upgrade the operating system of cloud services without stopping the service.
[0005] In order to achieve the above purpose, the embodiment of the present application is implemented as follows: In a first aspect, a method for upgrading an operating system of a cloud service is provided, wherein the cloud service is deployed with multiple network element nodes, each of the network element nodes is configured with a container group Pods of a container orchestration technology to provide service content, and the method comprises: When the operating system of the cloud service needs to be upgraded to a target version, a designated virtual resource is configured, and the current business content of the cloud service is migrated to the designated virtual resource for operation; Determine the target network element node that needs to be upgraded synchronously when the operating system is upgraded to the target version, and migrate the Pods of the target network element node to other network element nodes based on the Pods eviction instruction of the container orchestration technology; upgrading the target network element node based on the upgrade strategy of the target network element node in the target version; and, After the target network element node is successfully upgraded, the system upgrade script of the target version is run to upgrade the operating system to the target version.
[0006] In a second aspect, a device for upgrading an operating system of a cloud service is provided, wherein the cloud service is deployed with multiple network element nodes, each of the network element nodes is configured with a container group Pods of a container orchestration technology to provide service content, and the method includes: A service migration module, used to configure designated virtual resources when the operating system of the cloud service needs to be upgraded to a target version, and migrate the current service content of the cloud service to the designated virtual resources for operation; A container group migration module is used to determine the target network element node that needs to be upgraded synchronously when the operating system is upgraded to the target version, and to migrate the Pods of the target network element node to other network element nodes based on the Pods eviction instruction of the container orchestration technology; a network element upgrade module, configured to upgrade the target network element node based on an upgrade strategy of the target network element node in the target version; and The system upgrade module is used to run the system upgrade script of the target version after the target network element node successfully completes the upgrade, so as to upgrade the operating system to the target version.
[0007] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor; and a memory configured to store computer-executable instructions, wherein the computer-executable instructions, when executed, cause the processor to execute the method described in the first aspect.
[0008] According to a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium is used to store computer-executable instructions, and the computer-executable instructions implement the method described in the first aspect when executed by a processor.
[0009] In the embodiment of the present application, the cloud service is deployed with multiple network element nodes, and each network element node is configured with a container group Pods of the container orchestration technology to provide business content. When it is necessary to upgrade the operating system of the cloud service to the target version, first create a designated virtual resource to migrate the current business content of the cloud service to the designated virtual resource for operation; in addition, for the target network element node that needs to be upgraded synchronously with the operating system, the Pods of the target network element node are migrated to other network element nodes through the Pods eviction instruction of the container orchestration technology to prevent the target network element node from being scheduled to the new business content. Afterwards, based on the upgrade strategy of the target network element node in the target version, the target network element node is upgraded first, and after the target network element node is successfully upgraded, the system upgrade script running the target version is upgraded to the operating system. During the whole process, first, the existing business content runs in the designated virtual resource, and secondly, the network element nodes that need to be involved in the upgrade no longer execute new business content, so it is equivalent to completing the upgrade of the operating system without service interruption. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0011] Figure 1 This is a schematic diagram of a first flow chart of a method for upgrading an operating system of a cloud service according to an embodiment of the present application.
[0012] Figure 2 A schematic diagram of the network element node deployment of the cloud service of an embodiment of the present application.
[0013] Figure 3 It is a schematic diagram of upgrading a network element node of a cloud service based on this embodiment.
[0014] Figure 4 A second flow chart of the method for upgrading the operating system of a cloud service according to an embodiment of the present application.
[0015] Figure 5 A schematic diagram of the structure of an operating system upgrade device for a cloud service according to an embodiment of the present application.
[0016] Figure 6 A schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0017] The present application provides an operating system upgrade solution for cloud services, which aims to upgrade the operating system of cloud services without stopping the service. In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this specification.
[0018] An embodiment of the present application provides a method for upgrading an operating system of a cloud service, wherein the cloud service is deployed with multiple network element nodes, and each network element node is configured with a container group Pods of the container orchestration technology to provide service content. Figure 1 The flowchart of the operating system upgrade method includes the following steps: S102, when the operating system of the cloud service needs to be upgraded to a target version, a designated virtual resource is configured, and the current business content of the cloud service is migrated to the designated virtual resource for operation.
[0019] In the embodiment of the present application, the specified virtual resources are created according to the resources required by the current business content of the business. It should be noted that the physical machine that provides the specified virtual resources does not need to be upgraded along with the operating system of the cloud business. That is, after the current business content of the cloud business is migrated to the specified virtual resources for operation, the need to upgrade the business operating system will not affect the current business content of the cloud business.
[0020] The migration of the current business content of the cloud business mentioned here specifically refers to the migration of the business process of the current business. Based on the above, it can be known that this embodiment provides the corresponding business content through the Pods of the network element node, so this step can be to migrate the business process in the currently working Pods to run in the virtual resource.
[0021] In addition, in order to ensure that the designated virtual resources can stably run the current business content of the cloud system, at least one service mechanism among retry, reconnection and maintenance can be configured for the current business content of the cloud service before migration; then, the current business content of the cloud service and the corresponding service mechanism are migrated to the designated virtual resources, so that the current business content of the cloud service can be run according to the service mechanism through the designated virtual resources. That is, the business content run by the designated virtual resources can realize the functions of retry, reconnection and maintenance to prevent service interruption.
[0022] S104, determining the target network element node that needs to be upgraded synchronously when the operating system is upgraded to the target version, and migrating the Pods of the target network element node to other network element nodes using a Pods eviction instruction based on container orchestration technology.
[0023] It should be understood that the upgrade of the operating system may involve the modification and upgrade of some network element nodes. In order to avoid service interruption, it is necessary to use the kubectl drain command in the container orchestration technology to migrate all Pods in the target network element node that need to be upgraded synchronously to other network element nodes. In this way, the target network element node will no longer receive new service calls, and its corresponding tasks can be handled by other network element nodes.
[0024] S106: Upgrade the target network element node based on the upgrade strategy of the target network element node in the target version.
[0025] It should be understood that after the target network element node has no Pods, it is equivalent to being separated from the cloud service. When the target network element node is upgraded, it will not affect the normal service of the cloud service.
[0026] Specifically, this embodiment can perform structural deployment according to the network environment to classify the node types of the network element nodes. Among them, network element nodes of different node types correspond to different upgrade strategies. Correspondingly, this step upgrades the target network element node based on the upgrade strategy in the target version of the node type to which the target network element node belongs.
[0027] Here we take the GCH service of cloud HD set-top box as an example. According to the network environment, the GCH service can classify network element nodes into: OPS nodes, management nodes, computing nodes and storage nodes.
[0028] The OPS node is responsible for the management of container orchestration, such as Pods management.
[0029] The management node is equipped with a virtualization infrastructure manager (VIM) and in-memory computing or in-memory processing technology (PIM). VIM is responsible for managing and allocating computing, storage and network resources of the infrastructure, providing an operating environment for virtual network functions; PIM is used to solve the mismatch between memory speed and processor speed in traditional computing architecture.
[0030] Computing nodes create and manage multiple virtual machines (VMs) based on virtual machine monitor technology. Container clusters of related services are deployed on these virtual machines. The container clusters include virtual distributed network architecture (Virtual Content Delivery Network, vCDN) and virtual set-top box (Virtual Set-Top Box, vSTB). vCDN is mainly used for content distribution, and vSTB is mainly used for home entertainment and interaction.
[0031] The storage node is configured with storage volumes of vCDN and vSTB for storing corresponding data.
[0032] Correspondingly, refer to Figure 3 As shown: The upgrade strategy of OPS nodes is used to upgrade the web architecture (OPS-WEB) and database management functions (OPS-DB) of OPS; The upgrade strategy of the management node is used to upgrade the adapter compiler of the specified functional service; the specified functional service mentioned here can include but is not limited to CAMS service, Manager service and UA service, etc.; in the production and operation of GCH services, CAMS service is responsible for supporting the authentication, authorization, billing and other functions of terminal users in cooperation with network equipment to achieve the manageability and high security of the network. Manager service is responsible for monitoring and managing network equipment, servers, applications, etc. to ensure the stable operation of IT infrastructure. UA service is responsible for identifying and processing the server service of user agent, which refers to the client device that accesses the server through the network, including browsers, mobile applications, etc.
[0033] The upgrade strategy of computing nodes is used to upgrade the kernel compilation adaptation, startup verification adaptation and driver compilation adaptation of Pods. Specifically, computing nodes mainly include Agent Pod and AIC Pod. Agent Pod needs to compile and adapt the ashmem and binder kernel modules. AIC Pod mainly provides services such as APP, and needs to perform verification such as android startup. At the same time, computing nodes need to support GPU operation, so the GPU driver needs to be compiled and adapted. At the same time, in order to support AIC operation, patches such as expanding the number of kernel devices and adjusting the priority of the Android operating system need to be inserted.
[0034] The storage node upgrade policy is used to upgrade the storage mode and storage medium usage priority. As an example, the storage mode may include storage based on a distributed file system and storage based on a network file system. The storage medium usage priority may include giving priority to using storage media with a higher remaining storage space.
[0035] Furthermore, after the upgrade of the target network element node is completed, this embodiment can perform an availability test on the upgraded target network element node; and, after the upgraded target network element node passes the availability test, it is determined that the target network element node has successfully completed the upgrade, otherwise, based on the upgrade strategy of the target network element node in the target version, the target network element node is re-upgraded.
[0036] S108, after the target network element node is successfully upgraded, run the system upgrade script of the target version to upgrade the operating system to the target version.
[0037] In this embodiment, before upgrading the operating system to the target version, backup data for rolling back the operating system to the current system version is created and the backup data is stored.
[0038] Correspondingly, in the process of upgrading the operating system to the target system version, the upgrade progress of the operating system can be monitored; if the upgrade progress of the operating system is monitored to be abnormal, the operating system is rolled back to the system version before the upgrade based on the backup data. It should be noted that the rollback of the operating system can also return the target network element node to the state before the upgrade.
[0039] In addition, after the operating system is upgraded to the target system version, the running status of the upgraded operating system can be monitored; if the running status of the operating system is monitored to be abnormal, the operating system can be rolled back to the system version before the upgrade based on the backup data.
[0040] It should be understood that after the operating system is upgraded to the target system version and all business contents in the virtual resources are completed, this embodiment stores the data generated by the business contents of the specified virtual resources, that is, records the business data that has been completed. After the recording is completed, the specified virtual resources can be released to save resource overhead.
[0041] In summary, based on the method of this embodiment, the cloud service is deployed with multiple network element nodes, and each of the network element nodes is configured with a container group Pods of the container orchestration technology to provide business content. When the operating system of the cloud service needs to be upgraded to the target version, a designated virtual resource is first created to migrate the current business content of the cloud service to the designated virtual resource for operation; in addition, for the target network element node that needs to be upgraded synchronously with the operating system, the Pods of the target network element node are migrated to other network element nodes through the Pods eviction instruction of the container orchestration technology to prevent the target network element node from being scheduled to the new business content. Afterwards, based on the upgrade strategy of the target network element node in the target version, the target network element node is upgraded first, and after the target network element node is successfully upgraded, the system upgrade script running the target version is upgraded to the operating system. In the whole process, first, the existing business content runs in the designated virtual resource, and secondly, the network element node that needs to be involved in the upgrade no longer executes the new business content, so it is equivalent to completing the upgrade of the operating system without service interruption.
[0042] The process of the method in this embodiment is described in detail below.
[0043] The upgrade process of the operating system of the method of this embodiment is as follows: Figure 4 As shown, including: First, download the operating system upgrade package and back up the current version of the operating system.
[0044] Next, determine whether the cloud service currently has a business process with business content.
[0045] If there is a business process of business content, then create the corresponding virtual resources according to the current business operation requirements, transfer the original network element node execution content to the virtual resources for operation, and synchronously record the data generated when the virtual resources are running. In addition, the business process of the original network element node can be released to prepare for the upgrade of the network element node.
[0046] If there is no service process of the service content currently, the network element node is upgraded.
[0047] During the upgrade process of the network element node, the network type is first determined to perform the upgrade operation according to the upgrade strategy corresponding to the node type. At the same time, after the network element node is upgraded, the upgrade result of the network element node is tested through functional verification (i.e., availability test). If the upgrade fails, the network element node is mixed and rolled to re-initiate the upgrade operation. If the upgrade is successful, the operating system is prepared to be upgraded.
[0048] During the upgrade process of the operating system, the upgrade script is specifically executed and the upgrade progress is monitored. If an exception occurs during the upgrade process, the operating system is rolled back to the system version before the upgrade based on the backup data.
[0049] Finally, after the operating system upgrade is completed, the backup data is synchronized to monitor the operating status of the operating system in subsequent applications. If the operating status of the operating system is abnormal, the operating system can be rolled back to the system version before the upgrade based on the backup data. In addition, the original version files of the operating system can be deleted to release space.
[0050] In addition, corresponding to Figure 1 The method shown, another embodiment of this embodiment also provides an operating system upgrade device for cloud services. Figure 5 : is a schematic diagram of the structure of the operating system upgrade device 500, comprising: The service migration module 510 is used to configure a specified virtual resource when the operating system of the cloud service needs to be upgraded to a target version, and migrate the current service content of the cloud service to the specified virtual resource for operation; The container group migration module 520 is used to determine the target network element node that needs to be upgraded synchronously when the operating system is upgraded to the target version, and to migrate the Pods of the target network element node to other network element nodes based on the Pods eviction instruction of the container orchestration technology.
[0051] The network element upgrade module 530 is used to upgrade the target network element node based on the upgrade strategy of the target network element node in the target version. And, The system upgrade module 540 is used to run the system upgrade script of the target version after the target network element node is successfully upgraded, so as to upgrade the operating system to the target version.
[0052] Based on the device of this embodiment, the cloud service is deployed with multiple network element nodes, and each of the network element nodes is configured with a container group Pods of the container orchestration technology to provide business content. When the operating system of the cloud service needs to be upgraded to the target version, a designated virtual resource is first created to migrate the current business content of the cloud service to the designated virtual resource for operation; in addition, for the target network element node that needs to be upgraded synchronously with the operating system, the Pods of the target network element node are migrated to other network element nodes through the Pods eviction instruction of the container orchestration technology to prevent the target network element node from being scheduled to the new business content. Afterwards, based on the upgrade strategy of the target network element node in the target version, the target network element node is upgraded first, and after the target network element node is successfully upgraded, the system upgrade script running the target version is upgraded to the operating system. In the whole process, first, the existing business content runs in the designated virtual resource, and secondly, the network element node that needs to be involved in the upgrade no longer executes the new business content, so it is equivalent to completing the upgrade of the operating system without service interruption.
[0053] Optionally, before running the system upgrade script of the target version to upgrade the operating system to the target version, the system upgrade module 540 is further used to: create backup data for rolling back the operating system to the current system version, and store the backup data.
[0054] Optionally, during the process of upgrading the operating system to the target system version, the system upgrade module 540 is further used to: monitor the upgrade progress of the operating system; and when an abnormality is detected in the upgrade progress of the operating system, roll back the operating system to the system version before the upgrade based on the backup data; Optionally, after upgrading the operating system to the target system version, the system upgrade module 540 is also used to: monitor the running status of the upgraded operating system; and, when an abnormality is detected in the running status of the operating system, roll back the operating system to the system version before the upgrade based on the backup data.
[0055] Optionally, after upgrading the target network element node, the network element upgrade module 530 is also used to: perform an availability test on the upgraded target network element node; and, after the upgraded target network element node passes the availability test, determine that the target network element node has successfully completed the upgrade; otherwise, based on the upgrade policy of the target network element node in the target version, re-upgrade the target network element node.
[0056] Optionally, the network element upgrade module 530 upgrades the target network element node based on the upgrade policy of the target network element node in the target version, including: determining the node type to which the target network element node belongs, the node type being one of an open programmable system OPS node, a management node, a computing node and a storage node; upgrading the target network element node based on the upgrade policy of the node type point in the target version; wherein the upgrade policy of the OPS node is used to upgrade the web page architecture and / or database management function of the OPS; the upgrade policy of the management node is used to upgrade the adaptation compiler of the specified functional service; the upgrade policy of the computing node is used to upgrade at least one of the kernel compilation adaptation, startup verification adaptation and driver compilation adaptation of the GPU of the Pods; the upgrade policy of the storage node is used to upgrade the storage method and / or storage medium usage priority.
[0057] Optionally, after the operating system is upgraded to the target system version and all business contents in the virtual resources are executed, the system upgrade module 540 is further used to: store the data generated by the business contents of the virtual resources and release the designated virtual resources.
[0058] Optionally, the business migration module 510 migrates the current business content of the cloud business to the designated virtual resources for execution, including: configuring at least one service mechanism of retry, reconnection and maintenance for the current business content of the cloud business, and migrating the current business content of the cloud business and the corresponding service mechanism to the designated virtual resources, so as to run the current business content of the cloud business according to the service mechanism through the designated virtual resources.
[0059] It should be noted that the operating system upgrade device for the cloud service of this embodiment can be used as Figure 1 The execution subject of the method shown can thus realize Figure 1 The steps and functions in the method shown.
[0060] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 6 At the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and a memory. The memory may include a memory, such as a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. Of course, the electronic device may also include hardware required for other services.
[0061] The processor, network interface and memory can be interconnected through an internal bus, which can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0062] The memory is used to store the computer program. Specifically, the computer program may include a program code, and the program code includes a computer operation instruction. The memory may include a memory and a non-volatile memory, and provides the computer program to the processor.
[0063] The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming the above-mentioned Figure 5 The operating system upgrade device of the cloud service shown in the figure. Correspondingly, the processor executes the program stored in the memory and is specifically used to perform the following operations: Determine the target network element node that needs to be upgraded synchronously when the operating system is upgraded to the target version, and migrate the Pods of the target network element node to other network element nodes based on the Pods eviction instruction of the container orchestration technology.
[0064] Based on the upgrade strategy of the target network element node in the target version, the target network element node is upgraded. And, After the target network element node is successfully upgraded, the system upgrade script of the target version is run to upgrade the operating system to the target version.
[0065] Based on the electronic device of this embodiment, the cloud service is deployed with multiple network element nodes, and each of the network element nodes is configured with a container group Pods of the container orchestration technology to provide business content. When the operating system of the cloud service needs to be upgraded to the target version, a designated virtual resource is first created to migrate the current business content of the cloud service to the designated virtual resource for operation; in addition, for the target network element node that needs to be upgraded synchronously with the operating system, the Pods of the target network element node are migrated to other network element nodes through the Pods eviction instruction of the container orchestration technology to prevent the target network element node from being scheduled to the new business content. Afterwards, based on the upgrade strategy of the target network element node in the target version, the target network element node is upgraded first, and after the target network element node is successfully upgraded, the system upgrade script running the target version is upgraded to the operating system. In the whole process, first, the existing business content runs in the designated virtual resource, and secondly, the network element node that needs to be involved in the upgrade no longer executes the new business content, so it is equivalent to completing the upgrade of the operating system without service interruption.
[0066] The above is as in this manual Figure 1 The operating system upgrade method for cloud services disclosed in the illustrated embodiment can be applied to a processor and implemented by the processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor or an instruction in software form. The above processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present application can be directly embodied as being executed by a hardware decoding processor, or executed by a combination of hardware and software modules in a decoding processor. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0067] Of course, in addition to software implementation, the electronic device of this specification does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is to say, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.
[0068] In addition, an embodiment of the present application also proposes a computer-readable storage medium, which stores one or more computer programs, and the one or more computer programs include instructions.
[0069] When the above instructions are executed by a portable electronic device including multiple application programs, the portable electronic device can execute Figure 1 The steps in the method shown include: When the operating system of the cloud service needs to be upgraded to the target version, the designated virtual resources are configured, and the current business content of the cloud service is migrated to the designated virtual resources for operation.
[0070] Determine the target network element node that needs to be upgraded synchronously when the operating system is upgraded to the target version, and migrate the Pods of the target network element node to other network element nodes based on the Pods eviction instruction of the container orchestration technology.
[0071] Based on the upgrade strategy of the target network element node in the target version, the target network element node is upgraded. And, After the target network element node is successfully upgraded, the system upgrade script of the target version is run to upgrade the operating system to the target version.
[0072] It should be understood by those skilled in the art that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0073] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0074] The above are only embodiments of this specification and are not intended to limit this specification. For those skilled in the art, this specification may be subject to various changes and modifications. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this specification shall be included in the scope of the claims of this specification. In addition, all other embodiments obtained by ordinary technicians in this field without creative work shall fall within the scope of protection of this document.
Claims
1. A method for upgrading an operating system of a cloud service, characterized in that: The cloud service is deployed with multiple network element nodes, each of which is configured with a container group Pods of container orchestration technology to provide service content, and the method includes: When the operating system of the cloud service needs to be upgraded to a target version, a designated virtual resource is configured, and the current business content of the cloud service is migrated to the designated virtual resource for operation; Determine the target network element node that needs to be upgraded synchronously when the operating system is upgraded to the target version, and migrate the Pods of the target network element node to other network element nodes based on the Pods eviction instruction of the container orchestration technology; upgrading the target network element node based on the upgrade strategy of the target network element node in the target version; and, After the target network element node is successfully upgraded, the system upgrade script of the target version is run to upgrade the operating system to the target version.
2. The method according to claim 1, characterized in that Before running the system upgrade script of the target version to upgrade the operating system to the target version, the method further includes: Backup data for rolling back the operating system to the current system version is created, and the backup data is stored.
3. The method according to claim 2, characterized in that In the process of upgrading the operating system to the target system version, the method further includes: Monitoring the upgrade progress of the operating system; and, when an abnormality is detected in the upgrade progress of the operating system, rolling back the operating system to a system version before the upgrade based on the backup data; After upgrading the operating system to the target system version, the method further includes: The running state of the upgraded operating system is monitored; and when an abnormality is detected in the running state of the operating system, the operating system is rolled back to the system version before the upgrade based on the backup data.
4. The method according to claim 1, characterized in that: After upgrading the target network element node, the method further includes: Performing an availability test on the upgraded target network element node; and after the upgraded target network element node passes the availability test, determining that the target network element node has successfully completed the upgrade, otherwise, re-upgrading the target network element node based on the upgrade strategy of the target network element node in the target version.
5. The method according to claim 1, characterized in that Upgrading the target network element node based on the upgrade strategy of the target network element node in the target version includes: Determine the node type to which the target network element node belongs, where the node type is one of an open programmable system OPS node, a management node, a computing node, and a storage node; Upgrading the target network element node based on the upgrade strategy of the node type point in the target version; Among them, the upgrade strategy of the OPS node is used to upgrade the web page architecture and / or database management function of the OPS; the upgrade strategy of the management node is used to upgrade the adaptation compiler of the specified functional service; the upgrade strategy of the computing node is used to upgrade at least one of the kernel compilation adaptation, startup verification adaptation and driver compilation adaptation of the graphics processor GPU of Pods; the upgrade strategy of the storage node is used to upgrade the storage method and / or storage medium usage priority.
6. The method according to any one of claims 1 to 5, characterized in that: After the operating system is upgraded to the target system version and all the business contents in the virtual resources are run, the data generated by the business contents of the virtual resources are stored, and the designated virtual resources are released.
7. The method according to any one of claims 1 to 5, characterized in that: Migrating the current business content of the cloud business to the designated virtual resources for operation includes: Configure at least one service mechanism of retry, reconnection and maintenance for the current business content of the cloud business, and migrate the current business content of the cloud business and the corresponding service mechanism to the designated virtual resources, so as to run the current business content of the cloud business according to the service mechanism through the designated virtual resources.
8. A cloud service operating system upgrade device, characterized in that: The cloud service is deployed with multiple network element nodes, each of which is configured with a container group Pods of container orchestration technology to provide service content, and the method includes: A service migration module, used to configure designated virtual resources when the operating system of the cloud service needs to be upgraded to a target version, and migrate the current service content of the cloud service to the designated virtual resources for operation; A container group migration module is used to determine the target network element node that needs to be upgraded synchronously when the operating system is upgraded to the target version, and to migrate the Pods of the target network element node to other network element nodes based on the Pods eviction instruction of the container orchestration technology; a network element upgrade module, configured to upgrade the target network element node based on an upgrade strategy of the target network element node in the target version; and The system upgrade module is used to run the system upgrade script of the target version after the target network element node successfully completes the upgrade, so as to upgrade the operating system to the target version.
9. An electronic device comprising a processor; and a memory configured to store computer executable instructions, characterized in that: The computer executable instructions, when executed, cause the processor to perform the method according to any one of claims 1-7.
10. A computer program product, comprising a computer-readable storage medium storing a computer program, characterized in that: The computer program is operable to cause a computer to perform the method according to any one of claims 1 to 7.