Physical resource processing methods, devices, equipment, media and products
By uniformly scheduling and integrating physical resources in the cloud server to generate target virtual terminals, the problem of low physical resource utilization in the cloud server is solved, and efficient resource utilization and waste avoidance are achieved.
Patent Information
- Application Number
- CN202210926574.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-03
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2042-08-03
AI Technical Summary
Physical resources in cloud servers cannot be effectively utilized, resulting in low resource utilization and resource waste.
By scheduling the target sub-resource corresponding to the resource configuration data from the candidate sub-resources of at least one physical resource, resource fusion is performed to generate the target physical resource, which is used to generate the target virtual terminal, thereby avoiding idle resources and improving resource utilization.
It achieves efficient management and utilization of physical resources, avoids resource waste, improves resource utilization, and reduces cloud terminal operation and maintenance costs.
Smart Images

Figure CN115242632B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to physical resource processing methods, devices, equipment, media and products. Background Art
[0002] Cloud terminals are mobile phones, tablet computers, handheld notebooks and other terminals that use cloud computing technology to implement cloud processing through cloud servers. They are virtual terminal devices that deeply integrate virtual network services. The use of cloud terminals depends on the configuration of physical resources in the cloud server, such as the configuration of vGPU (virtual Graphics Processing Unit), memory, video memory and other resources. In order to provide personalized cloud terminals to different users, optional resource packages can generally be provided to users. Optional resource packages can provide different resource configuration data. For example, 24GB vGPU, 128G memory and other resource parameter configurations can be provided to users.
[0003] At present, the physical resources of cloud servers are generally divided uniformly. For example, a complete vGPU can be evenly divided into N parts and can be allocated to corresponding users. However, once the physical resources are divided and allocated to corresponding users, if the amount of unallocated resources does not match the user's demand, new resources need to be divided and allocated to the corresponding users. This leads to a waste of unallocated resources, and the resources in the cloud server cannot be effectively utilized, resulting in a decrease in resource utilization. Summary of the invention
[0004] The present disclosure provides a physical resource processing method, device, equipment, medium and product to solve the technical problem that the physical resources in the cloud server cannot be effectively utilized, resulting in low resource utilization and resource waste.
[0005] According to a first aspect of the present disclosure, a physical resource processing method is provided, comprising:
[0006] In response to the terminal acquisition request, determining resource configuration data set for the physical resource to be configured;
[0007] Scheduling a target sub-resource corresponding to the resource configuration data from candidate sub-resources respectively corresponding to at least one physical resource; the physical resource is divided into at least one sub-resource;
[0008] Perform resource fusion on the target sub-resources to obtain target physical resources;
[0009] A target virtual terminal is generated based on the target physical resource; and an operation interface of the target virtual terminal is displayed on an electronic device corresponding to a user using the target virtual terminal.
[0010] According to another aspect of the present disclosure, there is provided a physical resource processing device, comprising:
[0011] A request response unit, configured to determine resource configuration data set for the physical resource to be configured in response to a terminal acquisition request;
[0012] A resource scheduling unit, configured to schedule a target sub-resource corresponding to the resource configuration data from candidate sub-resources respectively corresponding to at least one physical resource; the physical resource is divided into at least one sub-resource;
[0013] A resource fusion unit, used for fusion of the target sub-resources to obtain a target physical resource;
[0014] The resource utilization unit is used to generate a target virtual terminal based on the target physical resource; the operation interface of the target virtual terminal is displayed by the user corresponding to the electronic device using the target virtual terminal.
[0015] According to another aspect of the present disclosure, there is provided an electronic device, comprising: a processor, and a memory storing a program;
[0016] The program includes instructions, which, when executed by the processor, cause the processor to perform a physical resource processing method.
[0017] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to execute a physical resource processing method.
[0018] According to another aspect of the present disclosure, a computer program product is provided, comprising a computer program, wherein the computer program implements a physical resource processing method when executed by a processor.
[0019] One or more technical solutions provided in the embodiments of the present disclosure can determine the resource configuration data set for the physical resources to be configured in response to the terminal acquisition request, and schedule the target sub-resources corresponding to the resource configuration data from the candidate sub-resources corresponding to the at least one physical resource, so as to realize the unified scheduling of the candidate sub-resources of the at least one physical resource, and ensure that the candidate sub-resources can be comprehensively utilized. Then, based on the target sub-resources, resource fusion is performed to obtain the corresponding target physical resources, and the target virtual terminal is generated using the obtained target physical resources. The operation interface of the target virtual terminal is displayed by the electronic device corresponding to the user using the target virtual terminal. Through the unified scheduling of at least one physical resource, one or more physical resources of the same resource type can be scheduled and integrated for use, which can increase the frequency of use of the candidate sub-resources, avoid the waste of physical resources, and improve resource utilization. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Further details, features and advantages of the present disclosure are disclosed in the following description of exemplary embodiments in conjunction with the accompanying drawings, in which:
[0021] Figure 1 A system architecture diagram showing a physical resource processing method provided by an embodiment of the present disclosure
[0022] Figure 2 A flow chart of an embodiment of a physical resource processing method provided by an embodiment of the present disclosure is shown;
[0023] Figure 3 A flowchart of another embodiment of a physical resource processing method provided by an embodiment of the present disclosure is shown;
[0024] Figure 4 A flowchart of another embodiment of a physical resource processing method provided by an embodiment of the present disclosure is shown;
[0025] Figure 5 A flowchart of another embodiment of a physical resource processing method provided by an embodiment of the present disclosure is shown;
[0026] Figure 6 An example diagram of a virtual terminal construction system provided by an embodiment of the present disclosure is shown;
[0027] Figure 7 A schematic diagram showing the structure of an embodiment of a physical resource processing device provided by an embodiment of the present disclosure is shown;
[0028] Figure 8 A schematic block diagram of an electronic device according to an exemplary embodiment of the present disclosure is shown;
[0029] Fig. 9 A structural block diagram of an exemplary electronic device that can be used to implement the embodiments of the present disclosure is shown. DETAILED DESCRIPTION
[0030] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0031] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0032] The term "including" and its variations used in this document are open inclusions, that is, "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions of other terms will be given in the description below. It should be noted that the concepts of "first", "second", etc. mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0033] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0034] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0035] The technical solution disclosed in the present invention can be applied to cloud computing scenarios, especially in the field of cloud terminals. By uniformly scheduling at least one physical resource in a cloud server, it is possible to effectively avoid waste of resources and improve resource utilization.
[0036] In the related art, the operation of cloud terminals, especially cloud phones and cloud tablets, needs to rely on the actual hardware resources in the cloud server. Usually, cloud terminal suppliers can provide hardware configuration packages for cloud terminal devices, for example, providing selection packages for hardware parameters such as graphics cards, sound cards, GPUs, etc. Of course, in actual applications, personalized hardware configurations can also be provided to users, so users are required to provide corresponding hardware resources. Usually, the hardware resources in the cloud server can be divided into multiple sub-resources, and each sub-resource can be allocated to different users. When the user's demand for hardware resources is too much, these divided sub-resources can no longer be used. In addition, once the hardware resources are sold, they can be occupied by users. When the user does not use the resources, the resources are idle. The above phenomena will result in idle hardware resources, resulting in low resource utilization and high operation and maintenance costs of cloud terminals.
[0037] In order to solve the above problems, in the embodiments of the present disclosure, it is considered to integrate the sub-resources of more than one physical resource, and schedule the available sub-resources to provide physical resources consistent with the needs of users, avoid wasting physical resources, and thus make more efficient use of resources.
[0038] Accordingly, the embodiments of the present disclosure provide a physical resource processing method, device, electronic device, medium and product, which are used to determine the resource configuration data set for the physical resource to be configured in response to the terminal acquisition request when obtaining the terminal acquisition request. The target sub-resources corresponding to the resource configuration data are scheduled from the candidate sub-resources corresponding to the at least one physical resource. The scheduling of the target sub-resources can achieve unified and efficient management of at least one physical resource. By fusing the target sub-resources, the target physical resources can be obtained. The target physical resources can be used to generate a target virtual terminal. The operation interface of the target virtual terminal can be displayed by the electronic device corresponding to the user of the target virtual terminal. By uniformly scheduling at least one physical resource, the candidate sub-resources of each physical resource can be effectively utilized, resource idleness can be avoided, and resource utilization can be improved.
[0039] The technical solution of the present disclosure is described in detail below with reference to the accompanying drawings.
[0040] like Figure 1 As shown, it is a system architecture diagram of a physical resource processing method provided by an embodiment of the present disclosure, and the system may include: an electronic device 1 of a user, a cloud server 2 that establishes a wireless connection with the electronic device 1 of the user, and at least one physical resource may be configured in the cloud server 2. Each physical resource may be divided into several sub-resources. The resource to be configured is vGPU, and taking the number of resources of at least one physical resource as 3 as an example, the at least one physical resource may include vGPU A, vGPU B and vGPU C. Assume that a vGPU is evenly divided into 8 sub-resources, and the size of each sub-resource is 1 / 8vGPU. If the resource configuration data is 1 / 4vGPU, at this time, vGPUB is fully occupied, and vGPUA and vGPUC both have one sub-resource. The use of any vGPU alone does not match the resource configuration data required by the user, and a new 1 / 4GPU needs to be allocated to the user. In the embodiment of the present disclosure, in order to improve resource utilization, the scheduling of candidate sub-resources can be performed among the vGPU A, vGPU B and vGPU C of the divided sub-resources.
[0041] refer to Figure 1Assuming that the selected candidate sub-resources are vGPU C and vGPU A for resource fusion, the sub-resources in vGPU C can be migrated to vGPU A, so that 1 / 8 vGPU is added to vGPUA. Therefore, the two sub-resources in vGPUA can be merged, and the obtained 1 / 4 vGPU can be used as the target physical resource matching the resource configuration data. The target physical resource can be used to generate a target virtual terminal, and the operation interface of the target virtual terminal can be displayed by the user's electronic device 1.
[0042] like Figure 2 FIG. 1 is a flow chart of an embodiment of a physical resource processing method provided by an embodiment of the present disclosure. The method may include the following steps:
[0043] 201: In response to a terminal acquisition request, determine resource configuration data set for a physical resource to be configured.
[0044] The physical resources to be configured may refer to hardware resources set by the user as required, for example, any one of a vGPU, a graphics card, a sound card, etc. The resource configuration data may be a resource requirement quantity consistent with the user's usage requirements, for example, a vGPU may be set to 12G (Gigabyte).
[0045] The resource configuration data of the physical resource settings to be configured can be read from the terminal acquisition request.
[0046] 202: Scheduling a target sub-resource corresponding to resource configuration data from candidate sub-resources corresponding to at least one physical resource; the physical resource is divided into at least one sub-resource.
[0047] A physical resource may refer to an independent hardware module in a cloud server, and a physical resource may be equally divided into at least one sub-resource. Sub-resources may be sold to users to establish a user's virtual terminal, such as a cloud phone. In the related art, once a sub-resource is sold, it may be set as a sold tag, and the sub-resource can no longer be used. Even if the user does not use the sub-resource, it needs to be idle. In the present disclosure, considering the reuse of sub-resources, the sub-resources of physical resources may be used as candidate sub-resources for secondary scheduling, and any sub-resource may be used as a candidate sub-resource at this time.
[0048] Of course, in a possible design, the candidate sub-resource can also be a sub-resource that meets the scheduling conditions. The scheduling conditions can be set for the selling status, usage status, usage rate, etc. of the candidate sub-resource, and the threshold limits can be set for each parameter. When the selling status, usage status, usage rate, etc. all reach the corresponding thresholds, the corresponding sub-resource can be used as a candidate sub-resource. Therefore, the sub-resource screening can be achieved to avoid the migration of sub-resources with high usage frequency, in the sold state, and in the used state.
[0049] The target sub-resource corresponding to the resource configuration data may mean that the resource quantity of the target sub-resource is consistent with the resource configuration data, and the resource quantity of the target sub-resource may be equal to the resource configuration data or may be greater than the resource configuration data.
[0050] 203: Perform resource fusion on the target sub-resources to obtain the target physical resource.
[0051] The target sub-resource may generally include multiple target sub-resources, and the target physical resource may be a physical resource obtained by fusing multiple target sub-resources.
[0052] 204: Generate a target virtual terminal based on the target physical resource; an operation interface of the target virtual terminal is displayed on an electronic device corresponding to a user using the target virtual terminal.
[0053] The target virtual terminal may be determined based on the actual terminal type, for example, the target virtual terminal may be a cloud phone, a cloud tablet computer, etc. In a possible design, the target virtual terminal may include an Android virtual terminal, and the physical resource may include a vGPU.
[0054] The physical resource processing method provided by the present disclosure can be applied to a cloud server, by generating a corresponding target virtual terminal in the cloud server according to the user's resource configuration data. The target virtual terminal may include an operation interface, which may be displayed by the user's electronic device.
[0055] In an embodiment of the present disclosure, in response to a terminal acquisition request, resource configuration data set for the physical resource to be configured is determined. The target sub-resources corresponding to the resource configuration data are scheduled from the candidate sub-resources corresponding to the at least one physical resource. The scheduling of the target sub-resources can achieve unified and efficient management of at least one physical resource. By fusing the target sub-resources, the target physical resources can be obtained. The target physical resources can be used to generate a target virtual terminal. The operation interface of the target virtual terminal can be displayed by the electronic device corresponding to the user of the target virtual terminal. By uniformly scheduling at least one physical resource, the candidate sub-resources of each physical resource can be effectively utilized, resource idleness can be avoided, and resource utilization can be improved.
[0056] like Figure 3FIG. 1 is a flow chart of another embodiment of a physical resource processing method provided by an embodiment of the present disclosure, and FIG. Figure 1 The difference of the illustrated embodiment is that scheduling the target sub-resource corresponding to the resource configuration data from the candidate sub-resources respectively corresponding to at least one physical resource may include:
[0057] 301: Determine at least one physical resource related to the physical resource to be configured and at least one candidate sub-resource respectively corresponding to the physical resource.
[0058] When the resource to be configured is determined, at least one physical resource related to the resource to be configured can be obtained from the cloud server. Each physical resource can correspond to resource information. The resource information can be used to record information such as the usage status, sales status, and usage frequency of the physical resource.
[0059] 302: Determine, according to the candidate sub-resources respectively corresponding to at least one physical resource, a first physical resource and a second physical resource whose sum matches the resource configuration data.
[0060] The sum of the candidate sub-resources matching the resource configuration data may mean that the sum of the resource quantities of the first candidate sub-resource of the first physical resource and the second candidate sub-resource of the second physical resource is equal to or greater than the resource configuration data.
[0061] 303: Take the first candidate sub-resource of the first physical resource and the second candidate sub-resource of the second physical resource as target sub-resources.
[0062] Wherein: integrating the target sub-resources to obtain the target physical resources may include:
[0063] 304: Merge the second candidate sub-resource and the first candidate sub-resource to obtain the target physical resource.
[0064] Fusing the second candidate sub-resource with the first candidate sub-resource may include splicing the second candidate sub-resource with the first candidate sub-resource as a whole to obtain the target physical resource.
[0065] In the disclosed embodiment, at least one physical resource related to the physical resource to be configured and at least one candidate sub-resource respectively corresponding to the physical resource can be determined. Through the candidate sub-resources respectively corresponding to the at least one physical resource, the first physical resource and the second physical resource whose sum matches the resource configuration data can be determined to complete the selection of the physical resource. By fusing the candidate sub-resources of the first physical resource and the candidate sub-resources of the second physical resource, a whole block of target sub-resources that can provide resource services to the outside can be obtained. The candidate sub-resources of the first physical resource and the candidate sub-resources of the second physical resource corresponding to the target sub-resource are fused to obtain the target physical resource. Through the migration and fusion of resources, the target physical resource can be effectively scheduled and the resource utilization can be improved.
[0066] In a possible design, fusing the second candidate sub-resource with the first candidate sub-resource to obtain the target physical resource may include:
[0067] Migrating a first candidate sub-resource of a first physical resource to a second physical resource;
[0068] The second candidate sub-resource of the second physical resource is controlled to merge the migrated first candidate sub-resource to obtain a target physical resource located in the second physical resource.
[0069] Optionally, the first physical resource may include at least one, and two or more resources are migrated to one to be combined into a target physical resource. Resource merging can effectively realize the secondary utilization of candidate sub-resources and improve resource utilization efficiency.
[0070] In the disclosed embodiment, the first candidate sub-resource of the first physical resource can be migrated to the second physical resource, and the target physical resource located at the second physical resource can be obtained by controlling the second candidate sub-resource of the second physical resource and the migrated first candidate sub-resource to merge resources. Through the migration and merging of resources, the scattered resources can be concentrated into a certain physical resource, and the effective scheduling and management of physical resources can be realized, thereby improving resource utilization.
[0071] In order to achieve effective migration of sub-resources, such as Figure 4 FIG. 1 is a flow chart of another embodiment of a physical resource processing method provided by an embodiment of the present disclosure, and FIG. Figure 2 , Figure 3 The difference of the illustrated embodiment is that migrating the first candidate sub-resource of the first physical resource to the second physical resource includes:
[0072] 401: Determine whether a first candidate sub-resource of a first physical resource is in use.
[0073] 402: if it is determined that the first candidate sub-resource is in use, migrate the first candidate sub-resource of the first physical resource to the second physical resource in a hot migration manner;
[0074] 403: If it is determined that the first candidate sub-resource is in an unused state, migrate the first candidate sub-resource of the first physical resource to the second physical resource in a cold migration manner.
[0075] Optionally, when the first candidate sub-resource is in use, migrating the first candidate sub-resource is considered hot migration. The user's access node using the first candidate sub-resource can be migrated together. Sampling hot migration mode, migrating the first candidate sub-resource of the first physical resource to the second physical resource, can include: determining the access node of the user using the first candidate sub-resource to the first candidate sub-resource, scheduling the access node to the fourth candidate sub-resource of the fourth physical resource, so as to migrate the first candidate sub-resource of the first physical resource to the second physical resource.
[0076] Optionally, when the first candidate sub-resource is in an unused state, the first candidate sub-resource can be directly migrated, and the user is unaware of this process. The first candidate sub-resource being in use may include: the first candidate sub-resource is in a sold state and in use, or the first candidate sub-resource is in an unsold state. When the first candidate sub-resource is in an unsold state, there is no resource occupation, and the first candidate sub-resource can be directly migrated.
[0077] In the disclosed embodiment, it is possible to determine whether the first candidate sub-resource of the first physical resource is in use. If the first candidate sub-resource is in use, hot migration is used for migration, and if the first candidate sub-resource is not in use, cold migration is used for migration. By detecting the use status of the candidate sub-resource, different migration methods can be provided to achieve accurate migration of the first candidate sub-resource of the first physical resource, avoid migration failure caused by directly migrating the resource, and improve the migration efficiency of the physical resource.
[0078] In practical applications, the physical resource processing method provided by the present disclosure may be applied to a cloud server, and the at least one physical resource may be located in a host machine, and a resource management program (hypervisor) may be run between the host machine and the cloud server.
[0079] Migrating a first candidate sub-resource of a first physical resource to a second physical resource by hot migration includes:
[0080] Migrating a first candidate sub-resource of a first physical resource to a second physical resource based on a hot migration module in a resource management program;
[0081] Migrating a first candidate sub-resource of a first physical resource to a second physical resource in a cold migration manner includes:
[0082] Based on a cold migration module in a resource management program, a first candidate sub-resource of a first physical resource is migrated to a second physical resource.
[0083] The resource management program may run between the instance system architecture layer of the virtual terminal and the host driver layer, allowing the instance system architecture layer to use the hardware resources. The host driver layer is used to run the driver of the hardware resources and start the function of at least one of the physical resources.
[0084] In the disclosed embodiment, by establishing a resource management program between the virtual terminal of the cloud server and the host machine, hot migration and cold migration of physical resources can be achieved through the resource management program, thereby improving migration efficiency and accuracy.
[0085] In order to achieve effective management of resources, as an embodiment, determining, according to the candidate sub-resources respectively corresponding to at least one physical resource, a first physical resource and a second physical resource whose sum of the candidate sub-resources matches the resource configuration data may include:
[0086] querying whether there is a third physical resource matching the resource configuration data among the candidate sub-resources respectively corresponding to at least one physical resource;
[0087] If so, taking the candidate sub-resource of the third physical resource as the target sub-resource corresponding to the resource configuration data;
[0088] If not, then determining a first physical resource and a second physical resource whose sum of the candidate sub-resources matches the resource configuration data.
[0089] If there is a candidate sub-resource that satisfies the resource configuration data among the candidate sub-resources corresponding to at least one physical resource, the candidate sub-resource can be used as the target physical resource. In this case, one candidate sub-resource can satisfy the resource requirement of the resource configuration data.
[0090] In the disclosed embodiment, it is possible to query whether there is a target physical resource matching the resource configuration data among the candidate sub-resources corresponding to at least one physical resource. If so, the candidate sub-resource of the target physical resource is used as the target sub-resource corresponding to the resource configuration data. If not, the first physical resource and the second physical resource whose sum matches the resource configuration data are determined. By querying a single physical resource, it is possible to quickly query and use the resource, avoid unnecessary resource allocation, and improve the accuracy of resource use.
[0091] In one possible design, Figure 5FIG. 1 is a flowchart of another embodiment of a hardware resource processing method provided by the present disclosure, and FIG. Figure 4 The difference of the illustrated embodiment is that 204: generating a target virtual terminal based on the target physical resource may include the following steps:
[0092] 501: Generate an initial virtual terminal based on the instance system architecture set for the virtual terminal.
[0093] 502: Establishing the use function of the initial virtual terminal to the target physical resource, and obtaining the target virtual terminal.
[0094] Optionally, the example system architecture may refer to a program architecture used when the virtual terminal is running, and may include program modules required for running the virtual terminal to provide users with application functions corresponding to the program modules. For example, the example system architecture may include a video program module to support playing videos in the virtual terminal.
[0095] The initial virtual terminal may be software that has only completed the construction of the system framework but has not established a use association with actual physical resources. The target virtual terminal may be a virtual device of the hardware and software integrated system that has completed the construction of the system framework and established a use association with actual physical resources, and can normally use the target virtual terminal. The target virtual terminal may provide users with processing functions such as video playback, data storage, and product purchase.
[0096] In the embodiment of the present disclosure, when generating a target virtual terminal, an initial virtual terminal can be generated based on the instance system architecture, and when the use function of the initial virtual terminal for the target physical resource is established, the target virtual terminal can be obtained. The initial virtual terminal is generated based on the instance system architecture to realize the automatic generation of the initial virtual terminal. After the use function of the target physical resource is established, the corresponding target virtual terminal can be obtained, and the target virtual terminal can be accurately generated.
[0097] In a possible design, establishing a usage function of the initial virtual terminal for the target physical resource and obtaining the target virtual terminal includes:
[0098] Determine a host machine that provides at least one physical resource;
[0099] Establish a shared disk between the initial virtual terminal and the host machine;
[0100] Based on the shared disk, the use function of the initial virtual terminal to the target physical resources provided by the host is established to obtain the target virtual terminal.
[0101] The host machine can provide the actual hardware device for the cloud server to provide physical resources to be configured externally.
[0102] Shared disk can be used to provide access to hardware resources in virtual terminals and host machines. For example, it can be used to provide device drivers, which can enable and initialize vGPUs and pass them to virtual terminals; it can provide user dynamic link libraries to provide technical support for the underlying implementation of the Android video layer / graphics layer; it can provide binary files, such as vGPU performance and resource usage monitoring tools, to facilitate resource migration. The functions provided by shared disks rely on establishing access paths for the host machine and virtual terminals, and serve the purpose of mirroring the usage functions of the host machine and virtual terminals.
[0103] In the embodiment of the present disclosure, after determining the host machine that provides at least one physical resource, a shared disk can be established between the initial virtual terminal and the host machine. By using the shared disk, the use function of the target physical resources provided by the initial virtual terminal and the host machine can be established to obtain the target virtual terminal, so as to enable the target virtual terminal to use the configured target physical resources normally, ensure the availability of resources, and improve the utilization effect of resources.
[0104] As an optional implementation, based on the shared disk, the initial virtual terminal is established to use the target physical resources provided by the host machine, and the target virtual terminal is obtained, including:
[0105] Running a resource loader in the initial virtual terminal and determining a resource driver corresponding to at least one physical resource running in the host machine; the resource driver is used to control the normal operation of the target physical resource;
[0106] Based on the resource loader, an access path to the resource driver is established through the shared disk;
[0107] If it is determined that the access path is in a normal use state, the use function of the initial virtual terminal in the target physical resource of the host machine is established, and a target virtual terminal capable of using the target physical resource is obtained.
[0108] In the disclosed embodiment, a virtual terminal can establish an access path to a target physical resource in a host machine by loading a resource driver and a resource loader. When the access path is normal, it can ensure that the target virtual terminal can use the target physical resource, thereby improving the effectiveness of using the target physical resource.
[0109] As an embodiment, based on the resource loader, an access path to the resource driver is established through a shared disk, including:
[0110] Based on the resource loader, a loading instruction of the resource driver is sent to the shared disk; under the loading instruction, the shared disk calls up the resource driver and transmits it to the resource loader;
[0111] Based on the resource loader, the resource driver program transmitted transparently from the shared disk is received to complete the establishment of an access path to the resource driver program.
[0112] The resource driver can be loaded on the host side and can be used to enable and initialize the vGPU functionality.
[0113] The resource loader may include functions such as identifying the vGPU model of the host machine, loading the device driver and user dynamic library functions of the vGPU, etc.
[0114] In the disclosed embodiment, the resource loader can complete the operation of the resource driver program, realize the access of the virtual terminal to the resource driver program, and ensure the normal use of the physical resources of the host machine by the virtual terminal.
[0115] For ease of understanding, Figure 6 The virtual terminal construction system shown in the figure may include a virtual mobile phone built with an Android system. The system architecture of an Android virtual terminal 600 (Android VM, Android Virtual Machine) may include multiple basic frameworks, such as an application / game (APP (Application) / Game,) 601, a video framework (video Framework) 602, a graphics framework (Graphics Framework) 603, etc. In addition, the Android virtual terminal 600 may also include: a resource loader (vGPU loader, Virtual graphics processing unit) 604 of a virtual graphics processor, and a client kernel (Guest Kernel) 605.
[0116] Figure 6 The vGPU 606 in the example is at least one physical resource of the present disclosure. The vGPU 606 may be located in a host machine 607 (host Kernel), and a resource driver (vGPU driver) may be installed in the host machine.
[0117] A resource management program 608 (hypervisor) may be run between the Android virtual terminal 600 and the host machine 607, and a virtual graphics processor plug-in 609 (vGPU Pulgin) may be integrated into the resource management program to support a hot migration function of resources.
[0118] The host machine 607 and the Android virtual terminal 600 can establish an access path through the shared disk to enable the Android virtual terminal 600 to use the host machine 607 normally.
[0119] In one possible design, the terminal acquisition request may include: a resource allocation request, and the method further includes:
[0120] Detect the resource package selected by the user on the cloud terminal transaction interface, and determine the resource configuration data corresponding to the physical resources to be configured from the resource package;
[0121] Based on the resource configuration data, a resource allocation request is generated.
[0122] The cloud terminal transaction interface can provide at least one candidate package. When a user triggers any of the candidate packages, any candidate package can be selected as a resource package. The resource package can include configuration data of one or more physical resources, and any physical resource can be used as a physical resource to be configured.
[0123] In the embodiment of the present disclosure, by providing a resource package to a user, resource configuration data corresponding to the physical resource to be configured by the user can be obtained, and the resource configuration data can be used to generate a resource allocation request. The resource allocation request can be generated by interacting with the user, and the real-time and effective management and utilization of the physical resources on the user side can be achieved.
[0124] In another possible design, the terminal acquisition request includes: a resource inspection request, and the method further includes:
[0125] Determine the resource inspection service corresponding to the physical resources to be configured;
[0126] The resource inspection service is called to initiate a resource inspection request for the physical resources to be configured.
[0127] The resource inspection request may include resource configuration data of the physical resource to be configured. The resource inspection service may refer to a check program for the resource usage of the physical resource to be configured, and may perform usage detection and deployment on the physical resource to be configured. When the resource configuration data of the physical resource to be configured is obtained, a corresponding virtual terminal may be generated. The resource configuration data of the physical resource to be configured in the resource inspection request may be a default or randomly set one.
[0128] In the disclosed embodiment, a resource inspection service of physical resources may be configured, and the resource inspection service may be called to perform resource inspection on the physical resources to be configured, thereby achieving effective management of the physical resources to be configured and avoiding waste of physical resources.
[0129] In the case of dividing each functional module into corresponding functional modules, such as Figure 7 FIG. 1 is a schematic diagram of a structure of an embodiment of a physical resource processing device provided by an embodiment of the present disclosure, and the device may include:
[0130] The request response unit 701 is used to determine the resource configuration data set for the physical resource to be configured in response to the terminal acquisition request;
[0131] Resource scheduling unit 702: used to schedule a target sub-resource corresponding to resource configuration data from candidate sub-resources corresponding to at least one physical resource; the physical resource is divided into at least one sub-resource;
[0132] Resource fusion unit 703: used to fuse the target sub-resources to obtain the target physical resources;
[0133] Resource utilization unit 704: used to generate a target virtual terminal based on the target physical resource; the operation interface of the target virtual terminal is displayed by the user corresponding to the electronic device using the target virtual terminal.
[0134] As an embodiment, the resource scheduling unit includes:
[0135] A first determination module, used to determine at least one physical resource related to the physical resource to be configured and candidate sub-resources respectively corresponding to at least one physical resource;
[0136] A second determination module, configured to determine, based on the candidate sub-resources respectively corresponding to at least one physical resource, a first physical resource and a second physical resource whose sum matches the resource configuration data;
[0137] The target determination module is used to take a first candidate sub-resource of the first physical resource and a second candidate sub-resource of the second physical resource as target sub-resources.
[0138] Resource fusion unit, including:
[0139] The resource fusion module is used to fuse the second candidate sub-resource with the first candidate sub-resource to obtain the target physical resource.
[0140] In a possible design, the resource fusion module includes:
[0141] The resource migration submodule is used to migrate the first candidate sub-resource of the first physical resource to the second physical resource.
[0142] The resource merging submodule is used to control the second candidate sub-resource of the second physical resource and the migrated first candidate sub-resource to perform resource merging to obtain a target physical resource located in the second physical resource.
[0143] In some embodiments, the resource migration submodule may be specifically used to:
[0144] Determining whether a first candidate sub-resource of a first physical resource is in use;
[0145] If it is determined that the first candidate sub-resource is in use, the first candidate sub-resource of the first physical resource is migrated to the second physical resource by hot migration;
[0146] If it is determined that the first candidate sub-resource is in an unused state, the first candidate sub-resource of the first physical resource is migrated to the second physical resource in a cold migration manner.
[0147] In some embodiments, the method is applied to a cloud server, at least one physical resource is located in a host machine, and a resource management program runs between the host machine and the cloud server;
[0148] Resource migration submodule, specifically used for:
[0149] Migrating a first candidate sub-resource of a first physical resource to a second physical resource based on a hot migration module in a resource management program;
[0150] Migrating a first candidate sub-resource of a first physical resource to a second physical resource in a cold migration manner includes:
[0151] Based on a cold migration module in a resource management program, a first candidate sub-resource of a first physical resource is migrated to a second physical resource.
[0152] In some embodiments, the second determining module includes:
[0153] A resource query submodule, used to query whether there is a third physical resource matching the resource configuration data among the candidate sub-resources respectively corresponding to at least one physical resource;
[0154] a first processing submodule, configured to, if yes, use the candidate sub-resource of the third physical resource as the target sub-resource corresponding to the resource configuration data;
[0155] The second processing submodule is configured to, if not, determine the first physical resource and the second physical resource whose sum of the candidate sub-resources matches the resource configuration data.
[0156] As yet another embodiment, the resource utilization unit may include:
[0157] An initial establishment module, used for generating an initial virtual terminal based on an instance system architecture set for the virtual terminal;
[0158] The function configuration module is used to establish the use function of the initial virtual terminal to the target physical resource and obtain the target virtual terminal.
[0159] In some embodiments, the function configuration module may include:
[0160] A host determination submodule, used to determine a host machine that provides at least one physical resource;
[0161] The disk creation submodule is used to create a shared disk between the initial virtual terminal and the host machine;
[0162] The function configuration submodule is used to establish the use function of the initial virtual terminal for the target physical resources provided by the host machine based on the shared disk, and obtain the target virtual terminal.
[0163] In some embodiments, the function configuration submodule is specifically used to:
[0164] Running a resource loader in the initial virtual terminal and determining a resource driver corresponding to at least one physical resource running in the host machine; the resource driver is used to control the normal operation of the target physical resource;
[0165] Based on the resource loader, an access path to the resource driver is established through the shared disk;
[0166] If it is determined that the access path is in a normal use state, the use function of the initial virtual terminal in the target physical resource of the host machine is established, and a target virtual terminal capable of using the target physical resource is obtained.
[0167] In a possible design, the function configuration submodule is specifically used for:
[0168] Based on the resource loader, a loading instruction of the resource driver is sent to the shared disk; under the loading instruction, the shared disk calls up the resource driver and transmits it to the resource loader;
[0169] Based on the resource loader, the resource driver program transmitted transparently from the shared disk is received to complete the establishment of an access path to the resource driver program.
[0170] As an optional implementation manner, the terminal acquisition request includes: a resource allocation request, and the device further includes:
[0171] The first detection unit is used to detect the resource package selected by the user in the cloud terminal transaction interface, and determine the resource configuration data corresponding to the physical resource to be configured from the resource package;
[0172] The first request unit is used to generate a resource allocation request based on the resource configuration data.
[0173] As another optional implementation manner, the terminal acquisition request includes: a resource inspection request, and the device further includes:
[0174] A second detection unit is used to determine the resource inspection service corresponding to the physical resource to be configured;
[0175] The second request unit is used to call the resource inspection service to initiate a resource inspection request for the physical resources to be configured.
[0176] The above mainly introduces the solution provided by the embodiment of the present disclosure from the perspective of the server. It is understandable that, in order to implement the above functions, the server includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present disclosure.
[0177] The embodiments of the present disclosure may divide the server into functional units according to the above method examples. For example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The above integrated modules may be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiments of the present disclosure is schematic and is only a logical functional division. There may be other division methods in actual implementation.
[0178] Figure 8 1 shows a schematic block diagram of an electronic device according to an exemplary embodiment of the present disclosure. Figure 8 As shown, the electronic device 800 includes one or more (including two) processors 801 and a memory 802 for storing programs. The processor 801 can support the electronic device to execute the steps corresponding to the above-mentioned physical resource processing method.
[0179] Optionally, the memory 802 may include a read-only memory and a random access memory, and provide operation instructions and data to the processor. A portion of the memory may also include a non-volatile random access memory (NVRAM).
[0180] In some embodiments, Figure 8As shown, the processor 801 performs corresponding operations by calling the operation instructions stored in the memory (the operation instructions may be stored in the operating system). The processor 801 controls the processing operations of any one of the terminal devices, and the processor may also be called a central processing unit (CPU). The memory 802 may include a read-only memory and a random access memory, and provides instructions and data to the processor 801. A portion of the memory 802 may also include NVRAM. For example, in an application, the memory, the communication interface, and the memory are coupled together through a bus system, wherein the bus system may include a power bus, a control bus, and a status signal bus in addition to a data bus. However, for the sake of clarity, in Figure 8 Various buses are labeled as bus system 803.
[0181] The method disclosed in the above-mentioned embodiment of the present disclosure can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above-mentioned processor may be a general-purpose processor, a digital signal processor (digital signal processing, DSP), an ASIC, a field-programmable gate array (field-programmable gate array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present disclosure can be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiment of the present disclosure can be directly embodied as being executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in conjunction with its hardware.
[0182] The exemplary embodiment of the present disclosure also provides an electronic device, comprising: at least one processor; and a memory connected to the at least one processor in communication. The memory stores a computer program that can be executed by the at least one processor, and the computer program is used to cause the electronic device to perform the method according to the embodiment of the present disclosure when executed by the at least one processor.
[0183] Exemplary embodiments of the present disclosure also provide a non-transitory computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor of a computer, is used to cause the computer to execute the method according to an embodiment of the present disclosure.
[0184] The exemplary embodiments of the present disclosure also provide a computer program product, including a computer program, wherein the computer program is used to cause the computer to perform the method according to the embodiments of the present disclosure when executed by a processor of the computer.
[0185] refer to Fig. 9 , a block diagram of an electronic device 900 that can be used as a server or client of the present disclosure will now be described, which is an example of a hardware device that can be applied to various aspects of the present disclosure. The electronic device is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0186] like Fig. 9 As shown, the electronic device 900 includes a computing unit 901, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 902 or a computer program loaded from a storage unit 908 to a random access memory (RAM) 9803. In the RAM 903, various programs and data required for the operation of the device 900 can also be stored. The computing unit 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.
[0187] A plurality of components in the electronic device 900 are connected to the I / O interface 905, including: an input unit 906, an output unit 907, a storage unit 908, and a communication unit 909. The input unit 906 may be any type of device capable of inputting information to the electronic device 900, and the input unit 906 may receive input digital or character information, and generate key signal inputs related to user settings and / or function control of the electronic device. The output unit 907 may be any type of device capable of presenting information, and may include, but is not limited to, a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. The storage unit 904 may include, but is not limited to, a disk, an optical disk. The communication unit 909 allows the electronic device 900 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks, and may include, but is not limited to, a modem, a network card, an infrared communication device, a wireless communication transceiver, and / or a chipset, such as a Bluetooth™ device, a WiFi device, a WiMax device, a cellular communication device, and / or the like.
[0188] The computing unit 901 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 901 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 901 performs the various methods and processes described above. For example, in some embodiments, the hardware resource processing method may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 908. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 900 via the ROM 902 and / or the communication unit 909. In some embodiments, the computing unit 901 may be configured to perform the hardware resource processing method in any other appropriate manner (e.g., by means of firmware).
[0189] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0190] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0191] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0192] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0193] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.
[0194] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by 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 programs or instructions. When the computer program or instruction is loaded and executed on a computer, the process or function described in the embodiment of the present disclosure is executed in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, a terminal, a user device or other programmable device. The computer program or instruction may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer program or instruction may be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired or wireless means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server, data center, etc. that integrates one or more available media. The available medium may be a magnetic medium, for example, a floppy disk, a hard disk, a tape; it may also be an optical medium, for example, a digital video disc (DVD); it may also be a semiconductor medium, for example, a solid state drive (SSD).
[0195] Although the present disclosure has been described in conjunction with specific features and embodiments thereof, it is apparent that various modifications and combinations may be made thereto without departing from the spirit and scope of the present disclosure. Accordingly, this specification and the drawings are merely exemplary illustrations of the present disclosure as defined by the appended claims, and are deemed to have covered any and all modifications, variations, combinations or equivalents within the scope of the present disclosure. Obviously, those skilled in the art may make various modifications and variations to the present disclosure without departing from the spirit and scope of the present disclosure. Thus, if these modifications and variations of the present disclosure fall within the scope of the claims of the present disclosure and their equivalents, the present disclosure is also intended to include these modifications and variations.
Claims
1. A physical resource processing method, characterized in that: include: In response to the terminal acquisition request, determining resource configuration data set for the physical resource to be configured; Scheduling a target sub-resource corresponding to the resource configuration data from candidate sub-resources respectively corresponding to at least one physical resource; the physical resource is divided into at least one sub-resource, and the target sub-resource includes a first candidate sub-resource of a first physical resource whose sum of candidate sub-resources matches the resource configuration data and a second candidate sub-resource of a second physical resource; Determining whether a first candidate sub-resource of the first physical resource is in use; If it is determined that the first candidate sub-resource is in use, determining an access node of a user using the first candidate sub-resource to the first candidate sub-resource, and scheduling the access node to a fourth candidate sub-resource of a fourth physical resource, so as to migrate the first candidate sub-resource of the first physical resource to the second physical resource; Controlling the second candidate sub-resource of the second physical resource and the migrated first candidate sub-resource to perform resource merging to obtain a target physical resource located at the second physical resource; A target virtual terminal is generated based on the target physical resource; and an operation interface of the target virtual terminal is displayed on an electronic device corresponding to a user using the target virtual terminal.
2. The method according to claim 1, characterized in that: The step of scheduling a target sub-resource corresponding to the resource configuration data from candidate sub-resources respectively corresponding to at least one physical resource includes: Determine at least one of the physical resources related to the physical resource to be configured and at least one candidate sub-resource respectively corresponding to the physical resource; Determine, according to the candidate sub-resources respectively corresponding to at least one of the physical resources, a first physical resource and a second physical resource whose sum of the candidate sub-resources matches the resource configuration data; A first candidate sub-resource of the first physical resource and a second candidate sub-resource of the second physical resource are used as the target sub-resource.
3. The method according to claim 2, characterized in that The method further comprises: If it is determined that the first candidate sub-resource is in an unused state, the first candidate sub-resource of the first physical resource is migrated to the second physical resource in a cold migration manner.
4. The method according to claim 3, characterized in that The method is applied in a cloud server, at least one of the physical resources is located in a host machine, and a resource management program runs between the host machine and the cloud server; The migrating the first candidate sub-resource of the first physical resource to the second physical resource in a cold migration manner includes: Based on the cold migration module in the resource management program, the first candidate sub-resource of the first physical resource is migrated to the second physical resource.
5. The method according to claim 2, characterized in that: The determining, according to the candidate sub-resources respectively corresponding to at least one of the physical resources, a first physical resource and a second physical resource whose sum matches the resource configuration data comprises: querying whether there is a third physical resource matching the resource configuration data among the candidate sub-resources respectively corresponding to at least one of the physical resources; If so, taking the candidate sub-resource of the third physical resource as the target sub-resource corresponding to the resource configuration data; If not, determining a first physical resource and a second physical resource whose sum of the candidate sub-resources matches the resource configuration data.
6. The method according to any one of claims 1 to 5, characterized in that: The generating a target virtual terminal based on the target physical resource includes: generating an initial virtual terminal based on an example system architecture set for the virtual terminal; A usage function of the initial virtual terminal to the target physical resource is established to obtain the target virtual terminal.
7. The method according to claim 6, characterized in that The step of establishing the use function of the initial virtual terminal for the target physical resource to obtain the target virtual terminal includes: Determining a host machine that provides at least one of the physical resources; Establishing a shared disk between the initial virtual terminal and the host machine; Based on the shared disk, a usage function of the initial virtual terminal for the target physical resource provided by the host machine is established to obtain the target virtual terminal.
8. The method according to claim 7, characterized in that The step of establishing, based on the shared disk, a usage function of the initial virtual terminal for the target physical resource provided by the host machine to obtain the target virtual terminal comprises: Running a resource loading program in the initial virtual terminal and determining a resource driver corresponding to at least one of the physical resources running in the host machine; the resource driver is used to control the target physical resource to work normally; Based on the resource loading program, establishing an access path to the resource driver program through the shared disk; If it is determined that the access path is in a normal use state, the use function of the initial virtual terminal on the target physical resource of the host machine is established, and the target virtual terminal capable of using the target physical resource is obtained.
9. The method according to claim 8, characterized in that The step of establishing an access path to the resource driver program through the shared disk based on the resource loading program includes: Based on the resource loading program, a loading instruction of the resource driver is sent to the shared disk; under the loading instruction, the shared disk calls up the resource driver and transparently transmits it to the resource loading program; Based on the resource loading program, the resource driver program transmitted transparently by the shared disk is received to complete the establishment of an access path to the resource driver program.
10. The method according to claim 1, characterized in that The terminal acquisition request includes: a resource allocation request, and the method further includes: Detecting the resource package selected by the user on the cloud terminal transaction interface, and determining the resource configuration data corresponding to the physical resource to be configured from the resource package; Based on the resource configuration data, the resource allocation request is generated.
11. The method according to claim 1, characterized in that: The terminal acquisition request includes: a resource inspection request, and the method further includes: Determine the resource inspection service corresponding to the physical resource to be configured; The resource inspection service is called to initiate a resource inspection request for the physical resource to be configured.
12. A physical resource processing device, characterized in that: include: A request response unit, configured to determine resource configuration data set for the physical resource to be configured in response to a terminal acquisition request; A resource scheduling unit, configured to schedule a target sub-resource corresponding to the resource configuration data from candidate sub-resources respectively corresponding to at least one physical resource; the physical resource is divided into at least one sub-resource, the target sub-resource includes a first candidate sub-resource of a first physical resource whose sum of candidate sub-resources matches the resource configuration data and a second candidate sub-resource of a second physical resource; a resource fusion unit, configured to determine whether the first candidate sub-resource of the first physical resource is in use; if it is determined that the first candidate sub-resource is in use, then determining an access node of a user using the first candidate sub-resource to the first candidate sub-resource, scheduling the access node to a fourth candidate sub-resource of a fourth physical resource, so as to migrate the first candidate sub-resource of the first physical resource to the second physical resource, and controlling the second candidate sub-resource of the second physical resource and the migrated first candidate sub-resource to perform resource merging to obtain a target physical resource located at the second physical resource; The resource utilization unit is used to generate a target virtual terminal based on the target physical resource; the operation interface of the target virtual terminal is displayed by the user corresponding to the electronic device using the target virtual terminal.
13. An electronic device comprising: A processor and a memory for storing programs; The program comprises instructions, which, when executed by the processor, cause the processor to perform the method according to any one of claims 1 to 11.
14. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-11.
Citation Information
Patent Citations
Storage resource management method and device for storage migration of virtual machine
CN106469117A
Computing cluster system, scheduling method and device and storage medium
CN113553190A
Resources allocation method and device, readable medium and electronic equipment
CN114020470A
Virtual machine creation method and device, electronic equipment and storage medium
CN114138405A
Virtual machine cold migration method and device, electronic equipment and storage medium
CN114185641A
