Mode switching method, device, storage medium and program product

By obtaining the client's mode switching request and configuring cloud resources according to the target mode, the problem of poor user experience caused by fixed instance resource configuration is solved, and resource adjustment according to different scenarios is realized, thereby improving the user experience.

CN122111527APending Publication Date: 2026-05-29ALIBABA CLOUD COMPUTING CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411731810.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-28
Publication Date
2026-05-29

AI Technical Summary

Technical Problem

In existing technologies, the cloud resources configured for instances are fixed, which cannot meet the user's needs in different scenarios, resulting in a poor user experience.

Method used

By obtaining the client's mode switching request, the cloud resources that match the target mode are configured, including adjustments to resources such as processor cores and memory, and resources are released or added to meet the demand.

Benefits of technology

It enables the configuration of different cloud resources according to different scenarios, thereby improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122111527A_ABST
    Figure CN122111527A_ABST
Patent Text Reader

Abstract

The application provides a mode switching method, device, storage medium and program product, which are applied to a management and control server. The method comprises the following steps: acquiring a mode switching request sent by a client, wherein the mode switching request is used for indicating a target instance to be switched and a target mode; wherein the target instance is any instance in at least one instance of the client, and the target mode is any mode in multiple modes selectable by the client; and cloud resources matched with the target mode are configured for the target instance. The use experience of a user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of cloud computing, and more particularly to a mode switching method, device, storage medium, and program product. Background Technology

[0002] At least one instance can run on a terminal device. Users can use the instance to process business. Each instance can be configured with cloud resources.

[0003] In related technologies, users typically need to select the resource configuration of an instance when purchasing it. However, in the above-mentioned methods, the cloud resources configured for the instance are fixed, which cannot meet the user's needs in different scenarios, resulting in a poor user experience. Summary of the Invention

[0004] This application provides a mode switching method, device, storage medium, and program product to address the problem of poor user experience.

[0005] In a first aspect, embodiments of this application provide a mode switching method applied to a management and control server, the method comprising:

[0006] Obtain a mode switching request sent by the client, the mode switching request being used to indicate the target instance to be switched to and the target mode; wherein, the target instance is any instance of at least one instance of the client, and the target mode is any mode of a variety of modes that the client can select;

[0007] Configure cloud resources for the target instance that match the target pattern.

[0008] In one possible implementation, configuring cloud resources for the target instance that match the target pattern includes:

[0009] Determine the resource quantity corresponding to the target mode, where the resource quantity represents the size or quantity of cloud resources;

[0010] Configure corresponding cloud resources for the target instance based on the resource quantity corresponding to the target mode.

[0011] In one possible implementation, the cloud resources include at least one type, and the resource quantity corresponding to the target mode includes the resource quantity corresponding to the at least one type of cloud resources;

[0012] Based on the resource quantity corresponding to the target mode, configure the corresponding cloud resources for the target instance, including:

[0013] For each type, cloud resources of that type are configured for the target instance based on the resource quantity and configuration method corresponding to that type.

[0014] In one possible implementation, the type of cloud resources includes cloud processor cores and / or memory;

[0015] The memory configuration method includes: if the memory size corresponding to the current mode of the target instance is greater than the memory size corresponding to the target mode, then release the memory configured for the target instance in the current mode, and reconfigure the memory for the target instance according to the resource amount corresponding to the target mode;

[0016] The configuration method corresponding to the processor cores includes: if the number of processor cores corresponding to the current mode of the target instance is greater than the number of processor cores corresponding to the target mode, then based on the number of processor cores configured for the target instance in the current mode, a portion of the processor cores are reduced according to the number of processor cores in the target mode.

[0017] In one possible implementation, based on the number of processor cores configured for the target instance in the current mode, a portion of the processor cores are reduced according to the number of processor cores in the target mode, including:

[0018] Determine the utilization rate of each processor core for the target instance under the current mode;

[0019] The utilization rates of each processor core are sorted in ascending order to obtain the sorting results;

[0020] Release the processor cores corresponding to the top N utilization rates in the sorting results, where N is the difference between the number of processor cores corresponding to the current mode and the number of processor cores corresponding to the target mode.

[0021] In one possible implementation, for each type, cloud resources of that type are configured for the target instance based on the resource quantity and configuration method corresponding to that type, including:

[0022] If the resource quantity of at least one type meets the requirements, then for each type, cloud resources of that type are configured for the target instance according to the resource quantity corresponding to that type and the configuration method corresponding to that type.

[0023] The method further includes: if the amount of resources corresponding to any type is insufficient, then sending a resource shortage prompt message to the client;

[0024] Wherein, the requirement for any type of resource quantity to meet the requirement means that the difference between the resource quantity of that type in the target mode and the current mode is less than or equal to the amount of that type of resource quantity that is not currently allocated in the cloud.

[0025] In one possible implementation, the management server maintains a resource list corresponding to the client, the resource list including multiple cloud resources available for the client to use; the method further includes:

[0026] When configuring resources for the target instance, if new cloud resources are needed, then some idle cloud resources are selected from the resource list as the new cloud resources; if cloud resources are needed to be released, then some cloud resources occupied by the target instance are selected from the resource list as the cloud resources to be released.

[0027] After configuration, if there are released cloud resources, they will be marked as idle in the resource list; if there are newly added cloud resources, they will be marked as occupied by the target instance in the resource list.

[0028] In one possible implementation, the method further includes:

[0029] Record usage information for at least one instance of the client, including the usage duration of the instance in each mode;

[0030] Based on the usage information of the at least one instance, the corresponding fee information for the client is generated; wherein, the unit price of the fee is different for different modes.

[0031] Secondly, embodiments of this application provide a mode switching method applied to a client, the method comprising:

[0032] Displays the mode switching interface for the target instance;

[0033] In response to a user's selection operation on the mode switching interface, a mode switching request is generated, wherein the selection operation is used to select a target mode to be switched to for the target instance from among multiple modes in the mode switching interface.

[0034] A mode switching request is sent to the management server. The mode switching request is used to indicate the target instance and the target mode, so that the management server configures cloud resources for the target instance that match the target mode according to the mode switching request.

[0035] Thirdly, embodiments of this application provide a mode switching method applied to a management and control server, the method comprising:

[0036] Obtain a mode switching request sent by the client, the mode switching request being used to indicate the target cloud computer to be switched to and the target mode; wherein, the target cloud computer is any one of at least one cloud computer of the client, and the target mode is any one of a variety of modes that the client can select;

[0037] Configure cloud resources for the target cloud computer that match the target mode.

[0038] Fourthly, embodiments of this application provide a mode switching device applied to a management and control server. The device includes an acquisition module and a configuration module, wherein...

[0039] The acquisition module is used to acquire a mode switching request sent by the client, wherein the mode switching request is used to indicate the target instance to be switched and the target mode; wherein the target instance is any instance of at least one instance of the client, and the target mode is any mode of a variety of modes that the client can select;

[0040] The configuration module is used to configure cloud resources for the target instance that match the target mode.

[0041] In one possible implementation, the configuration module is specifically used for:

[0042] Determine the resource quantity corresponding to the target mode, where the resource quantity represents the size or quantity of cloud resources;

[0043] Configure corresponding cloud resources for the target instance based on the resource quantity corresponding to the target mode.

[0044] In one possible implementation, the cloud resources include at least one type, and the resource quantity corresponding to the target mode includes the resource quantity corresponding to the at least one type of cloud resources; the configuration module is specifically used for:

[0045] For each type, cloud resources of that type are configured for the target instance based on the resource quantity and configuration method corresponding to that type.

[0046] In one possible implementation, the type of cloud resources includes cloud processor cores and / or memory;

[0047] The memory configuration method includes: if the memory size corresponding to the current mode of the target instance is greater than the memory size corresponding to the target mode, then release the memory configured for the target instance in the current mode, and reconfigure the memory for the target instance according to the resource amount corresponding to the target mode;

[0048] The configuration method corresponding to the processor cores includes: if the number of processor cores corresponding to the current mode of the target instance is greater than the number of processor cores corresponding to the target mode, then based on the number of processor cores configured for the target instance in the current mode, a portion of the processor cores are reduced according to the number of processor cores in the target mode.

[0049] In one possible implementation, the configuration module is specifically used for:

[0050] Determine the utilization rate of each processor core for the target instance under the current mode;

[0051] The utilization rates of each processor core are sorted in ascending order to obtain the sorting results;

[0052] Release the processor cores corresponding to the top N utilization rates in the sorting results, where N is the difference between the number of processor cores corresponding to the current mode and the number of processor cores corresponding to the target mode.

[0053] In one possible implementation, the configuration module is specifically used for:

[0054] If the resource quantity of at least one type meets the requirements, then for each type, cloud resources of that type are configured for the target instance according to the resource quantity corresponding to that type and the configuration method corresponding to that type.

[0055] If the resource quantity for any type is insufficient, a resource shortage message will be sent to the client.

[0056] Wherein, the requirement for any type of resource quantity to meet the requirement means that the difference between the resource quantity of that type in the target mode and the current mode is less than or equal to the amount of that type of resource quantity that is not currently allocated in the cloud.

[0057] In one possible implementation, the management server maintains a resource list corresponding to the client, the resource list including multiple cloud resources available for the client to use; the configuration module is further configured to:

[0058] When configuring resources for the target instance, if new cloud resources are needed, then some idle cloud resources are selected from the resource list as the new cloud resources; if cloud resources are needed to be released, then some cloud resources occupied by the target instance are selected from the resource list as the cloud resources to be released.

[0059] After configuration, if there are released cloud resources, they will be marked as idle in the resource list; if there are newly added cloud resources, they will be marked as occupied by the target instance in the resource list.

[0060] In one possible implementation, the device further includes a recording module and a generation module, wherein,

[0061] The recording module is used to record the usage information of at least one instance of the client, the usage information of the instance including the usage duration of the instance in each mode;

[0062] The generation module is used to generate the fee information corresponding to the client based on the usage information of the at least one instance; wherein the unit price of the fee is different for different modes.

[0063] Fifthly, embodiments of this application provide a mode switching device applied to a client, the device comprising: a display module, a generation module, and a sending module, wherein...

[0064] The display module is used to display the mode switching interface of the target instance;

[0065] The generation module is used to generate a mode switching request in response to the user's selection operation on the mode switching interface. The selection operation is used to select the target mode to be switched to for the target instance from multiple modes in the mode switching interface.

[0066] The sending module is used to send a mode switching request to the management server. The mode switching request is used to indicate the target instance and the target mode, so that the management server configures cloud resources for the target instance that match the target mode according to the mode switching request.

[0067] Sixthly, embodiments of this application provide an electronic device, including: a memory and a processor;

[0068] The memory stores computer-executed instructions;

[0069] The processor executes computer execution instructions stored in the memory, causing the processor to perform the method described in any one of the first, second, or third aspects.

[0070] In a seventh aspect, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions that, when executed by a processor, are used to implement the method described in any one of the first, second, or third aspects.

[0071] Eighthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the methods shown in any one of the first, second, or third aspects.

[0072] This application provides a mode switching method, device, storage medium, and program product. The management server can obtain mode switching requests sent by clients and configure cloud resources matching the target mode for the target instance based on the mode switching request. Since different cloud resources can be configured for instances according to different modes, the user's needs in different scenarios are met, thus improving the user experience. Attached Figure Description

[0073] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:

[0074] Figure 1 A schematic diagram illustrating an application scenario provided for an exemplary embodiment of this application;

[0075] Figure 2 A flowchart illustrating a mode switching method provided for an exemplary embodiment of this application;

[0076] Figure 3 A flowchart illustrating another mode switching method provided for an exemplary embodiment of this application;

[0077] Figure 4 A flowchart illustrating the process of determining cost information is provided for an exemplary embodiment of this application;

[0078] Figure 5 A flowchart illustrating yet another mode switching method provided for an exemplary embodiment of this application;

[0079] Figure 6 A schematic diagram of a mode switching interface provided for an exemplary embodiment of this application;

[0080] Figure 7 A schematic diagram of a modal interface provided for an exemplary embodiment of this application;

[0081] Figure 8 A flowchart illustrating another mode switching method provided for an exemplary embodiment of this application;

[0082] Figure 9 This is a schematic diagram of the structure of a mode switching device provided in an embodiment of this application;

[0083] Figure 10A schematic diagram of another mode switching device provided as an exemplary embodiment of this application;

[0084] Figure 11 A schematic diagram of the structure of another mode switching device provided as an exemplary embodiment of this application;

[0085] Figure 12 This is a schematic diagram of the structure of an electronic device provided as an exemplary embodiment of this application. Detailed Implementation

[0086] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data must comply with relevant laws, regulations and standards, and corresponding operation entry points are provided for users to choose to authorize or refuse.

[0087] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0088] Below, in conjunction with Figure 1 The application scenarios of this application will be explained.

[0089] Figure 1 This is a schematic diagram illustrating an application scenario provided for an exemplary embodiment of this application. Please refer to [link / reference]. Figure 1 The client can include at least one instance. For example, the client can include instance 1, instance 2, instance 3, ...

[0090] The management server may include at least one cloud resource. For example, at least one cloud resource may be a processor core, memory, etc.

[0091] For any given instance, the management server can provide cloud resources. For example, the management server can provide instance 1 with 4 processor cores and 8GB of memory.

[0092] In related technologies, users typically need to select the resource configuration of an instance when purchasing it. However, in the above-mentioned methods, the cloud resources configured for the instance are fixed, which cannot meet the user's needs in different scenarios, resulting in a poor user experience.

[0093] In this embodiment, an instance can correspond to multiple modes. Different modes correspond to different cloud resources. The client can send a mode switching request to the management server, and the management server can configure cloud resources matching the target mode for the instance based on the target mode in the mode switching request. Since different cloud resources can be configured for instances according to different modes, the user's needs in different scenarios can be met, thus improving the user experience.

[0094] The technical solutions shown in this application will now be described in detail through specific embodiments. It should be noted that the following embodiments may exist independently or in combination with each other; for identical or similar content, the description will not be repeated in different embodiments.

[0095] The execution entity in this application embodiment can be a management server or a mode switching device set in the management server. The mode switching device can be implemented by software or by a combination of software and hardware. The mode switching device can be a processor in the management server. For ease of understanding, the following description will use the management server as the execution entity.

[0096] Figure 2 This is a flowchart illustrating a mode switching method provided for an exemplary embodiment of this application. Please refer to [link / reference]. Figure 2 The method may include:

[0097] S201. Obtain the mode switching request sent by the client.

[0098] Optionally, the client can be a user's terminal device or a soft terminal within the terminal device. A soft terminal can be client software running on the terminal device.

[0099] A mode switching request can be used to indicate the target instance and the target mode to be switched to. Optionally, the mode switching request may include an identifier for the target instance and an identifier for the target mode. The identifier for the target instance can be used to indicate the target instance, and the identifier for the target mode can be used to indicate the target mode.

[0100] The client may include at least one instance. The target instance can be any of the at least one instances of the client.

[0101] The target instance can be configured with multiple modes, and the target mode can be any of the multiple modes that the client can choose.

[0102] Users can specify the target instance and target mode to be switched on the client and send a mode switch request to the management server through the client. The management server can receive mode switch requests sent by the client.

[0103] For example, the management server can receive a mode switching request sent by the client. The mode switching request can include the identifier of the target instance E01 and the identifier of the target mode M3. The mode switching request indicates that the target instance to be switched to is instance E01 and the target mode is mode M3.

[0104] S202. Configure cloud resources for the target instance that match the target pattern.

[0105] The management server can include at least one type of cloud resource. For example, at least one type of cloud resource can include resources such as processor cores, memory, and bandwidth.

[0106] For any given mode, there are corresponding cloud resources. For example, if there are four modes, namely mode M1, mode M2, mode M3, and mode M4, then the cloud resources corresponding to each mode can be shown in Table 1:

[0107] Table 1

[0108]

[0109] Optionally, cloud resources matching the target mode can be configured for the target instance in the following ways: determine the amount of resources corresponding to the target mode; configure the corresponding cloud resources for the target instance based on the amount of resources corresponding to the target mode.

[0110] Resource quantity can be used to represent the size or quantity of cloud resources. For example, for processor cores, resource quantity can represent the number of processor cores; for memory, resource quantity can represent the size of memory.

[0111] For example, if the mode switching request indicates that the target instance to be switched is instance E01 and the target mode is mode M3, and if the amount of cloud resources corresponding to mode M3 is as shown in Table 1, then the management server can configure 8 processor cores and 16G of memory for instance E01 according to the amount of resources corresponding to mode M3.

[0112] In this embodiment, the management server can obtain the mode switching request sent by the client and configure cloud resources matching the target mode for the target instance according to the mode switching request. Since different cloud resources can be configured for instances according to different modes, the user's needs in different scenarios are met, thus improving the user experience.

[0113] Below, in Figure 2 Based on the implementation examples, combined with Figure 3 The above mode switching method will be explained in detail.

[0114] Figure 3A flowchart illustrating another mode switching method provided for an exemplary embodiment of this application. Please refer to [link / reference]. Figure 3 The methods may include:

[0115] S301. Obtain the mode switching request sent by the client.

[0116] It should be noted that the execution process of step S301 can be referred to the execution process of step S201, and will not be repeated here.

[0117] S302. Determine the resource quantity corresponding to the target mode.

[0118] Cloud resources can include at least one type, therefore the resource quantity corresponding to the target mode includes the resource quantity corresponding to at least one type of cloud resources. For example, as shown in Table 1, the resource quantity corresponding to each mode can include the number of processor cores and the memory size.

[0119] For example, if the mode switching request indicates that the target mode is mode M3, and if the cloud resources corresponding to mode M3 are as shown in Table 1, then the management server can determine that the resources corresponding to mode M3 include 8 processor cores and 16G of memory.

[0120] S303. For each type, configure the cloud resources of that type for the target instance according to the resource quantity and configuration method corresponding to that type.

[0121] Since the resource quantity corresponding to the target mode includes the resource quantity corresponding to at least one type of cloud resource, for each type, the cloud resource of that type can be configured for the target instance according to the resource quantity corresponding to that type and the configuration method corresponding to that type.

[0122] Optionally, if the resource quantity of at least one type meets the requirements, then for each type, cloud resources of that type can be configured for the target instance according to the resource quantity and configuration method corresponding to that type; if the resource quantity corresponding to any type does not meet the requirements, then a resource shortage prompt message is sent to the client.

[0123] The requirement that any type of resource quantity meets the requirement means that the difference between the resource quantity of that type in the target mode and the current mode is less than or equal to the unallocated resource quantity of that type in the cloud.

[0124] For example, if the unallocated resources on the management server include 10 processor cores and 20GB of memory, and if the target mode is mode M3 and the current mode is mode M1, then when the cloud resource is processor cores, the difference in the number of processor cores between the target mode and the current mode is 4. Since the management server has 10 unallocated processor cores, the number of processor cores meets the requirement. When the cloud resource is memory, the difference in memory between the target mode and the current mode is 8GB. Since the management server has 20GB of unallocated memory, the memory size also meets the requirement. The management server can configure processor cores for the target instance based on the number of processor cores and their corresponding configuration methods; it can also configure memory for the target instance based on the memory size and its corresponding configuration methods.

[0125] For example, if the unallocated resources on the management server include 10 processor cores and 5GB of memory, and if the target mode is mode M3 and the current mode is mode M1, then when the cloud resource is processor cores, the difference in the number of processor cores between the target mode and the current mode is 4. Since the unallocated processor cores on the management server are 10, it can be determined that the number of processor cores meets the requirement. When the cloud resource is memory, the difference in memory between the target mode and the current mode is 8GB. Since the unallocated memory on the management server is 5GB, it can be determined that the memory size does not meet the requirement. The management server can send a notification message to the client to inform the user of the insufficient resources.

[0126] In one optional embodiment, the memory configuration method may include: if the memory size corresponding to the current mode of the target instance is greater than the memory size corresponding to the target mode, then release the memory configured for the target instance in the current mode, and reconfigure the memory for the target instance according to the resource amount corresponding to the target mode; if the memory size corresponding to the current mode of the target instance is less than the memory size corresponding to the target mode, then directly add memory to the target instance.

[0127] For example, if the target instance is instance E01, the current mode is mode M1, the target mode is mode M3, mode M1 corresponds to 8GB of memory, and mode M3 corresponds to 16GB of memory, since the memory size of the current mode is smaller than the memory size of the target mode, the management server can directly allocate 8GB of new memory to instance E01. If the current mode is mode M3 and the target mode is mode M1, since the memory size of the current mode is larger than the memory size of the target mode, the management server can release the 16GB of memory allocated to instance E01 under mode M3 and reallocate 8GB of memory to instance E01 according to mode M1.

[0128] In another optional embodiment, the memory configuration method may include: if the memory size corresponding to the current mode of the target instance is greater than the memory size corresponding to the target mode, then the target memory is determined in the memory corresponding to the current mode according to the memory size corresponding to the target mode, and the target memory is released, wherein the size of the target memory is the memory size corresponding to the target mode.

[0129] For example, if the target instance is instance E01, the current mode is mode M3, the target mode is mode M1, the memory size corresponding to mode M3 is 16G, and the memory size corresponding to mode M1 is 8G, since the memory size corresponding to the current mode is greater than the memory size corresponding to the target mode, the management server can determine the target memory of 8G in the memory corresponding to the current mode M3 and release the target memory of 8G. The remaining 8G of memory can meet the memory resource requirements under the target mode M1.

[0130] Optionally, the configuration method for processor cores may include: if the number of processor cores corresponding to the current mode of the target instance is greater than the number of processor cores corresponding to the target mode, then based on the number of processor cores configured for the target instance in the current mode, some processor cores are reduced according to the number of processor cores in the target mode; if the number of processor cores corresponding to the current mode of the target instance is less than the number of processor cores corresponding to the target mode, then processor cores are directly added to the target instance.

[0131] For example, if the target instance is instance E01, the current mode is mode M1, and the target mode is mode M3, since mode M1 has 4 processor cores and mode M3 has 8 processor cores, and since the number of processor cores in the current mode is less than the number of processor cores in the target mode, the management server can directly allocate 4 new processor cores to instance E01. If the current mode is mode M3 and the target mode is mode M1, since the number of processor cores in the current mode is greater than the number of processor cores in the target mode, the management server will reduce some processor cores based on the 8 processor cores allocated to instance E01 under mode M3, according to the 4 processor cores in mode M1.

[0132] Optionally, the number of processor cores can be reduced based on the number of processor cores in the target mode, while still being configured for the target instance in the current mode, by: determining the utilization rate of each processor core configured for the target instance in the current mode; sorting the utilization rates of each processor core in ascending order to obtain a sorting result; and releasing the processor cores corresponding to the top N utilization rates in the sorting result, where N is the difference between the number of processor cores in the current mode and the number of processor cores in the target mode.

[0133] Utilization rate can be used to represent the extent to which a target instance utilizes processor cores.

[0134] For example, if the target instance is instance E01, the target mode is mode M1, and the current mode is mode M3, assuming that 8 processor cores are configured for instance E01 under mode M3, and the utilization rate of each processor core is as shown in Table 2:

[0135] Table 2

[0136] processor core usage rate core 1 90% core 2 20% core 3 50% core 4 72% core 5 69% core 6 85% Core 7 86% core 8 79%

[0137] The management server can then sort the utilization rates of these 8 processor cores in ascending order, resulting in the following ranking: 20%, 50%, 69%, 72%, 79%, 85%, 86%, and 90%. Since the difference between the number of processor cores in the current mode and the target mode is 4, the management server can release the processor cores corresponding to the first four utilization rates in the ranking for instance E01: core 2 (20%), core 3 (50%), core 5 (69%), and core 4 (72%).

[0138] Optionally, the management server can maintain a resource list corresponding to each client, which includes multiple cloud resources available for the client to use.

[0139] When configuring resources for a target instance, if new cloud resources are needed, the idle cloud resources in the resource list are selected as the new cloud resources; if cloud resources are needed to be released, the cloud resources occupied by the target instance are selected as the released cloud resources.

[0140] After configuration, if there are released cloud resources, they will be marked as idle in the resource list; if there are newly added cloud resources, they will be marked as occupied by the target instance in the resource list.

[0141] Optionally, for any type of cloud resource, a resource list corresponding to the client can be maintained. Optionally, in the resource list, "0" can be used to represent an idle state, and "1" can be used to represent an occupied state.

[0142] For example, if the cloud resource is a processor, then the resource list corresponding to the processor can be shown in Table 3:

[0143] Table 3

[0144] processor core state core 1 1 core 2 1 core 3 1 core 4 1 core 5 0 core 6 0 core 7 0 core 8 0 …… ……

[0145] If the target instance is instance E01, the current mode is mode M1, and the target mode is mode M3, and four new cores need to be added to instance E01, the management server can find four idle processor cores (i.e., core 5, core 6, core 7, and core 8) in the resource list shown in Table 3 as the new processor cores. The management server can also change the status of cores 5, 6, 7, and 8 from "0" to "1" in the resource list, indicating that they are already in use, as shown in Table 4.

[0146] Table 4

[0147]

[0148]

[0149] If the resource list is as shown in Table 4, and the current mode is mode M3, the target mode is mode M1, and 4 cores need to be released for instance E01, then the management server can find the 4 processor cores (assumed to be core 5, core 6, core 7, and core 8) occupied by instance E01 in the resource list shown in Table 4 as the processor cores to be released. The management server can also change the status of core 5, core 6, core 7, and core 8 from "1" to "0" in the resource list, indicating that the processor cores are in an idle state, as shown in Table 3.

[0150] In one optional embodiment, after configuring cloud resources for the target instance according to the resource quantity corresponding to the target mode, the management server can send a restart command to the client, so that the client can restart the target instance according to the restart command. The restart command may include the identifier of the target instance.

[0151] In another optional embodiment, after configuring cloud resources for the target instance based on the resource quantity corresponding to the target mode, if the memory size corresponding to the current mode is greater than the memory size corresponding to the target mode (i.e., configuring memory for the target instance based on the memory size corresponding to the target mode involves memory scaling down based on the memory size corresponding to the current mode), the management server can send a restart command to the client so that the client can restart the target instance according to the restart command. The restart command may include the identifier of the target instance.

[0152] In this embodiment, the management server can obtain the mode switching request sent by the client and determine the resource quantity corresponding to the target mode. For each type, the management server can configure cloud resources of that type for the target instance based on the resource quantity and configuration method corresponding to that type. Since different cloud resources can be configured for instances according to different modes, the user's needs in different scenarios can be met, thus improving the user experience.

[0153] Optionally, after configuring cloud resources that match the target mode for the target instance, the target instance can run in the target mode, and the cost information of the target instance can be determined based on the target mode. Below, in conjunction with... Figure 4 The process of determining cost information is explained.

[0154] Figure 4 This is a schematic diagram illustrating a process for determining cost information, provided as an exemplary embodiment of this application. Please refer to [link / reference]. Figure 4 The method may include:

[0155] S401. Record usage information for at least one instance of the client.

[0156] Optionally, at least one instance can run in the client, and each instance can have multiple modes.

[0157] Instance usage information can include the duration of instance usage in various modes.

[0158] For example, if the client includes instances E01 and E02, and the usage time of instances E01 and E02 in modes M1, M2, and M3 are as shown in Table 5:

[0159] Table 5

[0160] Example Mode M1 Mode M2 Mode M3 Example E01 4h 10h 2h Example E02 0h 8h 5h

[0161] S402. Generate the corresponding cost information for the client based on the usage information of at least one instance.

[0162] Optionally, the unit price may vary depending on the mode. For example, the unit price for mode M1 may be 4 yuan / h; the unit price for mode M2 ​​may be 8 yuan / h; and the unit price for mode M3 may be 16 yuan / h.

[0163] For any given instance, the management server can determine the corresponding cost information by summing the products of the instance's usage duration and unit price under each mode. The management server can determine that the cost information for the client may include cost information for at least one instance.

[0164] For example, if the usage time of instances E01 and E02 in each mode is as shown in Table 5 above, and the unit price corresponding to each mode is as illustrated in the example above, then the management server can determine the cost information for instance E01 as: 4*4 + 10*8 + 2*16 = 128 yuan; the management server can determine the cost information for instance E02 as: 0*4 + 8*8 + 5*16 = 144 yuan. The management server can determine that the cost information for the client includes the cost information for instance E01 and the cost information for instance E02, that is, the cost information for the client can be 272 yuan.

[0165] In this embodiment, the management server can record the usage information of at least one instance of the client and generate corresponding cost information for the client based on the usage information of at least one instance. Since instances can run in different modes, the cost information for the client is determined based on the usage duration of the instance in different modes and the unit price corresponding to each mode, which improves the cost-effectiveness of using instances for users and thus enhances the user experience.

[0166] Since at least one instance can run on the client, and each instance has a corresponding mode switching interface, users can select the target mode in the mode switching interface and send a mode switching request to the management server through the client. Therefore, the following combines... Figure 5 This section explains the process of the client sending a mode switching request.

[0167] Figure 5 A flowchart illustrating yet another mode switching method provided for an exemplary embodiment of this application. Please refer to [link / reference]. Figure 5 The method may include:

[0168] S501, The client displays the mode switching interface of the target instance.

[0169] The target instance mode switching interface allows users to select the target mode to switch to from a variety of modes.

[0170] Below, in conjunction with Figure 6 The mode switching interface will be explained.

[0171] Figure 6 This is a schematic diagram of a mode switching interface provided for an exemplary embodiment of this application. Please refer to [link / reference]. Figure 6 The mode switching interface can display multiple modes. For example, it can display modes M1, M2, M3, and M4.

[0172] For any given mode, the mode switching interface displays the configuration of the corresponding cloud resources and the unit price. For example, for mode M1, the cloud resources corresponding to mode M1 include a 4-core CPU and 8GB of memory. The unit price for mode M1 is 4 yuan / hour.

[0173] Optionally, the mode switching interface can also display prompts to remind users of precautions when switching modes. For example, the prompt could be: "Note: Switching modes requires restarting the instance. Please save your data promptly to avoid data loss."

[0174] Optionally, in the mode switching interface, the words "Current Mode" can also be displayed in the display area corresponding to the current mode. For example, if the current mode is mode M1, then the words "Current Mode" will be displayed in the display area corresponding to mode M1 to mark the current mode as mode M1.

[0175] S502: The client responds to the user's selection operation on the mode switching interface by generating a mode switching request.

[0176] The selection operation can be used to select the target mode to switch to from multiple modes in the mode switching interface for the target instance.

[0177] Users can perform a selection operation in the mode switching interface to choose the target mode for the target instance. In response to the user's selection operation, the client can generate a mode switching request. The mode switching request can include the identifier of the target instance and the identifier of the target mode.

[0178] For example, if the mode switching interface is like Figure 6 As shown, if the user selects mode M3 as the target mode for instance E01, the client can generate a mode switching request in response to the user's selection. The mode switching request may include the identifier E01 of instance E01 and the identifier M3 of mode M3.

[0179] S503, The client sends a mode switching request to the management server.

[0180] A mode switch request can be used to indicate the target instance and the target mode, so that the management server can configure cloud resources for the target instance that match the target mode based on the mode switch request.

[0181] After receiving a mode switching request, the management server can configure cloud resources for the target instance that match the target mode.

[0182] For example, if the mode switch request could include the identifier E01 of instance E01 and the identifier M3 of mode M3, the client could send the mode switch request to the management server. Since this mode switch request indicates that the target instance to be switched to is instance E01 and the target mode is mode M3, if the cloud resources corresponding to mode M3 are... Figure 6 As shown in the diagram, after receiving the mode switching request, the management server can configure 8 processor cores and 16GB of memory for instance E01 according to the cloud resources corresponding to mode M3.

[0183] Optionally, after the management server configures the cloud resources for the target instance that are configured with the target mode, the client can start the target instance. If the target instance can run based on the target mode, then the current mode of the target instance will change to the target mode, and the mode interface corresponding to the target mode can be displayed in the target instance.

[0184] Below, in conjunction with Figure 7 The interface of the mode is described.

[0185] Figure 7 This is a schematic diagram of a modal interface provided for an exemplary embodiment of this application. Please refer to [link / reference]. Figure 7 This includes interfaces 701 and 702. Both interfaces 701 and 702 are mode interfaces corresponding to the target mode. The mode interface may include power controls and management controls, as shown in interface 701 or interface 702.

[0186] In interface 701, if the target mode of the target instance is mode M3, then the running mode can be displayed in the target instance as mode M3. A drop-down control can also be displayed next to mode M3.

[0187] Users can click the dropdown control. The client can respond to the user's click on the dropdown control and display the usage information of the target mode, as shown in interface 702. For example, if the target mode is mode M3, the usage information of the target instance for mode M3 may include the current usage duration of 2 hours and the remaining usage duration of 8 hours.

[0188] In this embodiment, the client can display a mode switching interface for the target instance and, in response to the user's selection on the interface, generate a mode switching request, which is then sent to the management server. The mode switching request indicates the target instance and the target mode, enabling the management server to configure cloud resources matching the target mode for the target instance. Because users can flexibly select the mode for the target instance on the client according to their needs, the switching operation is simplified, and the user's needs in different scenarios are met, thus improving the user experience.

[0189] In cloud computing scenarios, instances can be cloud computers. Below, using a cloud computer instance as an example, we will provide a method for switching modes.

[0190] Figure 8 A flowchart illustrating another mode switching method provided for an exemplary embodiment of this application. Please refer to [link / reference]. Figure 8 The method may include:

[0191] S801, Obtain the mode switching request sent by the client.

[0192] Optionally, the client can be a user's terminal device or a soft terminal within the terminal device.

[0193] A mode switching request can be used to indicate the target cloud computer to be switched to and the target mode. Optionally, the mode switching request may include an identifier for the target cloud computer and an identifier for the target mode. The identifier for the target cloud computer can be used to indicate the target cloud computer, and the identifier for the target mode can be used to indicate the target mode.

[0194] The client may include at least one cloud computer. The target cloud computer can be any of the at least one cloud computer in the client.

[0195] The target cloud computer can be configured with multiple modes, and the target mode can be any of the multiple modes that the client can choose.

[0196] Users can specify the target cloud computer and target mode to be switched to on the client, and then send a mode switch request to the management server through the client. The management server can receive mode switch requests sent by the client.

[0197] For example, the management server can receive a mode switching request sent by the client. The mode switching request can include the identifier C01 of the target cloud computer and the identifier M3 of the target mode. The mode switching request indicates that the target cloud computer to be switched to is cloud computer C01 and the target mode is mode M3.

[0198] S802, Configure cloud resources for the target cloud computer that match the target mode.

[0199] The management server may include at least one type of cloud resource. For example, at least one type of cloud resource may include processor cores and memory.

[0200] For any given mode, there are corresponding cloud resources. For example, if there are three modes, namely mode M1, mode M2 ​​and mode M3, then the cloud resources corresponding to each mode can be shown in Table 1.

[0201] Optionally, cloud resources matching the target mode can be configured for the target cloud computer in the following ways: determine the amount of resources corresponding to the target mode; configure the corresponding cloud resources for the target cloud computer according to the amount of resources corresponding to the target mode.

[0202] Resource quantity can be used to represent the size or quantity of cloud resources. For example, for processor cores, resource quantity can represent the number of processor cores; for memory, resource quantity can represent the size of memory.

[0203] For example, if the mode switching request indicates that the target cloud computer to be switched is cloud computer C01 and the target mode is mode M3, and if the amount of cloud resources corresponding to mode M3 is as shown in Table 1, then the management server can configure cloud computer C01 with 8 processor cores and 16G of memory according to the amount of resources corresponding to mode M3.

[0204] In this embodiment, the management server can obtain the mode switching request sent by the client and configure cloud resources matching the target mode for the target cloud computer according to the mode switching request. Since different cloud resources can be configured for different modes, the user's needs in different scenarios are met, thus improving the user experience.

[0205] Figure 9 This is a schematic diagram of a mode switching device provided in an embodiment of this application. Please refer to... Figure 9 The mode switching device 10 includes: an acquisition module 11 and a configuration module 12, wherein,

[0206] The acquisition module 11 is used to acquire a mode switching request sent by the client, wherein the mode switching request is used to indicate the target instance to be switched and the target mode; wherein the target instance is any instance among at least one instance of the client, and the target mode is any mode among a variety of modes that the client can select;

[0207] The configuration module 12 is used to configure cloud resources that match the target mode for the target instance.

[0208] The mode switching device provided in this application embodiment can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar, and will not be described again here.

[0209] In one possible implementation, the configuration module 11 is specifically used for:

[0210] Determine the resource quantity corresponding to the target mode, where the resource quantity represents the size or quantity of cloud resources;

[0211] Configure corresponding cloud resources for the target instance based on the resource quantity corresponding to the target mode.

[0212] In one possible implementation, the cloud resources include at least one type, and the resource quantity corresponding to the target mode includes the resource quantity corresponding to the at least one type of cloud resources; the configuration module 11 is specifically used for:

[0213] For each type, cloud resources of that type are configured for the target instance based on the resource quantity and configuration method corresponding to that type.

[0214] In one possible implementation, the type of cloud resources includes cloud processor cores and / or memory;

[0215] The memory configuration method includes: if the memory size corresponding to the current mode of the target instance is greater than the memory size corresponding to the target mode, then release the memory configured for the target instance in the current mode, and reconfigure the memory for the target instance according to the resource amount corresponding to the target mode;

[0216] The configuration method corresponding to the processor cores includes: if the number of processor cores corresponding to the current mode of the target instance is greater than the number of processor cores corresponding to the target mode, then based on the number of processor cores configured for the target instance in the current mode, a portion of the processor cores are reduced according to the number of processor cores in the target mode.

[0217] In one possible implementation, the configuration module 11 is specifically used for:

[0218] Determine the utilization rate of each processor core for the target instance under the current mode;

[0219] The utilization rates of each processor core are sorted in ascending order to obtain the sorting results;

[0220] Release the processor cores corresponding to the top N utilization rates in the sorting results, where N is the difference between the number of processor cores corresponding to the current mode and the number of processor cores corresponding to the target mode.

[0221] In one possible implementation, the configuration module 11 is specifically used for:

[0222] If the resource quantity of at least one type meets the requirements, then for each type, cloud resources of that type are configured for the target instance according to the resource quantity corresponding to that type and the configuration method corresponding to that type.

[0223] If the resource quantity for any type is insufficient, a resource shortage message will be sent to the client.

[0224] Wherein, the requirement for any type of resource quantity to meet the requirement means that the difference between the resource quantity of that type in the target mode and the current mode is less than or equal to the amount of that type of resource quantity that is not currently allocated in the cloud.

[0225] In one possible implementation, the management server maintains a resource list corresponding to the client, the resource list including multiple cloud resources available for the client to use; the configuration module 11 is further configured to:

[0226] When configuring resources for the target instance, if new cloud resources are needed, then some idle cloud resources are selected from the resource list as the new cloud resources; if cloud resources are needed to be released, then some cloud resources occupied by the target instance are selected from the resource list as the cloud resources to be released.

[0227] After configuration, if there are released cloud resources, they will be marked as idle in the resource list; if there are newly added cloud resources, they will be marked as occupied by the target instance in the resource list.

[0228] The mode switching device provided in this application embodiment can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar, and will not be described again here.

[0229] Figure 10 A schematic diagram of another mode switching device provided for an exemplary embodiment of this application. Please refer to... Figure 10 ,exist Figure 9 Based on the illustrated embodiment, the mode switching device 10 may further include: a recording module 13 and a generation module 14, wherein,

[0230] The recording module 13 is used to record the usage information of at least one instance of the client, the usage information of the instance including the usage duration of the instance in each mode;

[0231] The generation module 14 is used to generate the fee information corresponding to the client based on the usage information of the at least one instance; wherein the unit price of the fee is different for different modes.

[0232] The mode switching device provided in this application embodiment can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar, and will not be described again here.

[0233] Figure 11 A schematic diagram of another mode switching device provided for an exemplary embodiment of this application. Please refer to... Figure 11The mode switching device 20 may include: a display module 21, a generation module 22, and a sending module 23, wherein,

[0234] The display module 21 is used to display the mode switching interface of the target instance;

[0235] The generation module 22 is used to generate a mode switching request in response to the user's selection operation on the mode switching interface. The selection operation is used to select the target mode to be switched for the target instance from multiple modes in the mode switching interface.

[0236] The sending module 23 is used to send a mode switching request to the management server. The mode switching request is used to indicate the target instance and the target mode, so that the management server configures cloud resources for the target instance that match the target mode according to the mode switching request.

[0237] The mode switching device provided in this application embodiment can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar, and will not be described again here.

[0238] Figure 12 This is a schematic diagram of the structure of an electronic device provided for an exemplary embodiment of this application. Please refer to... Figure 12 The electronic device 30 may include a processor 31 and a memory 32. Exemplarily, the processor 31 and the memory 32 are interconnected via a bus 33.

[0239] The memory 32 stores computer-executed instructions;

[0240] The processor 31 executes the computer execution instructions stored in the memory 32, causing the processor 31 to perform the method as shown in the above method embodiment.

[0241] Figure 12 The electronic device shown can be the management server or client described in any of the above embodiments.

[0242] Accordingly, this application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the method described in the above-described method embodiments.

[0243] Accordingly, embodiments of this application may also provide a computer program product, including a computer program, which, when executed by a processor, can implement the methods shown in the above-described method embodiments.

[0244] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0245] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0246] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0247] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0248] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0249] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0250] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0251] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0252] The above description is merely an embodiment of this application and is not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.

Claims

1. A mode switching method, characterized in that, Applied to the management and control server, the method includes: Obtain a mode switching request sent by the client, the mode switching request being used to indicate the target instance to be switched to and the target mode; wherein, the target instance is any instance of at least one instance of the client, and the target mode is any mode of a variety of modes that the client can select; Configure cloud resources for the target instance that match the target pattern.

2. The method according to claim 1, characterized in that, Configure cloud resources matching the target pattern for the target instance, including: Determine the resource quantity corresponding to the target mode, where the resource quantity represents the size or quantity of cloud resources; Configure corresponding cloud resources for the target instance based on the resource quantity corresponding to the target mode.

3. The method according to claim 2, characterized in that, The cloud resources include at least one type, and the resource quantity corresponding to the target mode includes the resource quantity corresponding to the at least one type of cloud resources; Based on the resource quantity corresponding to the target mode, configure the corresponding cloud resources for the target instance, including: For each type, cloud resources of that type are configured for the target instance based on the resource quantity and configuration method corresponding to that type.

4. The method according to claim 3, characterized in that, The types of cloud resources include cloud processor cores and / or memory; The memory configuration method includes: if the memory size corresponding to the current mode of the target instance is greater than the memory size corresponding to the target mode, then release the memory configured for the target instance in the current mode, and reconfigure the memory for the target instance according to the resource amount corresponding to the target mode; The configuration method corresponding to the processor cores includes: if the number of processor cores corresponding to the current mode of the target instance is greater than the number of processor cores corresponding to the target mode, then based on the number of processor cores configured for the target instance in the current mode, a portion of the processor cores are reduced according to the number of processor cores in the target mode.

5. The method according to claim 4, characterized in that, Based on the number of processor cores configured for the target instance in the current mode, a portion of the processor cores are reduced according to the number of processor cores in the target mode, including: Determine the utilization rate of each processor core for the target instance under the current mode; The utilization rates of each processor core are sorted in ascending order to obtain the sorting results; Release the processor cores corresponding to the top N utilization rates in the sorting results, where N is the difference between the number of processor cores corresponding to the current mode and the number of processor cores corresponding to the target mode.

6. The method according to claim 3, characterized in that, For each type, based on the corresponding resource quantity and configuration method, configure the cloud resources for that type for the target instance, including: If the resource quantity of at least one type meets the requirements, then for each type, cloud resources of that type are configured for the target instance according to the resource quantity corresponding to that type and the configuration method corresponding to that type. The method further includes: if the amount of resources corresponding to any type is insufficient, then sending a resource shortage prompt message to the client; Wherein, the requirement for any type of resource quantity to meet the requirement means that the difference between the resource quantity of that type in the target mode and the current mode is less than or equal to the amount of that type of resource quantity currently not allocated in the cloud.

7. The method according to any one of claims 1-6, characterized in that, The management server maintains a resource list corresponding to the client, the resource list including multiple cloud resources available for the client to use; the method further includes: When configuring resources for the target instance, if new cloud resources are needed, then some idle cloud resources are selected from the resource list as the new cloud resources; if cloud resources are needed to be released, then some cloud resources occupied by the target instance are selected from the resource list as the cloud resources to be released. After configuration, if there are released cloud resources, they will be marked as idle in the resource list; if there are newly added cloud resources, they will be marked as occupied by the target instance in the resource list.

8. The method according to any one of claims 1-7, characterized in that, The method further includes: Record usage information for at least one instance of the client, including the usage duration of the instance in each mode; Based on the usage information of the at least one instance, the corresponding fee information for the client is generated; wherein, the unit price of the fee is different for different modes.

9. A mode switching method, characterized in that, Applied to a client, the method includes: Displays the mode switching interface for the target instance; In response to a user's selection operation on the mode switching interface, a mode switching request is generated, wherein the selection operation is used to select a target mode to be switched to for the target instance from among multiple modes in the mode switching interface. A mode switching request is sent to the management server. The mode switching request is used to indicate the target instance and the target mode, so that the management server configures cloud resources for the target instance that match the target mode according to the mode switching request.

10. A mode switching method, characterized in that, Applied to the management and control server, the method includes: Obtain a mode switching request sent by the client, the mode switching request being used to indicate the target cloud computer to be switched to and the target mode; wherein, the target cloud computer is any one of at least one cloud computer of the client, and the target mode is any one of a variety of modes that the client can select; Configure cloud resources for the target cloud computer that match the target mode.

11. An electronic device, characterized in that, include: At least one processor; as well as A memory that is communicatively connected to the at least one processor; The memory stores instructions executable by the at least one processor, which, when executed by the at least one processor, cause the electronic device to perform the method according to any one of claims 1-10.

12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, implement the method as described in any one of claims 1-10.

13. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the method described in any one of claims 1-10.