CN113986478A - Resource migration strategy determination method and device - Google Patents

Resource migration strategy determination method and device Download PDF

Info

Publication number
CN113986478A
CN113986478A CN202111130336.6A CN202111130336A CN113986478A CN 113986478 A CN113986478 A CN 113986478A CN 202111130336 A CN202111130336 A CN 202111130336A CN 113986478 A CN113986478 A CN 113986478A
Authority
CN
China
Prior art keywords
migration
target
resource
target resource
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111130336.6A
Other languages
Chinese (zh)
Inventor
于颜硕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba China Co Ltd
Alibaba Cloud Computing Ltd
Original Assignee
Alibaba China Co Ltd
Alibaba Cloud Computing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba China Co Ltd, Alibaba Cloud Computing Ltd filed Critical Alibaba China Co Ltd
Priority to CN202111130336.6A priority Critical patent/CN113986478A/en
Publication of CN113986478A publication Critical patent/CN113986478A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/5038Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the execution order of a plurality of tasks, e.g. taking priority or time dependency constraints into consideration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources
    • G06F9/5077Logical partitioning of resources; Management or configuration of virtualized resources
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/4557Distribution of virtual machine instances; Migration and load balancing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5021Priority

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Hardware Redundancy (AREA)

Abstract

An embodiment of the present specification provides a method and an apparatus for determining a resource migration policy, where the method for determining a resource migration policy includes: the method comprises the steps of determining at least one target resource to be migrated in a cloud server corresponding to a range according to a resource migration request carrying a device identifier in an affected range when a specified fault occurs by receiving the resource migration request, further obtaining a category identifier of each target resource in the at least one target resource, and then determining a target migration strategy aiming at the at least one target resource based on the category identifier of each target resource. The method can quickly and accurately determine the range of influence, the cloud server influenced by the specified fault and at least one target resource to be migrated when the specified fault occurs; the target migration strategy which minimizes the influence of the specified fault and has high migration efficiency is guaranteed to be made in a short time, the efficiency of determining the target migration strategy is improved, smooth migration of all target resources is facilitated, and the safety and the stability of the cloud server are improved.

Description

Resource migration strategy determination method and device
Technical Field
The embodiment of the specification relates to the technical field of computers, in particular to a resource migration strategy determination method.
Background
With the continuous development of computer technology, the project of cloud servers has been increased dramatically. Cloud products of the cloud server are continuously updated, and available areas are continuously increased. In the daily processes of new construction, capacity expansion, upgrading, operation and maintenance and the like, the cloud server can suffer from various anticipated or unexpected hidden dangers due to software problems, hardware problems, internet data center machine room fault problems, machine maintenance and the like, so that the use of the cloud server is subjected to safety risks, such as power failure, cooling system faults, typhoon flood, software bugs, hardware defects and the like. Therefore, an effective solution to solve the above problems is needed.
Disclosure of Invention
In view of this, the embodiments of the present specification provide a resource migration policy determining method. One or more embodiments of the present specification also relate to a resource migration policy determination apparatus, a computing device, a computer-readable storage medium, and a computer program, so as to solve the technical deficiencies in the prior art.
According to a first aspect of embodiments of the present specification, there is provided a resource migration policy determination method, including:
receiving a resource migration request, wherein the resource migration request carries an equipment identifier in an affected range when a specified fault occurs;
determining at least one target resource to be migrated in the cloud server corresponding to the range according to the equipment identifier;
acquiring a category identifier of each target resource in the at least one target resource;
and determining a target migration strategy aiming at the at least one target resource based on the category identification of each target resource.
Optionally, the determining a target migration policy for the at least one target resource based on the category identifier of each target resource includes:
establishing a migration priority based on the category identification of each target resource;
determining a target migration policy for the at least one target resource according to the migration priority.
Optionally, the category identifier includes an importance identifier, an urgency identifier, a supply amount identifier, and a supply time identifier; the migration priority comprises a demand priority and a supply priority;
the establishing of the migration priority based on the category identification of each target resource includes:
establishing the demand priority according to the importance degree identification and the urgency degree identification;
and establishing the supply priority according to the supply quantity identifier and the supply time identifier.
Optionally, the determining a target migration policy for the at least one target resource according to the migration priority includes:
determining the migration sequence of each target resource according to the migration priority;
and determining a target migration strategy aiming at the at least one target resource according to the migration sequence of each target resource and the attribute information of each target resource.
Optionally, the determining a target migration policy for the at least one target resource according to the migration priority includes:
determining an initial migration strategy aiming at the at least one target resource according to the category identification of each target resource;
judging whether the initial migration strategy reaches a preset migration condition or not;
if not, adjusting the initial migration strategy according to the preset migration condition, and executing the step of judging whether the initial migration strategy reaches the preset migration condition;
if yes, determining the initial migration strategy as a target migration strategy for the at least one target resource.
Optionally, the category identifier further includes an influence degree identifier and/or a migration type identifier;
the determining a target migration policy for the at least one target resource based on the category identification of each target resource includes:
determining a target migration sequence of each target resource based on the influence degree identification of each target resource, and determining a target migration strategy aiming at the at least one target resource according to the target migration sequence of each target resource; and/or
And determining a target migration mode of each target resource based on the migration type identifier of each target resource, and determining a target migration strategy aiming at the at least one target resource according to the target migration mode of each target resource, wherein the target migration mode comprises cold migration and hot migration.
Optionally, the determining a target migration policy for the at least one target resource based on the category identifier of each target resource includes:
based on the category identification of each target resource, performing resource evaluation on each target resource by using a preset resource evaluation rule to obtain an evaluation result;
and determining a target migration strategy aiming at the at least one target resource according to the evaluation result.
Optionally, after determining the target migration policy for the at least one target resource based on the category identifier of each target resource, the method further includes:
establishing a resource reservation region according to the target migration strategy;
migrating the at least one target resource to the resource reservation zone.
Optionally, the method further comprises:
monitoring the residual storage space of the resource reservation region and/or the migration progress of each target resource;
and sending the monitoring result to the client for displaying.
According to a second aspect of embodiments of the present specification, there is provided a resource migration policy determination apparatus, including:
a receiving module, configured to receive a resource migration request, where the resource migration request carries an equipment identifier in an affected range when a specified fault occurs;
the first determining module is configured to determine at least one target resource to be migrated in the cloud server corresponding to the range according to the device identifier;
the acquisition module is configured to acquire the category identification of each target resource in the at least one target resource;
a second determination module configured to determine a target migration policy for the at least one target resource based on the class identification of the target resources.
Optionally, the second determining module is further configured to:
establishing a migration priority based on the category identification of each target resource;
determining a target migration policy for the at least one target resource according to the migration priority.
Optionally, the category identifier includes an importance identifier, an urgency identifier, a supply amount identifier, and a supply time identifier; the migration priority comprises a demand priority and a supply priority;
the second determination module further configured to:
establishing the demand priority according to the importance degree identification and the urgency degree identification;
and establishing the supply priority according to the supply quantity identifier and the supply time identifier.
Optionally, the second determining module is further configured to:
determining the migration sequence of each target resource according to the migration priority;
and determining a target migration strategy aiming at the at least one target resource according to the migration sequence of each target resource and the attribute information of each target resource.
Optionally, the second determining module is further configured to:
determining an initial migration strategy aiming at the at least one target resource according to the category identification of each target resource;
judging whether the initial migration strategy reaches a preset migration condition or not;
if not, adjusting the initial migration strategy according to the preset migration condition, and executing the step of judging whether the initial migration strategy reaches the preset migration condition;
if yes, determining the initial migration strategy as a target migration strategy for the at least one target resource.
Optionally, the category identifier further includes an influence degree identifier and/or a migration type identifier;
the second determination module further configured to:
determining a target migration sequence of each target resource based on the influence degree identification of each target resource, and determining a target migration strategy aiming at the at least one target resource according to the target migration sequence of each target resource; and/or
And determining a target migration mode of each target resource based on the migration type identifier of each target resource, and determining a target migration strategy aiming at the at least one target resource according to the target migration mode of each target resource, wherein the target migration mode comprises cold migration and hot migration.
Optionally, the second determining module is further configured to:
based on the category identification of each target resource, performing resource evaluation on each target resource by using a preset resource evaluation rule to obtain an evaluation result;
and determining a target migration strategy aiming at the at least one target resource according to the evaluation result.
Optionally, the apparatus further comprises a migration module configured to:
establishing a resource reservation region according to the target migration strategy;
migrating the at least one target resource to the resource reservation zone.
Optionally, the apparatus further comprises a monitoring module configured to:
monitoring the residual storage space of the resource reservation region and/or the migration progress of each target resource;
and sending the monitoring result to the client for displaying.
According to a third aspect of embodiments herein, there is provided a computing device comprising:
a memory and a processor;
the memory is to store computer-executable instructions, and the processor is to execute the computer-executable instructions to:
receiving a resource migration request, wherein the resource migration request carries an equipment identifier in an affected range when a specified fault occurs;
determining at least one target resource to be migrated in the cloud server corresponding to the range according to the equipment identifier;
acquiring a category identifier of each target resource in the at least one target resource;
and determining a target migration strategy aiming at the at least one target resource based on the category identification of each target resource.
According to a fourth aspect of embodiments herein, there is provided a computer-readable storage medium storing computer-executable instructions that, when executed by a processor, implement the steps of any one of the resource migration policy determination methods.
According to a fifth aspect of embodiments herein, there is provided a computer program, wherein when the computer program is executed in a computer, the computer is caused to execute the steps of the above-mentioned resource migration policy determination method.
According to the resource migration strategy determination method provided by the specification, by receiving the resource migration request carrying the equipment identifier, the range of influence, the cloud server influenced when the specified fault occurs and at least one target resource to be migrated can be quickly and accurately determined; and then, the category identification of each target resource in at least one target resource is obtained, a target migration strategy which minimizes the influence of the specified fault and has high migration efficiency can be made in a short time, the efficiency of determining the target migration strategy is improved, the smooth migration of each target resource is facilitated, and the safety and the stability of the cloud server are improved.
Drawings
Fig. 1 is a flowchart of a resource migration policy determination method according to an embodiment of the present specification;
FIG. 2A is a schematic diagram of a migration priority provided by one embodiment of the present description;
FIG. 2B is a schematic diagram of a feedback monitoring result provided by an embodiment of the present disclosure;
FIG. 2C is a schematic diagram of a process for determining a target migration policy provided by one embodiment of the present specification;
fig. 3 is a flowchart of a processing procedure of a resource migration policy determination method according to an embodiment of the present specification;
fig. 4 is a schematic structural diagram of a resource migration policy determining apparatus according to an embodiment of the present specification.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present description. This description may be embodied in many different forms and should not be construed as limited to the embodiments set forth herein, as those skilled in the art will be able to make and use the present disclosure without departing from the spirit and scope of the present disclosure.
The terminology used in the description of the one or more embodiments is for the purpose of describing the particular embodiments only and is not intended to be limiting of the description of the one or more embodiments. As used in one or more embodiments of the present specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used in one or more embodiments of the present specification is intended to encompass any and all possible combinations of one or more of the associated listed items.
It will be understood that, although the terms first, second, etc. may be used herein in one or more embodiments to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first can also be referred to as a second and, similarly, a second can also be referred to as a first without departing from the scope of one or more embodiments of the present description. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
First, the noun terms to which one or more embodiments of the present specification relate are explained.
The cloud Service (ECS) is a computing Service with simplicity, high efficiency, safety, reliability, and flexible processing capability. The management mode is simpler and more efficient than that of a physical server. A user can create or release any plurality of cloud servers in a short time without purchasing hardware in advance.
And (4) failure: in the daily processes of new construction, capacity expansion, upgrading, operation and maintenance and the like, the cloud server can suffer from various expected or unexpected hidden dangers based on software problems, hardware problems, Internet Data Center (IDC) machine room fault problems, machine maintenance and the like, so that the use of the cloud server is subjected to safety risks.
Cold Migration (CM), also called static Migration. And the virtual machine with the power off is migrated. Through cold migration, the associated disk may be selected to be moved from one data store to another. The advantages are that: the virtual machine does not need to be located on a shared memory, and the data loss rate is low. The disadvantages are as follows: the power needs to be turned off and the project is interrupted.
Live Migration (LM), also called Live Migration, that is, virtual machine saving/restoring, generally, completely saves the running state of the entire virtual machine, and can quickly restore to the original hardware platform or even different hardware platforms.
Next, a brief description will be given of a basic concept of the resource migration policy determination method provided in the present specification.
When a cloud server fails or is about to fail, for a manufacturer of the cloud server, adjustment and control are often performed from three levels: a resource layer is used for checking the target resources influenced by the current fault and summarizing the influence clients corresponding to the target resources; application level-closing the use of newly added customers, and rapidly stopping bleeding by stock; user plane-notify customer to coordinate migration. However, the method lacks a scientific plan in the application level, and cannot quickly obtain the influence range, the influence resources and the influence user quantity when the fault occurs from the application level, so that a decision with high migration efficiency and the minimum influence range cannot be made in a short time, and further small problems may be caused to cause large influence; the influence degree of a user project cannot be distinguished on a user level, the project influence of a core client cannot be distinguished, and the major project of a key client is easily influenced greatly; in addition, in the resource migration process, because the resources are constantly changed, no effective mechanism is provided to ensure that the resources can be successfully migrated by 100%.
Based on the reasons, the specification provides a resource migration strategy, when the actually occurring faults are diversified, the problems can be quickly positioned, analyzed, decided and solved, and the influence of the faults is reduced to the minimum through migration. That is, when a hidden fault danger occurs or is about to occur in the cloud server, the currently affected target resources can be quickly located, the category identification of the target resources is obtained, and then a target migration strategy which enables the specified fault influence to be minimum and migration efficiency to be high is determined, so that the target resources of the cloud server can be guaranteed to be migrated smoothly to the maximum extent, and the safety and stability of the cloud server are improved.
In the present specification, a resource migration policy determination method is provided, and the present specification relates to a resource migration policy determination apparatus, a computing device, and a computer-readable storage medium, which are described in detail in the following embodiments one by one.
Fig. 1 shows a flowchart of a resource migration policy determination method according to an embodiment of the present specification, which specifically includes the following steps.
Step 102: receiving a resource migration request, wherein the resource migration request carries a device identifier in an affected range when a specified fault occurs.
Specifically, the resource migration request refers to a request initiated by an operator to migrate some resources affected by a failure. A designated failure is a failure or failures that will affect the cloud server, and there are generally four types of designated failures: the first is external faults, such as power outages, machine room faults, typhoons, floods, etc.; the second is an internal failure, for example, a bug exists when the cloud server issues a new function; third, hardware faults, such as hardware defects; the fourth is a failure on the part of the customer, such as compatibility issues. The device identifier is an identifier corresponding to a device in a range affected by the fault, and the device identifier can be a network device ID, a physical machine device ID, and other topological structures; since from the perspective of the user operating system, the virtual machine is also a real physical machine device, i.e., the device representation may also include the virtual machine ID; further, since the device has a certain storage place, for example, the device exists in a certain room, the device identifier may be a room ID.
In practical application, when a specified fault occurs, an operator can determine a range affected by the fault according to the property of the specified fault, determine an equipment identifier in the range, input the equipment identifier on a resource migration interface of a client, click a key for determining migration, and then the client generates a resource migration request and sends the resource migration request to a server, namely receives the resource migration request carrying the equipment identifier in the range affected by the specified fault.
For example, assuming that there is a park, 8 buildings are located inside the park, each building has 8 floors and each floor has 8 rooms, since the purpose or the outward appearance of each room is different, it is assumed that a certain floor of one building is on fire, which is a range that an operator determines the influence of the fire, i.e., the influence range is No. 6 rooms of the fifth floor of the 7 th building. Then, the resource migration interface of the client inputs the device identifier "7 th floor 5 th floor 6 th room", that is, the device identifier room ID, in the range. After the operator clicks "confirm migration", a resource migration request carrying an equipment identifier "7 th floor, 5 th floor, 6 th room" will be received.
Step 104: and determining at least one target resource to be migrated in the cloud server corresponding to the range according to the equipment identifier.
On the basis of receiving the resource migration request carrying the equipment 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 equipment identifier.
Specifically, the cloud server is a computing service which is simple, efficient, safe, reliable and elastic in processing capacity; the target resource refers to a resource which is stored in the cloud storage server and affected by the specified fault.
In practical application, a range influenced by the formulated fault can be determined according to the equipment identifier carried in the resource migration request, then the equipment identifier in the range, namely the influenced cloud server, is locked, and the resource which is influenced by the specified fault and needs to be migrated is determined from the influenced cloud server, wherein the resource influenced by the specified fault is at least one target resource to be migrated.
Along the above example, after receiving the resource migration request carrying the device identifier "7 th 5 th 6 th room", the device identifier is determined to be the 6 th room of the 7 th floor, and further the affected cloud server in the 6 th room of the 7 th floor is determined, assuming that the affected cloud server is the cloud server 9 first, and then at least one target resource to be migrated is determined from the cloud server 9.
Step 106: and acquiring the category identification of each target resource in the at least one target resource.
After at least one target resource to be migrated in the cloud server corresponding to the specified fault influence range is determined according to the device identifier, further, the category identifier of each target resource may be obtained.
Specifically, the category identifier refers to an identifier of the target resource at a specific level, such as an urgency level, and the category identifier may be an urgency identifier and is divided into several identifiers, such as a minute level identifier, an hour level identifier, and a day level identifier, where the minute level urgency is greater than the hour level urgency, and the hour level urgency is greater than the day level urgency; for example, the importance level mainly lies in large customer screening, which can be performed according to a specific rule, and the category identifier can be an importance identifier and is divided into small customers and large customers, wherein the importance of the large customers is greater than that of the small customers; as another example, in the influence level, the category identifier may be an influence level identifier, which supports dynamic influence evaluation and mainly considers factors such as turnover and customer disturbance degree; as another example, at the migration type level, the class identifier may be a migration type identifier, which is divided into a cold migration and a hot migration, and supports the migration evaluation capability.
In practical application, there are three ways to obtain the category identifier of each target resource in at least one target resource: firstly, after at least one target resource is determined, an operator analyzes the at least one target resource, then determines the type identifier of each target resource, and then inputs the type identifier of each target resource at a client, so that the category identifier of each target resource in the at least one target resource is locally obtained; secondly, after the at least one target resource is determined, according to some preset category identification rules, identifying the category identification of each target resource in the at least one target resource, so as to obtain the category identification of each target resource in the at least one target resource; thirdly, after at least one target resource is determined, a client corresponding to each target resource is respectively determined, then a category identification request is sent to each client, and after the client receives the category identification request, the client marks a type identification for the target resource corresponding to the client and feeds back the type identification, so that the category identification of each target resource in the at least one target resource is locally obtained.
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 the historical revenue greater than or equal to the preset value as a large client, and determines the type identifier of the target resource with the historical revenue less than the preset value as a small client.
For another example, after the at least one target resource is determined, the class identifier of each target resource in the at least one target resource is identified according to the preset migration rule of each target resource, and it is determined whether the type identifier of the target resource is cold migration or hot migration.
For another example, after two target resources are determined, a client k1 corresponding to a target resource z1 and a client k2 corresponding to a target resource z2 are determined, then a category identification request for the target resource z1 is sent to the client k1, the client k1 marks the category identification of the target resource z1 as a minute level and feeds back the category identification, and then the category identification acquired to the target resource z1 is a minute level; sending a category identification request aiming at the target resource z2 to the client k2, marking the category identification of the target resource z2 as an hour level and feeding back the category identification by the client k2, and obtaining that the category identification of the target resource z2 is the hour level, for example, determining the type identification from an emergency level.
It should be noted that the category identifier of each target resource may be determined from one layer, or may be determined from multiple layers, which is not limited in this specification.
Step 108: and determining a target migration strategy aiming at the at least one target resource based on the category identification of each target resource.
After the category identifier of each target resource is obtained, a target migration policy for at least one target resource needs to be determined according to the category identifier of each target resource.
Specifically, the target migration policy refers to a scheme for migrating each target resource in at least one target resource, such as which target resource is migrated first, which target resource is migrated later, where to migrate, and the like.
In practical applications, in order to improve the accuracy of the target migration policy so as to ensure that each target resource can be migrated in a well-ordered manner and that the migration is successful, a migration priority may be established according to the category identifier of each target resource, and a target migration policy may be determined according to the migration priority, that is, a specific implementation process of determining the target migration policy for the at least one target resource based on the category identifier of each target resource may be:
establishing a migration priority based on the category identification of each target resource;
determining a target migration policy for the at least one target resource according to the migration priority.
Specifically, the migration priority refers to a list or other forms of migration priorities obtained by 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.
In practical application, after the class identifiers of the target resources are obtained, a migration priority may be established according to the class identifiers and differences between the class identifiers, where the migration priority may be a 4-level migration priority or a 9-level migration priority, and the number of the migration priorities is not limited in this specification. After the migration priority is established, the category identification of each target resource is respectively compared with the migration priority, so that the corresponding migration priority of each target resource is determined, and the target migration strategy of at least one target resource is further determined. Therefore, the urgency and the importance of each target resource can be distinguished, namely, the project influence degree of the user corresponding to the target resource is determined, the project influence of the core client is distinguished, the target resource corresponding to the key project of the large client is prioritized for migration, and differential migration is realized.
For example, there are 4 target resources: target resource 1, target resource 2, target resource 3, and target resource 4, wherein 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 according to N3, N8, N4, and N5, as shown in table 1. Then, the category identifier of each target resource is compared with the migration priority shown in table 1, so that it can be determined that the migration priority of the target resource 1 is six, the migration priority of the target resource 2 is one, the migration priority of the target resource 3 is five, and the migration priority of the target resource 4 is four. Further, a target migration policy of at least one target resource is determined according to the corresponding migration priority level of each target resource.
TABLE 1 migration priority
First stage Second stage Three-stage Four stages Five stages Six stages
N8 N7 N6 N5 N4 N3
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 policy, the category identifier may include an importance identifier, an urgency identifier, a supply volume identifier, and a supply time identifier, and then the demand priority and the supply priority are established according to the category identifier, where the demand priority and the supply priority form the migration priority, that is, in a case that the category identifier may include an importance identifier, an urgency identifier, a supply volume 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 identifier of each target resource may be:
establishing the demand priority according to the importance degree identification and the urgency degree identification;
and establishing the supply priority according to the supply quantity identifier and the supply time identifier.
Specifically, the importance level identifier refers to an identifier of the target resource on an importance level, and is divided into a small client, a large client and the like; the urgency level identification refers to an identification of a target resource on an urgency level and is divided into faults, hidden dangers and the like; the requirement priority refers to the priority in the aspect of requirements during target resource migration, such as requirement division; the supply quantity identification refers to identification of target resources on the supply quantity level and is divided into high supply quantity, low supply quantity and the like; the supply time identifier refers to the identifier of the target resource on the supply time level and is divided into immediate supply, waiting supply and the like; provisioning priority refers to the priority in provisioning, such as provisioning partitioning, at the time of migration of a target resource.
In practical application, after the category identification of each target resource is obtained, the importance is divided into a first target value number level according to the importance identification of each target resource, the urgency is divided into a second target value number level according to the urgency identification of each target resource, and then the importance and the urgency are divided into a dimension to establish a demand priority; dividing the supply quantity into a third target numerical value grade according to the supply quantity identification of each target resource, dividing the supply time into a fourth target numerical value grade according to the supply time identification of each target resource, and then establishing a demand priority by taking the supply quantity and the supply time as a dimension. By establishing the demand priority and the supply priority, the influence degree of the specified fault on each target resource and the user quantity of the specified fault influence can be quickly obtained, a target migration strategy which enables the specified fault influence to be minimum and migration efficiency to be high is made in a short time, and the influence of the specified fault is reduced.
As shown in fig. 2A, fig. 2A illustrates a schematic diagram of migration priorities provided in an embodiment of the present specification: assuming that the first target value, the second target value, the third target value and the fourth target value are all 2, dividing the importance into two levels according to the importance mark, namely a small customer and a large customer, dividing the emergency into two levels according to the emergency mark, namely failure and hidden danger, dividing the supply quantity into two levels according to the supply quantity mark, namely a high supply quantity and a low supply quantity, dividing the supply time into two levels according to the supply time mark, namely immediate supply and waiting supply, and then establishing a demand priority by taking the importance and the emergency as two dimensions of the demand priority, wherein the demand priority is divided into four levels: major customer hazards-critical non-critical, major customer failure-critical, minor customer hazards-non-critical and minor customer failure-critical; simultaneously taking the supply amount and the supply time as two dimensions of supply priority, establishing supply priority, wherein the supply priority is divided into four levels: immediate high supply provisioning-online conversion, waiting for high supply provisioning-replenishment fulfillment, immediate low supply provisioning-online inventory (immediate fulfillment), and waiting for low supply provisioning-deployment fulfillment.
It should be noted that, on the basis of establishing the demand priority and the supply priority, further, the target migration scheme may 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 may also be artificially matched, wherein the supply priority may be branded by default for the supplier and the supply capability calculated. In determining the target migration scheme, it is assumed that the supply capacity needs to be made Ai (a1, a 2.. An), and the demand Bi (B1, B2.. Bn) range is satisfied, 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.
For example, when the supply capacity is limited, it is necessary to maximize the utilization of the supply capacity, i.e., the pattern of matching demand and supply, and it is necessary to determine the supply amount, supply time, urgency and importance of each target resource, and the time that the amount of target resources to be migrated can be accepted. If two target resources are affected, then the type of one target resource is identified as a large client and the supply amount is 10, the type of the other target resource is identified as a small client, the supply amount is 20, the target resource corresponding to the large client needs to be migrated within half an hour, and the target resource corresponding to the small client needs to be migrated within an hour, which is the priority of demand. Provisioning priority refers to whether or not migration is currently possible.
In order to improve the accuracy of the target migration policy and further improve the migration efficiency, the migration order of each target resource may be determined according to the migration priority, and the target migration policy may be further determined according to the migration order and the attribute information of each target resource. That is, the specific implementation process of determining the target migration policy for the at least one target resource according to the migration priority may be as follows:
determining the migration sequence of each target resource according to the migration priority;
and determining a target migration strategy aiming at the at least one target resource according to the migration sequence of each target resource and the attribute information of each target resource.
Specifically, the migration sequence refers to that each target resource is migrated for the second time, 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 amount of at least one target resource is maximum, and the resource migration efficiency is highest.
In practical application, after the migration priority is determined, the category identifier of each target resource may be compared with the migration priority, so as to determine the migration order of each target resource, and further, the sub-target migration policies of each target resource are determined respectively by combining the migration order and the attribute information of each target resource, so as to combine the sub-target migration policies of each target resource into a target migration policy.
For example, the target resource has two: the target resource Q1, the target resource Q2, and the target resource Q3, wherein the target resource Q1 has a size (attribute information) of 5T and a migration order of 3 rd, the target resource Q2 has a size (attribute information) of 12T and a migration order of 1 st, and the target resource Q3 has a size (attribute information) of 9T and a migration order of 2 nd. At this time, there are three areas for target resource migration, and the capacities thereof are: 10T, 12T, 15T, 17T and 20T, in order to improve the resource migration efficiency, the target migration policy may be: firstly, migrating a target resource Q2 to an area with the capacity of 12T and available for target resource migration; then the target resource Q3 is migrated to the area with the capacity of 15T for the target resource migration, and then the target resource Q1 is migrated to the area with the capacity of 15T for the target resource migration. The target migration policy may also be: firstly, migrating a target resource Q2 to an area with the capacity of 17T and available for target resource migration; then the target resource Q3 is migrated to the region with the capacity of 17T for the target resource migration, and then the target resource Q1 is migrated to the region with the capacity of 10T for the target resource migration.
Before determining the target migration strategy, in order to ensure the feasibility and efficiency of the target migration strategy, simulation and estimation are required, that is, an initial migration strategy is determined, and then whether the initial migration strategy is feasible or not is judged according to preset migration conditions, if so, the initial migration strategy is the target migration strategy, and if not, the initial migration strategy is required to be adjusted until the initial migration strategy is feasible. That is, the determining the target migration policy for the at least one target resource according to the migration priority may specifically be as follows:
determining an initial migration strategy aiming at the at least one target resource according to the category identification of each target resource;
judging whether the initial migration strategy reaches a preset migration condition or not;
if not, adjusting the initial migration strategy according to the preset migration condition, and executing the step of judging whether the initial migration strategy reaches the preset migration condition;
if yes, determining the initial migration strategy as a target migration strategy for the at least one target resource.
Specifically, the initial migration policy refers to a preliminarily determined migration policy; the preset migration condition refers to a preset condition for measuring whether the initial migration policy is qualified, such as whether the migration time, the migration position, and the like of each target resource are effective.
In practical application, an initial migration strategy is determined according to the category identification of each target resource, whether the initial migration strategy is feasible and efficient is analyzed according to preset migration conditions, if yes, 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, so that a migration guarantee function is equivalently introduced, and the successful migration of the target resources can be guaranteed to the maximum extent.
For example, the target resources have sizes of 8 cores, 4 cores, and 1 core, and it is assumed that the region to be migrated by the target resources is 12 cores, one region can only carry one target resource of 8 cores, and two regions of 12 cores can only carry two target resources of 8 cores, but two regions of 12 cores can carry 24 target resources of 1 core or 6 target resources of 4 cores. Because the size of each target resource is different, in order to reasonably utilize the area to be migrated of the target resource, simulation and estimation are needed once. Assuming that only one 8-core target resource is left in an area to be migrated by a target resource, if a 1-core target resource is migrated first, the remaining 8-core target resources cannot be migrated, that is, according to a preset migration condition, "all target resources are migrated", judging whether all target resources can be migrated according to an initial migration policy: if not, adjusting the initial migration scheme; if so, the initial migration scheme is taken as the target migration scheme.
In addition, when the initial migration policy does not meet the preset migration condition, the area to be migrated of the target resource may be adjusted according to the initial migration scheme, that is, the area to be migrated of the target resource is increased or enlarged.
Optionally, in order to further improve the accuracy of the migration priority and further improve the efficiency of determining the target migration policy, the category identifier may include an influence degree identifier and/or a migration type identifier, and then the target migration scheme is determined according to the influence degree identifier and/or the migration type identifier, that is, under the condition that the category identifier further includes the influence degree identifier and/or the migration type identifier, a specific implementation process of determining the target migration policy for the at least one target resource based on the category identifier of each target resource may be as follows:
determining a target migration sequence of each target resource based on the influence degree identification of each target resource, and determining a target migration strategy aiming at the at least one target resource according to the target migration sequence of each target resource; and/or
And determining a target migration mode of each target resource based on the migration type identifier of each target resource, and determining a target migration strategy aiming at the at least one target resource according to the target migration mode of each target resource, wherein the target migration mode comprises cold migration and hot migration.
Specifically, the influence degree identifier is an identifier of the target resource at the influence degree level, and factors such as turnover, customer disturbance degree and the like are mainly considered if dynamic influence evaluation is supported; the migration type identifier refers to an identifier of a target resource on a migration type level, and is divided into cold migration and hot migration, namely migration evaluation capability is supported; cold migration, i.e. static migration, refers to a mode of migration by turning off the power supply; live migration refers to migration stored/restored by a virtual machine.
In practical application, when the type identifier is the influence degree identifier, the turnover condition and/or the client disturbance degree condition of each target resource may be determined according to the influence degree identifier of each target resource, and the target migration sequence of each target resource may be determined according to the turnover condition and/or the client disturbance degree condition, where the greater the turnover condition and/or the client disturbance degree condition of the current target resource, the more the migration sequence of the current target resource is, and the target migration policy may be determined according to the target migration sequence of each target resource. When the type identifier is a migration type identifier, whether the specific migration mode of each target resource is cold migration or hot migration may 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 mode of each target resource, and a target migration policy is determined according to the specific migration mode of each target resource. When the type identification comprises an influence degree identification and a migration type identification, determining the turnover condition and/or the customer disturbance degree condition of each target resource according to the influence degree identification of each target resource, and determining the target migration sequence of each target resource according to the turnover condition and/or the degree of the customer disturbance degree condition; determining a specific migration mode of each target resource according to the migration type identifier of each target resource; and then determining a target migration strategy aiming at least one target resource by combining the target migration sequence of each target resource and the specific migration mode of each target resource.
In practical applications, in order to improve the accuracy of the target migration policy so as to ensure that each target resource can be migrated in a well-ordered manner and that the migration is successful, the target migration policy may be obtained by evaluating each target resource according to the category identifier of each target resource and a preset resource evaluation rule, that is, determining the target migration policy for the at least one target resource based on the category identifier of each target resource, including:
based on the category identification of each target resource, performing resource evaluation on each target resource by using a preset resource evaluation rule to obtain an evaluation result;
and determining a target migration strategy aiming at the at least one target resource according to the evaluation result.
Specifically, the preset resource evaluation rule refers to a preset rule for evaluating each target resource, and may be one or more of a scheduling simulation evaluation rule, a client classification evaluation rule, and an offline resource evaluation rule.
In practical application, resource evaluation can be performed on each target resource by using a scheduling simulation evaluation rule based on the category identification of each target resource to obtain a first evaluation result, and a target migration strategy for the at least one target resource is determined according to the first evaluation result; the method comprises the steps that resource evaluation can be carried out on each target resource by utilizing a client grading evaluation rule based on the category identification of each target resource to obtain a second evaluation result, and a target migration strategy aiming at least one target resource is determined according to the second evaluation result; resource evaluation can be performed on each target resource by using an off-line resource evaluation rule based on the category identification of each target resource to obtain a third evaluation result, and a target migration strategy for the at least one target resource is determined according to the third evaluation result; and based on the category identification of each target resource, performing resource evaluation on each target resource by using a scheduling simulation evaluation rule, a client grading evaluation rule and a plurality of offline resource evaluation rules to obtain a fourth evaluation result, and determining a target migration strategy aiming at least one target resource according to the fourth evaluation result.
After determining the target migration policy, migrating each target resource according to the target migration policy, that is, after determining the target migration policy for the at least one target resource based on the category identifier of each target resource, the method further includes:
establishing a resource reservation region according to the target migration strategy;
migrating the at least one target resource to the resource reservation zone.
Specifically, the resource reservation region refers to an area to which the target resource is to be migrated.
In practical application, the target migration policy has already determined the area to which the target resource is to be migrated, that is, the resource reservation zones, including the number of resource reservation zones, the size of each resource reservation zone, and the target resource to be received by each resource reservation zone. On the basis, the information in the target migration strategy is entered into the Ali resource reservation region, and at least one target resource is migrated to the established resource reservation region according to the migration sequence and/or migration mode of each target resource in the target migration strategy. Therefore, the resource reservation region is quickly established according to the information of the target migration strategy, and smooth migration of each target resource can be guaranteed.
After the resource reservation region is established, in order to ensure uniformity of various pieces of information, the information of the established resource reservation region, such as name, location, etc., may be fed back, that is, the establishment result is fed back.
In order to further improve the migration efficiency in the process of migrating at least one target resource to the resource reservation region, the migration process needs to be supervised, that is, the method further includes:
monitoring the residual storage space of the resource reservation region and/or the migration progress of each target resource;
and sending the monitoring result to the client for displaying.
Specifically, the remaining storage space refers to the remaining size of the resource reservation region, that is, the space margin, in the process of migrating each target resource; the migration progress refers to a state of the target resource being migrated, and includes three states of non-migration, migration-in-process, and migration-completed, where the migration may also include ten percent migration, twenty percent migration, and the like.
In practical application, in order to ensure the sequence of migration, the remaining storage space of the resource reservation region can be monitored, and the remaining storage space of the resource reservation region is fed back to the client and displayed, so that operators can check the specific migration process conveniently; the migration progress of each target resource can be monitored, and the migration progress of each target resource is fed back to the client and displayed, so that operators can conveniently check the specific migration progress; the remaining storage space of the resource reservation region and the migration progress of each target resource can be monitored simultaneously, and the remaining storage space of the resource reservation region and the migration progress of each target resource are fed back to the client and displayed, so that operators can check the specific migration progress conveniently.
As shown in fig. 2B, fig. 2B is a schematic diagram illustrating a feedback monitoring result according to an embodiment of the present disclosure: and the server monitors the residual storage space of the resource reservation region and/or the migration progress of each target resource only, feeds back the detection result, namely the residual storage space of the resource reservation region and/or the migration progress of each target resource to the client, and displays the detection result at the client.
The resource migration policy determining method provided in this specification is described below with reference to fig. 2C, where fig. 2C shows a schematic diagram of a process for determining a target migration policy according to an embodiment of this specification: receiving a resource migration request, namely scene input, which comprises equipment identification in an influence range when a specified fault occurs; and then determining at least one target resource to be migrated in the cloud server corresponding to the range according to the device identifier, namely, for an influence source (specified fault) and an influence product analysis (at least one target resource), and further, obtaining a type identifier, namely, a demand classification, of each target resource. And performing demand evaluation according to the type identification of each target resource, namely the importance identification, the urgency identification, the supply time identification and the supply quantity identification, namely establishing a migration priority comprising a demand priority and a supply priority. And meanwhile, according to the migration priority, performing pre-estimation and simulation to generate an initial migration strategy, determining the initial migration strategy as a target migration strategy under the condition that the initial migration strategy reaches a preset migration condition, then establishing a resource reservation zone, and setting a monitoring function so as to monitor the residual storage space of the resource reservation zone and/or the migration progress of each target resource in the migration process and send a monitoring result to a client for display, namely scheme guarantee. And then migrating each target resource to a resource reservation zone, namely executing a target migration strategy.
It should be noted that several of the above modules for analyzing the influence sources and influencing the products, classifying the demands, evaluating the demands, and executing the target migration policy may be used, or the order of cooperation among the modules may be adjusted, and the migration of the target resources may also be completed.
The resource migration policy determining apparatus provided in this specification can quickly and accurately determine an affected range, an affected cloud server, and at least one target resource to be migrated when a specified fault occurs, by receiving a resource migration request carrying an equipment identifier; and then, the category identification of each target resource in at least one target resource is obtained, a target migration strategy which minimizes the influence of the specified fault and has high migration efficiency can be made in a short time, the efficiency of determining the target migration strategy is improved, the smooth migration of each target resource is facilitated, and the safety and the stability of the cloud server are improved.
The resource migration policy determination method provided in this specification is further described below with reference to fig. 3, taking an application of the resource migration policy determination method in fire failure as an example. Fig. 3 shows a flowchart of a processing procedure of a resource migration policy determining method provided in an embodiment of the present specification, which specifically includes the following steps.
Step 302: and receiving a resource migration request, wherein the resource migration request carries the equipment identifier in the range influenced by the fire fault.
Step 304: and determining at least one target resource to be migrated in the cloud server corresponding to the range according to the equipment identifier.
Step 306: and acquiring the category identification of each target resource in at least one target resource.
Step 308: and establishing a migration priority based on the category identification of each target resource.
In one or more implementations of this embodiment, the category identifier includes an importance identifier, an urgency identifier, a supply amount identifier, and a supply time identifier; the migration priority comprises a demand priority and a supply priority;
establishing a migration priority based on the category identification of each target resource, comprising:
establishing a demand priority according to the importance degree identification and the urgency degree identification;
and establishing a supply priority according to the supply quantity identifier and the supply time identifier.
Step 310: and determining the migration sequence of each target resource according to the migration priority.
Step 312: and determining an initial migration strategy aiming at least one target resource according to the migration sequence of each target resource and the attribute information of each target resource.
Step 314: and judging whether the initial migration strategy reaches a preset migration condition.
If not, go to step 316; if yes, go to step 318.
Step 316: and adjusting the initial migration strategy according to the preset migration condition.
Thereafter, it jumps to step 314.
Step 318: the initial migration policy is determined as a target migration policy for the at least one target resource.
In one or more embodiments of this embodiment, the category identifier further includes an influence degree identifier and/or a migration type identifier;
the target migration sequence of each target resource can be determined based on the influence degree identification of each target resource, and a target migration strategy for at least one target resource is determined according to the target migration sequence of each target resource; and/or determining a target migration mode of each target resource based on the migration type identifier of each target resource, and determining a target migration strategy aiming at least one target resource according to the target migration mode of each target resource, wherein the target migration mode comprises cold migration and hot migration.
In one or more embodiments of this embodiment, the resource evaluation may be performed on each target resource by using a preset resource evaluation rule based on the category identifier of each target resource to obtain an evaluation result;
and determining a target migration strategy aiming at the at least one target resource according to the evaluation result.
Step 320: and establishing a resource reservation region according to the target migration strategy.
Step 322: and migrating at least one target resource to the resource reservation region.
Step 324: and monitoring the residual storage space of the resource reservation region and/or the migration progress of each target resource.
Step 326: and sending the monitoring result to the client for displaying.
The resource migration policy determining apparatus provided in this specification can quickly and accurately determine an affected range, an affected cloud server, and at least one target resource to be migrated when a fire occurs, by receiving a resource migration request carrying an equipment identifier; and then, the category identification of each target resource in at least one target resource is obtained, a target migration strategy which minimizes the influence of the specified fault and has high migration efficiency can be made in a short time, the efficiency of determining the target migration strategy is improved, the smooth migration of each target resource is facilitated, and the safety and the stability of the cloud server are improved.
Corresponding to the above method embodiment, the present specification further provides an embodiment of a resource migration policy determining apparatus, and fig. 4 shows a schematic structural diagram of a resource migration policy determining apparatus provided in an embodiment of the present specification. As shown in fig. 4, the apparatus includes:
a receiving module 402, configured to receive a resource migration request, where the resource migration request carries a device identifier in an affected range when a specified fault occurs;
a first determining module 404, configured to determine, according to the device identifier, at least one target resource to be migrated in the cloud server corresponding to the range;
an obtaining module 406, configured to obtain a category identifier of each target resource in the at least one target resource;
a second determining module 408 configured to determine a target migration policy for the at least one target resource based on the class identification of the target resources.
Optionally, the second determining module 408 is further configured to:
establishing a migration priority based on the category identification of each target resource;
determining a target migration policy for the at least one target resource according to the migration priority.
Optionally, the category identifier includes an importance identifier, an urgency identifier, a supply amount identifier, and a supply time identifier; the migration priority comprises a demand priority and a supply priority;
the second determining module 408 is further configured to:
establishing the demand priority according to the importance degree identification and the urgency degree identification;
and establishing the supply priority according to the supply quantity identifier and the supply time identifier.
Optionally, the second determining module 408 is further configured to:
determining the migration sequence of each target resource according to the migration priority;
and determining a target migration strategy aiming at the at least one target resource according to the migration sequence of each target resource and the attribute information of each target resource.
Optionally, the second determining module 408 is further configured to:
determining an initial migration strategy aiming at the at least one target resource according to the category identification of each target resource;
judging whether the initial migration strategy reaches a preset migration condition or not;
if not, adjusting the initial migration strategy according to the preset migration condition, and executing the step of judging whether the initial migration strategy reaches the preset migration condition;
if yes, determining the initial migration strategy as a target migration strategy for the at least one target resource.
Optionally, the category identifier further includes an influence degree identifier and/or a migration type identifier;
the second determining module 408 is further configured to:
determining a target migration sequence of each target resource based on the influence degree identification of each target resource, and determining a target migration strategy aiming at the at least one target resource according to the target migration sequence of each target resource; and/or
And determining a target migration mode of each target resource based on the migration type identifier of each target resource, and determining a target migration strategy aiming at the at least one target resource according to the target migration mode of each target resource, wherein the target migration mode comprises cold migration and hot migration.
Optionally, the second determining module 408 is further configured to:
based on the category identification of each target resource, performing resource evaluation on each target resource by using a preset resource evaluation rule to obtain an evaluation result;
and determining a target migration strategy aiming at the at least one target resource according to the evaluation result.
Optionally, the apparatus further comprises a migration module configured to:
establishing a resource reservation region according to the target migration strategy;
migrating the at least one target resource to the resource reservation zone.
Optionally, the apparatus further comprises a monitoring module configured to:
monitoring the residual storage space of the resource reservation region and/or the migration progress of each target resource;
and sending the monitoring result to the client for displaying.
The resource migration policy determining apparatus provided in this specification can quickly and accurately determine an affected range, an affected cloud server, and at least one target resource to be migrated when a specified fault occurs, by receiving a resource migration request carrying an equipment identifier; and then, the category identification of each target resource in at least one target resource is obtained, a target migration strategy which minimizes the influence of the specified fault and has high migration efficiency can be made in a short time, the efficiency of determining the target migration strategy is improved, the smooth migration of each target resource is facilitated, and the safety and the stability of the cloud server are improved.
The foregoing is an exemplary scheme of a resource migration policy determining apparatus according to this embodiment. It should be noted that the technical solution of the resource migration policy determining apparatus and the technical solution of the resource migration policy determining method belong to the same concept, and details that are not described in detail in the technical solution of the resource migration policy determining apparatus can be referred to the description of the technical solution of the resource migration policy determining method.
One embodiment of the present specification also provides a computing device whose components include, but are not limited to, memory and a processor. The processor is connected with the memory through a bus, and the database is used for storing data.
The computing device also includes an access device that enables the computing device to communicate via one or more networks. Examples of such networks include a Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a 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 Network Interface (e.g., a Network Interface Controller) that may be wired or Wireless, such as an IEEE802.11 Wireless Local Area Network (WLAN) Wireless Interface, a Worldwide Interoperability for Microwave access (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 forth.
In one embodiment of the present description, other ones of the above components of the computing device not shown may also be connected to each other, for example by a bus. It should be understood that the above-described computing devices are for purposes of example only, and are not limiting as to the scope of the present description. Those skilled in the art may add or replace other components as desired.
The computing device may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., tablet, personal digital assistant, laptop, notebook, netbook, etc.), a mobile phone (e.g., smartphone), a wearable computing device (e.g., smartwatch, smartglasses, etc.), or other type of mobile device, or a stationary computing device such as a desktop computer or PC. The computing device may also be a mobile or stationary server.
Wherein the processor is configured to execute computer-executable instructions that, when executed by the processor, implement the steps of the resource migration policy determination method described above.
The above is an illustrative scheme of a computing device of the present embodiment. It should be noted that the technical solution of the computing device and the technical solution of the resource migration policy determining method belong to the same concept, and details that are not described in detail in the technical solution of the computing device can be referred to the description of the technical solution of the resource migration policy determining method.
An embodiment of the present specification further provides a computer-readable storage medium storing computer-executable instructions, which when executed by a processor, implement the steps of the resource migration policy determination method described above.
The above is an illustrative scheme of a computer-readable storage medium of the present embodiment. It should be noted that the technical solution of the storage medium and the technical solution of the resource migration policy determining method belong to the same concept, and details that are not described in detail in the technical solution of the storage medium can be referred to the description of the technical solution of the resource migration policy determining method.
An embodiment of the present specification further provides a computer program, wherein when the computer program is executed in a computer, the computer is caused to execute the steps of the resource migration policy determination method.
The above is an illustrative scheme of a computer program of the present embodiment. It should be noted that the technical solution of the computer program and the technical solution of the resource migration policy determination method belong to the same concept, and details that are not described in detail in the technical solution of the computer program can be referred to the description of the technical solution of the resource migration policy determination method.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The computer instructions comprise computer program code which may be in the form of source code, object code, an executable file or some intermediate form, or the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
It should be noted that, for the sake of simplicity, the foregoing method embodiments are described as a series of acts, but those skilled in the art should understand that the present embodiment is not limited by the described acts, because some steps may be performed in other sequences or simultaneously according to the present embodiment. Further, those skilled in the art should also appreciate that the embodiments described in this specification are preferred embodiments and that acts and modules referred to are not necessarily required for an embodiment of the specification.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The preferred embodiments of the present specification disclosed above are intended only to aid in the description of the specification. Alternative embodiments are not exhaustive and do not limit the invention to the precise embodiments described. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the embodiments and the practical application, to thereby enable others skilled in the art to best understand and utilize the embodiments. The specification is limited only by the claims and their full scope and equivalents.

Claims (13)

1. A resource migration policy determination method includes:
receiving a resource migration request, wherein the resource migration request carries an equipment identifier in an affected range when a specified fault occurs;
determining at least one target resource to be migrated in the cloud server corresponding to the range according to the equipment identifier;
acquiring a category identifier of each target resource in the at least one target resource;
and determining a target migration strategy aiming at the at least one target resource based on the category identification of each target resource.
2. The method of claim 1, wherein determining the target migration policy for the at least one target resource based on the class identification of the target resources comprises:
establishing a migration priority based on the category identification of each target resource;
determining a target migration policy for the at least one target resource according to the migration priority.
3. The method of claim 2, the category identification comprising an importance identification, an urgency identification, a supply volume identification, and a supply time identification; the migration priority comprises a demand priority and a supply priority;
the establishing of the migration priority based on the category identification of each target resource includes:
establishing the demand priority according to the importance degree identification and the urgency degree identification;
and establishing the supply priority according to the supply quantity identifier and the supply time identifier.
4. The method of claim 2 or 3, the determining a target migration policy for the at least one target resource according to the migration priority, comprising:
determining the migration sequence of each target resource according to the migration priority;
and determining a target migration strategy aiming at the at least one target resource according to the migration sequence of each target resource and the attribute information of each target resource.
5. The method of claim 2 or 3, the determining a target migration policy for the at least one target resource according to the migration priority, comprising:
determining an initial migration strategy aiming at the at least one target resource according to the category identification of each target resource;
judging whether the initial migration strategy reaches a preset migration condition or not;
if not, adjusting the initial migration strategy according to the preset migration condition, and executing the step of judging whether the initial migration strategy reaches the preset migration condition;
if yes, determining the initial migration strategy as a target migration strategy for the at least one target resource.
6. The method according to any one of claims 1-3, wherein the category identification further comprises an influence degree identification and/or a migration type identification;
the determining a target migration policy for the at least one target resource based on the category identification of each target resource includes:
determining a target migration sequence of each target resource based on the influence degree identification of each target resource, and determining a target migration strategy aiming at the at least one target resource according to the target migration sequence of each target resource; and/or
And determining a target migration mode of each target resource based on the migration type identifier of each target resource, and determining a target migration strategy aiming at the at least one target resource according to the target migration mode of each target resource, wherein the target migration mode comprises cold migration and hot migration.
7. The method of claim 1, wherein determining the target migration policy for the at least one target resource based on the class identification of the target resources comprises:
based on the category identification of each target resource, performing resource evaluation on each target resource by using a preset resource evaluation rule to obtain an evaluation result;
and determining a target migration strategy aiming at the at least one target resource according to the evaluation result.
8. The method of any of claims 1-3 and 7, after determining the target migration policy for the at least one target resource based on the class identifier of the target resource, further comprising:
establishing a resource reservation region according to the target migration strategy;
migrating the at least one target resource to the resource reservation zone.
9. The method of claim 8, further comprising:
monitoring the residual storage space of the resource reservation region and/or the migration progress of each target resource;
and sending the monitoring result to the client for displaying.
10. A resource migration policy determination apparatus, comprising:
a receiving module, configured to receive a resource migration request, where the resource migration request carries an equipment identifier in an affected range when a specified fault occurs;
the first determining module is configured to determine at least one target resource to be migrated in the cloud server corresponding to the range according to the device identifier;
the acquisition module is configured to acquire the category identification of each target resource in the at least one target resource;
a second determination module configured to determine a target migration policy for the at least one target resource based on the class identification of the target resources.
11. A computing device, comprising:
a memory and a processor;
the memory is configured to store computer-executable instructions and the processor is configured to execute the computer-executable instructions, which when executed by the processor implement the steps of the resource migration policy determination method of any one of claims 1 to 9.
12. A computer-readable storage medium storing computer-executable instructions which, when executed by a processor, implement the steps of the resource migration policy determination method of any one of claims 1 to 9.
13. A computer program which, when executed on a computer, causes the computer to carry out the steps of the resource migration policy determination method of any one of claims 1 to 9.
CN202111130336.6A 2021-09-26 2021-09-26 Resource migration strategy determination method and device Pending CN113986478A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111130336.6A CN113986478A (en) 2021-09-26 2021-09-26 Resource migration strategy determination method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111130336.6A CN113986478A (en) 2021-09-26 2021-09-26 Resource migration strategy determination method and device

Publications (1)

Publication Number Publication Date
CN113986478A true CN113986478A (en) 2022-01-28

Family

ID=79736751

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111130336.6A Pending CN113986478A (en) 2021-09-26 2021-09-26 Resource migration strategy determination method and device

Country Status (1)

Country Link
CN (1) CN113986478A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114860389A (en) * 2022-07-07 2022-08-05 中兴软件技术(南昌)有限公司 Virtual machine migration method and device, readable storage medium and computer equipment
CN115617489A (en) * 2022-11-08 2023-01-17 统信软件技术有限公司 Operating system migration method, migration application and migration application deployment method
WO2024051258A1 (en) * 2022-09-08 2024-03-14 华为技术有限公司 Event processing method, apparatus and system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114860389A (en) * 2022-07-07 2022-08-05 中兴软件技术(南昌)有限公司 Virtual machine migration method and device, readable storage medium and computer equipment
CN114860389B (en) * 2022-07-07 2022-10-25 中兴软件技术(南昌)有限公司 Virtual machine migration method and device, readable storage medium and computer equipment
WO2024051258A1 (en) * 2022-09-08 2024-03-14 华为技术有限公司 Event processing method, apparatus and system
CN115617489A (en) * 2022-11-08 2023-01-17 统信软件技术有限公司 Operating system migration method, migration application and migration application deployment method

Similar Documents

Publication Publication Date Title
CN113986478A (en) Resource migration strategy determination method and device
EP2871553B1 (en) Systems and methods for protecting virtualized assets
CN107534570A (en) Virtualize network function monitoring
CN107666525A (en) The method and apparatus of cluster container IP distribution
CN112650576A (en) Resource scheduling method, device, equipment, storage medium and computer program product
EP3442201B1 (en) Cloud platform construction method and cloud platform
US20200213196A1 (en) Methods, systems, and computer readable mediums for selecting and configuring a computing system to support a replicated application
CN106878363A (en) A kind of information processing method, apparatus and system
US11652725B2 (en) Performance testing of a test application in a network-as-a-service environment
CN115373861B (en) GPU resource scheduling method and device, electronic equipment and storage medium
US20220337493A1 (en) Report generation from testing a test application in a network-as-a-service
CN111897697A (en) Server hardware fault repairing method and device
CN115658311A (en) Resource scheduling method, device, equipment and medium
US11656960B2 (en) Disaster resilient federated kubernetes operator
CN111355605A (en) Virtual machine fault recovery method and server of cloud platform
CN114070889B (en) Configuration method, traffic forwarding device, storage medium, and program product
CN116302716A (en) Cluster deployment method and device, electronic equipment and computer readable medium
CN111767225B (en) Third-party software testing system and method in cloud computing environment
CN114116288A (en) Fault processing method, device and computer program product
CN116193384A (en) Disaster recovery switching method, system, electronic equipment and storage medium
US20230337012A1 (en) Cellular network system configuration
US20230337057A1 (en) Containerized application technologies for cellular networks and ran workloads
CN113778657B (en) Data processing method and device
CN111897643B (en) Thread pool configuration system, method, device and storage medium
CN114979141B (en) Task processing method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40067032

Country of ref document: HK