Virtual instance resource processing method and device and medium

By determining and releasing the matching number of virtual instance resources in the virtual instance resource queue, the problem of insufficient release of virtual instance resources in the prior art is solved, ensuring sufficient resources when the vehicle computer logs in, and improving the login experience.

CN119576553APending Publication Date: 2025-03-07ZHEJIANG GEELY HLDG GRP CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411645365.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-18
Publication Date
2025-03-07

AI Technical Summary

Technical Problem

When releasing virtual instance resources, the prior art may not be able to release resources that have changed from non-pushing service to pushing service status, resulting in insufficient resources of virtual instances and affecting vehicle computer login.

Method used

By determining whether the current number of free virtual instance resources meets the preset number threshold, calculate the number of virtual instance resources released, and find a reference virtual instance resource matching the number of freed in the pre-built virtual instance resource queue to perform release processing to ensure that the number of free resources meets the threshold.

Benefits of technology

Without affecting the vehicle-machine flow service, it ensures that there are sufficient idle virtual instance resources and improves the vehicle-machine login experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119576553A_ABST
    Figure CN119576553A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to a virtual instance resource processing method and device and a medium. The method comprises the steps that whether the number of current idle virtual instance resources meets a preset number threshold or not is determined; when the preset number threshold is not met, determining a virtual instance resource release number; reference virtual instance resources matched with the release number of the virtual instance resources are determined in at least one pre-constructed virtual instance resource queue, each virtual instance resource queue comprises the virtual instance resources in a non-plug flow service state, and the reference virtual instance resources are in the non-plug flow service state; the reference virtual instance resources are released, and the number of idle virtual instance resources obtained after the reference virtual instance resources are released meets a preset number threshold. According to the technical scheme, under the condition of not influencing the push flow service of the vehicle-mounted terminal, the idle virtual instance resources are ensured, and the login experience of the vehicle-mounted terminal is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of vehicle control technology, and in particular to a method, device and medium for processing virtual instance resources. Background Art

[0002] Cloud virtual instance resources usually refer to virtual computing resources on the cloud computing platform. These resources are used to support the interaction and service between the vehicle (infotainment system or other networked devices in the vehicle) and the cloud. Cloud virtual instance resources are virtualized computing resources created on the cloud computing platform. These resources can simulate the functions of one or more physical computers. Common virtual instance resources include virtual machines, containers, etc.

[0003] In related technologies, in order to support the interaction and service between the vehicle computer and the cloud, the vehicle computer needs to send a login request to the cloud computing platform, and the cloud computing platform allocates corresponding virtual instance resources for it. When the vehicle computer enters the non-streaming service state, it will record the entry time point. When there are insufficient idle virtual instance resources, the entry duration of the corresponding virtual instance resources is determined based on the entry time point, and the virtual instance resources are released in descending order according to the entry duration.

[0004] However, in the above method of releasing virtual instance resources based on the entry time of entering the non-streaming service state, virtual instance resources that have been transformed from non-streaming service to streaming service state may be determined, and thus the corresponding virtual instance resources cannot be released, thereby affecting the login of the vehicle computer. Summary of the invention

[0005] In order to solve the above technical problem or at least partially solve the above technical problem, the present disclosure provides a method, device and medium for processing virtual instance resources.

[0006] An embodiment of the present disclosure provides a method for processing virtual instance resources, the method comprising: determining whether the current number of idle virtual instance resources meets a preset number threshold; when the preset number threshold is not met, determining the number of virtual instance resources to be released; in at least one pre-constructed virtual instance resource queue, determining reference virtual instance resources that match the number of virtual instance resources to be released, wherein each of the virtual instance resource queues contains virtual instance resources in a non-streaming service state, and the reference virtual instance resources are in the non-streaming service state; releasing the reference virtual instance resources, wherein the number of idle virtual instance resources after the reference virtual instance resources are released meets the preset number threshold.

[0007] The disclosed embodiment also provides a device for processing virtual instance resources, the device comprising: a first determination module, used to determine whether the current number of idle virtual instance resources meets a preset number threshold; a second determination module, used to determine the number of virtual instance resources to be released when the preset number threshold is not met; a third determination module, used to determine, in at least one pre-constructed virtual instance resource queue, reference virtual instance resources that match the number of virtual instance resources to be released, wherein each of the virtual instance resource queues contains virtual instance resources that are in a non-streaming service state, and the reference virtual instance resources are in the non-streaming service state; a release processing module, used to release the reference virtual instance resources, wherein the number of idle virtual instance resources after the reference virtual instance resources are released meets the preset number threshold.

[0008] The embodiment of the present disclosure further provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program is used to execute the method for processing virtual instance resources provided by the embodiment of the present disclosure.

[0009] Compared with the prior art, the technical solution provided by the embodiments of the present disclosure has the following advantages:

[0010] The processing scheme for virtual instance resources provided by the disclosed embodiment determines whether the current number of idle virtual instance resources meets a preset number threshold, and when the preset number threshold is not met, determines the number of virtual instance resources to be released, and determines reference virtual instance resources that match the number of virtual instance resources to be released in at least one pre-built virtual instance resource queue, wherein each virtual instance resource queue contains virtual instance resources that are not in a streaming service state, and the reference virtual instance resources are in a non-streaming service state, and then releases the reference virtual instance resources, wherein the number of idle virtual instance resources after the reference virtual instance resources are released meets the preset number threshold. In this technical scheme, idle virtual instance resources are guaranteed without affecting the streaming service of the vehicle computer, thereby improving the vehicle computer login experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.

[0012] Figure 1 A flowchart of a method for processing virtual instance resources provided by an embodiment of the present disclosure;

[0013] Figure 2A schematic diagram of the interaction process of a virtual instance resource processing provided by an embodiment of the present disclosure;

[0014] Figure 3 A schematic diagram of the structure of a virtual instance resource processing device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0015] 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.

[0016] 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.

[0017] The term "including" and its variations used herein are open inclusions, i.e., "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 additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0018] It should be noted that the concepts such as "first" and "second" mentioned in the present 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.

[0019] 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".

[0020] 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.

[0021] In order to solve the above problems, an embodiment of the present disclosure provides a method for processing virtual instance resources, which is introduced below in conjunction with a specific embodiment.

[0022] Figure 1The flowchart of a method for processing virtual instance resources provided by the embodiment of the present disclosure is a flowchart of a method for processing virtual instance resources, which can be executed by a processing device for virtual instance resources, wherein the device can be implemented by software and / or hardware, and can generally be integrated in a processor. The processor can be a middleware processor, etc. Figure 1 As shown, the method includes:

[0023] Step 101: determine whether the current number of idle virtual instance resources meets a preset number threshold.

[0024] The preset quantity threshold can be set according to the scene requirements, as shown in the following example:

[0025] In some possible examples, the preset quantity threshold is a specific value, which can be any natural number greater than or equal to 0. In this embodiment, it is determined whether the current number of idle virtual instance resources is greater than the preset quantity threshold value. If it is greater than the preset quantity threshold value, it is determined that the preset quantity threshold is met.

[0026] In some possible examples, in order to ensure login stability, a preset ratio threshold between the current number of idle virtual instance resources and the preset maximum concurrent total amount of idle virtual resources is pre-defined. The preset ratio threshold may be 2%, etc., that is, it is necessary to ensure that the ratio of the current number of idle virtual instance resources and the preset maximum concurrent total amount of idle virtual resources is maintained at a preset ratio threshold level to ensure that even when multiple vehicle computers concurrently send vehicle computer login requests, the concurrent login requirements of multiple vehicle computers can be met.

[0027] In this example, the ratio of the current number of idle virtual instance resources to the preset maximum concurrent total number of idle virtual resources is calculated to determine whether the ratio is greater than a preset ratio threshold, wherein when the ratio is greater than the preset ratio threshold, it is determined that the preset quantity threshold is met.

[0028] In an embodiment of the present disclosure, it is determined whether the current number of idle virtual instance resources meets a preset number threshold to determine whether there are idle virtual instance resources that can be allocated for the vehicle computer login request.

[0029] Step 102: When the preset quantity threshold is not met, determine the quantity of virtual instance resources to be released.

[0030] When the preset quantity threshold is not met, the quantity of released virtual instance resources is determined, wherein the quantity of released virtual instance resources refers to the quantity of released virtual instance resources in a non-idle state.

[0031] It should be noted that in different application scenarios, the methods for determining the number of virtual instance resources to be released are different. The examples are as follows:

[0032] In some possible examples, a first quantity difference between a preset quantity threshold and a current number of idle virtual instance resources is calculated, that is, a first quantity difference between a quantity corresponding to the preset quantity threshold and a current number of idle virtual instance resources is determined, and the first quantity difference is determined to be the number of virtual instance resources released.

[0033] In this example, if the preset quantity threshold is the preset ratio threshold mentioned above, the product value of the preset ratio threshold and the preset maximum concurrent total amount of idle virtual resources is calculated, and the product value is determined to be the quantity corresponding to the preset quantity threshold.

[0034] In some possible examples, considering that a number of vehicle computer login requests may be obtained (which may be obtained in real time or may be pre-obtained vehicle computer login requests in a waiting state), therefore, in order to ensure that the vehicle computer can log in normally, in this example, the number of vehicle computer login requests currently obtained is determined, and the target virtual instance resource quantity is determined based on the number of vehicle computer login requests and the preset number threshold. For example, the sum of the number of vehicle computer login requests and the number corresponding to the preset number threshold can be calculated, and the sum is determined to be the target virtual instance resource quantity.

[0035] Furthermore, a second quantity difference between the target virtual instance resource quantity and the current idle virtual instance resource quantity is calculated, and the second quantity difference is determined to be the virtual instance resource release quantity.

[0036] Step 103, determining a reference virtual instance resource that matches the number of virtual instance resources released in at least one pre-built virtual instance resource queue, wherein each virtual instance resource queue contains virtual instance resources in a non-streaming service state, and the reference virtual instance resource is in a non-streaming service state.

[0037] It should be noted that, in the embodiment of the present disclosure, at least one virtual instance resource queue is pre-built, wherein each virtual instance resource queue contains virtual instance resources in a non-streaming service state.

[0038] In one embodiment of the present disclosure, the virtual instance resource queue includes multiple virtual instance resources, the virtual instance resources in the same virtual instance resource queue are in the same non-streaming service state, and the virtual instance resources in different virtual instance resource queues are in different non-streaming service states, wherein being in the streaming service state indicates that the corresponding virtual instance resource is used by the vehicle computer to provide related services at this time, and not being in the streaming service state indicates that the corresponding virtual instance resource is not used by the vehicle computer to provide related services at this time.

[0039] In this embodiment, the virtual instance resource queue corresponding to each non-streaming service state is maintained in real time, and the virtual instance resources in the non-streaming service state are added to the corresponding virtual instance resource queue. It should be emphasized that the virtual instance resources closer to the front in the virtual instance resource queue are in the non-streaming service state for a longer time, and the virtual instance resources closer to the back in the virtual instance resource queue are in the non-streaming service state for a shorter time.

[0040] Of course, in some possible embodiments, non-streaming service states may not be distinguished, and virtual instance resources corresponding to different non-streaming service states are added to the same virtual instance resource queue, and are sorted in the virtual instance resource queue in the order of the time when they are in the non-streaming service state.

[0041] Among them, the specific business state corresponding to the non-streaming business state can be set according to the needs of the scene. In some possible embodiments, the non-streaming business state may include a power-on preheating state and a power-off reserved state. Among them, the power-on preheating state is to request the allocation of corresponding virtual instance resources before the car computer sends a car computer login request. At this time, the car computer is not in the streaming business state. This is because the user is most likely to log in after the car computer is ignited, so preheating the virtual instance resources in advance will reduce the time from instance startup to streaming; the power-off reserved state is because it is considered that the user may log in again after the car computer is turned off, so the occupation of virtual instance resources is reserved first. At this time, the car computer is not in the streaming business state, and the power-off reserved state will also reduce the time from shutdown to streaming.

[0042] That is, in this embodiment, the states of virtual instance resources can be divided into four types: power-on preheating state, power-off reserved state, streaming service state and idle state, among which the power-on preheating state and power-off reserved state are both non-streaming service states.

[0043] The following are specific examples to illustrate these four states:

[0044] like Figure 2 As shown, after the vehicle is ignited, the vehicle computer is turned on. At this time, the cloud base (the cloud base is a series of technologies and infrastructures required to support the vehicle computer login function. The "base" here is not a specific hardware device, but refers to the various software and services required to support the vehicle computer login function, including but not limited to computing resources, storage resources, network resources, database services, security services, monitoring services, and related API interfaces. These components together constitute a complete environment, allowing the vehicle computer to successfully log in and use the services provided by the cloud computing platform) reports the startup event to the processor, and the processor sends an instance acquisition request to the cloud computing platform, requesting the corresponding virtual instance resources. The allocated virtual instance resources are in a startup preheating state at this time.

[0045] Furthermore, after entering the preset power-on state, a countdown starts according to the first preset time length, and it is monitored whether the vehicle computer enters the cloud base to start streaming within the first preset time length. If streaming starts, streaming is pushed through the pre-acquired virtual instance resources. At this time, the virtual instance resources are in the streaming service state, and the corresponding virtual instance resources are deleted from the virtual instance resource queue. On the contrary, if the vehicle computer does not enter the cloud base to start streaming within the first preset time length, the corresponding virtual instance resources are released, and the corresponding virtual instance resources are deleted from the virtual instance resource queue.

[0046] If the vehicle computer logs out of the cloud computing platform after entering the streaming service state, the streaming ends and the vehicle computer enters the shutdown reservation state. That is, the corresponding virtual instance resources are not released at this time, and the corresponding virtual instance resources are added to the corresponding virtual instance resource queue. At this time, the virtual instance resources enter the shutdown reservation state.

[0047] After entering the shutdown reservation state, a countdown starts according to the second preset time length, and it is monitored whether the vehicle computer enters the cloud base to start pulling the stream within the second preset time length. If the stream starts pulling the stream, the stream is pushed through the pre-acquired virtual instance resources. At this time, the virtual instance resources are in the streaming service state. At this time, the corresponding virtual instance resources are deleted from the virtual instance resource queue. On the contrary, if the vehicle computer does not enter the cloud base to start pulling the stream within the second preset time length, the corresponding virtual instance resources are released. At this time, the corresponding virtual instance resources are deleted from the virtual instance resource queue.

[0048] In an embodiment of the present disclosure, after a virtual instance resource queue is constructed, a reference virtual instance resource matching the number of released virtual instance resources is determined in at least one pre-constructed virtual instance resource queue, and the reference virtual instance resource is in a non-streaming service state.

[0049] Among them, in some possible examples, it is possible to determine whether each virtual instance resource is currently in a non-pushing business state one by one in the order from front to back in the virtual instance resource queue (in fact, the virtual instance resources in the virtual instance resource queue should be in a non-pushing business state at this time, because after switching to the pushing business state, the virtual instance resources maintained in real time will delete the corresponding virtual instance resources. The purpose of determining the current business state of the virtual instance resources in this step is only to further ensure reliability). If it is in a non-pushing business state, the virtual instance resource is determined to be a reference virtual instance resource until a reference virtual instance resource matching the number of virtual instance resources released is determined. In this example, since the virtual instance resources in the virtual instance resource queue are arranged according to the duration of being in a non-pushing business state, the virtual instance resource at the head of the queue has the longest duration in a non-pushing business state. Compared with the prior art, it is first necessary to calculate the entry duration of the virtual instance resource that enters the non-pushing business state that is pre-stored. When determining the virtual instance resource based only on the entry duration, it may be determined that the virtual instance resource with the longest duration is switched to the pushing business state at this time, resulting in the inability to release the virtual instance resource, thereby affecting the vehicle machine login.

[0050] In the embodiments of the present disclosure, since the virtual instance resource queue is maintained in real time and includes virtual instance resources in a non-streaming business state, and the virtual instance resources in a non-streaming business state in the queue are sorted according to the non-streaming business state, even if some virtual instance resources are switched to a streaming business state, they will be deleted from the real-time maintained virtual instance resource queue. Therefore, the reference virtual instance resources are determined by comprehensively considering the duration of the non-streaming business state and the current actual state of the virtual instance resources, thereby ensuring that subsequent vehicle computer logins have sufficient available idle virtual instance resources, thereby ensuring the vehicle computer login experience.

[0051] In some possible examples, reference virtual instance resources that match the number of released virtual instance resources may be determined directly from the head of the queue in a front-to-back order in the virtual instance resource queue, thereby improving the efficiency of determining reference virtual instance resources.

[0052] During the actual execution process, there may be multiple pre-built at least one virtual instance resource queue. Therefore, in one embodiment of the present disclosure, a target virtual instance resource queue can be determined in at least one virtual instance resource queue, and then, according to the order from front to back in the target virtual instance resource queue, it is identified whether each virtual instance resource is currently in a non-streaming business state, and the virtual instance resources that are not in a non-streaming business state are determined as reference virtual instance resources, until the reference virtual instance resources that match the number of virtual instance resources released are determined.

[0053] Among them, any one of the at least one virtual instance resource queues can be determined as the target virtual instance resource queue; or, the non-pushing business type corresponding to each virtual instance resource queue can also be identified, and the non-pushing business type is determined to be the virtual instance resource queue corresponding to the preset non-pushing business type as the target virtual instance resource queue, and the preset non-pushing business type can be calibrated according to the scenario, for example, it can be a business type reserved for shutdown, etc.; or, all virtual instance resource queues can also be determined as the target virtual instance resource queues; or, multiple virtual instance resource queues can also be determined as the target virtual instance resource queues.

[0054] When more than one target virtual instance resource queue is determined, it is possible to synchronize multiple target virtual instance resource queues and identify whether each virtual instance resource is currently in a non-streaming service state in the order from front to back in the target virtual instance resource queues until a reference virtual instance resource that matches the number of virtual instance resources released is determined, thereby further improving the release efficiency of the reference virtual instance resources. In this example, the correspondence between the number of target virtual instance resource queues and the range of virtual instance resource releases can also be determined in advance. After determining the number of virtual instance resources released, the correspondence is queried to determine the number of target virtual instance resource queues.

[0055] Step 104 : releasing the reference virtual instance resources, wherein the number of idle virtual instance resources after the reference virtual instance resources are released meets a preset number threshold.

[0056] After determining the reference virtual instance resources, the reference virtual instance resources are directly released, wherein the number of idle virtual instance resources after the reference virtual instance resources are released meets the preset number threshold, thereby avoiding the problem of insufficient number of virtual idle virtual instance resources leading to vehicle computer login failure.

[0057] In one embodiment of the present disclosure, in order to further enhance the user experience, after determining the reference virtual instance resources, a release notification message may be sent to the corresponding vehicle terminal. If no rejection message is received from the vehicle terminal within a preset time threshold, the corresponding reference virtual instance resources are released. On the contrary, if a rejection message is received from the vehicle terminal within a preset time threshold, the corresponding reference virtual instance resources are not released. The corresponding number of reference virtual instance resources are determined again according to the above method based on the number of rejected vehicle terminals, and the above steps are repeated to release the newly determined reference virtual instance resources.

[0058] In summary, the method for processing virtual instance resources in the disclosed embodiment determines whether the current number of idle virtual instance resources meets a preset number threshold, and when the preset number threshold is not met, determines the number of virtual instance resources to be released, and determines reference virtual instance resources that match the number of virtual instance resources to be released in at least one pre-built virtual instance resource queue, wherein each virtual instance resource queue contains virtual instance resources that are in a non-streaming service state, and the reference virtual instance resources are in a non-streaming service state, and then, the reference virtual instance resources are released, wherein the number of idle virtual instance resources after the reference virtual instance resources are released meets the preset number threshold. In this technical solution, idle virtual instance resources are guaranteed without affecting the streaming service of the vehicle computer, thereby improving the vehicle computer login experience.

[0059] In order to implement the above embodiment, the present disclosure also proposes a processing device for virtual instance resources.

[0060] Figure 3 This is a schematic diagram of the structure of a virtual instance resource processing device provided by an embodiment of the present disclosure. The device can be implemented by software and / or hardware and can generally be integrated in a processor. Figure 3 As shown, the device includes: a first determination module 310, a second determination module 320, a third determination module 330 and a release processing module 340, wherein:

[0061] A first determination module 310 is used to determine whether the current number of idle virtual instance resources meets a preset number threshold;

[0062] A second determination module 320, configured to determine the number of virtual instance resources to be released when a preset number threshold is not met;

[0063] The third determination module 330 is used to determine, in at least one pre-built virtual instance resource queue, a reference virtual instance resource that matches the number of virtual instance resources released, wherein each virtual instance resource queue contains virtual instance resources in a non-streaming service state, and the reference virtual instance resource is in a non-streaming service state;

[0064] The release processing module 340 is used to release the reference virtual instance resources, wherein the number of idle virtual instance resources after the reference virtual instance resources are released meets a preset number threshold.

[0065] The processing device for virtual instance resources provided in the embodiments of the present disclosure can execute the processing method for virtual instance resources provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.

[0066] In order to implement the above embodiments, the present disclosure further proposes a computer program product, including a computer program / instruction, which implements the method for processing virtual instance resources in the above embodiments when executed by a processor.

[0067] In order to implement the above embodiment, the present disclosure further proposes a computer-readable storage medium, which stores a computer program, and the computer program is used to execute the above virtual instance resource processing method.

[0068] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0069] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit does not, in some cases, limit the unit itself.

[0070] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.

[0071] 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.

[0072] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

[0073] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0074] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims

1. A method for processing virtual instance resources, characterized in that: include: Determine whether the current number of idle virtual instance resources meets a preset number threshold; When the preset quantity threshold is not met, determining the quantity of virtual instance resources to be released; Determine, in at least one pre-built virtual instance resource queue, a reference virtual instance resource that matches the released quantity of the virtual instance resources, wherein each of the virtual instance resource queues contains virtual instance resources that are in a non-streaming service state, and the reference virtual instance resources are in the non-streaming service state; The reference virtual instance resource is released, wherein the number of idle virtual instance resources after the reference virtual instance resource is released meets the preset number threshold.

2. The method according to claim 1, characterized in that The determining whether the current number of idle virtual instance resources meets a preset number threshold includes: Calculate the ratio of the current number of idle virtual instance resources to the preset maximum concurrent total number of idle virtual resources; Determine whether the ratio is greater than a preset ratio threshold, wherein when the ratio is greater than the preset ratio threshold, determine that the preset quantity threshold is met.

3. The method according to claim 1, characterized in that The step of determining the number of virtual instance resources to be released includes: Calculate a first quantity difference corresponding to the preset quantity threshold and the current idle virtual instance resource quantity; The first quantity difference is determined as the released quantity of the virtual instance resources.

4. The method according to claim 1, characterized in that The step of determining the number of virtual instance resources to be released includes: Determine the number of vehicle computer login requests currently obtained; Determine the target virtual instance resource quantity according to the vehicle computer login request quantity and the preset quantity threshold; Calculate a second quantity difference between the target virtual instance resource quantity and the current idle virtual instance resource quantity; The second quantity difference is determined as the virtual instance resource release quantity.

5. The method according to claim 1, characterized in that The virtual instance resource queues include multiple ones, the virtual instance resources in the same virtual instance resource queue are in the same non-streaming service state, and the virtual instance resources in different virtual instance resource queues are in different non-streaming service states.

6. The method according to claim 5, characterized in that Also includes: Add the virtual instance resources that are not in the streaming service state to the corresponding virtual instance resource queue.

7. The method according to any one of claims 1 to 6, characterized in that: The step of determining, in at least one pre-built virtual instance resource queue, a reference virtual instance resource that matches the released quantity of the virtual instance resources comprises: Determining a target virtual instance resource queue in the at least one virtual instance resource queue; Identify whether each virtual instance resource is currently in the non-streaming service state according to the order from front to back in the target virtual instance resource queue; The virtual instance resources in the non-streaming service state are determined as the reference virtual instance resources, until the reference virtual instance resources matching the released quantity of the virtual instance resources are determined.

8. The method according to claim 7, characterized in that The step of determining a target virtual instance resource queue in the at least one virtual instance resource queue comprises: Determine any one of the at least one virtual instance resource queues as the target virtual instance resource queue; or, Identify the non-streaming service type corresponding to each virtual instance resource queue, Determine that the non-streaming service type is a virtual instance resource queue corresponding to a preset non-streaming service type as the target virtual instance resource queue; or, All the virtual instance resource queues are determined to be the target virtual instance resource queues.

9. A processing device for virtual instance resources, characterized in that: include: A first determination module is used to determine whether the current number of idle virtual instance resources meets a preset number threshold; A second determination module, configured to determine the number of virtual instance resources to be released when the preset number threshold is not met; A third determination module is used to determine, in at least one pre-built virtual instance resource queue, a reference virtual instance resource that matches the released quantity of the virtual instance resource, wherein each of the virtual instance resource queues contains virtual instance resources that are in a non-streaming service state, and the reference virtual instance resource is in the non-streaming service state; The release processing module is used to perform release processing on the reference virtual instance resources, wherein the number of idle virtual instance resources after the reference virtual instance resources are released meets the preset number threshold.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is used to execute the method for processing virtual instance resources as described in any one of claims 1 to 8.