Cloud desktop patch updating method and device, equipment, storage medium and program product
By implementing a cloud desktop patch update method in the cloud desktop system, the problem that patch updates may cause system crashes is solved, the effect of reducing the impact of system stability is achieved, and the real-time and resource balance of patch updates is ensured.
Patent Information
- Application Number
- CN202411778240.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-05
- Publication Date
- 2025-03-21
AI Technical Summary
In cloud desktop systems, patch updates may cause system crashes and other conditions, reducing the security and stability of the system.
Provides a cloud desktop patch update method, which can obtain patch update events, read patch update configurations, obtain the operating system's mirror tag properties, download and install patches, and report the installation results. The method also includes upgrading stability analysis and updating patch configuration based on stability influencing factors.
This method can reduce the impact of patch updates on system stability, ensure the real-time nature of patch updates and the balance of resource consumption, and further reduce the risk of system stability by reporting the correlation between patch upgrade results and cloud desktop stability events.
Smart Images

Figure CN119668650A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of cloud computing technology, and in particular to a cloud desktop patch updating method, device, equipment, storage medium and program product. Background Art
[0002] The cloud desktop system is a virtual desktop infrastructure that can centrally manage and deploy desktop operating systems and applications. In order to ensure system security and stability and expand cloud desktop functions, it is necessary to update patches within the cloud desktop. However, during the patch update process, there may be system crashes, which reduces the security and stability of the system. Summary of the invention
[0003] Based on this, it is necessary to provide a cloud desktop management method, apparatus, computer device, computer-readable storage medium and computer program product that can reduce the impact of patch updates on system stability in response to the above technical problems.
[0004] In a first aspect, the present application provides a cloud desktop patch update method, comprising:
[0005] Obtain a patch update event, and read a patch update configuration based on the patch update event;
[0006] Obtaining the image tag attribute of the current operating system, and obtaining a list of patches to be installed based on the image tag attribute;
[0007] Traversing the patch list, obtaining the patch to be installed and the patch medium download address and patch configuration of the patch to be installed;
[0008] Downloading patch media based on the patch media download address and the patch configuration, and performing patch installation based on the patch media;
[0009] Obtain the installation result of the patch installation, and report the installation result to the cloud desktop management console.
[0010] In one embodiment, the method further comprises:
[0011] Performing an upgrade stability analysis based on the stability influencing factors and the installation results to obtain an analysis result;
[0012] A patch configuration of the patch is updated based on the analysis result.
[0013] In one embodiment, the process of determining the stability influencing factors includes:
[0014] Before obtaining the patch update event, obtaining user characteristics of the cloud desktop user, and determining a grayscale group based on the user characteristics;
[0015] Grayscale upgrade is performed on each patch based on the grayscale group to obtain a grayscale operation state fed back by the grayscale group, and the grayscale operation state is determined as the stability influencing factor.
[0016] In one embodiment, the method further comprises:
[0017] During the process of executing the patch installation, a freeze event and a system crash event are detected, and the freeze event and the system crash event are determined as the stability influencing factors.
[0018] In one embodiment, the method further comprises:
[0019] Before obtaining the patch to be installed and the patch medium download address and patch configuration of the patch to be installed, obtaining a synchronization record of the patch medium;
[0020] The synchronization start and end times, the synchronization status and the synchronization failure cause are determined based on the synchronization record, and the synchronization start and end times, the synchronization status and the synchronization failure cause are determined as the stability influencing factors.
[0021] In one embodiment, downloading the patch medium and performing patch installation based on the patch medium includes:
[0022] Downloading the patch medium through multi-dimensional sliding window current limiting;
[0023] An installation command in the patch configuration is obtained, and based on the installation command, the patch to be installed is installed using the patch medium as an installation parameter.
[0024] In a second aspect, the present application also provides a cloud desktop patch updating device, including:
[0025] A configuration module, used for obtaining a patch update event and reading a patch update configuration based on the patch update event;
[0026] A first acquisition module, used to acquire an image tag attribute of the current operating system, and acquire a patch list to be installed based on the image tag attribute;
[0027] A second acquisition module is used to traverse the patch list to acquire the patch to be installed and the patch medium download address and patch configuration of the patch to be installed;
[0028] A download module, used to download the patch medium based on the patch medium download address and the patch configuration, and perform patch installation based on the patch medium;
[0029] The reporting module is used to obtain the installation result of the patch installation and report the installation result to the cloud desktop management console.
[0030] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0031] Obtain a patch update event, and read a patch update configuration based on the patch update event;
[0032] Obtaining the image tag attribute of the current operating system, and obtaining a list of patches to be installed based on the image tag attribute;
[0033] Traversing the patch list, obtaining the patch to be installed and the patch medium download address and patch configuration of the patch to be installed;
[0034] Downloading patch media based on the patch media download address and the patch configuration, and performing patch installation based on the patch media;
[0035] Obtain the installation result of the patch installation, and report the installation result to the cloud desktop management console.
[0036] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:
[0037] Obtain a patch update event, and read a patch update configuration based on the patch update event;
[0038] Obtaining the image tag attribute of the current operating system, and obtaining a list of patches to be installed based on the image tag attribute;
[0039] Traversing the patch list, obtaining the patch to be installed and the patch medium download address and patch configuration of the patch to be installed;
[0040] Downloading patch media based on the patch media download address and the patch configuration, and performing patch installation based on the patch media;
[0041] Obtain the installation result of the patch installation, and report the installation result to the cloud desktop management console.
[0042] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:
[0043] Obtain a patch update event, and read a patch update configuration based on the patch update event;
[0044] Obtaining the image tag attribute of the current operating system, and obtaining a list of patches to be installed based on the image tag attribute;
[0045] Traversing the patch list, obtaining the patch to be installed and the patch medium download address and patch configuration of the patch to be installed;
[0046] Downloading patch media based on the patch media download address and the patch configuration, and performing patch installation based on the patch media;
[0047] Obtain the installation result of the patch installation, and report the installation result to the cloud desktop management console.
[0048] The cloud desktop patch update method, apparatus, computer device, computer-readable storage medium and computer program product described above can ensure the real-time nature of patch updates and the balance of resource consumption, associate patch upgrade result reporting with cloud desktop stability events, and reduce the impact of patch updates on system stability. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0050] Figure 1 A schematic diagram of a process of updating a cloud desktop patch in one embodiment;
[0051] Figure 2 An interactive schematic diagram of a cloud desktop patch update method in one embodiment;
[0052] Figure 3 A flowchart of a sub-step of a cloud desktop patch update method in one embodiment;
[0053] Figure 4 It is a structural block diagram of a cloud desktop patch updating device in one embodiment;
[0054] Figure 5 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0055] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0056] The cloud desktop system is a virtual desktop infrastructure (VDI) that can centrally manage and deploy desktop operating systems and applications. In order to ensure system security and stability and expand cloud desktop functions, it is necessary to update patches within the cloud desktop. How to systematically update and upgrade cloud desktop patches, reduce operation and maintenance costs and complexity, minimize the impact on users, and ensure system security and stability is a major challenge.
[0057] In order to improve the security of the system, reduce the impact of patch updates on stability and expand cloud desktop functions, reduce operation and maintenance costs and complexity, and ensure real-time patch updates with less system resource usage, the present application provides a cloud desktop patch update method.
[0058] In one embodiment, Figure 1 As shown, a cloud desktop patch update method is provided. This embodiment uses the method applied to the patch update process as an example. It can be understood that the method can also be applied to a server, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. In this embodiment, the method includes the following steps:
[0059] Step 101, obtaining a patch update event, and reading a patch update configuration based on the patch update event;
[0060] Step 102, obtaining the image tag attribute of the current operating system, and obtaining a patch list to be installed based on the image tag attribute;
[0061] Step 103, traverse the patch list to obtain the patch to be installed and the patch medium download address and patch configuration of the patch to be installed;
[0062] Step 104, downloading patch media based on the patch media download address and the patch configuration, and performing patch installation based on the patch media;
[0063] Step 105, obtaining the installation result of the patch installation, and reporting the installation result to the cloud desktop management station.
[0064] Among them, the patch update event refers to the event triggered when the cloud desktop receives the patch update event signaling. The patch update configuration refers to the configuration information related to the patch update, such as the update policy, time interval, etc. The image tag attribute refers to the tag attribute of the operating system installation image, which is used to identify different versions or types of operating systems.
[0065] The process of obtaining the patch to be installed includes: the patch update process traverses the patch list, compares the patch number and patch version installed locally, and when the corresponding patch is not installed locally, or the version of the locally installed patch is lower than the patch version pushed by the cloud desktop management console, specifies the patch number and the locally installed patch version, and obtains the download address and patch configuration of the patch media from the cloud desktop management console. The installation result includes the result information of the patch installation, such as success, failure, or error status. It should be noted that there are multiple patches in the patch list, and the patch media of all patches in the patch list exist in the resource pool, but not all patches need to be installed.
[0066] The patch installation process includes: the patch update process executes the patch installation according to the installation command in the patch configuration and takes the patch medium as a parameter.
[0067] Exemplarily, in this embodiment, a patch refers to an operation or process of repairing, updating or improving software, a program or a system, a patch configuration refers to a description of the properties of the patch, and a patch medium refers to files such as a patch script or installation package.
[0068] In the above cloud desktop patch update method, patch installation for different types of hardware and operating systems is supported based on image tag attributes. At the same time, a push-pull combination is adopted. The patch update process can obtain patch update configuration from the cloud desktop management console, and the cloud desktop management console can also push patch update events to the patch update process to ensure the real-time nature of patch updates and the balance of resource consumption. The patch upgrade result report is associated with the cloud desktop stability event to reduce the impact of patch updates on system stability.
[0069] In an exemplary embodiment, the method further comprises:
[0070] An upgrade stability analysis is performed based on the stability influencing factors and the installation result to obtain an analysis result; and a patch configuration of the patch is updated based on the analysis result.
[0071] The patch update process asynchronously reports the patch installation results to the cloud desktop management station. The cloud desktop management station counts the patch installation results, associates the patch installation results and some stability influencing factors during the installation process with the stability events of the cloud desktop, and then analyzes the impact of patch updates on system stability.
[0072] In an exemplary embodiment, see Figure 2 The patch update method provided in this embodiment also includes patch construction, patch configuration and patch medium distribution:
[0073] Specifically, the steps of patch construction include:
[0074] The patch packaging process defines the patch name, patch code, and patch version according to the patch to be pushed, and configures the operating system image type, operating system version, operating system bit number, account permission type, GPU type, execution type, installation command parameters, priority, and update content description. The patch packaging process calculates the hash value of the patch installation package file based on a specific hash algorithm, merges the patch tag information, and forms a patch configuration.
[0075] The administrator uploads the patch installation package file to the central object storage from the cloud desktop management console, and uploads the patch configuration. The cloud desktop management console records the association between the patch installation package file and the patch configuration.
[0076] The steps for patch media distribution include:
[0077] The cloud desktop management console records the synchronization of patch installation package files from the central object storage to the resource pool object storage node. Implement scheduled tasks. Scheduled tasks synchronize patch installation package files from the central object storage to the resource pool object storage based on the patch priority, and update the synchronization start and end time, synchronization status, and synchronization failure reasons.
[0078] Resource pools are equivalent to physically integrating resources in a certain area. This is because different users and tenants of cloud desktops may have different geographical locations, and users who are far away from the central object may experience greater delays when using it. Therefore, patch media can be distributed to resource pools in different regions. When the patch update process needs to be updated, the nearest resource pool can be selected for download. Media distribution can maintain the status of the patch file synchronization resource pool. The cloud desktop downloads nearby to increase the download speed, and each resource pool shares the traffic to achieve decentralization.
[0079] Furthermore, during the patch distribution process, stability influencing factors may also be obtained. In an exemplary embodiment, the method further includes:
[0080] Before obtaining the patch to be installed and the patch medium download address and patch configuration of the patch to be installed, obtain the synchronization record of the patch medium; determine the synchronization start and end times, synchronization status and synchronization failure reasons based on the synchronization record, and determine the synchronization start and end times, the synchronization status and the synchronization failure reasons as the stability influencing factors.
[0081] In an exemplary embodiment, the process of determining the stability influencing factors further includes:
[0082] Before obtaining the patch update event, user characteristics of the cloud desktop user are obtained, and a grayscale group is determined based on the user characteristics; each patch is grayscale upgraded based on the grayscale group, and the grayscale running state fed back by the grayscale group is obtained, and the grayscale running state is determined as the stability influencing factor.
[0083] Specifically, the cloud desktop management station sets up grayscale groups according to the user characteristics of the cloud desktop. The user characteristics may include the cloud desktop ID, the user ID, the desktop pool ID, the tenant ID, and the resource pool ID. The patch is associated with the grayscale group, and the patch update event can be pushed according to the grayscale group to achieve grayscale upgrade. Grayscale upgrade can achieve functionality and compatibility testing of patches and collect feedback on the running status of patches.
[0084] In an exemplary embodiment, before obtaining the patch update event, the process also includes: an administrator pushes an update event to the cloud desktop from the cloud desktop management console via signaling, and a patch update process in the cloud desktop receives the patch update event and executes a patch update.
[0085] Therefore, see also Figure 2 , the patch update process and the cloud desktop management station form a push-pull relationship. Push means that the cloud desktop management station actively pushes patches and updates to the updated cloud desktop without user intervention, which can ensure real-time and timeliness. For example: when the patch update process receives the patch update event signal, the patch update configuration is read from the cloud desktop management station. Pull update means that the cloud desktop actively pulls patches and updates from the cloud desktop management station, and can also perform update operations according to its own requirements. For example: when the patch update process enters the offline state, the patch update configuration is actively read from the cloud desktop management station. This method can flexibly control the update time and resource consumption. The push-pull combination uses both push and pull methods in the patch update process to ensure the balance between the real-time and resource consumption of the patch. Push updates are for timeliness, while pull updates are for better control of resource consumption and the update process.
[0086] In an exemplary embodiment, downloading the patch medium and performing patch installation based on the patch medium includes:
[0087] The patch medium is downloaded through multi-dimensional sliding window current limiting; the installation command in the patch configuration is obtained, and based on the installation command, the patch medium is used as an installation parameter to install the patch to be installed.
[0088] When the patch update process obtains the download address of the patch media from the cloud desktop management console, the cloud desktop management console implements sliding window flow control, that is, only Y downloads are allowed within the time window of X seconds before the current time. The sliding window flow control can be implemented in multiple dimensions such as tenant dimension and resource pool dimension.
[0089] The patch update process downloads the patch media from the resource pool object storage, calculates the hash value of the patch media according to the hash algorithm in the patch configuration, and compares it with the hash value in the patch configuration; the purpose of comparing the hash values is to prevent the installation file from being tampered with and protect the security of the system.
[0090] In an exemplary embodiment, the method further comprises:
[0091] During the process of executing the patch installation, a freeze event and a system crash event are detected, and the freeze event and the system crash event are determined as the stability influencing factors.
[0092] In summary, the embodiments of the present application have the advantages of supporting patch installation for different types of hardware and operating systems; maintaining the patch file synchronization resource pool status, allowing the cloud desktop to download nearby to increase download speed, and each resource pool to share traffic to achieve decentralization; combining push-pull and current limiting protection to ensure the real-time nature of patch updates and the balance of resource consumption; and associating patch upgrade result reporting with cloud desktop stability events to reduce the impact of patch updates on system stability.
[0093] To explain the cloud desktop patch update method in detail, the following is a most detailed embodiment:
[0094] See also Figure 3 , this embodiment is specifically divided into the following steps:
[0095] Patch building and patch configuration: The patch packaging process defines the patch name, patch code, and patch version according to the patch to be pushed, and configures the operating system image type, operating system version, operating system bit number, account permission type, GPU type, execution type, installation command parameters, priority, and update content description. The patch packaging process calculates the hash value of the patch installation package file based on a specific hash algorithm, merges the patch tag information, and forms the patch configuration.
[0096] The administrator uploads the patch installation package file to the central object storage from the cloud desktop management console, and uploads the patch configuration. The cloud desktop management console records the association between the patch installation package file and the patch configuration.
[0097] Patch media distribution: The cloud desktop management console records the synchronization of patch installation package files from the central object storage to the resource pool object storage node. Implement scheduled tasks. Scheduled tasks synchronize patch installation package files from the central object storage to the resource pool object storage based on the patch priority, and update the synchronization start and end time, synchronization status, and synchronization failure reasons.
[0098] Grayscale upgrade: The cloud desktop management console sets grayscale groups based on the user characteristics of the cloud desktop. User characteristics may include cloud desktop ID, user ID, desktop pool ID, tenant ID, and resource pool ID. Patches are associated with grayscale groups, and patch update events can be pushed according to grayscale groups to achieve grayscale upgrades. Grayscale upgrades can implement functionality and compatibility testing of patches and collect feedback on patch operation status.
[0099] Push patch update events: The administrator pushes update events to the cloud desktop through signaling from the cloud desktop management console. The patch update process in the cloud desktop receives the patch update event and executes the patch update.
[0100] Get patch update configuration: When the patch update process receives a patch update event signal or enters an offline state, it actively reads the patch update configuration from the cloud desktop management console.
[0101] The patch update process reads the current image tag attribute from the operating system and obtains the installable patch list based on the image tag attribute. The patch update process traverses the patch list and compares the patch number and patch version installed locally. When the corresponding patch is not installed locally or the version of the locally installed patch is lower than the patch version pushed by the cloud desktop management console, the patch number and the locally installed patch version are specified to obtain the download address of the patch media and the patch configuration from the cloud desktop management console.
[0102] Download patch media: When the patch update process obtains the download address of the patch media from the cloud desktop management console, the cloud desktop management console implements sliding window flow control, that is, within the time window of X seconds from the current time, only Y downloads are allowed. The sliding window flow control can be applied to multiple dimensions such as tenant dimension and resource pool dimension. The patch update process downloads the patch media from the resource pool object storage, calculates the hash value of the patch media according to the hash algorithm in the patch configuration, and compares it with the hash value in the patch configuration.
[0103] Patch installation: The patch update process executes patch installation according to the installation command in the patch configuration, taking the patch media as a parameter.
[0104] Stability analysis: The patch update process asynchronously reports the patch installation results to the cloud desktop management console. The cloud desktop management console counts the patch installation results, associates the patch installation results with the cloud desktop stability events, and analyzes the impact of patch updates on system stability.
[0105] The patch update process reports the relevant patch upgrade events to the big data module. At the same time, the cloud desktop agent reports the system stability events to the big data module. The big data module converts the events into entity tables according to the bidirectionality of the flow table, and then aggregates the event types into stability reports through Map-Filter-Reduce for cloud administrators to analyze the upgrade stability. Specific mathematical methods can be used for event correlation analysis. At the same time, the collection and alarm frequencies can be set in the alarm module, and alarms can be issued for specific dimensions and indicators. According to the stability reports and alarm events, the cloud administrator rebuilds, configures, and pushes patches on the cloud desktop management console.
[0106] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0107] Based on the same inventive concept, the embodiment of the present application also provides a cloud desktop patch updating device for implementing the cloud desktop patch updating method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more cloud desktop patch updating device embodiments provided below can refer to the limitations of the cloud desktop patch updating method above, and will not be repeated here.
[0108] In an exemplary embodiment, Figure 4 As shown, a cloud desktop patch updating device 400 is provided, including: a configuration module 401, a first acquisition module 402, a second acquisition module 403, a download module 404 and a reporting module 405, wherein:
[0109] Configuration module 401, used for obtaining patch update events, and reading patch update configuration based on the patch update events;
[0110] A first acquisition module 402 is used to acquire an image tag attribute of the current operating system, and acquire a patch list to be installed based on the image tag attribute;
[0111] The second acquisition module 403 is used to traverse the patch list to acquire the patch to be installed and the patch medium download address and patch configuration of the patch to be installed;
[0112] A download module 404, configured to download the patch medium based on the patch medium download address and the patch configuration, and perform patch installation based on the patch medium;
[0113] The reporting module 405 is used to obtain the installation result of the patch installation and report the installation result to the cloud desktop management station.
[0114] The cloud desktop patch updating device 400 further includes:
[0115] An analysis module, used to perform an upgrade stability analysis based on the stability influencing factors and the installation result to obtain an analysis result;
[0116] A patch configuration of the patch is updated based on the analysis result.
[0117] The analysis module is also used to:
[0118] Before obtaining the patch update event, obtaining user characteristics of the cloud desktop user, and determining a grayscale group based on the user characteristics;
[0119] Grayscale upgrade is performed on each patch based on the grayscale group to obtain a grayscale operation state fed back by the grayscale group, and the grayscale operation state is determined as the stability influencing factor.
[0120] The analysis module is also used to:
[0121] During the process of executing the patch installation, a freeze event and a system crash event are detected, and the freeze event and the system crash event are determined as the stability influencing factors.
[0122] The analysis module is also used to:
[0123] Before obtaining the patch to be installed and the patch medium download address and patch configuration of the patch to be installed, obtaining a synchronization record of the patch medium;
[0124] The synchronization start and end times, the synchronization status and the synchronization failure cause are determined based on the synchronization record, and the synchronization start and end times, the synchronization status and the synchronization failure cause are determined as the stability influencing factors.
[0125] Download module 404 is also used to:
[0126] Downloading the patch medium through multi-dimensional sliding window current limiting;
[0127] An installation command in the patch configuration is obtained, and based on the installation command, the patch to be installed is installed using the patch medium as an installation parameter.
[0128] Each module in the above-mentioned cloud desktop patch updating device can be implemented in whole or in part by software, hardware and their combination. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0129] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 5 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (Near Field Communication, NFC) or other technologies. When the computer program is executed by the processor, a cloud desktop patch update method is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0130] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0131] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0132] Obtain a patch update event, and read a patch update configuration based on the patch update event;
[0133] Obtaining the image tag attribute of the current operating system, and obtaining a list of patches to be installed based on the image tag attribute;
[0134] Traversing the patch list, obtaining the patch to be installed and the patch medium download address and patch configuration of the patch to be installed;
[0135] Downloading patch media based on the patch media download address and the patch configuration, and performing patch installation based on the patch media;
[0136] Obtain the installation result of the patch installation, and report the installation result to the cloud desktop management console.
[0137] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0138] Obtain a patch update event, and read a patch update configuration based on the patch update event;
[0139] Obtaining the image tag attribute of the current operating system, and obtaining a list of patches to be installed based on the image tag attribute;
[0140] Traversing the patch list, obtaining the patch to be installed and the patch medium download address and patch configuration of the patch to be installed;
[0141] Downloading patch media based on the patch media download address and the patch configuration, and performing patch installation based on the patch media;
[0142] Obtain the installation result of the patch installation, and report the installation result to the cloud desktop management console.
[0143] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0144] Obtain a patch update event, and read a patch update configuration based on the patch update event;
[0145] Obtaining the image tag attribute of the current operating system, and obtaining a list of patches to be installed based on the image tag attribute;
[0146] Traversing the patch list, obtaining the patch to be installed and the patch medium download address and patch configuration of the patch to be installed;
[0147] Downloading patch media based on the patch media download address and the patch configuration, and performing patch installation based on the patch media;
[0148] Obtain the installation result of the patch installation, and report the installation result to the cloud desktop management console.
[0149] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0150] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0151] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0152] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A cloud desktop patch updating method, characterized in that: The method comprises: Obtain a patch update event, and read a patch update configuration based on the patch update event; Obtaining the image tag attribute of the current operating system, and obtaining a list of patches to be installed based on the image tag attribute; Traversing the patch list, obtaining the patch to be installed and the patch medium download address and patch configuration of the patch to be installed; Downloading patch media based on the patch media download address and the patch configuration, and performing patch installation based on the patch media; Obtain the installation result of the patch installation, and report the installation result to the cloud desktop management console.
2. The method according to claim 1, characterized in that: The method further comprises: Performing an upgrade stability analysis based on the stability influencing factors and the installation results to obtain an analysis result; A patch configuration of the patch is updated based on the analysis result.
3. The method according to claim 2, characterized in that The process of determining the stability influencing factors includes: Before obtaining the patch update event, obtaining user characteristics of the cloud desktop user, and determining a grayscale group based on the user characteristics; Grayscale upgrade is performed on each patch based on the grayscale group to obtain a grayscale operation state fed back by the grayscale group, and the grayscale operation state is determined as the stability influencing factor.
4. The method according to claim 3, characterized in that The method further comprises: During the process of executing the patch installation, a freeze event and a system crash event are detected, and the freeze event and the system crash event are determined as the stability influencing factors.
5. The method according to claim 3, characterized in that: The method further comprises: Before obtaining the patch to be installed and the patch medium download address and patch configuration of the patch to be installed, obtaining a synchronization record of the patch medium; The synchronization start and end times, the synchronization status and the synchronization failure cause are determined based on the synchronization record, and the synchronization start and end times, the synchronization status and the synchronization failure cause are determined as the stability influencing factors.
6. The method according to claim 1, characterized in that The downloading of the patch medium and performing patch installation based on the patch medium includes: Downloading the patch medium through multi-dimensional sliding window current limiting; An installation command in the patch configuration is obtained, and based on the installation command, the patch to be installed is installed using the patch medium as an installation parameter.
7. A cloud desktop patch updating device, characterized in that: The device comprises: A configuration module, used for obtaining a patch update event and reading a patch update configuration based on the patch update event; A first acquisition module, used to acquire an image tag attribute of the current operating system, and acquire a patch list to be installed based on the image tag attribute; A second acquisition module is used to traverse the patch list to acquire the patch to be installed and the patch medium download address and patch configuration of the patch to be installed; A download module, used to download the patch medium based on the patch medium download address and the patch configuration, and perform patch installation based on the patch medium; The reporting module is used to obtain the installation result of the patch installation and report the installation result to the cloud desktop management console.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.