Calculation instance processing method and device, electronic equipment and storage medium

By establishing the association relationship between instance specifications and display drivers, dynamically configuring the target display drivers, solving the problem of insufficient flexibility in computing instance display driver configuration scheme, realizing the flexibility of instance specification changes and the reduction of mirror counts.

CN120406971APending Publication Date: 2025-08-01HANGZHOU ALICLOUD FEITIAN INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410110600.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-01-25
Publication Date
2025-08-01

AI Technical Summary

Technical Problem

The existing computing instance display driver configuration scheme cannot meet the needs of frequent changes in instance specifications, resulting in insufficient flexibility and the need to change the computing instance image.

Method used

By establishing an association between the instance specification and the display driver, determine the target instance specification based on the processing request, and configure a matching target display driver to avoid changing the computing instance image.

Benefits of technology

It realizes flexible configuration when instance specification changes, reduces the number of calculated instance mirrors, and avoids the inability to flexibly change problems caused by the binding of mirrors and specifications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120406971A_ABST
    Figure CN120406971A_ABST
Patent Text Reader

Abstract

The invention provides a computing instance processing method and device, electronic equipment and a storage medium, and relates to the technical field of computation.The method comprises the steps that a processing request for a computing instance is obtained, and the target instance specification of the computing instance is determined according to the processing request; determining a target display drive program matched with the target instance specification according to an association relationship between the instance specification and the display drive program; and based on the target display drive program, configuring the display drive program of the calculation instance. In the embodiment, when the instance specification is changed, the display driving program matched with the instance specification can be flexibly configured, the calculation instance mirror image does not need to be changed, and the problem that the instance specification cannot be flexibly changed due to the binding relation between the calculation instance mirror image and the instance specification is avoided. In addition, since there is no need to bind a matched calculation instance mirror image for each instance specification, the number of provided calculation instance mirror images can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of cloud computing technology, and particularly to a method, apparatus, electronic device, and storage medium for processing computing instances. Background Art

[0002] With the rapid development of cloud computing technology, the computing power of cloud clusters has been further improved. Cloud computing can directly provide various services, for example, computing services - cloud desktops and cloud applications. The computing power of end users is gradually transferred to the cloud, and it is necessary to use computing instances in the cloud to provide computing services. Different instance specifications of computing instances require different display drivers for driving.

[0003] Currently, the general configuration scheme of display drivers is to provide multiple computing instance images carrying various display drivers, and to limit a certain type of computing instance image to be used only on a certain type of instance specification. Therefore, different computing instance images need to be provided for different instance specifications. However, in cloud application and cloud desktop scenarios, there are requirements for frequent switching and configuration changes of instance specifications. For example, when the computing power requirement is high, a stronger instance specification is used, and when the computing power requirement is low, a weaker instance specification is used to reduce costs. When changing the instance specification in the current display driver configuration scheme of computing instances, it is necessary to change the computing instance image. This configuration method is not flexible enough to meet the requirements of frequent changes in instance specifications. Summary of the Invention

[0004] Embodiments of this application provide a method, apparatus, electronic device, and storage medium for processing computing instances to solve the problem that the display driver configuration scheme of computing instances is not flexible enough to meet the requirements of frequent changes in instance specifications.

[0005] In a first aspect, embodiments of this application provide a method for processing a computing instance. The method includes: obtaining a processing request for the computing instance, and determining a target instance specification of the computing instance according to the processing request; determining a target display driver that matches the target instance specification according to the association relationship between the instance specification and the display driver; and configuring the display driver of the computing instance based on the target display driver.

[0006] In a second aspect, embodiments of this application provide a device for processing a computing instance. The device includes: an obtaining module, configured to obtain a processing request for the computing instance, and determine a target instance specification of the computing instance according to the processing request; a determining module, configured to determine a target display driver that matches the target instance specification according to the association relationship between the instance specification and the display driver; and a configuration module, configured to configure the display driver of the computing instance based on the target display driver.

[0007] In a third aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored on the memory. When the processor executes the computer program, the method according to any one of the above is implemented.

[0008] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the method according to any one of the above is implemented.

[0009] Compared with the prior art, the present application has the following advantages:

[0010] The present application provides a method, apparatus, electronic device, and storage medium for processing computing instances. First, a processing request for a computing instance is obtained, and a target instance specification of the computing instance is determined according to the processing request. Then, according to the association relationship between the instance specification and the display driver, a target display driver matching the target instance specification is determined. Finally, based on the target display driver, the display driver of the computing instance is configured. In this embodiment, an association relationship between the instance specification and the display driver is established. According to the association relationship, a target display driver matching the target instance specification of the computing instance is determined, and the display driver of the computing instance is configured. In this way, when the instance specification changes, a display driver matching the instance specification can be flexibly configured without changing the computing instance image, avoiding the problem that the instance specification cannot be flexibly changed due to the binding relationship between the computing instance image and the instance specification. Moreover, since there is no need to bind a matching computing instance image for each instance specification, the number of provided computing instance images can be reduced.

[0011] The above description is only an overview of the technical solution of the present application. In order to be able to understand the technical means of the present application more clearly, it can be implemented according to the content of the description. And in order to make the above and other purposes, features, and advantages of the present application more obvious and understandable, the specific embodiments of the present application are specifically described below. Description of the Drawings

[0012] In the drawings, unless otherwise specified, the same reference numerals throughout the drawings represent the same or similar components or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments according to the present application and should not be regarded as limiting the scope of the present application.

[0013] Figure 1 It is a schematic diagram of an application scenario of the method for processing a computing instance provided by the present application.

[0014] Figure 2 It is a schematic diagram of an application scenario of the method for processing a computing instance provided by the present application.

[0015] Figure 3 Flowchart of the processing method of a calculation example according to an embodiment of the present application.

[0016] Figure 4 Flowchart of the processing method of a calculation example according to an embodiment of the present application.

[0017] Figure 5 Flowchart of the processing method of a calculation example according to an embodiment of the present application.

[0018] Figure 6 Flowchart of the processing method of a calculation example according to an embodiment of the present application.

[0019] Figure 7 Block diagram of the structure of a processing device for a calculation example according to an embodiment of the present application.

[0020] Figure 8 Block diagram of an electronic device for implementing the embodiments of the present application. Detailed implementation manners

[0021] In the following, only some exemplary embodiments are simply described. As those skilled in the art can recognize, the described embodiments can be modified in various different ways without departing from the concept or scope of the present application. Therefore, the drawings and the description are considered to be exemplary in nature and not restrictive.

[0022] To facilitate the understanding of the technical solutions of the embodiments of the present application, the related technologies of the embodiments of the present application are described below. The following related technologies can be arbitrarily combined with the technical solutions of the embodiments of the present application as optional solutions, and they all fall within the protection scope of the embodiments of the present application.

[0023] 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 for analysis, stored data, displayed data, etc.) involved in the present application are all information and data authorized by the user or fully authorized by all parties. And the collection, use, and processing of the relevant data need to comply with the relevant laws, regulations, and standards of the relevant countries and regions, and corresponding operation entrances are provided for the user to choose to authorize or refuse.

[0024] Figure 1 Schematic diagram of an application scenario of the processing method of a calculation example provided by the present application. In this embodiment, the calculation example can be a virtual server applied to cloud computing, and supports users to select different computing capabilities, memory sizes, hard disk capacities, etc. according to their needs. Figure 1 The shown management and control represents a virtual machine for managing and controlling the calculation example, which can be deployed on a server in the cloud. Figure 1The virtualization shown represents virtualization software that runs in a physical machine. The virtualization software is the underlying logic of the computing instance and is used to virtualize a virtual server as a computing instance. Figure 1 The instance shown represents a computing instance. In this embodiment, the instance and virtualization can be deployed in the same server, and the management and control, the instance, and the virtualization can be deployed in the same server or in different servers.

[0025] Figure 1 The application scenario shown is the process of configuring a display driver in the case of a configuration change of a computing instance. First, the user terminal sends a configuration change request, that is, a configuration change request, to the management and control for changing the instance specification of the computing instance. Among them, the instance specification includes a set of parameters of the computing resources and performance characteristics owned by the instance, including: CPU, GPU, memory, storage, bandwidth, etc. The management and control sends the change request to the virtualization and sends a power-on instruction to the virtualization. The virtualization starts the computing instance. The management and control obtains the instance specification of the computing instance after the configuration change according to the change request, that is, the target instance specification. The management and control determines the version information of the target display driver that matches the target instance specification according to the pre-configured association relationship between the instance specification and the display driver. The management and control sends an instruction to the instance to obtain the current display driver for obtaining the version information of the current display driver. The instance reports the display driver to the management and control, that is, reports the version information of the current display driver. The version information of the target display driver and the version information of the current display driver are compared. According to the comparison result, it is known that the target display driver and the current display driver do not match, that is, they are not the same version, so the display driver is unreasonable. The management and control sends an instruction to the instance to uninstall the driver. The instance uninstalls the current display driver and sends a notification message of successful uninstallation to the management and control. The management and control sends a restart instruction to the virtualization, and the virtualization restarts the computing instance. The management and control sends an instruction to install a new driver to the computing instance. The computing instance obtains the driver download address from the management and control, downloads the target display driver according to the driver download address and installs it, and sends a notification message of successful driver installation to the management and control. The management and control sends a restart instruction to the virtualization, and the virtualization restarts the computing instance. Finally, the management and control sends a notification message of successful configuration change to the user terminal, and the configuration change of the instance specification of the computing instance is completed.

[0026] Figure 2 This is a schematic diagram of an application scenario of the processing method of the computing instance provided by this application. Figure 2 The deployment methods of the interaction entities in Figure 1 are the same and will not be elaborated here. Figure 2The application scenario shown is the process of configuring a display driver in the case of software upgrade using a cloud desktop or cloud application with a computing instance. Using a cloud desktop or cloud application with a computing instance means that the cloud desktop or cloud application uses the computing power provided by the computing instance to implement the corresponding service functions. Among them, a cloud desktop, also known as a virtual desktop or remote desktop, is a convenient and secure cloud-based virtual desktop service provided by a cloud computing service provider. It supports the rapid and convenient creation, deployment, unified management, and operation and maintenance of a desktop environment. There is no need for upfront investment in traditional hardware, and a secure, high-performance, and low-cost desktop office system can be quickly built. A cloud application changes the usage mode of traditional software from "local installation and local operation" to "use as needed". It is a new type of application that connects to and controls a remote server cluster through the Internet or local area network to complete business logic or computing tasks. Such as Figure 2 As shown, first, the user terminal sends a software upgrade request to the management and control. The management and control sends the software upgrade request to the instance. The instance performs the software upgrade. After the upgrade is completed, it sends a notification message indicating the completion of the software upgrade to the management and control. The management and control sends a restart instruction to the virtualization, and the virtualization restarts the instance. The management and control obtains the instance specification of the computing instance after the software upgrade according to the software upgrade request, that is, the target instance specification. The management and control determines the version information of the target display driver that matches the target instance specification according to the pre-configured association relationship between the instance specification and the display driver. The management and control sends an instruction to the instance to obtain the current display driver, which is used to obtain the version information of the current display driver program. The instance reports the display driver to the management and control, that is, reports the version information of the current display driver program. The version information of the target display driver program and the version information of the current display driver program are compared. According to the comparison result, it is known that the target display driver program and the current display driver program do not match, that is, they are not of the same version, so the display driver can be upgraded. The management and control sends an instruction to the instance to uninstall the driver. The instance uninstalls the current display driver program and sends a notification message indicating the successful uninstallation to the management and control. The management and control sends a restart instruction to the virtualization, and the virtualization restarts the instance. The management and control sends an instruction to the instance to install a new driver. The instance obtains the driver download address from the management and control, downloads the target display driver program according to the driver download address and installs it, and sends a notification message indicating the completion of the driver installation to the management and control. The management and control sends a restart instruction to the virtualization, and the virtualization restarts the computing instance. Finally, the management and control sends a notification message indicating the completion of the upgrade to the user terminal, and the display driver program upgrade is completed.

[0027] In the above embodiments, an association relationship between instance specifications and display drivers is established. According to the association relationship, a target display driver that matches the target instance specification of the computing instance is determined, and the display driver of the computing instance is configured. In this way, when the instance specification changes (for example, the instance specification change caused by configuration change or software upgrade), a display driver that matches the instance specification can be flexibly configured without changing the computing instance image, without interrupting the user's business, and avoiding the problem that the instance specification cannot be flexibly changed due to the binding relationship between the computing instance image and the instance specification. Moreover, since there is no need to bind a matching computing instance image for each instance specification, the number of provided computing instance images can be reduced.

[0028] An embodiment of the present application provides a processing method for a computing instance. The method in this embodiment can be applied to a computing device, and the computing device may include: a server, etc. As Figure 3 shown in the flowchart of the processing method for a computing instance according to an embodiment of the present application, it includes:

[0029] Step S301, obtain a processing request for the computing instance, and determine the target instance specification of the computing instance according to the processing request.

[0030] Among them, the computing instance can be a virtual server applied to cloud computing, supporting users to select different computing capabilities, memory sizes, hard disk capacities, etc. according to needs. The method for obtaining a processing request for the computing instance can include various methods, for example, receiving a processing request sent by a user terminal.

[0031] The processing request may include any one of the following: an instance creation request, a configuration change request for the computing instance, or an upgrade request for the desktop or application using the computing instance.

[0032] When the processing request is different, the method for determining the target instance specification of the computing instance is also different.

[0033] Step S302, according to the association relationship between the instance specification and the display driver, determine the target display driver that matches the target instance specification.

[0034] A variety of association relationships between instance specifications and display drivers are preset, which can be configured according to specific needs. For example, a mapping relationship is established between the instance specification and the version information of the display driver. According to the instance specification and the mapping relationship, the version information of the target display driver that matches the target instance specification can be queried.

[0035] Among them, the instance specification includes a parameter set of the computing resources and performance characteristics owned by the instance, including: CPU, GPU, memory, storage, bandwidth, etc.

[0036] Step S303: Configure the display driver of the computing instance based on the target display driver.

[0037] Among them, configuring the display driver of the computing instance may specifically include installing the display driver of the computing instance or changing the display driver of the computing instance, etc.

[0038] In this embodiment, since there is no need to bind a matching computing instance image for each instance specification, only one computing instance image can be provided, which can meet the selection of a matching display driver for different instance specifications, thereby reducing the number of provided computing instance images.

[0039] The method for processing a computing instance provided by an embodiment of the present application is as follows: First, obtain a processing request for the computing instance, and determine the target instance specification of the computing instance according to the processing request; then, determine the target display driver that matches the target instance specification according to the association relationship between the instance specification and the display driver; finally, configure the display driver of the computing instance based on the target display driver. In this embodiment, an association relationship between the instance specification and the display driver is established. According to the association relationship, the target display driver that matches the target instance specification of the computing instance is determined, and the display driver of the computing instance is configured. In this way, when the instance specification changes, the display driver that matches the instance specification can be flexibly configured without changing the computing instance image, avoiding the problem that the instance specification cannot be flexibly changed due to the binding relationship between the computing instance image and the instance specification. Moreover, since there is no need to bind a matching computing instance image for each instance specification, the number of provided computing instance images can be reduced.

[0040] The following introduces the specific implementation process in the above steps through multiple specific implementation methods:

[0041] In one implementation, the processing request includes an instance creation request; in step S301, determining the target instance specification of the computing instance according to the processing request includes: creating a computing instance according to the instance creation request, and obtaining the instance specification of the computing instance as the target instance specification; configuring the display driver of the computing instance based on the target display driver includes: configuring the target display driver as the display driver of the computing instance.

[0042] In practical applications, if the processing request is an instance creation request, the instance creation request includes the instance specification of the computing instance to be created, that is, the target instance specification. According to the pre-configured association relationship between the instance specification and the display driver, determine the target display driver that matches the target instance specification, and install the target display driver as the display driver of the computing instance.

[0043] In one implementation, processing a request includes calculating a configuration change request for a computing instance; determining a target instance specification for the computing instance according to the processing request, including: obtaining the instance specification after the configuration change of the computing instance according to the configuration change request as the target instance specification.

[0044] In practical applications, if the processing request is a configuration change request, parse the configuration change request, extract the instance specification after the configuration change as the target instance specification. According to the pre-configured association relationship between the instance specification and the display driver, determine the target display driver that matches the target instance specification. If the current display driver (i.e., the display driver before the configuration change) does not match the target display driver, or the running state of the current display driver is abnormal, then uninstall the current display driver and install the target display driver.

[0045] In one implementation, processing a request includes an upgrade request for a cloud desktop or cloud application using a computing instance; determining a target instance specification for the computing instance according to the processing request, including: obtaining the instance specification of the computing instance after the cloud desktop or cloud application is upgraded according to the upgrade request as the target instance specification.

[0046] Among them, using a cloud desktop or cloud application of a computing instance means that the cloud desktop or cloud application uses the computing power provided by the computing instance to implement the corresponding service functions. Among them, a cloud desktop, also known as a virtual desktop or a remote desktop, is a convenient and secure cloud-based virtual desktop service provided by a cloud computing service provider. It supports the rapid and convenient creation, deployment, unified management, and operation and maintenance of the desktop environment. There is no need for upfront investment in traditional hardware, and a secure, high-performance, and low-cost desktop office system can be quickly built. A cloud application is a new type of application that changes the usage method of traditional software from "local installation and local operation" to "use as needed", and completes business logic or computing tasks by connecting to and controlling a remote server cluster through the Internet or a local area network. When upgrading software using a cloud desktop or cloud application of a computing instance, the display driver may need to be upgraded synchronously.

[0047] If the processing request is an upgrade request for a cloud desktop or cloud application using a computing instance, parse the upgrade request, extract the instance specification after the upgrade as the target instance specification. According to the pre-configured association relationship between the instance specification and the display driver, determine the target display driver that matches the target instance specification. If the current display driver (i.e., the display driver before the upgrade) does not match the target display driver, or the running state of the current display driver is abnormal, then uninstall the current display driver and install the target display driver.

[0048] In one implementation, in step S303, the display driver of the computing instance is configured based on the target display driver, including: if the current display driver does not match the target display driver, or the running state of the current display driver is abnormal, then uninstall the current display driver and install the target display driver.

[0049] In practical applications, if the current display driver does not match the target display driver, or the running state of the current display driver is abnormal, then change the current display driver to the target display driver, that is, uninstall the current display driver and install the target display driver.

[0050] In one implementation, the abnormal running state of the current display driver includes at least one of the following: the current display driver fails to obtain a license; the operating system does not correctly load the current display driver.

[0051] In practical applications, if the current display driver fails to obtain a license, it cannot normally drive the display components of cloud applications or cloud desktops for normal display, which is a case of abnormal running state. If the operating system does not correctly load the current display driver, the current display driver cannot normally drive the display components of cloud applications or cloud desktops for normal display, which is another case of abnormal running state. The abnormal running state of the display driver can also include various situations, which are not limited in this application.

[0052] In one implementation, the processing method of the computing instance further includes: respectively obtaining the version information corresponding to the current display driver and the target display driver; comparing the version information corresponding to the current display driver and the target display driver, and determining whether the current display driver matches the target display driver according to the comparison result.

[0053] Optionally, compare the version information of the target display driver with the version information of the current display driver. According to the comparison result, it is known that the target display driver and the current display driver do not match, that is, they are not of the same version. Then uninstall the current display driver and install the target display driver.

[0054] The embodiments of the present application provide a processing method for a computing instance. The method in this embodiment can be applied to a computing device, and the computing device may include: a server, etc. As Figure 4 The flowchart of the processing method for a computing instance according to an embodiment of the present application is shown, including:

[0055] Step S401: Obtain an instance creation request for a computing instance. According to the instance creation request, create a computing instance, and obtain the instance specification of the computing instance as the target instance specification.

[0056] Step S402: Determine a target display driver that matches the target instance specification according to the association relationship between the instance specification and the display driver.

[0057] Step S403: Configure the target display driver as the display driver of the computing instance.

[0058] In this embodiment, an association relationship between the instance specification and the display driver is established. According to the association relationship, a target display driver that matches the target instance specification of the computing instance is determined, and the target display driver is configured as the display driver of the computing instance. In this way, the display driver that matches the instance specification can be flexibly configured. Moreover, since it is no longer necessary to bind a matching computing instance image for each instance specification, the number of provided computing instance images can be reduced.

[0059] An embodiment of the present application provides a processing method for a computing instance. The method in this embodiment can be applied to a computing device, and the computing device may include: a server, etc. As Figure 5 The flowchart of the processing method for a computing instance according to an embodiment of the present application is shown as follows, including:

[0060] Step S501: Obtain a configuration change request for a computing instance. According to the configuration change request, obtain the instance specification after the configuration change of the computing instance as the target instance specification.

[0061] Step S502: Determine a target display driver that matches the target instance specification according to the association relationship between the instance specification and the display driver.

[0062] Step S503: Obtain the version information corresponding to the current display driver and the target display driver respectively.

[0063] Step S504: Compare the version information corresponding to the current display driver and the target display driver respectively, and determine whether the current display driver and the target display driver match according to the comparison result.

[0064] Step S505: If the current display driver does not match the target display driver, or the running state of the current display driver is abnormal, uninstall the current display driver and install the target display driver.

[0065] In this embodiment, an association relationship between instance specifications and display drivers is established. According to the association relationship, a target display driver that matches the target instance specification of the computing instance is determined, and the display driver of the computing instance is configured. In this way, when the configuration of the computing instance changes, a display driver that matches the instance specification can be flexibly configured without changing the computing instance image, without interrupting the user's business, and avoiding the problem that the instance specification cannot be flexibly changed due to the binding relationship between the computing instance image and the instance specification. Moreover, since there is no longer a need to bind a matching computing instance image for each instance specification, the number of provided computing instance images can be reduced.

[0066] An embodiment of the present application provides a processing method for a computing instance. The method in this embodiment can be applied to a computing device, and the computing device may include: a server, etc. As Figure 6 shown in the flowchart of the processing method for a computing instance according to an embodiment of the present application, it includes:

[0067] Step S601, obtain an upgrade request for a cloud desktop or cloud application using the computing instance. According to the upgrade request, obtain the instance specification of the computing instance after the cloud desktop or cloud application is upgraded as the target instance specification.

[0068] Step S602, determine a target display driver that matches the target instance specification according to the association relationship between the instance specification and the display driver.

[0069] Step S603, respectively obtain the version information corresponding to the current display driver and the target display driver.

[0070] Step S604, compare the version information corresponding to the current display driver and the target display driver, and determine whether the current display driver and the target display driver match according to the comparison result.

[0071] Step S606, if the current display driver does not match the target display driver, or the running state of the current display driver is abnormal, uninstall the current display driver and install the target display driver.

[0072] In this embodiment, an association relationship between instance specifications and display drivers is established. According to the association relationship, a target display driver that matches the target instance specification of the computing instance is determined, and the display driver of the computing instance is configured. In this way, when upgrading software using the cloud desktop or cloud application of the computing instance, a display driver that matches the instance specification can be flexibly configured without changing the computing instance image, without interrupting the user's business, and avoiding the problem that the instance specification cannot be flexibly changed due to the binding relationship between the computing instance image and the instance specification. Moreover, since there is no longer a need to bind a matching computing instance image for each instance specification, the number of provided computing instance images can be reduced.

[0073] Corresponding to the application scenario and method of the method provided in the embodiment of the present application, the embodiment of the present application further provides a processing device for a computing instance. As Figure 7 shown in the structural block diagram of the processing device for a computing instance according to an embodiment of the present application, the device includes:

[0074] An obtaining module 701, configured to obtain a processing request for a computing instance and determine a target instance specification of the computing instance according to the processing request.

[0075] A determining module 702, configured to determine a target display driver that matches the target instance specification according to the association relationship between the instance specification and the display driver.

[0076] A configuration module 703, configured to configure the display driver of the computing instance based on the target display driver.

[0077] For the processing device of the computing instance provided in the embodiment of the present application, first, a processing request for the computing instance is obtained, and the target instance specification of the computing instance is determined according to the processing request; then, according to the association relationship between the instance specification and the display driver, a target display driver that matches the target instance specification is determined; finally, the display driver of the computing instance is configured based on the target display driver. In this embodiment, an association relationship between the instance specification and the display driver is established. According to the association relationship, a target display driver that matches the target instance specification of the computing instance is determined, and the display driver of the computing instance is configured. In this way, when the instance specification changes, a display driver that matches the instance specification can be flexibly configured without changing the computing instance image, avoiding the problem that the instance specification cannot be flexibly changed due to the binding relationship between the computing instance image and the instance specification. Moreover, since there is no longer a need to bind a matching computing instance image for each instance specification, the number of provided computing instance images can be reduced.

[0078] In one implementation, the processing request includes an instance creation request; when determining the target instance specification of the computing instance according to the processing request, the obtaining module 701 is configured to: create a computing instance according to the instance creation request, and obtain the instance specification of the computing instance as the target instance specification; the determining module 702 is configured to: configure the target display driver as the display driver of the computing instance.

[0079] In one implementation, the processing request includes a configuration change request for the computing instance; when determining the target instance specification of the computing instance according to the processing request, the obtaining module 701 is configured to: obtain the instance specification after the configuration change of the computing instance according to the configuration change request as the target instance specification.

[0080] In one implementation, the processing request includes an upgrade request for a cloud desktop or a cloud application using the computing instance; when determining the target instance specification of the computing instance according to the processing request, the obtaining module 701 is configured to: obtain the instance specification of the computing instance after the upgrade of the cloud desktop or the cloud application according to the upgrade request as the target instance specification.

[0081] In one implementation, the configuration module 703 is configured to: if the current display driver does not match the target display driver, or the running state of the current display driver is abnormal, uninstall the current display driver and install the target display driver.

[0082] In one implementation, the abnormal running state of the current display driver includes at least one of the following: the current display driver fails to obtain a license; the operating system fails to correctly load the current display driver.

[0083] In one implementation, the processing device of the computing instance is further configured to: respectively obtain the version information corresponding to the current display driver and the target display driver; compare the version information corresponding to the current display driver and the target display driver, and determine whether the current display driver matches the target display driver according to the comparison result.

[0084] The functions of the modules in the embodiments of the present application can be referred to the corresponding descriptions in the above methods, and have the corresponding beneficial effects, which will not be elaborated here.

[0085] Figure 8 It is a block diagram of an electronic device for implementing the embodiments of the present application. As Figure 8 shown, the electronic device includes: a memory 810 and a processor 820, and a computer program that can run on the processor 820 is stored in the memory 810. When the processor 820 executes the computer program, the methods in the above embodiments are implemented. The number of the memory 810 and the processor 820 can be one or more.

[0086] The electronic device further includes:

[0087] A communication interface 830, configured to communicate with external devices and perform data interaction and transmission.

[0088] If the memory 810, the processor 820, and the communication interface 830 are implemented independently, the memory 810, the processor 820, and the communication interface 830 may be interconnected through a bus and complete communication with each other. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 only a thick line is used to represent it in the figure, but it does not mean that there is only one bus or one type of bus.

[0089] Optionally, in specific implementation, if the memory 810, the processor 820, and the communication interface 830 are integrated on a chip, the memory 810, the processor 820, and the communication interface 830 may complete communication with each other through an internal interface.

[0090] An embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the program is executed by a processor, the method provided in the embodiment of the present application is implemented.

[0091] An embodiment of the present application further provides a chip, which includes a processor, configured to call and run an instruction stored in a memory, so that a communication device installed with the chip executes the method provided in the embodiment of the present application.

[0092] An embodiment of the present application further provides a chip, including: an input interface, an output interface, a processor, and a memory. The input interface, the output interface, the processor, and the memory are connected through an internal connection path. The processor is configured to execute code in the memory. When the code is executed, the processor is configured to execute the method provided in the embodiment of the application.

[0093] It should be understood that the above-mentioned processor may be a Central Processing Unit (CPU), or may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. It is worth noting that the processor may be a processor that supports the Advanced RISC Machines (ARM) architecture.

[0094] Further, optionally, the above-mentioned memory may include a read-only memory and a random access memory. The memory may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may include a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically EPROM (EEPROM), or a flash memory. The volatile memory may include a Random Access Memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available. For example, Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), Sync link DRAM (SLDRAM), and Direct Rambus RAM (DR RAM).

[0095] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions according to the present application are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium.

[0096] In the description of this specification, the descriptions with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples", etc. mean that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present application. Moreover, the specific features, structures, materials, or characteristics described can be combined in a suitable manner in any one or more embodiments or examples. In addition, without contradiction, those skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of different embodiments or examples.

[0097] In addition, the terms "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, the features defined with "first" and "second" can explicitly or implicitly include at least one of the features. In the description of the present application, "a plurality of" means two or more, unless otherwise specifically defined.

[0098] Any process or method described in the flowchart or otherwise described herein can be understood to represent a module, segment, or part of code including one or more executable instructions for implementing a specific logical function or process. And the scope of the preferred embodiments of the present application includes additional implementations, where the functions can be executed in a substantially simultaneous manner or in the reverse order according to the involved functions, rather than in the order shown or discussed.

[0099] The logic and / or steps described in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing a logical function, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, apparatus, or device (such as a computer-based system, a system including a processor, or other systems that can fetch and execute instructions from the instruction execution system, apparatus, or device), or in combination with these instruction execution systems, apparatuses, or devices.

[0100] It should be understood that each part of the present application can be implemented by hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. All or part of the steps of the method in the above embodiments can be completed by instructing relevant hardware through a program, and this program can be stored in a computer-readable storage medium. When this program is executed, it includes one or a combination of the steps of the method embodiment.

[0101] In addition, in each embodiment of the present application, each functional unit can be integrated into a processing module, or each unit can exist physically alone, or two or more units can be integrated into one module. The above integrated module can be implemented in the form of hardware or in the form of a software functional module. When the above integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. This storage medium can be a read-only memory, a magnetic disk, an optical disk, or the like.

[0102] As mentioned above, the above are only exemplary embodiments of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art in the technical field recorded in the present application can easily think of various changes or substitutions within the technical scope recorded in the present application, and these should all be covered by the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A processing method for computing instances, characterized in that, The method includes: Obtaining a processing request for a computing instance, and determining a target instance specification of the computing instance according to the processing request; Determining a target display driver that matches the target instance specification according to the association relationship between the instance specification and the display driver; Configuring the display driver of the computing instance based on the target display driver.

2. The method according to claim 1, characterized in that, The processing request includes an instance creation request; the determining the target instance specification of the computing instance according to the processing request includes: Creating the computing instance according to the instance creation request, and obtaining the instance specification of the computing instance as the target instance specification; The configuring the display driver of the computing instance based on the target display driver includes: Configuring the target display driver as the display driver of the computing instance.

3. The method according to claim 1, wherein The processing request includes a configuration change request for the computing instance; the determining the target instance specification of the computing instance according to the processing request includes: Obtaining the instance specification after the configuration change of the computing instance according to the configuration change request, as the target instance specification.

4. The method according to claim 1, characterized in that The processing request includes an upgrade request for a cloud desktop or a cloud application using the computing instance; the determining the target instance specification of the computing instance according to the processing request includes: Obtaining the instance specification of the computing instance after the upgrade of the cloud desktop or the cloud application according to the upgrade request, as the target instance specification.

5. The method according to claim 3 or 4, characterized in that, The configuring the display driver of the computing instance based on the target display driver includes: If the current display driver does not match the target display driver, or the running state of the current display driver is abnormal, uninstall the current display driver and install the target display driver.

6. The method according to claim 5, wherein The abnormal running state of the current display driver includes at least one of the following: The current display driver has not obtained a license; the operating system has not correctly loaded the current display driver.

7. The method according to claim 5, characterized in that, The method further includes: Obtaining the version information corresponding to the current display driver and the target display driver respectively; Comparing the version information corresponding to the current display driver and the target display driver respectively, and determining whether the current display driver matches the target display driver according to the comparison result.

8. A processing device for computing instances, characterized in that, The device includes: An obtaining module, configured to obtain a processing request for a computing instance, and determine a target instance specification of the computing instance according to the processing request; A determining module, configured to determine a target display driver that matches the target instance specification according to the association relationship between the instance specification and the display driver; A configuring module, configured to configure the display driver of the computing instance based on the target display driver.

9. An electronic device, characterized in that, It includes a memory, a processor, and a computer program stored on the memory. When the processor executes the computer program, the method according to any one of claims 1-7 is implemented.

10. A computer-readable storage medium storing a computer program therein, and the computer program, when executed by a processor, implements the method according to any one of claims 1-7.