Resource migration strategy determination method and device

By receiving resource migration requests for device identification, determining cloud servers and target resources, obtaining category identification, establishing migration priorities and determining migration strategies, the security risk problem of cloud servers in failure situations is solved, and efficient and stable resource migration is achieved.

CN113986478BActive Publication Date: 2025-06-24ALIBABA (CHINA) CO LTD +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111130336.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-26
Publication Date
2025-06-24
Estimated Expiration
2041-09-26

AI Technical Summary

Technical Problem

Cloud servers may face various expected or unanticipated hidden dangers during the construction, expansion, upgrade and operation and maintenance of new servers, resulting in security risks, such as power outages, cooling system failures, typhoons and floods, software vulnerabilities and hardware defects, etc. An effective resource migration strategy is needed to solve these problems.

Method used

By receiving resource migration requests carrying device identification, determine the cloud server with specified fault impact range and the target resource to be migrated, obtain the category identification of the target resource, establish migration priority based on the category identification, and determine the target migration strategy based on the priority, including migration order and method, to ensure high migration efficiency and minimal impact.

Benefits of technology

It improves the efficiency of determining target migration strategies, helps the smooth migration of target resources, improves the security and stability of cloud servers, and reduces the impact caused by failures.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113986478B_ABST
    Figure CN113986478B_ABST
Patent Text Reader

Abstract

The embodiments of this specification provide a method and a device for determining a resource migration strategy. The method for determining the resource migration strategy includes: by receiving a resource migration request, determining at least one target resource to be migrated in the cloud server corresponding to the range according to the device identifier in the range affected when a specified fault occurs carried in the resource migration request, further obtaining the category identifier of each target resource in the at least one target resource, and then determining a target migration strategy for the at least one target resource based on the category identifiers of the respective target resources. It is possible to quickly and accurately determine the range affected when a specified fault occurs, the cloud server affected, and at least one target resource to be migrated; ensure that within a short time, a target migration strategy that minimizes the impact of the specified fault and has high migration efficiency is made, improving the efficiency of determining the target migration strategy, and thus contributing to the smooth migration of each target resource and enhancing the security and stability of the cloud server.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present specification relate to the field of computer technology, and in particular to a method for determining a resource migration strategy. Background Art

[0002] With the continuous development of computer technology, cloud server projects have experienced rapid growth. Cloud server products are constantly being updated and new available areas are being added. In the daily process of new construction, expansion, upgrade, operation and maintenance, cloud servers may encounter various expected or unexpected hidden dangers due to software problems, hardware problems, Internet data center computer room failures, machine maintenance, etc., resulting in security risks in the use of cloud servers, such as power outages, cooling system failures, typhoon floods, software vulnerabilities, hardware defects, etc. Therefore, an effective solution is urgently needed to solve the above problems. Summary of the invention

[0003] In view of this, the present specification provides a resource migration strategy determination method. One or more embodiments of the present specification also relate to a resource migration strategy determination device, a computing device, a computer-readable storage medium and a computer program to solve the technical defects existing in the prior art.

[0004] According to a first aspect of an embodiment of this specification, a method for determining a resource migration strategy is provided, including:

[0005] receiving a resource migration request, wherein the resource migration request carries an identifier of a device in a range affected by a specified fault;

[0006] Determine, according to the device identifier, at least one target resource to be migrated in the cloud server corresponding to the range;

[0007] Obtaining a category identifier of each target resource in the at least one target resource;

[0008] Based on the category identifiers of the target resources, a target migration strategy for the at least one target resource is determined.

[0009] Optionally, the determining the target migration strategy for the at least one target resource based on the category identifier of each target resource includes:

[0010] Establishing a migration priority based on the category identifiers of the target resources;

[0011] A target migration strategy for the at least one target resource is determined according to the migration priority.

[0012] Optionally, the category identifier includes an importance identifier, an urgency identifier, a supply quantity identifier, and a supply time identifier; the migration priority includes a demand priority and a supply priority;

[0013] Establishing a migration priority based on the category identifiers of the respective target resources includes:

[0014] Establishing the demand priority according to the importance identifier and the urgency identifier;

[0015] Establishing the supply priority according to the supply quantity identifier and the supply time identifier.

[0016] Optionally, determining a target migration strategy for the at least one target resource according to the migration priority includes:

[0017] Determining the migration order of the respective target resources according to the migration priority;

[0018] Determining a target migration strategy for the at least one target resource according to the migration order of the respective target resources and the attribute information of the respective target resources.

[0019] Optionally, determining a target migration strategy for the at least one target resource according to the migration priority includes:

[0020] Determining an initial migration strategy for the at least one target resource according to the category identifiers of the respective target resources;

[0021] Judging whether the initial migration strategy meets a preset migration condition;

[0022] If not, adjusting the initial migration strategy according to the preset migration condition, and performing the step of judging whether the initial migration strategy meets the preset migration condition;

[0023] If so, determining the initial migration strategy as the target migration strategy for the at least one target resource.

[0024] Optionally, the category identifier further includes an impact degree identifier and / or a migration type identifier;

[0025] Determining a target migration strategy for the at least one target resource based on the category identifiers of the respective target resources includes:

[0026] Based on the impact degree identifiers of the respective target resources, determining the target migration order of the respective target resources, and determining a target migration strategy for the at least one target resource according to the target migration order of the respective target resources; and / or

[0027] Based on the migration type identifiers of the respective target resources, determine the target migration methods of the respective target resources, and determine a target migration strategy for the at least one target resource according to the target migration methods of the respective target resources, where the target migration methods include cold migration and hot migration.

[0028] Optionally, the determining a target migration strategy for the at least one target resource based on the category identifiers of the respective target resources includes:

[0029] Based on the category identifiers of the respective target resources, use a preset resource evaluation rule to evaluate the respective target resources to obtain an evaluation result;

[0030] Determine a target migration strategy for the at least one target resource according to the evaluation result.

[0031] Optionally, after determining a target migration strategy for the at least one target resource based on the category identifiers of the respective target resources, it further includes:

[0032] Establish a resource reservation area according to the target migration strategy;

[0033] Migrate the at least one target resource to the resource reservation area.

[0034] Optionally, it further includes:

[0035] Monitor the remaining storage space of the resource reservation area and / or the migration progress of the respective target resources;

[0036] Send the monitoring result to a client for display.

[0037] According to the second aspect of the embodiments of the present specification, there is provided a resource migration strategy determination device, including:

[0038] A receiving module, configured to receive a resource migration request, where the resource migration request carries a device identifier in the affected range when a specified failure occurs;

[0039] A first determination module, configured to determine at least one target resource to be migrated in a cloud server corresponding to the range according to the device identifier;

[0040] An acquisition module, configured to acquire the category identifier of each target resource in the at least one target resource;

[0041] A second determination module, configured to determine a target migration strategy for the at least one target resource based on the category identifiers of the respective target resources.

[0042] Optionally, the second determination module is further configured to:

[0043] Establish a migration priority based on the category identifiers of the respective target resources;

[0044] Determine a target migration strategy for the at least one target resource according to the migration priority.

[0045] Optionally, the category identifier includes an importance identifier, an urgency identifier, a supply quantity identifier, and a supply time identifier; the migration priority includes a demand priority and a supply priority;

[0046] The second determination module is further configured to:

[0047] Establish the demand priority according to the importance identifier and the urgency identifier;

[0048] Establish the supply priority according to the supply quantity identifier and the supply time identifier.

[0049] Optionally, the second determination module is further configured to:

[0050] Determine the migration order of the respective target resources according to the migration priority;

[0051] Determine a target migration strategy for the at least one target resource according to the migration order of the respective target resources and the attribute information of the respective target resources.

[0052] Optionally, the second determination module is further configured to:

[0053] Determine an initial migration strategy for the at least one target resource according to the category identifiers of the respective target resources;

[0054] Judge whether the initial migration strategy meets a preset migration condition;

[0055] If not, adjust the initial migration strategy according to the preset migration condition, and execute the step of judging whether the initial migration strategy meets the preset migration condition;

[0056] If so, determine the initial migration strategy as the target migration strategy for the at least one target resource.

[0057] Optionally, the category identifier further includes an impact degree identifier and / or a migration type identifier;

[0058] The second determination module is further configured to:

[0059] Determine the target migration order of the respective target resources based on the impact degree identifiers of the respective target resources, and determine a target migration strategy for the at least one target resource according to the target migration order of the respective target resources; and / or

[0060] Based on the migration type identifiers of the respective target resources, determine the target migration methods of the respective target resources, and determine a target migration strategy for the at least one target resource according to the target migration methods of the respective target resources, where the target migration methods include cold migration and hot migration.

[0061] Optionally, the second determination module is further configured to:

[0062] Based on the category identifiers of the respective target resources, use a preset resource evaluation rule to evaluate the respective target resources to obtain an evaluation result;

[0063] Determine a target migration strategy for the at least one target resource according to the evaluation result.

[0064] Optionally, the device further includes a migration module, which is configured to:

[0065] Establish a resource reservation area according to the target migration strategy;

[0066] Migrate the at least one target resource to the resource reservation area.

[0067] Optionally, the device further includes a monitoring module, which is configured to:

[0068] Monitor the remaining storage space of the resource reservation area and / or the migration progress of the respective target resources;

[0069] Send the monitoring result to a client for display.

[0070] According to the third aspect of the embodiments of the present specification, a computing device is provided, including:

[0071] A memory and a processor;

[0072] The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions:

[0073] Receive a resource migration request, where the resource migration request carries a device identifier in the affected range when a specified fault occurs;

[0074] According to the device identifier, determine at least one target resource to be migrated in the cloud server corresponding to the range;

[0075] Obtain the category identifier of each target resource in the at least one target resource;

[0076] Based on the category identifiers of the respective target resources, determine a target migration strategy for the at least one target resource.

[0077] According to a fourth aspect of the embodiments of this specification, a computer-readable storage medium is provided, which stores computer-executable instructions that, when executed by a processor, implement the steps of the resource migration strategy determination method described in any one of the above.

[0078] According to a fifth aspect of the embodiments of this specification, a computer program is provided, wherein when the computer program is executed on a computer, the computer is made to execute the steps of the above resource migration strategy determination method.

[0079] The resource migration strategy determination method provided in this specification can quickly and accurately determine the affected scope, the cloud servers affected, and at least one target resource to be migrated when a specified fault occurs by receiving a resource migration request carrying a device identifier; then, by obtaining the category identifiers of the target resources in at least one target resource, a target migration strategy that minimizes the impact of the specified fault and has high migration efficiency can be made in a short time, improving the efficiency of determining the target migration strategy, and thus helping the smooth migration of each target resource and enhancing the security and stability of the cloud server. BRIEF DESCRIPTION OF THE DRAWINGS

[0080] Figure 1 is a flowchart of a resource migration strategy determination method provided by an embodiment of this specification;

[0081] Figure 2A is a schematic diagram of a migration priority provided by an embodiment of this specification;

[0082] Figure 2B is a schematic diagram of a feedback monitoring result provided by an embodiment of this specification;

[0083] Figure 2C is a schematic diagram of a process of determining a target migration strategy provided by an embodiment of this specification;

[0084] Figure 3 is a flowchart of a processing process of a resource migration strategy determination method provided by an embodiment of this specification;

[0085] Figure 4 is a schematic diagram of the structure of a resource migration strategy determination device provided by an embodiment of this specification. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0086] Many specific details are set forth in the following description in order to provide a thorough understanding of this specification. However, this specification can be implemented in many other ways different from those described herein, and those skilled in the art can make similar generalizations without departing from the connotation of this specification. Therefore, this specification is not limited by the specific implementations disclosed below.

[0087] The terms used in one or more embodiments of this specification are for the purpose of describing specific embodiments only and are not intended to limit one or more embodiments of this specification. The singular forms "a", "the", and "said" used in one or more embodiments of this specification and the appended claims are also intended to include the plural forms unless the context clearly dictates otherwise. It should also be understood that the term "and / or" used in one or more embodiments of this specification refers to any and all possible combinations of one or more of the associated listed items.

[0088] It should be understood that although the terms first, second, etc. may be used in one or more embodiments of this specification to describe various information, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other. For example, without departing from the scope of one or more embodiments of this specification, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "when" or "while" or "in response to determining".

[0089] First, the noun terms related to one or more embodiments of this specification are explained.

[0090] Cloud service (ECS, Elastic Compute Service) is a simple, efficient, secure and reliable computing service with elastic scalability of processing power. Its management method is simpler and more efficient than that of physical servers. Users can create or release any number of cloud servers within a short period of time without having to purchase hardware in advance.

[0091] Fault: During daily processes such as new creation, expansion, upgrade, and operation and maintenance of cloud servers, due to software problems, hardware problems, Internet Data Center (IDC) room failures, machine maintenance, etc., various expected or unexpected hidden dangers will be encountered, resulting in security risks in the use of cloud servers.

[0092] Cold migration (CM, Cold Migration), also called static migration. Migrate a virtual machine with the power off. Through cold migration, the associated disk can be selected to be moved from one data store to another. Advantages: The virtual machine does not need to be located on a shared memory, and the data loss rate is small. Disadvantages: The power needs to be turned off and the project is interrupted.

[0093] Live migration (LM, Live Migration), also called dynamic migration, real-time migration, that is, virtual machine save / restore, usually the entire running state of the virtual machine is saved completely, and at the same time it can be quickly restored to the original hardware platform or even a different hardware platform.

[0094] Next, a brief introduction to the basic concept of the resource migration strategy determination method provided in this specification will be given.

[0095] When a cloud server fails or is about to fail, for the cloud server manufacturer, it often adjusts and controls from three levels: the resource level - inventory the target resources affected by the current failure and summarize the customers corresponding to the target resources; the application level - close the use of new customers and quickly stop the bleeding for the existing customers; the user level - notify the customers to cooperate with the migration. However, this method lacks a scientific plan at the application level and cannot quickly obtain the scope of influence, the affected resources, and the number of affected users when a failure occurs from the application level. Therefore, in a short period of time, it is impossible to make a decision with high migration efficiency and the smallest scope of influence, which may lead to small problems and cause great impacts; at the user level, it is impossible to distinguish the impact degree of user projects and the impact of core customer projects, which is likely to cause great impacts on the key projects of key customers; in addition, during the resource migration process, due to the continuous change of resources, there is no effective mechanism to ensure that the resources can be migrated successfully by 100%.

[0096] For the above reasons, this specification provides a resource migration strategy, which can quickly locate, analyze, make decisions, and solve problems when the actual failures are ever-changing and of various types, and minimize the impact of the failures through migration. That is, when a cloud server fails or there are potential failure risks, it can quickly locate the target resources affected currently, obtain the category identifiers of the target resources, and then determine the target migration strategy that minimizes the specified failure impact and has high migration efficiency, which can maximize the guarantee that the target resources of the cloud server can be migrated smoothly and improve the security and stability of the cloud server.

[0097] In this specification, a method for determining a resource migration strategy is provided. This specification also relates to a device for determining a resource migration strategy, a computing device, and a computer-readable storage medium, which will be described in detail one by one in the following embodiments.

[0098] Figure 1 The flowchart of a method for determining a resource migration strategy according to an embodiment of this specification is shown, which specifically includes the following steps.

[0099] Step 102: Receive a resource migration request, where the resource migration request carries the device identifier in the scope of influence when the specified failure occurs.

[0100] Specifically, a resource migration request refers to a request initiated by an operator to migrate some resources affected by a fault. A specified fault refers to a certain or certain faults that will affect the cloud server. There are usually four types of specified faults: the first is an external fault, such as a power outage, a computer room fault, a typhoon, a flood, etc.; the second is an internal fault, such as a vulnerability when the cloud server releases a new function; the third is a hardware fault, such as a hardware defect; the fourth is a customer-side fault, such as a compatibility problem. The device identifier refers to the identifier corresponding to the device in the scope affected by the fault. The device identifier can be a network device ID, a physical machine device ID, etc. topological structure; since from the perspective of the user operating system, a virtual machine is also a real physical machine device, that is, the device representation can also include a virtual machine ID; in addition, the device has a certain storage location, for example, the device exists in a certain room, so the device identifier can also be a room ID.

[0101] In practical applications, when a specified fault occurs, the operator will determine the scope affected when the fault occurs according to the nature of the specified fault, and determine the device identifier in this scope. After entering the device identifier in the resource migration interface of the client and clicking a button such as "Confirm Migration", the client will generate a resource migration request and send it to the server, that is, receive a resource migration request carrying the device identifier in the scope affected when the specified fault occurs.

[0102] For example, assume there is a park with 8 buildings, each building has 8 floors and each floor has 8 rooms. Since the use or external form of each room is different, assume that a fire breaks out on a certain floor of one of the buildings. This is the scope affected by the fire determined by the operator, that is, the affected scope is Room No. 6 on the fifth floor of Building No. 7. Then enter the device identifier "Room 5, Floor 7, Room 6" in the resource migration interface of the client. That is, a fire has occurred, and this device identifier "Room 5, Floor 7, Room 6", that is, the room ID. After the operator clicks "Confirm Migration", a resource migration request carrying the device identifier "Room 5, Floor 7, Room 6" will be received.

[0103] Step 104: Determine at least one target resource to be migrated in the cloud server corresponding to the scope according to the device identifier.

[0104] Based on receiving a resource migration request carrying a device identifier, further, the cloud server affected by the specified fault and at least one target resource to be migrated in the cloud server can be determined according to the device identifier.

[0105] Specifically, a cloud server is a simple, efficient, secure and reliable computing service with elastic scalability of processing power; a target resource refers to a resource stored in a cloud storage server that is affected by a specified fault.

[0106] In practical applications, the scope affected by a specified fault can be determined based on the device identifier carried in the resource migration request, and then the device identifiers within that scope, i.e., the affected cloud servers, can be locked. Next, the resources affected by the specified fault and requiring migration are determined from the affected cloud servers. The resources affected by the specified fault are the at least one target resource to be migrated.

[0107] Continuing with the above example, after receiving a resource migration request carrying the device identifier "Room 6, 5th Floor, 7th Building", the device identifier is determined to be Room 6 on the fifth floor of Building 7. Further, the affected cloud servers in Room 6 on the fifth floor of Building 7 are determined. Suppose the first affected cloud server is Cloud Server 9, and then at least one target resource to be migrated is determined from Cloud Server 9.

[0108] Step 106: Obtain the category identifier of each target resource among the at least one target resource.

[0109] After determining the at least one target resource to be migrated in the cloud servers corresponding to the scope affected by the specified fault based on the device identifier, further, the category identifier of each target resource can be obtained.

[0110] Specifically, the category identifier refers to the identifier of the target resource at a specific level. For example, at the urgency level, the category identifier can be an urgency identifier, which is divided into several identifiers such as minute-level, hour-level, and day-level. Among them, the minute-level urgency is greater than the hour-level urgency, and the hour-level urgency is greater than the day-level urgency. At the importance level, mainly for large customer screening, according to specific rules, large customer screening can be carried out, and the category identifier can be an importance identifier, which is divided into small customers and large customers. Among them, the importance of large customers is greater than that of small customers. At the impact level, the category identifier can be an impact level identifier, which supports dynamic impact assessment, mainly considering factors such as turnover and customer disturbance. At the migration type level, the category identifier can be a migration type identifier, which is divided into cold migration and hot migration, and supports migration assessment capabilities.

[0111] In practical applications, there are three ways to obtain the category identifiers of each target resource among at least one target resource: First, after determining at least one target resource, the operator analyzes at least one target resource, then determines the type identifiers of each target resource, and then inputs the type identifiers of each target resource on the client side, so that the local device obtains the category identifiers of each target resource among at least one target resource; Second, after determining at least one target resource, according to some pre-set category recognition rules, identify the category identifiers of each target resource among at least one target resource, so as to obtain the category identifiers of each target resource among at least one target resource; Third, after determining at least one target resource, determine the corresponding customer of each target resource respectively, and then send a category identifier request to each customer. After receiving the category identifier request, the customer marks the type identifier of the target resource corresponding to the customer and gives feedback, so that the local device obtains the category identifiers of each target resource among at least one target resource.

[0112] For example, after determining at least one target resource, the operator analyzes the historical revenue of each target resource, determines the type identifier of the target resource with historical revenue greater than or equal to the preset value as a large customer, and determines the type identifier of the target resource with historical revenue less than the preset value as a small customer. This example determines the type identifier from the level of importance.

[0113] Another example, after determining at least one target resource, according to the preset migration rules of each target resource, identify the category identifiers of each target resource among at least one target resource, and determine whether the type identifier of the target resource is cold migration or hot migration. This example determines the type identifier from the level of migration type.

[0114] For another example, after determining two target resources, determine the customer k1 corresponding to the target resource z1 and the customer k2 corresponding to the target resource z2, and then send the category identifier request for the target resource z1 to the customer k1. The customer k1 marks the category identifier of the target resource z1 as minute-level and gives feedback, then the category identifier of the target resource z1 obtained is minute-level; send the category identifier request for the target resource z2 to the customer k2. The customer k2 marks the category identifier of the target resource z2 as hour-level and gives feedback, then the category identifier of the target resource z2 obtained is hour-level. This example determines the type identifier from the level of urgency.

[0115] It should be noted that the category identifiers of each target resource can be determined from one level or multiple levels, and this specification does not make any restrictions on this.

[0116] Step 108: Based on the category identifiers of each target resource, determine the target migration strategy for the at least one target resource.

[0117] After obtaining the category identifiers of the target resources, it is necessary to determine the target migration strategy for at least one target resource according to the category identifiers of the target resources.

[0118] Specifically, the target migration strategy refers to the plan for migrating each target resource among at least one target resource, such as which target resource to migrate first, which target resource to migrate later, where to migrate to, etc.

[0119] In practical applications, in order to improve the accuracy of the target migration strategy so as to ensure that each target resource can be migrated in an orderly manner and ensure the success of migration, the migration priority can be established first according to the category identifiers of the target resources, and the target migration strategy can be determined according to the migration priority. That is, the specific implementation process of determining the target migration strategy for the at least one target resource based on the category identifiers of the target resources can be:

[0120] Based on the category identifiers of the target resources, establish the migration priority;

[0121] According to the migration priority, determine the target migration strategy for the at least one target resource.

[0122] Specifically, the migration priority refers to the list of migration priorities or other forms obtained after associating the migration priority with the category identifier. For example, the first type identifier corresponds to the first migration priority, and the second type identifier corresponds to the second migration priority.

[0123] In practical applications, after obtaining the category identifiers of the target resources, a migration priority can be established according to the category identifiers and the differences between the category identifiers. It can be a 4-level migration priority or a 9-level migration priority. This specification does not limit the number of levels of the migration priority. After establishing the migration priority, the category identifiers of each target resource are compared with the migration priority respectively, so as to determine the corresponding migration priority levels of each target resource and further determine the target migration strategy for at least one target resource. In this way, the urgency and importance of each target resource can be distinguished, that is, the impact degree of the project of the user corresponding to the target resource can be determined, the impact of the project of the core customer can be distinguished, and the target resources corresponding to the key projects of the major customers are preferentially arranged for migration, realizing differential migration.

[0124] For example, there are 4 target resources: target resource 1, target resource 2, target resource 3, and target resource 4. The type identifier of target resource 1 is N3, the type identifier of target resource 2 is N8, the type identifier of target resource 3 is N4, and the type identifier of target resource 1 is N5. Then, a 6-level migration priority set is established based on N3, N8, N4, and N5, as shown in Table 1. After that, the category identifiers of each target resource are compared with the migration priorities shown in Table 1, and it can be determined that the migration priority level of target resource 1 is level six, the migration priority level of target resource 2 is level one, the migration priority level of target resource 3 is level five, and the migration priority level of target resource 4 is level four. Further, at least one target migration strategy for the target resources is determined according to the corresponding migration priority levels of the target resources.

[0125] Table 1 Migration Priority

[0126]

[0127] In one or more embodiments of this embodiment, in order to improve the accuracy of the migration priority and further improve the efficiency of determining the target migration strategy, the category identifier may include an importance identifier, an urgency identifier, a supply quantity identifier, and a supply time identifier. Then, a demand priority and a supply priority are established based on the category identifier. The demand priority and the supply priority constitute the migration priority. That is, in the case where the category identifier may include an importance identifier, an urgency identifier, a supply quantity identifier, and a supply time identifier, and the migration priority includes a demand priority and a supply priority, the specific implementation process of establishing the migration priority based on the category identifiers of the target resources may be as follows:

[0128] Establish the demand priority according to the importance identifier and the urgency identifier;

[0129] Establish the supply priority according to the supply quantity identifier and the supply time identifier.

[0130] Specifically, the importance identifier refers to the identifier of the target resource at the importance level, which is divided into small customers and large customers, etc.; the urgency identifier refers to the identifier of the target resource at the urgency level, which is divided into faults and potential hazards, etc.; the demand priority refers to the priority of the target resource in terms of demand during migration, such as demand division; the supply quantity identifier refers to the identifier of the target resource at the supply quantity level, which is divided into high supply quantity and low supply quantity, etc.; the supply time identifier refers to the identifier of the target resource at the supply time level, which is divided into immediate supply and waiting supply, etc.; the supply priority refers to the priority of the target resource in terms of supply during migration, such as supply division.

[0131] In practical applications, after obtaining the category identifiers of each target resource, the importance is divided into the first target number of levels according to the importance identifier of each target resource, and the urgency is divided into the second target number of levels according to the urgency identifier of each target resource. Then, a demand priority is established with importance and urgency as one dimension; the supply quantity is divided into the third target number of levels according to the supply quantity identifier of each target resource, and the supply time is divided into the fourth target number of levels according to the supply time identifier of each target resource. Then, a demand priority is established with supply quantity and supply time as one dimension. By establishing the demand priority and the supply priority, the impact degree of a specified fault on each target resource and the number of users affected by the specified fault can be quickly obtained. In a short time, a target migration strategy that minimizes the impact of the specified fault and has a high migration efficiency can be made to reduce the impact of the specified fault.

[0132] As Figure 2A described, Figure 2A FIG. shows a schematic diagram of a migration priority provided by an embodiment of the present specification: Assume that the first target number, the second target number, the third target number, and the fourth target number are all 2. Then, the importance is divided into two levels according to the importance identifier - small customers and large customers, the urgency is divided into two levels according to the urgency identifier - faults and hidden dangers, the supply quantity is divided into two levels according to the supply quantity identifier - high supply quantity and low supply quantity, and the supply time is divided into two levels according to the supply time identifier - immediate supply and waiting supply. Then, with importance and urgency as the two dimensions of the demand priority, a demand priority is established, where the demand priority is divided into four levels: large customer hidden danger - important and not urgent, large customer fault - urgent and important, small customer hidden danger - not urgent and not important, and small customer fault - urgent and not important; at the same time, with supply quantity and supply time as the two dimensions of the supply priority, a supply priority is established, where the supply priority is divided into four levels: immediate supply high supply quantity - online conversion, waiting supply high supply quantity - replenishment to meet, immediate supply low supply quantity - online inventory (immediately meet), and waiting supply low supply quantity - deployment to meet.

[0133] It should be noted that on the basis of establishing the demand priority and the supply priority, further, a target migration plan can be matched or determined according to the demand priority, the supply priority, and the number of target resources to be migrated. In addition, the demand priority and the supply priority can also be manually matched, where the supply priority can be default marked by the supplier and the supply capacity can be calculated. When determining the target migration plan, assume that it is necessary to make the supply capacity be Ai (A1, A2,... An) to meet the demand Bi (B1, B2,... Bn) range, where Ai is the level of the supply priority of each target resource, and Bi is the level of the demand priority of each target resource.

[0134] For example, when the supply capacity is limited, it is necessary to maximize the utilization of the supply capacity, that is, the mode of demand and supply matching. At this time, it is necessary to determine the supply quantity, supply time, urgency and importance of each target resource, as well as the quantity of target resources to be migrated and the acceptable time. For example, if two target resources are affected now, and the type identifier of one target resource is a large customer with a supply quantity of 10, and the type identifier of the other target resource is a small customer with a supply quantity of 20 units, and the target resource corresponding to the large customer needs to be migrated within half an hour, and the target resource corresponding to the small customer needs to be migrated within one hour, this is the demand priority. The supply priority refers to whether it can be migrated immediately currently.

[0135] To improve the accuracy of the target migration strategy and thus improve the migration efficiency, the migration order of each target resource can be determined first according to the migration priority, and then the target migration strategy can be determined further according to the migration order and attribute information of each target resource. That is, the specific implementation process of determining the target migration strategy for the at least one target resource according to the migration priority can be as follows:

[0136] Determine the migration order of each target resource according to the migration priority;

[0137] Determine the target migration strategy for the at least one target resource according to the migration order of each target resource and the attribute information of each target resource.

[0138] Specifically, the migration order refers to which one each target resource is to be migrated, and the attribute information refers to information such as the size and name of the target resource; under the target migration strategy, the resource migration quantity of at least one target resource is the largest and the resource migration efficiency is the highest.

[0139] In practical applications, after determining the migration priority, the category identifiers of each target resource can be compared with the migration priority to determine the migration order of each target resource. Further, in combination with the migration order and attribute information of each target resource, the sub-target migration strategies of each target resource can be determined respectively, so as to combine the sub-target migration strategies of each target resource into a target migration strategy.

[0140] For example, there are three target resources: target resource Q1, target resource Q2, and target resource Q3. Among them, the size (attribute information) of target resource Q1 is 5T, and its migration order is the 3rd; the size of target resource Q2 is (attribute information) 12T, and its migration order is the 1st; the size of target resource Q3 is (attribute information) 9T, and its migration order is the 2nd. At this time, there are three areas available for migrating the target resources, and their capacities are 10T, 12T, 15T, 17T, and 20T respectively. To improve the resource migration efficiency, the target migration strategy can be as follows: first, migrate target resource Q2 to the area available for migrating the target resources with a capacity of 12T; then, migrate target resource Q3 to the area available for migrating the target resources with a capacity of 15T, and then migrate target resource Q1 to the area available for migrating the target resources with a capacity of 15T. The target migration strategy can also be: first, migrate target resource Q2 to the area available for migrating the target resources with a capacity of 17T; then, migrate target resource Q3 to the area available for migrating the target resources with a capacity of 17T, and then migrate target resource Q1 to the area available for migrating the target resources with a capacity of 10T.

[0141] Before determining the target migration strategy, to ensure the feasibility and efficiency of the target migration strategy, it is necessary to first perform simulation and estimation, that is, first determine an initial migration strategy, and then judge whether the initial migration strategy is feasible according to the preset migration conditions. If it is feasible, the initial migration strategy is the target migration strategy; if not, the initial migration strategy needs to be adjusted until it is feasible. That is, according to the migration priority, determine the target migration strategy for the at least one target resource, which can be specifically as follows:

[0142] Determine the initial migration strategy for the at least one target resource according to the category identifier of each target resource;

[0143] Judge whether the initial migration strategy meets the preset migration conditions;

[0144] If not, adjust the initial migration strategy according to the preset migration conditions, and execute the step of judging whether the initial migration strategy meets the preset migration conditions;

[0145] If so, determine the initial migration strategy as the target migration strategy for the at least one target resource.

[0146] Specifically, the initial migration strategy refers to the initially determined migration strategy; the preset migration conditions refer to the conditions set in advance for measuring whether the initial migration strategy is qualified, such as whether the migration time, migration location, etc. of each target resource are effective.

[0147] In practical applications, first, an initial migration strategy is determined based on the category identifiers of each target resource. Then, it is analyzed according to the preset migration conditions whether the initial migration strategy is feasible and efficient. If so, the initial migration condition is the target migration strategy. If not, the initial migration strategy needs to be adjusted according to the preset migration conditions, and then the adjusted initial migration strategy is analyzed again until the initial migration strategy is feasible and efficient. In this way, a migration guarantee function is introduced, which can maximize the guarantee that the target resources can be successfully migrated.

[0148] For example, the sizes of the target resources are 8 cores, 4 cores, and 1 core. Suppose the area to which the target resources are to be migrated has 12 cores. One area can only accommodate one 8-core target resource. Two 12-core areas can only accommodate two 8-core target resources. However, two 12-core areas can hold 24 1-core target resources or 6 4-core target resources. Since the sizes of each target resource are different, in order to make reasonable use of the area to which the target resources are to be migrated, a simulation and estimation need to be done. Suppose there is only one 8-core area left for the target resources to be migrated. If a 1-core target resource is migrated first, the remaining 8-core target resource cannot be migrated. That is, according to the preset migration condition "all target resources are migrated", it is judged whether all target resources can be migrated according to the initial migration strategy: if not, the initial migration plan is adjusted; if so, the initial migration plan is used as the target migration plan.

[0149] In addition, when the initial migration strategy does not meet the preset migration conditions, the area to which the target resources are to be migrated can also be adjusted according to the initial migration plan, that is, the area to which the target resources are to be migrated is increased or enlarged.

[0150] Optionally, in order to further improve the accuracy of the migration priority and further improve the efficiency of determining the target migration strategy, the category identifier can include an impact degree identifier and / or a migration type identifier. Then, the target migration plan is determined according to the impact degree identifier and / or the migration type identifier. That is, in the case where the category identifier also includes an impact degree identifier and / or a migration type identifier, the specific implementation process of determining the target migration strategy for the at least one target resource based on the category identifiers of the target resources can be as follows:

[0151] Based on the impact degree identifiers of the target resources, determine the target migration order of the target resources, and determine the target migration strategy for the at least one target resource according to the target migration order of the target resources; and / or

[0152] Based on the migration type identifiers of the respective target resources, determine the target migration methods of the respective target resources, and determine the target migration strategy for the at least one target resource according to the target migration methods of the respective target resources. The target migration methods include cold migration and hot migration.

[0153] Specifically, the impact degree identifier refers to the identifier of the target resource at the impact degree level. For example, for supporting dynamic impact assessment, factors such as turnover and customer disruption are mainly considered; the migration type identifier refers to the identifier of the target resource at the migration type level, which is divided into cold migration and hot migration, that is, it supports the migration assessment ability; cold migration, namely static migration, refers to the method of migrating by shutting down the power supply; hot migration, namely dynamic migration and real-time migration, refers to the migration through virtual machine save / restore.

[0154] In practical applications, when the type identifier is the impact degree identifier, the turnover situation and / or customer disruption situation of each target resource can be determined according to the impact degree identifier of each target resource, and the target migration order of each target resource can be determined according to the degree of the turnover situation and / or customer disruption situation. The greater the degree of the turnover situation and / or customer disruption situation of the current target resource, the higher the migration order of the current target resource, and the target migration strategy is determined according to the target migration order of each target resource. When the type identifier is the migration type identifier, the specific migration method of each target resource, whether it is cold migration or hot migration, can be determined according to the migration type identifier of each target resource, the target migration order of each target resource is determined according to the specific migration method of each target resource, and the target migration strategy is determined according to the specific migration method of the target resource. When the type identifier includes the impact degree identifier and the migration type identifier, the turnover situation and / or customer disruption situation of each target resource are determined according to the impact degree identifier of each target resource, and the target migration order of each target resource is determined according to the degree of the turnover situation and / or customer disruption situation; the specific migration method of each target resource is determined according to the migration type identifier of each target resource; then, combining the target migration order of each target resource and the specific migration method of each target resource, the target migration strategy for the at least one target resource is determined.

[0155] In practical applications, in order to improve the accuracy of the target migration strategy so as to ensure that each target resource can be migrated in an orderly manner and ensure the success of the migration, it is also possible to first evaluate each target resource according to the category identifier of each target resource and a preset resource evaluation rule, so as to obtain the target migration strategy, that is, the determining the target migration strategy for the at least one target resource based on the category identifiers of the respective target resources includes:

[0156] Based on the category identifiers of the respective target resources, use the preset resource evaluation rule to perform resource evaluation on the respective target resources to obtain an evaluation result;

[0157] Based on the evaluation result, determine a target migration strategy for the at least one target resource.

[0158] Specifically, the preset resource evaluation rule refers to a rule preset for evaluating each target resource, which can be one or more of a scheduling simulation evaluation rule, a customer grading evaluation rule, and an online / offline resource evaluation rule.

[0159] In practical applications, based on the category identifier of each target resource, the scheduling simulation evaluation rule can be used to evaluate each target resource to obtain a first evaluation result, and based on the first evaluation result, determine a target migration strategy for the at least one target resource; based on the category identifier of each target resource, the customer grading evaluation rule can be used to evaluate each target resource to obtain a second evaluation result, and based on the second evaluation result, determine a target migration strategy for the at least one target resource; based on the category identifier of each target resource, the online / offline resource evaluation rule can be used to evaluate each target resource to obtain a third evaluation result, and based on the third evaluation result, determine a target migration strategy for the at least one target resource; or based on the category identifier of each target resource, multiple of the scheduling simulation evaluation rule, the customer grading evaluation rule, and the online / offline resource evaluation rule can be used to evaluate each target resource to obtain a fourth evaluation result, and based on the fourth evaluation result, determine a target migration strategy for the at least one target resource.

[0160] After determining the target migration strategy, each target resource needs to be migrated according to the target migration strategy, that is, after determining the target migration strategy for the at least one target resource based on the category identifier of each target resource, it further includes:

[0161] Establish a resource reservation area according to the target migration strategy;

[0162] Migrate the at least one target resource to the resource reservation area.

[0163] Specifically, the resource reservation area refers to the area to which the target resource will be migrated.

[0164] In practical applications, the target migration strategy has already determined the area to which the target resource will be migrated, that is, the resource reservation area, including the number of resource reservation areas, the size of each resource reservation area, and the target resources that each resource reservation area will receive. On this basis, according to the information in the target migration strategy, enter the Alibaba resource reservation area, and migrate at least one target resource to the established resource reservation area according to the migration order and / or migration method of each target resource in the target migration strategy. In this way, quickly establishing the resource reservation area according to the information of the target migration strategy can ensure the smooth migration of each target resource.

[0165] After establishing the resource reservation area, to ensure the unity of various pieces of information, the information of the established resource reservation area, such as name, location, etc., can be fed back, that is, the establishment result is fed back.

[0166] During the process of migrating at least one target resource to the resource reservation area, in order to further improve the migration efficiency, it is necessary to supervise the migration process, that is, the method further includes:

[0167] Monitor the remaining storage space of the resource reservation area and / or the migration progress of each target resource;

[0168] Send the monitoring result to the client for display.

[0169] Specifically, the remaining storage space refers to the remaining size of the resource reservation area during the migration of each target resource, that is, the space margin; the migration progress refers to the state of the target resource being migrated, including three states: not migrated, migrating, and migrated. Among them, the migrating state can also include 10% migration, 20% migration, etc.

[0170] In practical applications, in order to ensure the sequential progress of the migration, the remaining storage space of the resource reservation area can be monitored, and the remaining storage space of the resource reservation area can be fed back to the client for display, so that the operation personnel can view the specific progress of the migration; the migration progress of each target resource can be monitored, and the migration progress of each target resource can be fed back to the client for display, which is convenient for the operation personnel to view the specific progress of the migration; the remaining storage space of the resource reservation area and the migration progress of each target resource can also be monitored simultaneously, and the remaining storage space of the resource reservation area and the migration progress of each target resource can be fed back to the client for display, so that the operation personnel can view the specific progress of the migration.

[0171] Such as Figure 2B described, Figure 2B shows a schematic diagram of a method for feeding back monitoring results provided in an embodiment of this specification: The server only monitors the remaining storage space of the resource reservation area and / or the migration progress of each target resource, and feeds back the detection result, that is, the remaining storage space of the resource reservation area and / or the migration progress of each target resource to the client, and displays it on the client.

[0172] The following combines the attached Figure 2C , to illustrate the resource migration strategy determination method provided in this specification, where, Figure 2CThe figure shows a schematic diagram of a process for determining a target migration strategy provided by an embodiment of this specification: receiving a resource migration request, that is, a scenario input, including device identifiers in the affected range when a specified fault occurs; then determining at least one target resource to be migrated in the corresponding cloud server of this range according to the device identifiers, that is, analyzing the impact source (specified fault) and the affected products (at least one target resource), and further obtaining the type identifiers of each target resource, that is, demand classification. According to the type identifiers of each target resource, that is, importance identifier, urgency identifier, supply time identifier, and supply quantity identifier, demand assessment is performed, that is, migration priorities are established, including demand priority and supply priority. At the same time, according to the migration priorities, estimation and simulation are performed to generate an initial migration strategy. When the initial migration strategy meets the preset migration conditions, the initial migration strategy is determined as the target migration strategy, and then a resource reservation area is established and a monitoring function is set up to monitor the remaining storage space of the resource reservation area and / or the migration progress of each target resource during the migration process and send the monitoring results to the client for display, that is, solution guarantee. Then each target resource is migrated to the resource reservation area, that is, the target migration strategy is executed.

[0173] It should be noted that several of the above-mentioned modules for analyzing the impact source and the affected products, demand classification, demand assessment, and executing the target migration strategy can be used, or the cooperation order between the modules can be adjusted, and the migration of each target resource can also be completed.

[0174] The resource migration strategy determination device provided in this specification can quickly and accurately determine the affected range, the affected cloud server, and at least one target resource to be migrated when a specified fault occurs by receiving a resource migration request carrying device identifiers; then obtaining the category identifiers of each target resource in at least one target resource can make a target migration strategy with the least impact of the specified fault and high migration efficiency in a short time, improving the efficiency of determining the target migration strategy, and thus helping the smooth migration of each target resource and enhancing the security and stability of the cloud server.

[0175] The following combines the attached Figure 3 drawing to further illustrate the resource migration strategy determination method provided in this specification by taking the application of the resource migration strategy determination method provided in this specification in a fire fault as an example. Among them, Figure 3 The figure shows a flowchart of the processing process of a resource migration strategy determination method provided by an embodiment of this specification, which specifically includes the following steps.

[0176] Step 302: Receive a resource migration request, and the resource migration request carries device identifiers in the affected range when a fire fault occurs.

[0177] Step 304: Determine at least one target resource to be migrated in the cloud server corresponding to the range according to the device identifier.

[0178] Step 306: Obtain the category identifier of each target resource among at least one target resource.

[0179] Step 308: Establish a migration priority based on the category identifiers of each target resource.

[0180] In one or more embodiments of this embodiment, the category identifier includes an importance identifier, an urgency identifier, a supply quantity identifier, and a supply time identifier; the migration priority includes a demand priority and a supply priority;

[0181] Establishing a migration priority based on the category identifiers of each target resource includes:

[0182] Establish a demand priority according to the importance identifier and the urgency identifier;

[0183] Establish a supply priority according to the supply quantity identifier and the supply time identifier.

[0184] Step 310: Determine the migration order of each target resource according to the migration priority.

[0185] Step 312: Determine an initial migration strategy for at least one target resource according to the migration order of each target resource and the attribute information of each target resource.

[0186] Step 314: Determine whether the initial migration strategy meets the preset migration conditions.

[0187] If not, execute step 316; if so, execute step 318.

[0188] Step 316: Adjust the initial migration strategy according to the preset migration conditions.

[0189] After that, jump to step 314.

[0190] Step 318: Determine the initial migration strategy as the target migration strategy for at least one target resource.

[0191] In one or more embodiments of this embodiment, the category identifier further includes an impact degree identifier and / or a migration type identifier;

[0192] It is also possible to determine the target migration order of each target resource based on the impact degree identifier of each target resource, and determine the target migration strategy for at least one target resource according to the target migration order of each target resource; and / or determine the target migration method of each target resource based on the migration type identifier of each target resource, and determine the target migration strategy for at least one target resource according to the target migration method of each target resource. The target migration method includes cold migration and hot migration.

[0193] In one or more embodiments of this embodiment, it is also possible to perform resource evaluation on each target resource based on the category identifier of each target resource by using a preset resource evaluation rule to obtain an evaluation result;

[0194] According to the evaluation result, determine the target migration strategy for at least one target resource.

[0195] Step 320: Establish a resource reservation area according to the target migration strategy.

[0196] Step 322: Migrate at least one target resource to the resource reservation area.

[0197] Step 324: Monitor the remaining storage space of the resource reservation area and / or the migration progress of each target resource.

[0198] Step 326: Send the monitoring result to the client for display.

[0199] The resource migration strategy determination device provided in this specification can quickly and accurately determine the affected range, the affected cloud servers, and at least one target resource to be migrated when a fire occurs by receiving a resource migration request carrying a device identifier; then obtain the category identifier of each target resource in at least one target resource, and can make a target migration strategy that minimizes the impact of a specified failure and has high migration efficiency in a short time, improving the efficiency of determining the target migration strategy, and thus helping each target resource to be migrated smoothly and enhancing the security and stability of the cloud server.

[0200] Corresponding to the above method embodiment, this specification also provides an embodiment of a resource migration strategy determination device, Figure 4 showing a schematic structural diagram of a resource migration strategy determination device provided in an embodiment of this specification. As Figure 4 shown, the device includes:

[0201] A receiving module 402, configured to receive a resource migration request, where the resource migration request carries a device identifier in the affected range when a specified failure occurs;

[0202] A first determination module 404, configured to determine at least one target resource to be migrated in the cloud server corresponding to the range according to the device identifier;

[0203] An acquisition module 406, configured to acquire the category identifier of each target resource among the at least one target resource;

[0204] A second determination module 408, configured to determine a target migration strategy for the at least one target resource based on the category identifiers of the respective target resources.

[0205] Optionally, the second determination module 408 is further configured to:

[0206] Establish a migration priority based on the category identifiers of the respective target resources;

[0207] Determine a target migration strategy for the at least one target resource according to the migration priority.

[0208] Optionally, the category identifier includes an importance identifier, an urgency identifier, a supply quantity identifier, and a supply time identifier; the migration priority includes a demand priority and a supply priority;

[0209] The second determination module 408 is further configured to:

[0210] Establish the demand priority according to the importance identifier and the urgency identifier;

[0211] Establish the supply priority according to the supply quantity identifier and the supply time identifier.

[0212] Optionally, the second determination module 408 is further configured to:

[0213] Determine the migration order of the respective target resources according to the migration priority;

[0214] Determine a target migration strategy for the at least one target resource according to the migration order of the respective target resources and the attribute information of the respective target resources.

[0215] Optionally, the second determination module 408 is further configured to:

[0216] Determine an initial migration strategy for the at least one target resource according to the category identifiers of the respective target resources;

[0217] Judge whether the initial migration strategy meets a preset migration condition;

[0218] If not, adjust the initial migration strategy according to the preset migration condition, and execute the step of judging whether the initial migration strategy meets the preset migration condition;

[0219] If so, determine the initial migration strategy as the target migration strategy for the at least one target resource.

[0220] Optionally, the category identifier further includes an impact degree identifier and / or a migration type identifier;

[0221] The second determination module 408 is further configured to:

[0222] Based on the impact degree identifiers of the target resources, determine the target migration order of the target resources, and determine a target migration strategy for the at least one target resource according to the target migration order of the target resources; and / or

[0223] Based on the migration type identifiers of the target resources, determine the target migration methods of the target resources, and determine a target migration strategy for the at least one target resource according to the target migration methods of the target resources, where the target migration methods include cold migration and hot migration.

[0224] Optionally, the second determination module 408 is further configured to:

[0225] Based on the category identifiers of the target resources, use a preset resource evaluation rule to evaluate the target resources to obtain an evaluation result;

[0226] According to the evaluation result, determine a target migration strategy for the at least one target resource.

[0227] Optionally, the device further includes a migration module, which is configured to:

[0228] Establish a resource reservation area according to the target migration strategy;

[0229] Migrate the at least one target resource to the resource reservation area.

[0230] Optionally, the device further includes a monitoring module, which is configured to:

[0231] Monitor the remaining storage space of the resource reservation area and / or the migration progress of the target resources;

[0232] Send the monitoring result to the client for display.

[0233] The resource migration strategy determination device provided in this specification can quickly and accurately determine the affected scope, the cloud servers affected, and at least one target resource to be migrated when a specified fault occurs by receiving a resource migration request carrying a device identifier; then obtain the category identifiers of each target resource in the at least one target resource, and can make a target migration strategy that minimizes the impact of the specified fault and has high migration efficiency in a short time, improving the efficiency of determining the target migration strategy, and thus helping the smooth migration of each target resource and enhancing the security and stability of the cloud server.

[0234] The above is a schematic solution of a resource migration strategy determination device according to this embodiment. It should be noted that the technical solution of this resource migration strategy determination device and the technical solution of the above resource migration strategy determination method belong to the same concept. For the details not described in the technical solution of the resource migration strategy determination device, reference can be made to the description of the technical solution of the above resource migration strategy determination method.

[0235] An embodiment of this specification also provides a computing device, and the components of this computing device include but are not limited to a memory and a processor. The processor is connected to the memory through a bus, and the database is used to store data.

[0236] The computing device further includes an access device, which enables the computing device to communicate via one or more networks. Examples of these networks include the Public Switched Telephone Network (PSTN), Local Area Network (LAN), Wide Area Network (WAN), Personal Area Network (PAN), or a combination of communication networks such as the Internet. The access device may include one or more of any type of wired or wireless network interfaces (for example, a Network Interface Controller (NIC)), such as an IEEE802.11 Wireless Local Area Network (WLAN) wireless interface, a Worldwide Interoperability for Microwave Acess (Wi-MAX) interface, an Ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a Bluetooth interface, a Near Field Communication (NFC) interface, and so on.

[0237] In an embodiment of this specification, other components not shown in the above components of the computing device may also be connected to each other, for example, through a bus. It should be understood that the above computing device is only for illustrative purposes and not a limitation on the scope of this specification. Those skilled in the art can add or replace other components as needed.

[0238] A computing device can be any type of stationary or mobile computing device, including mobile computers or mobile computing devices (e.g., tablet computers, personal digital assistants, laptop computers, notebook computers, netbooks, etc.), mobile phones (e.g., smartphones), wearable computing devices (e.g., smartwatches, smart glasses, etc.) or other types of mobile devices, or stationary computing devices such as desktop computers or PCs. The computing device can also be a mobile or stationary server.

[0239] Wherein, the processor is used to execute the following computer-executable instructions, and when the computer-executable instructions are executed by the processor, the steps of the above resource migration strategy determination method are implemented.

[0240] The above is a schematic solution of a computing device according to this embodiment. It should be noted that the technical solution of the computing device and the technical solution of the above resource migration strategy determination method belong to the same concept. For the details not described in detail in the technical solution of the computing device, reference can be made to the description of the technical solution of the above resource migration strategy determination method.

[0241] An embodiment of this specification also provides a computer-readable storage medium, which stores computer-executable instructions, and when the computer-executable instructions are executed by the processor, the steps of the above resource migration strategy determination method are implemented.

[0242] The above is a schematic solution of a computer-readable storage medium according to this embodiment. It should be noted that the technical solution of the storage medium and the technical solution of the above resource migration strategy determination method belong to the same concept. For the details not described in detail in the technical solution of the storage medium, reference can be made to the description of the technical solution of the above resource migration strategy determination method.

[0243] An embodiment of this specification also provides a computer program, wherein when the computer program is executed on a computer, the computer is made to execute the steps of the above resource migration strategy determination method.

[0244] The above is a schematic solution of a computer program according to this embodiment. It should be noted that the technical solution of the computer program and the technical solution of the above resource migration strategy determination method belong to the same concept. For the details not described in detail in the technical solution of the computer program, reference can be made to the description of the technical solution of the above resource migration strategy determination method.

[0245] The above describes specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the acts or steps recited in the claims may be performed in a different order than in the embodiments and still achieve the desired results. Additionally, the processes depicted in the drawings do not necessarily require the particular order or sequential order shown to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0246] The computer instructions include computer program code, which may be in source code form, object code form, executable files, or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content included in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electrical carrier signals and telecommunication signals.

[0247] It should be noted that for the foregoing method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations. However, those skilled in the art should know that the embodiments of this specification are not limited by the described order of actions, because according to the embodiments of this specification, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to the embodiments of this specification.

[0248] In the above embodiments, the descriptions of the various embodiments have their own focuses. For the parts not detailed in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.

[0249] The preferred embodiments of this specification disclosed above are only used to help explain this specification. The alternative embodiments do not elaborate on all the details and do not limit the invention to only the specific embodiments described. Obviously, many modifications and variations can be made according to the content of the embodiments of this specification. This specification selects and specifically describes these embodiments to better explain the principles and practical applications of the embodiments of this specification, so that those skilled in the art can well understand and utilize this specification. This specification is only limited by the claims and their full scope and equivalents.

Claims

1. A method for determining a resource migration strategy, comprising: Receiving a resource migration request, where the resource migration request carries device identifiers in the affected scope when a specified fault occurs; Determining at least one target resource to be migrated in the cloud server corresponding to the scope according to the device identifiers; Obtaining the category identifiers of each target resource among the at least one target resource; Based on the category identifiers of the respective target resources, determining a target migration strategy for the at least one target resource. Determining a target migration strategy for the at least one target resource includes: determining an initial migration strategy for the at least one target resource according to the category identifiers of the respective target resources; judging whether the initial migration strategy meets a preset migration condition, where the preset migration condition is a condition preset for measuring whether the initial migration strategy is qualified; if not, adjusting the initial migration strategy according to the preset migration condition, and performing the step of judging whether the initial migration strategy meets the preset migration condition; if so, determining the initial migration strategy as the target migration strategy for the at least one target resource.

2. The method according to claim 1, where the determining a target migration strategy for the at least one target resource based on the category identifiers of the respective target resources includes: Establishing a migration priority based on the category identifiers of the respective target resources; Determining a target migration strategy for the at least one target resource according to the migration priority.

3. The method according to claim 2, where the category identifier includes an importance identifier, an urgency identifier, a supply quantity identifier, and a supply time identifier; the migration priority includes a demand priority and a supply priority; The establishing a migration priority based on the category identifiers of the respective target resources includes: Establishing the demand priority according to the importance identifier and the urgency identifier; Establishing the supply priority according to the supply quantity identifier and the supply time identifier.

4. The method according to claim 2 or 3, where the determining a target migration strategy for the at least one target resource according to the migration priority includes: Determining the migration order of the respective target resources according to the migration priority; Determining a target migration strategy for the at least one target resource according to the migration order of the respective target resources and the attribute information of the respective target resources.

5. The method according to any one of claims 1-3, where the category identifier further includes an impact degree identifier and / or a migration type identifier; The determining a target migration strategy for the at least one target resource based on the category identifiers of the respective target resources includes: Determining the target migration order of the respective target resources based on the impact degree identifier of the respective target resources, and determining a target migration strategy for the at least one target resource according to the target migration order of the respective target resources; and / or Based on the migration type identifiers of the respective target resources, determine the target migration methods of the respective target resources, and determine a target migration strategy for the at least one target resource according to the target migration methods of the respective target resources, where the target migration methods include cold migration and hot migration.

6. The method according to claim 1, wherein the determining a target migration strategy for the at least one target resource based on the category identifiers of the respective target resources includes: Based on the category identifiers of the respective target resources, use a preset resource evaluation rule to evaluate the respective target resources to obtain an evaluation result; Determine a target migration strategy for the at least one target resource according to the evaluation result.

7. The method according to any one of claims 1-3 and 6, after determining a target migration strategy for the at least one target resource based on the category identifiers of the respective target resources, further includes: Establish a resource reservation area according to the target migration strategy; Migrate the at least one target resource to the resource reservation area.

8. The method according to claim 7, further includes: Monitor the remaining storage space of the resource reservation area and / or the migration progress of the respective target resources; Send the monitoring result to a client for display.

9. A resource migration strategy determination device, including: A receiving module, configured to receive a resource migration request, where the resource migration request carries a device identifier in the affected range when a specified failure occurs; A first determination module, configured to determine at least one target resource to be migrated in the cloud server corresponding to the range according to the device identifier; An acquisition module, configured to acquire the category identifier of each target resource in the at least one target resource; A second determination module, configured to determine a target migration strategy for the at least one target resource based on the category identifiers of the respective target resources; The second determination module is further configured to determine a target migration strategy for the at least one target resource, including: determining an initial migration strategy for the at least one target resource according to the category identifiers of the respective target resources; determining whether the initial migration strategy meets a preset migration condition, where the preset migration condition is a condition preset for measuring whether the initial migration strategy is qualified; if not, adjust the initial migration strategy according to the preset migration condition, and execute the step of determining whether the initial migration strategy meets the preset migration condition; if so, determine the initial migration strategy as the target migration strategy for the at least one target resource.

10. A computing device, including: A memory and a processor; The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions, and when the computer-executable instructions are executed by the processor, the steps of the resource migration strategy determination method according to any one of claims 1 to 8 are implemented.

11. A computer-readable storage medium, which stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the steps of the resource migration strategy determination method according to any one of claims 1 to 8 are implemented.

12. A computer program product, wherein, When the computer program is executed on a computer, the computer is caused to execute the steps of the resource migration strategy determination method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Fault processing method, virtual architecture management system and business management system

    CN106452846A