[go: up one dir, main page]

WO2025163418A1 - Instance migration method and apparatus, and device, storage medium and program product - Google Patents

Instance migration method and apparatus, and device, storage medium and program product

Info

Publication number
WO2025163418A1
WO2025163418A1 PCT/IB2025/050508 IB2025050508W WO2025163418A1 WO 2025163418 A1 WO2025163418 A1 WO 2025163418A1 IB 2025050508 W IB2025050508 W IB 2025050508W WO 2025163418 A1 WO2025163418 A1 WO 2025163418A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
instance
physical machine
source
configuration information
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
PCT/IB2025/050508
Other languages
French (fr)
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.)
Cloud Intelligence Singapore Holding Pvt Ltd
Original Assignee
Cloud Intelligence Singapore Holding Pvt 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 Cloud Intelligence Singapore Holding Pvt Ltd filed Critical Cloud Intelligence Singapore Holding Pvt Ltd
Publication of WO2025163418A1 publication Critical patent/WO2025163418A1/en
Pending legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/16Error detection or correction of the data by redundancy in hardware
    • G06F11/20Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
    • G06F11/202Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where processing functionality is redundant
    • G06F11/2023Failover techniques
    • G06F11/203Failover techniques using migration
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/16Error detection or correction of the data by redundancy in hardware
    • G06F11/20Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/16Error detection or correction of the data by redundancy in hardware
    • G06F11/20Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
    • G06F11/202Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where processing functionality is redundant
    • G06F11/2023Failover techniques
    • G06F11/2033Failover techniques switching over of hardware resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/148Migration or transfer of sessions

Definitions

  • an embodiment of the present disclosure provides an instance migration method, comprising: determining a target physical machine corresponding to a target instance to be migrated, the target instance currently located on a source physical machine, the source physical machine being configured to periodically synchronize data generated by the target instance on the source physical machine to the target physical machine; determining target network configuration information for the target instance on the target physical machine; creating the target instance on the target physical machine based on reserved resources corresponding to the target instance on the target physical machine and the target network configuration information; and causing the target instance on the target physical machine to take over business processing from the target instance on the source physical machine.
  • creating the target instance in the target physical machine based on the reserved resources corresponding to the target instance in the target physical machine and the target network configuration information includes: determining the instance configuration information corresponding to the target instance; and creating the target instance in the reserved resources of the target physical machine according to the instance configuration information.
  • creating the target instance in the reserved resources of the target physical machine based on the instance configuration information and the target network configuration information includes: sending an instance creation request to the target physical machine, the instance creation request including the instance configuration information, the target network configuration information, and a target instance identifier of the target instance, the target instance identifier being used by the target physical machine to determine the reserved resources; and receiving an instance creation success response from the target physical machine, the instance creation success response indicating that the target instance was successfully created in the reserved resources on the target physical machine.
  • determining the target network configuration information of the target instance in the target physical machine includes: determining the source network configuration information of the target instance in the source physical machine; and determining the target network configuration information based on the source network configuration information.
  • the source network configuration information includes the source network address of the target instance in the source physical machine
  • determining the target physical machine corresponding to the target instance to be migrated includes: determining the source physical machine, where the source physical machine satisfies at least one of the following conditions: the source physical machine's physical machine state is a preset state, a service on the source physical machine has been updated, or the computer room where the source physical machine is located is to be migrated; determining the instance running on the source physical machine as the target instance; and determining the target physical machine corresponding to the target instance based on the target instance identifier.
  • determining the target physical machine corresponding to the target instance based on the target instance identifier includes: obtaining a preset correspondence relationship, where the preset correspondence relationship includes multiple instance identifiers and the physical machine corresponding to each instance identifier; and determining the target physical machine based on the target instance identifier and the preset correspondence relationship.
  • the method further includes: determining resource occupancy information of resources occupied by the target instance in the source physical machine, the resource occupancy information including multiple resource types and the historical resource occupancy corresponding to each resource type; determining the reserved resource amount corresponding to each resource type based on the resource occupancy information; and requesting the target physical machine to reserve resources for the target instance based on the reserved resource amount corresponding to each resource type.
  • the method further includes: deregistering the target instance in the source physical machine. In one possible implementation, the method further includes: the source physical machine and the target physical machine are set in different availability zones. In one possible implementation, The source physical machine is configured to periodically synchronize data generated by the target instance on the source physical machine with the target physical machine via a dedicated network.
  • an instance migration device comprising: a determination module and a creation module, wherein the determination module is configured to, upon determining a target physical machine corresponding to a target instance to be migrated, where the target instance is currently located on the source physical machine, periodically synchronize data generated by the target instance on the source physical machine with the target physical machine; the determination module is further configured to determine target network configuration information for the target instance on the target physical machine; the creation module is configured to create the target instance on the target physical machine based on reserved resources corresponding to the target instance on the target physical machine and the target network configuration information; the target instance on the target physical machine is configured to take over service processing from the target instance on the source physical machine.
  • the creation module is specifically configured to determine instance configuration information corresponding to the target instance; and, based on the instance configuration information, create the target instance in the reserved resources of the target physical machine.
  • the creation module is specifically configured to send an instance creation request to the target physical machine, the instance creation request including the instance configuration information, the target network configuration information, and a target instance identifier of the target instance, the target instance identifier being used by the target physical machine to determine the reserved resources; and receive an instance creation success response from the target physical machine, the instance creation success response indicating that the target instance was successfully created on the target physical machine within the reserved resources.
  • the determination module is specifically configured to determine source network configuration information of the target instance in the source physical machine; and determine the target network configuration information based on the source network configuration information.
  • the source network configuration information includes a source network address of the target instance in the source physical machine
  • the target network information includes a target network address of the target instance in the target physical machine.
  • the determination module is specifically configured to set the target network address to the source network address.
  • the determination module is specifically configured to determine the source physical machine, where the source physical machine satisfies at least one of the following conditions: the physical machine state of the source physical machine is a preset state, a service on the source physical machine has been updated, or the computer room where the source physical machine is located is to be migrated; determine the instance running on the source physical machine as the target instance; and determine the target physical machine corresponding to the target instance based on the target instance identifier of the target instance.
  • the determination module is specifically configured to obtain a preset correspondence relationship, where the preset correspondence relationship includes multiple instance identifiers and the physical machine corresponding to each instance identifier; The target physical machine is determined based on the target instance identifier and the preset correspondence.
  • the apparatus further includes a sending module and a deregistration module, wherein the determining module is further configured to determine resource occupancy information of resources occupied by the target instance on the source physical machine, the resource occupancy information including multiple resource types and the historical resource occupancy corresponding to each resource type; the determining module is further configured to determine the reserved resource amount corresponding to each resource type based on the resource occupancy information; and the sending module is configured to request the target physical machine to reserve resources for the target instance based on the reserved resource amount corresponding to each resource type.
  • the deregistration module is configured to deregister the target instance from the source physical machine. In one possible implementation, the source physical machine and the target physical machine are located in different availability zones.
  • the source physical machine is configured to periodically synchronize data generated by the target instance on the source physical machine to the target physical machine via a dedicated network.
  • embodiments of the present disclosure provide an instance migration device, comprising: a memory and a processor; the memory storing computer-executable instructions; the processor executing the computer-executable instructions stored in the memory, causing the instance migration device to perform any of the methods described in the first aspect.
  • embodiments of the present disclosure provide a computer-readable storage medium storing computer-executable instructions, which, when executed by the processor, implement any of the methods described in the first aspect.
  • embodiments of the present disclosure provide a computer program product, comprising a computer program, which, when executed by the processor, implements any of the methods described in the first aspect.
  • Embodiments of the present disclosure provide an instance migration method, apparatus, device, storage medium, and program product.
  • the instance migration device can determine a target physical machine corresponding to a target instance to be migrated; can determine target network configuration information for the target instance on the target physical machine; and can create a target instance on the target physical machine based on reserved resources corresponding to the target instance and the target network configuration information on the target physical machine.
  • the source physical machine can synchronize data of the target instance to the target physical machine, and the target physical machine can pre-configure reserved resources for the target instance.
  • the instance migration device can determine the target network configuration information and, based on the target network configuration information and the reserved resources corresponding to the target instance, create the target instance on the target physical machine to achieve target instance migration. This method eliminates the need to maintain two functionally identical business systems and eliminates the need for bidirectional data synchronization, reducing disaster recovery complexity. Furthermore, the source physical machine can synchronize data generated by the target instance with the target physical machine in real time. If the source physical machine is no longer able to run the target instance, the instance migration device can immediately create the target instance on the target physical machine, ensuring better business continuity.
  • FIG1 is a schematic diagram of a disaster recovery architecture provided by an exemplary embodiment of the present disclosure
  • FIG2 is a schematic diagram of another disaster recovery architecture provided by an exemplary embodiment of the present disclosure
  • FIG3 is a schematic diagram of an instance migration process provided by an exemplary embodiment of the present disclosure
  • FIG4 is a schematic diagram of another instance migration method provided by an exemplary embodiment of the present disclosure
  • FIG5 is a schematic diagram of an instance migration provided by an exemplary embodiment of the present disclosure
  • FIG6 is a schematic diagram of the structure of an instance migration apparatus provided by an exemplary embodiment of the present disclosure
  • FIG7 is a schematic diagram of the structure of another instance migration apparatus provided by an exemplary embodiment of the present disclosure
  • FIG8 is a schematic diagram of the structure of an instance migration device provided by an exemplary embodiment of the present disclosure.
  • the user information including but not limited to user device information, user personal information, etc.
  • data including but not limited to data for analysis, storage, and display, etc.
  • the collection, use, and processing of the relevant data must comply with relevant laws, regulations, and standards, and corresponding operation portals are provided for users to choose to authorize or reject.
  • the technical solutions of this disclosure will be described clearly and completely below in conjunction with specific embodiments of this disclosure and the corresponding accompanying drawings. Obviously, the described embodiments represent only a portion of the embodiments of this disclosure, and are not exhaustive.
  • Live migration also known as dynamic migration or real-time migration
  • Availability zone typically a single computer room, refers to a physical area within a region with independent power and network connectivity.
  • FIG. 1 is a schematic diagram of a disaster recovery architecture provided by an exemplary embodiment of the present disclosure.
  • Availability Zone B can also host multi-AZ SLB instances, ECS web servers, ECS application servers, OSS instances, and multi-AZ RDS instances.
  • the functions provided by these systems in Availability Zone A are the same as those provided in Availability Zone B.
  • Business data in Availability Zone A can be synchronized with Availability Zone B, and business data in Availability Zone B can also be synchronized with Availability Zone A.
  • Availability Zone A or B unexpectedly ceases operations, the Domain Name System (DNS) can forward business requests from the downed zone to the other zone, achieving disaster recovery across all availability zones.
  • DNS Domain Name System
  • business data in Availability Zone A needs to be synchronized with Availability Zone B
  • business data in Availability Zone B needs to be synchronized with Availability Zone A.
  • This requires bidirectional business data synchronization, which increases the complexity of data synchronization on the business side.
  • users need to maintain two sets of business systems with the same functionality in two Availability Zones simultaneously, which increases the complexity of business system maintenance and, consequently, the complexity of disaster recovery.
  • embodiments of the present disclosure provide an instance migration method to reduce disaster recovery complexity.
  • FIG. 2 is a schematic diagram of another disaster recovery architecture provided by an exemplary embodiment of the present disclosure.
  • physical machine 1 can be set up in Availability Zone A, and instance 1 can run on physical machine 1.
  • Physical machine 2 can be set up in Availability Zone B.
  • Availability Zone 1 can be computer room 1
  • Availability Zone 2 can be computer room 2
  • instance 1 can be an ECS instance.
  • the number of physical machines in Availability Zone A and the number of physical machines in Availability Zone B can both be one or more.
  • Figure 2 illustrates the example of a single number of physical machines in Availability Zone A and B, and does not limit the embodiments of the present disclosure.
  • FIG. 3 is a schematic flow diagram of an instance migration process provided by an exemplary embodiment of the present disclosure. Referring to Figure 3, the method may include:
  • the execution subject of the embodiment of the present disclosure may be an instance migration device, or an instance migration device set in the instance migration device.
  • the instance migration device may be implemented by software, or by a combination of software and hardware.
  • the following description uses the example of an instance migration device as the execution subject.
  • the target instance is currently located on the source physical machine. If the source physical machine is no longer able to run the target instance, the target physical machine corresponding to the target instance can be determined. For example, if the source physical machine is in a faulty state or the computer room where the source physical machine is located is awaiting migration, the target physical machine corresponding to the target instance can be determined.
  • Both the source physical machine and the target physical machine can be electronic devices capable of running business instances.
  • both the source physical machine and the target physical machine can be servers or computers.
  • the source physical machine and the target physical machine can be located in different availability zones.
  • the source physical machine can be a server in availability zone 1, and the target physical machine can be a server in availability zone 2.
  • Availability zone 1 can be, for example, computer room 1
  • availability zone 2 can be, for example, computer room 2. It should be understood that an availability zone can have one or more computer rooms. Multiple can be two or more.
  • the target instance can be any business instance running on the source physical machine.
  • the target instance can be an ECS instance.
  • the target physical machine can be a disaster recovery physical machine preconfigured for the target instance.
  • the target physical machine can be a backup physical machine for running the target instance.
  • a preset correspondence may exist between the target instance and the target physical machine.
  • the target physical machine corresponding to the target instance can be determined based on the preset correspondence between the target instance and the target physical machine.
  • the source physical machine is configured to periodically synchronize data generated by the target instance on the source physical machine with the target physical machine.
  • the source physical machine can synchronize the data generated by the target instance to the target physical machine. It should be noted that the data synchronization period can be set according to actual needs and is not limited in this embodiment.
  • the source physical machine can synchronize the data to the target physical machine immediately after the target instance generates data.
  • the source physical machine can store the data generated by the target instance on its cloud disk and copy the data from the source physical machine's cloud disk to the target physical machine's cloud disk through a data copy process.
  • the source physical machine can synchronize the data generated by the target instance on the source physical machine with the target physical machine via a dedicated network, ensuring better network stability and higher data security.
  • the dedicated network can be a dedicated network line between the availability zone where the source physical machine is located and the availability zone where the target physical machine is located.
  • the availability zone where the source physical machine is located is referred to as the source availability zone
  • the availability zone where the target physical machine is located is referred to as the target availability zone.
  • the source availability zone can contain one or more physical machines
  • the target availability zone can also contain one or more physical machines.
  • Data can be transmitted between physical machines in the source availability zone and physical machines in the target availability zone via the dedicated network. Other devices cannot transmit data via the dedicated network.
  • the instance migration device can monitor the source physical machine and the computer room where the source physical machine is located to determine whether the source physical machine can continue to run the target instance. It should be noted that this embodiment monitors the source physical machine. There are no specific restrictions on the monitoring methods for the source physical machine and the data center where the source physical machine resides.
  • the instance migration device can monitor the heartbeat information of the source physical machine. If the heartbeat information of the source physical machine is abnormal, it can be determined that the source physical machine has failed and cannot continue to run the target instance.
  • the instance migration device can also monitor the power supply of the data center where the source physical machine resides. If the power supply to the data center where the source physical machine resides is interrupted, it can be determined that the source physical machine cannot continue to run the target instance.
  • the target network configuration information of the target instance in the target physical machine can be determined to facilitate creation of the target instance in the target physical machine based on the network configuration information.
  • the target network configuration information can be determined based on the source network configuration information of the target instance in the source physical machine.
  • the source network configuration information can include the source network address of the target instance in the source physical machine
  • the target network configuration information can include the target network address of the target instance in the target physical machine.
  • the instance migration device can determine the target network address based on the source network address.
  • the target network address can be the same as the source network address.
  • the target instance can use a virtual private cloud (VPC).
  • the instance migration device can obtain the target instance's private network Internet Protocol (IP) address (i.e., source network address) from the source physical machine and determine the target instance's private network IP address as the target network address. For example, assuming the target instance's private network IP address in the source physical machine is IP address 1, the target network address can be determined to be IP address 1.
  • IP Internet Protocol
  • the target instance in the target physical machine can be used to take over business processing for the target instance in the source physical machine.
  • the reserved resources corresponding to the target instance in the target physical machine can include memory resources and central processing unit (CPU) resources reserved for the target instance in the target physical machine.
  • the instance migration device can store or obtain instance configuration information of the target instance. After the source physical machine where the target instance resides fails, the instance migration device can create the target instance in the reserved resources corresponding to the target instance based on the instance configuration information of the target instance.
  • the instance migration device can also request the target physical machine to configure reserved resources for the target instance based on resource usage information of the target instance in the source physical machine.
  • the instance migration device can determine the resource occupancy information of the target instance on the source physical machine.
  • the resource occupancy information includes multiple resource types and the historical resource occupancy corresponding to each resource type; determine the reserved resource amount corresponding to each resource type based on the resource occupancy information; and request the target physical machine to reserve resources for the target instance based on the reserved resource amount corresponding to each resource type.
  • the resource type can be a memory resource type or a CPU resource type.
  • the historical resource occupancy corresponding to the resource type can be: The amount of resources of that type occupied by the target instance on the source physical machine.
  • the historical resource usage corresponding to a memory resource can be the amount of memory resources occupied by the target instance on the source physical machine.
  • the reserved resource amount corresponding to that resource type can be the amount of resources of that type that need to be reserved for the target instance. It should be understood that, for any resource type, the reserved resource amount corresponding to that resource type is greater than or equal to the historical resource usage corresponding to that resource type.
  • the instance migration device can determine the target physical machine corresponding to the target instance to be migrated; determine the target network configuration information of the target instance on the target physical machine; and create the target instance on the target physical machine based on the reserved resources and target network configuration information corresponding to the target instance on the target physical machine.
  • the source physical machine can synchronize the data of the target instance to the target physical machine, and the target physical machine can pre-configure reserved resources for the target instance. If the source physical machine is unable to continue running the target instance, the instance migration device can determine the target network configuration information and, based on the target network configuration information and the reserved resources corresponding to the target instance, create the target instance on the target physical machine to achieve migration of the target instance.
  • This method eliminates the need to maintain two functionally identical business systems and eliminates the need for bidirectional data synchronization, reducing disaster recovery complexity.
  • the source physical machine can synchronize data generated by the target instance to the target physical machine in real time.
  • FIG. 4 is a flow chart illustrating another instance migration method provided by an exemplary embodiment of the present disclosure. Referring to FIG. 4 , the method may include:
  • the execution entity of the disclosed embodiment may be an instance migration device, or an instance migration apparatus provided within the instance migration device.
  • the instance migration apparatus may be implemented via software or a combination of software and hardware.
  • the following description uses the instance migration device as an example.
  • the source physical machine satisfies at least one of the following conditions: the physical machine status of the source physical machine is in a preset state, a service on the source physical machine has been updated, or the computer room where the source physical machine is located is awaiting migration.
  • Preset states may include a faulty state and a fully loaded state. It should be understood that if the source physical machine is in a faulty state or a fully loaded state, the source physical machine cannot continue to run the target instance.
  • the instance migration device may monitor the physical machine status of the source physical machine to determine whether the physical machine status of the source physical machine is in a preset state. Specifically, the instance migration device may monitor the heartbeat messages of the source physical machine and the load of the source physical machine. If the heartbeat messages of the source physical machine are normal, the physical machine status of the source physical machine may be determined to be normal. If the source physical machine's heartbeat message is abnormal, the source physical machine's physical machine status can be determined to be faulty. If the source physical machine's load is greater than a preset threshold, the source physical machine's physical machine status can be determined to be fully loaded.
  • the source physical machine's load is less than or equal to the preset threshold, the source physical machine's physical machine status can be determined to be partially loaded.
  • Business updates on the source physical machine may require the source physical machine to remove the target instance to free up the target instance.
  • the source physical machine can send an instance migration request to the instance migration device so that the instance migration device can determine the service update on the source physical machine.
  • the instance migration request may include the identifier of the source physical machine and the identifier of the target instance.
  • the situation in which the computer room where the source physical machine is located is to be migrated may be due to an unexpected situation such as a power outage, fire, or flood.
  • the instance migration device can monitor the computer room where the source physical machine is located to determine whether the source physical machine is experiencing a power outage, fire, or flood.
  • the instance migration device can monitor the computer room where the source physical machine is located using a voltage sensor to determine whether the source physical machine is experiencing a power outage, fire, or flood. It can monitor the computer room where the source physical machine is located using a temperature sensor or smoke sensor to determine whether the source physical machine is experiencing a fire, or flooding using a water level sensor.
  • S402. Determine the instance running on the source physical machine as the target instance.
  • the source physical machine may be running at least one service instance.
  • the target instance may be any service instance running on the source physical machine. It should be noted that the migration method for each service instance on the source physical machine is the same. This embodiment uses any service instance on the source physical machine as an example to illustrate the instance migration method.
  • the target instance identifier can be the name of the target instance or a unique ID of the target instance. It should be understood that the target instance identifier can be used to uniquely identify the target instance.
  • a disaster recovery physical machine can be configured for each service instance in the source physical machine. If the source physical machine is unable to run any service instance, the service instance can be migrated to the corresponding disaster recovery physical machine. For any service instance in the source physical machine, the disaster recovery physical machine configured for the service instance can be the physical machine corresponding to the service instance.
  • a preset correspondence can be set between each instance in the source physical machine and the physical machine corresponding to each instance.
  • the preset correspondence can include multiple instance identifiers and the physical machine corresponding to each instance identifier.
  • the instance migration device can store the preset correspondence.
  • the instance migration device can obtain a preset correspondence from a local machine.
  • the preset correspondence includes multiple instance identifiers and the physical machine corresponding to each instance identifier.
  • the target physical machine is determined based on the target instance identifier and the preset correspondence.
  • the instance migration device can search for the target instance identifier in the preset correspondence and determine the physical machine corresponding to the target instance identifier in the preset correspondence as the target physical machine.
  • the source network configuration information of the target instance in the source physical machine may include, for example, the private network IP address used by the target instance when running in the source physical machine.
  • the instance migration device may pre-acquire the source network configuration information of the target instance from the source physical machine and may store the source network configuration information of the target instance.
  • the instance migration device may determine the source network configuration information of the target instance in the source physical machine based on the target instance identifier. S405. Determine the target network configuration information based on the source network configuration information.
  • the target network configuration information may include, for example, the private network IP address used by the target instance when running on the target physical machine.
  • the source network configuration information includes the source network address of the target instance on the source physical machine
  • the target network configuration information includes the target network address of the target instance on the target physical machine.
  • the target network address may be determined as the source network address.
  • the instance migration device may configure the private network IP address of the target instance on the target physical machine as the target network address.
  • the instance configuration information corresponding to the target instance may be information required when creating the target instance.
  • the instance configuration information corresponding to the target instance may include the number of virtual CPU cores of the target instance and the network type of the target instance.
  • the instance migration device may store the instance configuration information of the target instance. The instance migration device may determine the configuration information corresponding to the target instance based on the target instance identifier of the target instance.
  • the instance migration device may send an instance creation request to the target physical machine.
  • the instance creation request includes the instance configuration information, the target network configuration information, and the target instance identifier of the target instance.
  • the target instance identifier is used by the target physical machine to determine the reserved resources.
  • the instance migration device receives an instance creation success response from the target physical machine.
  • the instance creation success response indicates that the target instance has been successfully created in the reserved resources on the target physical machine.
  • the instance migration device may send the target instance identifier, the target network configuration information, and the instance configuration information corresponding to the target instance to the target device.
  • the target physical machine may determine the reserved resources of the target instance based on the target instance identifier. Create the target instance in the reserved resources of the target instance based on the target network configuration information and the instance configuration information corresponding to the target instance.
  • the instance migration device may send a creation success response to the instance migration device, allowing the instance migration device to confirm that the migration of the target instance has been successful.
  • the instance migration device may also deregister the target instance from the source physical machine.
  • the instance migration device can determine a source physical machine and identify the instance running on the source physical machine as the target instance; determine the target physical machine corresponding to the target instance based on the target instance's target instance identifier; determine the source network configuration information of the target instance on the source physical machine and determine the target network configuration information based on the source network configuration information; determine the instance configuration information corresponding to the target instance and, based on the instance configuration information and the target network configuration information, create the target instance within the reserved resources of the target physical machine.
  • the target physical machine can create the target instance within the reserved resources of the target instance.
  • the IP address of the target instance created on the target physical machine can be the same as the IP address of the target instance on the source physical machine.
  • FIG5 is a schematic diagram of an example migration provided by an exemplary embodiment of the present disclosure.
  • server 1 can be set up in computer room A, on which cloud disk 1 and ECS instance 1 can run.
  • Server 2 can be set up in computer room B, on which cloud disk 2 can run.
  • ECS instance 1 When ECS instance 1 is operating normally on server 1, the business data generated by ECS instance 1 can be stored in cloud disk 1. Server 1 can also periodically synchronize the business data generated by ECS instance 1 to cloud disk 2 on server 2, allowing server 2 to access the business data generated by ECS instance 1 during operation. Server 2 can have reserved resources configured for ECS instance 1. Reserved resources can include reserved memory resources and reserved CPU resources. If computer room A ceases operation due to an unexpected cause, ECS instance 1 can be created on server 2 using the instance migration method provided in any of the above embodiments. The IP address of ECS instance 1 on server 2 can be the same as the IP address of ECS instance 1 on server 1. For example, the unexpected cause could be a fire or flood.
  • FIG. 6 is a schematic diagram of the structure of an instance migration apparatus provided in an exemplary embodiment of the present disclosure.
  • the instance migration apparatus 10 includes a determination module 11 and a creation module 12.
  • the determination module 11 is configured to determine a target physical machine corresponding to a target instance to be migrated, where the target instance is currently located on a source physical machine, and the source physical machine is configured to periodically synchronize data generated by the target instance on the source physical machine with the target physical machine.
  • the determination module 11 is also configured to determine target network configuration information for the target instance on the target physical machine.
  • the creation module 12 is configured to create the target instance on the target physical machine based on the reserved resources corresponding to the target instance on the target physical machine and the target network configuration information.
  • the target instance on the target physical machine is configured to take over business processing from the target instance on the source physical machine.
  • the instance migration device provided by the embodiment of the present disclosure can execute the technical solution shown in the above-mentioned method embodiment, and its implementation principle and beneficial effects are similar, so they will not be repeated here.
  • the creation module 12 is specifically used to determine the instance configuration information corresponding to the target instance; according to the instance configuration information, create the target instance in the reserved resources of the target physical machine.
  • the creation module 12 is specifically used to send an instance creation request to the target physical machine, and the instance creation request includes the instance configuration information, the target network configuration information, and the target instance identifier of the target instance, and the target instance identifier is used by the target physical machine to determine the reserved resources; Receive an instance creation success response sent by the target physical machine, the instance creation success response indicating that the target instance has been successfully created in the reserved resources on the target physical machine.
  • the determination module 11 is specifically configured to determine source network configuration information of the target instance in the source physical machine; and determine the target network configuration information based on the source network configuration information.
  • the source network configuration information includes a source network address of the target instance in the source physical machine
  • the target network information includes a target network address of the target instance in the target physical machine.
  • the determination module 11 is specifically configured to set the target network address as the source network address.
  • the determination module 11 is specifically configured to determine the source physical machine, where the source physical machine satisfies at least one of the following: a physical machine state of the source physical machine is a preset state, a service on the source physical machine has been updated, or the computer room where the source physical machine is located is to be migrated; determine the instance running on the source physical machine as the target instance; and determine the target physical machine corresponding to the target instance based on the target instance identifier of the target instance.
  • the determination module 11 is specifically configured to obtain a preset correspondence, wherein the preset correspondence includes multiple instance identifiers and the physical machine corresponding to each instance identifier; and determine the target physical machine based on the target instance identifier and the preset correspondence.
  • the instance migration apparatus provided in the embodiments of the present disclosure can implement the technical solutions described in the above-mentioned method embodiments. The implementation principles and beneficial effects are similar and are not further described here.
  • FIG7 is a schematic structural diagram of another instance migration apparatus provided in the exemplary embodiments of the present disclosure. Based on FIG6 , the instance migration apparatus 10 may further include a sending module 13 and a deregistration module 14.
  • the determination module 11 is further configured to determine resource occupancy information of resources occupied by the target instance on the source physical machine, wherein the resource occupancy information includes multiple resource types and the historical resource occupancy corresponding to each resource type; the determination module 11 is further configured to determine the reserved resource amount corresponding to each resource type based on the resource occupancy information; and the sending module 13 is configured to request the target physical machine to reserve resources for the target instance based on the reserved resource amount corresponding to each resource type.
  • the deregistration module 14 is configured to deregister the target instance in the source physical machine.
  • the source physical machine and the target physical machine are located in different availability zones.
  • the source physical machine is configured to periodically synchronize data generated by the target instance in the source physical machine to the target physical machine via a dedicated network.
  • the instance migration apparatus provided in the embodiment of the present disclosure may implement the technical solution shown in the above method embodiment, wherein The implementation principles and beneficial effects are similar and will not be further described here.
  • Figure 8 is a schematic diagram of the structure of an instance migration device provided in an exemplary embodiment of the present disclosure.
  • the instance migration device 20 may include a processor 21 and a memory 22.
  • the processor 21 and the memory 22 are interconnected via a bus 23.
  • the memory 22 stores computer-executable instructions; the processor 21 executes the computer-executable instructions stored in the memory 22, causing the processor 21 to perform the method described in the above method embodiment.
  • the instance migration device shown in Figure 8 may be an electronic device such as a server or a computer.
  • the instance migration device provided in the embodiments of the present disclosure can implement the technical solutions described in the above method embodiments. Its implementation principles and beneficial effects are similar and will not be further described here. Accordingly, the embodiments of the present disclosure provide a computer-readable storage medium storing computer-executable instructions. When executed by a processor, the computer-executable instructions are used to implement the method described in the above method embodiment. Accordingly, the embodiments of the present disclosure may also provide a computer program product comprising a computer program.
  • the computer program When executed by a processor, the computer program can implement the method described in the above method embodiment.
  • the embodiments of the present disclosure may be provided as methods, systems, or computer program products. Therefore, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects.
  • the present disclosure may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROMs, optical storage, etc.) containing computer-usable program code.
  • the present disclosure is described with reference to flowcharts and/or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present disclosure.
  • each process and/or block in the flowcharts and/or block diagrams, as well as combinations of processes and/or blocks in the flowcharts and/or block diagrams, can be implemented by computer program instructions.
  • These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, such that execution of the instructions by the processor of the computer or other programmable data processing device generates means for implementing the functions specified in one or more processes in the flowcharts and/or one or more blocks in the block diagrams.
  • These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device that implements the functions specified in one or more processes of the flowchart and/or one or more blocks of the block diagram.
  • These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes of the flowchart and/or one or more blocks of the block diagram.
  • a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
  • Memory may include non-volatile memory in the form of random access memory (RAM) and/or non-volatile memory such as read-only memory (ROM) or flash memory.
  • RAM random access memory
  • ROM read-only memory
  • Memory is an example of a computer-readable medium.
  • Computer-readable media including both permanent and non-permanent, removable and non-removable media, can implement information storage using any method or technology. Information can be computer-readable instructions, data structures, program modules, or other data.
  • Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices, or any other non-transmission media that can be used to store information that can be accessed by a computing device.
  • PRAM phase-change memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • RAM random access memory
  • ROM read-only memory
  • EEPROM electrically erasable programmable read-only memory
  • flash memory or other memory technologies
  • compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage magnetic cassettes, magnetic disk storage or other magnetic storage devices, or any other non-transmission media that can be used to store

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

Provided in the present disclosure are an instance migration method and apparatus, and a device, a storage medium and a program product. The method comprises: determining a target physical machine corresponding to a target instance to be migrated, wherein the target instance is currently located in a source physical machine, and the source physical machine is used for periodically synchronizing, to the target physical machine, data generated by the target instance in the source physical machine; determining target network configuration information, in the target physical machine, of the target instance; and on the basis of a reserved resource, which corresponds to the target instance, in the target physical machine, and the target network configuration information, creating a target instance in the target physical machine, wherein the target instance in the target physical machine is used for replacing the target instance in the source physical machine to perform service processing. The method of the present disclosure reduces the disaster tolerance complexity.

Description

实例迁移 方法、 装置、 设备、 存储介质及程序产品 本公开要求于 2024年 01月 31 日提交中国专利局、 申请号为 202410139833.X, 申请 名称为 “实例迁移方法、 装置、 设备、 存储介质及程序产品 ”的中国专利申请的优先权, 其 全部内容通过引用结合在本公开中。 技术领域 本公开 涉及计算机领域, 尤其涉及一种实例迁移方法、 装置、 设备、 存储介质及程序 产品。 背景技术 跨可用区 ( availability zone, AZ)容灾, 可以保证业务连续性, 提高业务可靠性。 目前, 用户可以在两个可用区中分别维护一套业务系统 , 且两个可用区中维护的 业务系统 的功能相同。 也就是说, 用户可以维护两套相同的业务系统。 若任意一套业 务系统 因意外停止工作, 可以将停止工作的业务系统的业务请求切换到 另外一个可用 区的业务 系统, 以实现跨可用区容灾的目的。 然而, 上述方法中, 需要维护两套功能 的业务 系统, 业务系统的维护复杂度较高, 导致容灾复杂度较高。 发明内容 本公开 的多个方面提供一种实例迁移方法、 装置、 设备、 存储介质及程序产品, 用以 降低容灾复杂度。 第一方面, 本公开实施例提供一种实例迁移方法, 包括: 确定待迁移的 目标实例所对应的目标物理机, 所述目标实例当前位于源物理机, 所述 源物理机用于周期性向所述 目标物理机同步所述目标实例在所述源物理机中生成的数据; 确定所述 目标实例在所述目标物理机中的目标网络配置信息; 基于所述 目标物理机中的所述目标实例对应的预留资源、 以及所述目标网络配置信息 , 在所述目标物理机中创建所述目标实例;所述目标物理机中的所述目标实例用于接替所述 源物理机中的目标实例进行业务处理。 在一种 可能的实现方式中, 基于所述目标物理机中的所述目标实例对应的预留资源、 以及所述目标网络配置信息, 在所述目标物理机中创建所述目标实例, 包括: 确定所述 目标实例对应的实例配置信息; 根据所述实例配置信 息, 在所述目标物理机的所述预留资源中创建所述目标实例。 在一种可能的实现方式 中, 根据所述实例配置信息、 以及所述目标网络配置信息, 在 所述目标物理机的所述预留资源中创建所述目标实例, 包括: 向所述目标物理机发送实例创建请求, 所述实例创建请求包括所述实例配置信息、 所 述目标网络配置信息、 以及所述目标实例的目标实例标识, 所述目标实例标识用于所述目 标物理机确定所述预留资源; 接收所述 目标物理机发送的实例创建成功响应,所述实例创建成功响应用于指示在所 述目标物理机在所述预留资源中成功创建所述目标实例。 在一种可能的实现方式 中,确定所述目标实例在所述目标物理机中的目标网络配置信 息, 包括: 确定所述 目标实例在所述源物理机中的源网络配置信息; 根据所述源 网络配置信息, 确定所述目标网络配置信息。 在一种可能的实现方式 中,所述源网络配置信息包括所述目标实例在所述源物理机中 的源网络地址,所述目标网络信息包括所述目标实例在所述目标物理机中的目标网络地址; 根据所述源网络配置信息, 确定所述目标网络配置信息, 包括: 将所述 目标网络地址设置为所述源网络地址。 在一种可能的实现方式 中, 确定待迁移的目标实例所对应的目标物理机, 包括: 确定所述源物理机, 所述源物理机满足如下至少一项: 所述源物理机的物理机状态为 预设状态, 所述源物理机中的业务发生更新、 或所述源物理机所在的机房待迁移; 将所述源物理机 中运行的实例确定为所述目标实例; 根据所述 目标实例的目标实例标识, 确定所述目标实例对应的目标物理机。 在一种可能的实现方式 中, 根据所述目标实例的目标实例标识, 确定所述目标实例对 应的目标物理机, 包括: 获取预设对应关 系, 所述预设对应关系中包括多个实例标识、 以及每个实例标识对应 的物理机; 根据所述 目标实例标识和所述预设对应关系, 确定所述目标物理机。 在一种可能的实现方式 中, 所述方法还包括: 确定所述 目标实例在所述源物理机中所占资源的资源占用信息,所述资源占用信息中 包括多个资源类型、 以及各资源类型对应的历史资源占用量; 根据所述资源 占用信息确定各资源类型对应的预留资源量; 根据各资源 类型对应的预留资源量, 向所述目标物理机请求为所述目标实例预留资源。 在一种可能的实现方式 中, 所述方法还包括: 在所述源物理机 中注销所述目标实例。 在一种可能的实现方式 中, 所述方法还包括: 所述源物理机和所述 目标物理机设置于不同可用区。 在一种可能的实现方式 中, 所 述源物理机用于通过专线网络周期性向所述目标物理机同步所述 目标实例在所述 源物理机中生成的数据。 第二方面, 本公开实施例提供一种实例迁移装置, 所述装置包括: 确定模块和创建 模块, 其中, 所述确定模块 用于, 在确定待迁移的目标实例所对应的目标物理机, 所述目标实例当 前位于源物理机,所述源物理机用于周期性向所述目标物理机同步所述目标实例在所述源 物理机中生成的数据; 所述确 定模块还用于, 确定所述目标实例在所述目标物理机中的目标网络配置信息; 所述创建模块 用于, 基于所述目标物理机中的所述目标实例对应的预留资源、 以及所 述目标网络配置信息, 在所述目标物理机中创建所述目标实例; 所述目标物理机中的所述 目标实例用于接替所述源物理机中的目标实例进行业务处理。 在一种 可能的实现方式中, 所述创建模块具体用于, 确定所述 目标实例对应的实例配置信息; 根据所述 实例配置信息, 在所述目标物理机的所述预留资源中创建所述目标实例。 在一种 可能的实现方式中, 所述创建模块具体用于, 向所述目标物理机发送实例创建请求, 所述实例创建请求包括所述实例配置信息、 所 述目标网络配置信息、 以及所述目标实例的目标实例标识, 所述目标实例标识用于所述目 标物理机确定所述预留资源; 接收所述 目标物理机发送的实例创建成功响应,所述实例创建成功响应用于指示在所 述目标物理机在所述预留资源中成功创建所述目标实例。 在一种 可能的实现方式中, 所述确定模块具体用于, 确定所述 目标实例在所述源物理机中的源网络配置信息; 根据所述 源网络配置信息, 确定所述目标网络配置信息。 在一种 可能的实现方式中,所述源网络配置信息包括所述目标实例在所述源物理机中 的源网络地址,所述目标网络信息包括所述目标实例在所述目标物理机中的目标网络地址; 所述确定模块具体用于, 将所述 目标网络地址设置为所述源网络地址。 在一种 可能的实现方式中, 所述确定模块具体用于, 确定所述 源物理机, 所述源物理机满足如下至少一项: 所述源物理机的物理机状态为 预设状态, 所述源物理机中的业务发生更新、 或所述源物理机所在的机房待迁移; 将所述 源物理机中运行的实例确定为所述目标实例; 根据所述 目标实例的目标实例标识, 确定所述目标实例对应的目标物理机。 在一种 可能的实现方式中, 所述确定模块具体用于, 获取预设对应 关系, 所述预设对应关系中包括多个实例标识、 以及每个实例标识对应 的物理机; 根据所述 目标实例标识和所述预设对应关系, 确定所述目标物理机。 在一种可 能的实现方式中, 所述装置还包括发送模块和注销模块, 其中, 所述确定模块还 用于,确定所述目标实例在所述源物理机中所占资源的资源占用信息, 所述资源占用信息中包括多个资源类型、 以及各资源类型对应的历史资源占用量; 所述确定模块还 用于, 根据所述资源占用信息确定各资源类型对应的预留资源量; 所述 发送模块用于, 根据各资源类型对应的预留资源量, 向所述目标物理机请求为所 述目标实例预留资源。 在一种可 能的实现方式中, 所述注销模块用于, 在所述 源物理机中注销所述目标实例。 在一种可 能的实现方式中, 所述 源物理机和所述目标物理机设置于不同可用区。 在一种可 能的实现方式中, 所述 源物理机用于通过专线网络周期性向所述目标物理机同步所述 目标实例在所述 源物理机中生成的数据。 第三方面, 本公开实施例提供一种实例迁移设备, 包括: 存储器和处理器; 所述存储器存储计算机执 行指令; 所述处理器执行所述存 储器存储的计算机执行指令 , 使得所述实例迁移设备执行 第一方面任 一项所述的方法。 第四方面, 本公开实施例提供一种计算机可读存储介质 , 所述计算机可读存储介 质中存储有 计算机执行指令, 当所述计算机执行指令被处理器执行时 用于实现第一方 面任一项所 述的方法。 第五方面, 本公开实施例提供一种计算机程序产品, 包括计算机程序, 该计算机程序 被处理器执行时实现第一方面任一项所示的方法。 本公开实施例提 供一种实例迁移方法、 装置、 设备、 存储介质及程序产品, 实例迁 移设备可以确定待迁移的目标实例所对应的目标物理机;可以确定目标实例在目标物理机 中的目标网络配置信息; 可以基于目标物理机中的目标实例对应的预留资源、 以及目标网 络配置信息, 在目标物理机中创建目标实例。 上述方法中, 源物理机可以将目标实例的数 据同步至目标物理机, 目标物理机可以预先为目标实例配置预留资源。 若源物理机无法继 续运行目标实例, 实例迁移设备可以确定目标网络配置信息, 并可以根据目标网络配置信 息、 以及目标实例对应的预留资源, 在目标物理机中创建目标实例, 以实现目标实例的迁 移。 通过上述方法, 无需同时维护两套功能相同的业务系统、 且数据无需双向同步, 降低 了容灾复杂度。 另外, 源物理机可以实时向目标物理机同步目标实例生成的数据; 源物理 机无法继续运行目标实例后, 实例迁移设备可以立即在目标物理机中创建目标实例, 使得 业务连续性较好。 附图说明 此处所说 明的附图用来提供对本公开的进一步理解, 构成本公开的一部分, 本公开的 示意性实施例及其说明用于解释本公开, 并不构成对本公开的不当限定。 在附图中: 图 1为本公开示例性实施例提供的一种容灾架构示意图; 图 2为本公开示例性实施例提供的另一种容灾架构示意图; 图 3为本公开示例性实施例提供的一种实例迁移的流程示意图; 图 4为本公开示例性实施例提供的另一种实例迁移方法的流程示意图; 图 5为本公开示例性实施例提供的一种实例迁移示意图; 图 6为本公开示例性实施例提供的一种实例迁移装置的结构示意图; 图 7为本公开示例性实施例提供的另一种实例迁移装置的结构示意图; 图 8为本公开示例性实施例提供一种实例迁移设备的结构示意图。 具体实施方 式 需要说明的是, 本公开所涉及的用户信息 (包括但不限于用户设备信息、 用户个人信 息等) 和数据 (包括但不限于用于分析的数据、 存储的数据、 展示的数据等) , 均为经用 户授权或者经过各方充分授权的信息和数据, 并且相关数据的收集、使用和处理需要遵守 相关法律法规和标准, 并提供有相应的操作入口, 供用户选择授权或者拒绝。 为使本公开的目的、 技术方案和优点更加清楚, 下面将结合本公开具体实施例及相应 的附图对本公开技术方案进行清楚、 完整地描述。 显然, 所描述的实施例仅是本公开一部 分实施例, 而不是全部的实施例。 基于本公开中的实施例, 本领域普通技术人员在没有做 出创造性劳动前提下所获得的所有其他实施例, 都属于本公开保护的范围。 为便于理解, 首先对本公开实施例涉及的技术术语进行解释说明。 热迁移 (live migration) : 又叫动态迁移、 实时迁移, 一般是指虚拟机的保存 /恢复, 通常是将整个虚拟机的运行状态完整保存下来, 同时可以快速地恢复到原有硬件平台甚至 是不同硬件平台上。 恢复以后, 虚拟机仍旧平滑运行, 用户不会察觉到任何差异。 可 用区: 指在同一区域内, 电力和网络互相独立的物理区域。 一般是一个机房。 弹性计算服 务 (elastic compute service, ECS ) : 是一种安全可靠、 弹性可伸缩的云计 算服务。 本公开实施例 的应用场景可以是跨可用区容灾场景。 需要说明的是, 本公开实施例提 供的实例迁移方法不仅适用于上述容灾场景, 还可以应用于其他容灾场景, 本公开对此不 作限定。 下 面, 结合图 1 , 对相关技术中的容灾方法进行说明。 图 1为本公开示例性实施例提供的一种容灾架构示意图。 请参见图 1 , 可 用区 A中可以设置多可用区负载均衡 (server load balance, SLB) 实例、 ECS全球 广域网 (world wide web, Web) 服务器、 ECS应用程序 ( application, APP) 服务器、 对象存储服务 (object storage service, OSS)实例、以及多可用区关系型数据库服务 (relational database service, RDS) 实例。 可用区 B中也可以设置多可用区 SLB实例、 ECS Web服 务器、 ECS APP服务器、 OSS实例、 以及多可用区 RDS实例。 可用区 A中设置的上述系统可以实现的功能, 与可用区 B 中设置的上述系统可以实 现的功能相同。 可用区 A中的业务数据可以同步至可用区 B中, 同时, 可用区 B中的业 务数据也可以同步至可用区 A中。 若 可用区 A和可用区 B中任意一个可用区因意外停止工作, 域名系统 (domain name system, DNS) 可以将停止工作的可用区的业务请求, 切换到另外一个可用区中, 以实现 ^?会可用区容灾的目的。 然而, 上述架构中, 可用区 A中的业务数据需要同步至可用区 B中, 且可用区 B中 的业务数据需要同步至可用区 A中, 也就是说, 需要实现业务数据双向同步, 使得业务端 的数据同步复杂度较高;另外,用户需要同时在两个可用区维护两套功能相同的业务系统, 业务系统的维护复杂度较高, 由此导致容灾复杂度较高。 有 鉴于此, 本公开实施例提供了一种实例迁移方法, 以降低容灾复杂度。 下面, 结合图 2, 对本公开实施例涉及的容灾架构进行说明。 图 2为本公开示例性实施例提供的另一种容灾架构示意图。 请参见图 2, 可用区 A中 可以设置物理机 1 , 物理机 1上可以运行实例 1。 可用区 B中可以设置物理机 2。 例如, 可用区 1可以为机房 1 , 可用区 2可以为机房 2, 实例 1可以为 ECS实例。 需要说明的是, 上述容灾架构中, 可用区 A中物理机的数量、 以及可用区 B 中物理 机的数量均可以为一个或多个。 图 2仅以可用区 A中物理机的数量和可用区 B中物理机 的数量均为一为例进行说明, 并不构成对本公开实施例的限制。 如 图 2所示, 若物理机 1故障, 可以将实例 1迁移至物理机 2, 使得实例 1可以在物 理机 2上运行、 并可以接替物理机 1中的实例 1进行业务处理。 由此可以实现跨可用区容 灾的目的。 上述容 灾架构中, 业务数据无需双向同步, 且用户无需同时维护两套功能相同的业务 系统, 降低了容灾复杂度。 下面, 通过具体实施例对本公开所示的技术方案进行详细说明。 需要说明的是, 下面 几个实施例可以单独存在, 也可以相互结合, 对于相同或相似的内容, 在不同的实施例中 不再重复说明。 图 3为本公开示例性实施例提供的一种实例迁移的流程示意图。 请参见图 3, 方法可 以包括: Instance Migration Method, Apparatus, Device, Storage Medium, and Program Product This disclosure claims priority to Chinese patent application number 202410139833.X, filed with the China Patent Office on January 31, 2024, entitled "Instance Migration Method, Apparatus, Device, Storage Medium, and Program Product," the entire contents of which are incorporated herein by reference. Technical Field This disclosure relates to the field of computers, and more particularly to an instance migration method, apparatus, device, storage medium, and program product. Background: Cross-availability zone (AZ) disaster recovery can ensure business continuity and improve business reliability. Currently, users can maintain a business system in two AZs, each with the same functionality. In other words, users can maintain two identical business systems. If either business system unexpectedly stops functioning, service requests from the stopped business system can be switched to the business system in the other AZ, achieving cross-AZ disaster recovery. However, the above method requires maintaining two sets of functional business systems, which increases the maintenance complexity of the business systems and leads to higher disaster recovery complexity. SUMMARY OF THE INVENTION Various aspects of the present disclosure provide an instance migration method, apparatus, device, storage medium, and program product to reduce disaster recovery complexity. In a first aspect, an embodiment of the present disclosure provides an instance migration method, comprising: determining a target physical machine corresponding to a target instance to be migrated, the target instance currently located on a source physical machine, the source physical machine being configured to periodically synchronize data generated by the target instance on the source physical machine to the target physical machine; determining target network configuration information for the target instance on the target physical machine; creating the target instance on the target physical machine based on reserved resources corresponding to the target instance on the target physical machine and the target network configuration information; and causing the target instance on the target physical machine to take over business processing from the target instance on the source physical machine. In one possible implementation, creating the target instance in the target physical machine based on the reserved resources corresponding to the target instance in the target physical machine and the target network configuration information includes: determining the instance configuration information corresponding to the target instance; and creating the target instance in the reserved resources of the target physical machine according to the instance configuration information. In one possible implementation, creating the target instance in the reserved resources of the target physical machine based on the instance configuration information and the target network configuration information includes: sending an instance creation request to the target physical machine, the instance creation request including the instance configuration information, the target network configuration information, and a target instance identifier of the target instance, the target instance identifier being used by the target physical machine to determine the reserved resources; and receiving an instance creation success response from the target physical machine, the instance creation success response indicating that the target instance was successfully created in the reserved resources on the target physical machine. In another possible implementation, determining the target network configuration information of the target instance in the target physical machine includes: determining the source network configuration information of the target instance in the source physical machine; and determining the target network configuration information based on the source network configuration information. In one possible implementation, the source network configuration information includes the source network address of the target instance in the source physical machine, and the target network information includes the target network address of the target instance in the target physical machine. Determining the target network configuration information based on the source network configuration information includes setting the target network address to the source network address. In one possible implementation, determining the target physical machine corresponding to the target instance to be migrated includes: determining the source physical machine, where the source physical machine satisfies at least one of the following conditions: the source physical machine's physical machine state is a preset state, a service on the source physical machine has been updated, or the computer room where the source physical machine is located is to be migrated; determining the instance running on the source physical machine as the target instance; and determining the target physical machine corresponding to the target instance based on the target instance identifier. In one possible implementation, determining the target physical machine corresponding to the target instance based on the target instance identifier includes: obtaining a preset correspondence relationship, where the preset correspondence relationship includes multiple instance identifiers and the physical machine corresponding to each instance identifier; and determining the target physical machine based on the target instance identifier and the preset correspondence relationship. In one possible implementation, the method further includes: determining resource occupancy information of resources occupied by the target instance in the source physical machine, the resource occupancy information including multiple resource types and the historical resource occupancy corresponding to each resource type; determining the reserved resource amount corresponding to each resource type based on the resource occupancy information; and requesting the target physical machine to reserve resources for the target instance based on the reserved resource amount corresponding to each resource type. In one possible implementation, the method further includes: deregistering the target instance in the source physical machine. In one possible implementation, the method further includes: the source physical machine and the target physical machine are set in different availability zones. In one possible implementation, The source physical machine is configured to periodically synchronize data generated by the target instance on the source physical machine with the target physical machine via a dedicated network. In a second aspect, embodiments of the present disclosure provide an instance migration device, comprising: a determination module and a creation module, wherein the determination module is configured to, upon determining a target physical machine corresponding to a target instance to be migrated, where the target instance is currently located on the source physical machine, periodically synchronize data generated by the target instance on the source physical machine with the target physical machine; the determination module is further configured to determine target network configuration information for the target instance on the target physical machine; the creation module is configured to create the target instance on the target physical machine based on reserved resources corresponding to the target instance on the target physical machine and the target network configuration information; the target instance on the target physical machine is configured to take over service processing from the target instance on the source physical machine. In one possible implementation, the creation module is specifically configured to determine instance configuration information corresponding to the target instance; and, based on the instance configuration information, create the target instance in the reserved resources of the target physical machine. In one possible implementation, the creation module is specifically configured to send an instance creation request to the target physical machine, the instance creation request including the instance configuration information, the target network configuration information, and a target instance identifier of the target instance, the target instance identifier being used by the target physical machine to determine the reserved resources; and receive an instance creation success response from the target physical machine, the instance creation success response indicating that the target instance was successfully created on the target physical machine within the reserved resources. In one possible implementation, the determination module is specifically configured to determine source network configuration information of the target instance in the source physical machine; and determine the target network configuration information based on the source network configuration information. In one possible implementation, the source network configuration information includes a source network address of the target instance in the source physical machine, and the target network information includes a target network address of the target instance in the target physical machine. The determination module is specifically configured to set the target network address to the source network address. In one possible implementation, the determination module is specifically configured to determine the source physical machine, where the source physical machine satisfies at least one of the following conditions: the physical machine state of the source physical machine is a preset state, a service on the source physical machine has been updated, or the computer room where the source physical machine is located is to be migrated; determine the instance running on the source physical machine as the target instance; and determine the target physical machine corresponding to the target instance based on the target instance identifier of the target instance. In another possible implementation, the determination module is specifically configured to obtain a preset correspondence relationship, where the preset correspondence relationship includes multiple instance identifiers and the physical machine corresponding to each instance identifier; The target physical machine is determined based on the target instance identifier and the preset correspondence. In one possible implementation, the apparatus further includes a sending module and a deregistration module, wherein the determining module is further configured to determine resource occupancy information of resources occupied by the target instance on the source physical machine, the resource occupancy information including multiple resource types and the historical resource occupancy corresponding to each resource type; the determining module is further configured to determine the reserved resource amount corresponding to each resource type based on the resource occupancy information; and the sending module is configured to request the target physical machine to reserve resources for the target instance based on the reserved resource amount corresponding to each resource type. In one possible implementation, the deregistration module is configured to deregister the target instance from the source physical machine. In one possible implementation, the source physical machine and the target physical machine are located in different availability zones. In one possible implementation, the source physical machine is configured to periodically synchronize data generated by the target instance on the source physical machine to the target physical machine via a dedicated network. In a third aspect, embodiments of the present disclosure provide an instance migration device, comprising: a memory and a processor; the memory storing computer-executable instructions; the processor executing the computer-executable instructions stored in the memory, causing the instance migration device to perform any of the methods described in the first aspect. In a fourth aspect, embodiments of the present disclosure provide a computer-readable storage medium storing computer-executable instructions, which, when executed by the processor, implement any of the methods described in the first aspect. In a fifth aspect, embodiments of the present disclosure provide a computer program product, comprising a computer program, which, when executed by the processor, implements any of the methods described in the first aspect. Embodiments of the present disclosure provide an instance migration method, apparatus, device, storage medium, and program product. The instance migration device can determine a target physical machine corresponding to a target instance to be migrated; can determine target network configuration information for the target instance on the target physical machine; and can create a target instance on the target physical machine based on reserved resources corresponding to the target instance and the target network configuration information on the target physical machine. In the above method, the source physical machine can synchronize data of the target instance to the target physical machine, and the target physical machine can pre-configure reserved resources for the target instance. If the source physical machine is no longer able to run the target instance, the instance migration device can determine the target network configuration information and, based on the target network configuration information and the reserved resources corresponding to the target instance, create the target instance on the target physical machine to achieve target instance migration. This method eliminates the need to maintain two functionally identical business systems and eliminates the need for bidirectional data synchronization, reducing disaster recovery complexity. Furthermore, the source physical machine can synchronize data generated by the target instance with the target physical machine in real time. If the source physical machine is no longer able to run the target instance, the instance migration device can immediately create the target instance on the target physical machine, ensuring better business continuity. BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings described herein are intended to provide a further understanding of the present disclosure and constitute a part of the present disclosure. The exemplary embodiments of the present disclosure and their descriptions are intended to explain the present disclosure and do not constitute undue limitations thereon. In the accompanying drawings: FIG1 is a schematic diagram of a disaster recovery architecture provided by an exemplary embodiment of the present disclosure; FIG2 is a schematic diagram of another disaster recovery architecture provided by an exemplary embodiment of the present disclosure; FIG3 is a schematic diagram of an instance migration process provided by an exemplary embodiment of the present disclosure; FIG4 is a schematic diagram of another instance migration method provided by an exemplary embodiment of the present disclosure; FIG5 is a schematic diagram of an instance migration provided by an exemplary embodiment of the present disclosure; FIG6 is a schematic diagram of the structure of an instance migration apparatus provided by an exemplary embodiment of the present disclosure; FIG7 is a schematic diagram of the structure of another instance migration apparatus provided by an exemplary embodiment of the present disclosure; FIG8 is a schematic diagram of the structure of an instance migration device provided by an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION OF THE EMBODIMENTS It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, storage, and display, etc.) involved in the present disclosure are all information and data authorized by the user or fully authorized by all parties. The collection, use, and processing of the relevant data must comply with relevant laws, regulations, and standards, and corresponding operation portals are provided for users to choose to authorize or reject. To further clarify the objectives, technical solutions, and advantages of this disclosure, the technical solutions of this disclosure will be described clearly and completely below in conjunction with specific embodiments of this disclosure and the corresponding accompanying drawings. Obviously, the described embodiments represent only a portion of the embodiments of this disclosure, and are not exhaustive. All other embodiments derived by persons of ordinary skill in the art based on the embodiments of this disclosure without inventive effort are within the scope of protection of this disclosure. To facilitate understanding, the technical terms used in the embodiments of this disclosure are first explained. Live migration, also known as dynamic migration or real-time migration, generally refers to the preservation and restoration of a virtual machine. This typically involves preserving the entire operating state of a virtual machine and enabling rapid restoration to the original hardware platform or even a different one. After restoration, the virtual machine continues to operate smoothly, and users will not notice any difference. Availability zone, typically a single computer room, refers to a physical area within a region with independent power and network connectivity. Elastic Compute Service (ECS), a secure, reliable, and scalable cloud computing service, can be used in cross-availability zone disaster recovery scenarios. It should be noted that the instance migration method provided in the embodiments of the present disclosure is not only applicable to the above-mentioned disaster recovery scenario, but can also be applied to other disaster recovery scenarios, and the present disclosure does not limit this. Below, in conjunction with Figure 1, a disaster recovery method in related technologies is described. Figure 1 is a schematic diagram of a disaster recovery architecture provided by an exemplary embodiment of the present disclosure. Referring to Figure 1, a multi-zone server load balancing (SLB) instance and an ECS global Wide Area Network (WAN) servers, ECS application (APP) servers, object storage service (OSS) instances, and multi-AZ relational database service (RDS) instances. Availability Zone B can also host multi-AZ SLB instances, ECS web servers, ECS application servers, OSS instances, and multi-AZ RDS instances. The functions provided by these systems in Availability Zone A are the same as those provided in Availability Zone B. Business data in Availability Zone A can be synchronized with Availability Zone B, and business data in Availability Zone B can also be synchronized with Availability Zone A. If either Availability Zone A or B unexpectedly ceases operations, the Domain Name System (DNS) can forward business requests from the downed zone to the other zone, achieving disaster recovery across all availability zones. However, in the above architecture, business data in Availability Zone A needs to be synchronized with Availability Zone B, and business data in Availability Zone B needs to be synchronized with Availability Zone A. This requires bidirectional business data synchronization, which increases the complexity of data synchronization on the business side. Furthermore, users need to maintain two sets of business systems with the same functionality in two Availability Zones simultaneously, which increases the complexity of business system maintenance and, consequently, the complexity of disaster recovery. In view of this, embodiments of the present disclosure provide an instance migration method to reduce disaster recovery complexity. The following describes the disaster recovery architecture involved in embodiments of the present disclosure with reference to Figure 2. Figure 2 is a schematic diagram of another disaster recovery architecture provided by an exemplary embodiment of the present disclosure. Referring to Figure 2, physical machine 1 can be set up in Availability Zone A, and instance 1 can run on physical machine 1. Physical machine 2 can be set up in Availability Zone B. For example, Availability Zone 1 can be computer room 1, Availability Zone 2 can be computer room 2, and instance 1 can be an ECS instance. It should be noted that in the above-described disaster recovery architecture, the number of physical machines in Availability Zone A and the number of physical machines in Availability Zone B can both be one or more. Figure 2 illustrates the example of a single number of physical machines in Availability Zone A and B, and does not limit the embodiments of the present disclosure. As shown in Figure 2, if physical machine 1 fails, instance 1 can be migrated to physical machine 2, allowing instance 1 to continue running on physical machine 2 and take over business processing from instance 1 on physical machine 1. This achieves cross-availability zone disaster recovery. In the above-described disaster recovery architecture, business data does not require bidirectional synchronization, and users do not need to maintain two functionally identical business systems simultaneously, reducing disaster recovery complexity. The technical solutions presented in this disclosure are described in detail below through specific embodiments. It should be noted that the following embodiments may exist independently or in combination, and identical or similar content will not be repeated in different embodiments. Figure 3 is a schematic flow diagram of an instance migration process provided by an exemplary embodiment of the present disclosure. Referring to Figure 3, the method may include:

S301、 确定待迁移的目标实例所对应的目标物理机。 本公开实施例的执行主体可以为实例迁移设备,也可以为设置在实例迁移设备中的实 例迁移装置。 实例迁移装置可以通过软件实现, 也可以通过软件和硬件的结合实现。 为了 便于理解, 在下文中, 以执行主体为实例迁移设备为例进行说明。 本实施例 中, 目标实例当前位于源物理机, 若源物理机无法继续运行目标实例, 可以 确定目标实例对应的目标物理机。 例如, 源物理机的状态为故障状态、 或者源物理机所在 的机房待迁移时, 可以确定目标实例对应的目标物理机。 源物理机和目标物理机均可以为, 能够运行业务实例的电子设备。 例如, 源物理机和 目标物理机均可以为服务器、 或计算机等。 源物理机和目标物理机可以分别设置于不同可用区。 例如, 源物理机可以为可用区 1 中的服务器, 目标物理机可以为可用区 2中的服务器, 可用区 1例如可以为机房 1, 可用 区 2例如可以为机房 2o 应该理解 的是, 一个可用区可以设置一个或多个机房。 其中, 多个可以为两个或两个 以上。 目标实例可以为, 源物理机中运行的任意一个业务实例。 例如, 目标实例可以为 ECS 实例。 目标物理机可以为, 预先为目标实例配置的容灾物理机。 也就是说, 目标物理机可以 为, 备用的用于运行目标实例的物理机。 本实施例 中, 目标实例与目标物理机之间可以存在预设对应关系。 具体实施过程中, 可以根据目标实例与 目标物理机之间的预设对应关系, 确定目标实例对应的目标物理机。 本实施例 中, 源物理机用于周期性向目标物理机同步目标实例在源物理机中生成的数 据。 也就是说, 目标实例在源物理机运行的过程中, 源物理机可以将目标实例生成的数据 同步至目标物理机中。 需要说明的是, 数据同步周期可以根据实际需要进行设置, 本实施例对此不做限定。 例如, 源物理机可以在目标实例生成数据后, 立即将数据同步至目标物理机。 可选 的, 目标实例在源物理机运行的过程中, 源物理机可以将目标实例生成的数据存 储至源物理机的云盘中,并可以通过数据拷贝进程将源物理机的云盘中的数据拷贝至目标 物理机的云盘中。 需要说明的是, 本实施例中, 源物理机可以通过专线网络, 向目标物理机同步目标实 例在源物理机中生成的数据, 使得网络稳定性较好、 且数据安全性较高。 专 线网络可以为, 源物理机所在的可用区、 与目标物理机所在的可用区之间的专用网 络线路。 为便于描述, 下文将源物理机所在的可用区记为源可用区, 将目标物理机所在的 可用区记为目标可用区。 源可用区中可以设置一台或多台物理机, 目标可用区中也可以设 置一台或多台物理机。 源可用区中的物理机与目标可用区中的物理机之间, 可以通过专线网络传输数据。 其 余设备无法通过专线网络传输数据。 本实施例 中, 实例迁移设备可以对源物理机进行监控、 并可以对源物理机所在的机房 进行监控, 以确定源物理机是否可以继续运行目标实例。 需要说明的是, 本实施例对源物 理机的监控方法和对源物理机所在的机房的监控方法不做限定, 具体实施过程中, 可以根 据实际需要设置相应的监控方法。 例如, 实例迁移设备可以监控源物理机的心跳信息, 若 源物理机的心跳信息异常, 可以确定源物理机发生故障、 且无法继续运行目标实例; 实例 迁移设备还可以监控源物理机所在的机房的供电是否正常,若源物理机所在的机房停止供 电, 可以确定源物理机无法继续运行目标实例。 S301, determine the target physical machine corresponding to the target instance to be migrated. The execution subject of the embodiment of the present disclosure may be an instance migration device, or an instance migration device set in the instance migration device. The instance migration device may be implemented by software, or by a combination of software and hardware. For ease of understanding, the following description uses the example of an instance migration device as the execution subject. In this embodiment, the target instance is currently located on the source physical machine. If the source physical machine is no longer able to run the target instance, the target physical machine corresponding to the target instance can be determined. For example, if the source physical machine is in a faulty state or the computer room where the source physical machine is located is awaiting migration, the target physical machine corresponding to the target instance can be determined. Both the source physical machine and the target physical machine can be electronic devices capable of running business instances. For example, both the source physical machine and the target physical machine can be servers or computers. The source physical machine and the target physical machine can be located in different availability zones. For example, the source physical machine can be a server in availability zone 1, and the target physical machine can be a server in availability zone 2. Availability zone 1 can be, for example, computer room 1, and availability zone 2 can be, for example, computer room 2. It should be understood that an availability zone can have one or more computer rooms. Multiple can be two or more. The target instance can be any business instance running on the source physical machine. For example, the target instance can be an ECS instance. The target physical machine can be a disaster recovery physical machine preconfigured for the target instance. In other words, the target physical machine can be a backup physical machine for running the target instance. In this embodiment, a preset correspondence may exist between the target instance and the target physical machine. During implementation, the target physical machine corresponding to the target instance can be determined based on the preset correspondence between the target instance and the target physical machine. In this embodiment, the source physical machine is configured to periodically synchronize data generated by the target instance on the source physical machine with the target physical machine. In other words, while the target instance is running on the source physical machine, the source physical machine can synchronize the data generated by the target instance to the target physical machine. It should be noted that the data synchronization period can be set according to actual needs and is not limited in this embodiment. For example, the source physical machine can synchronize the data to the target physical machine immediately after the target instance generates data. Optionally, while the target instance is running on the source physical machine, the source physical machine can store the data generated by the target instance on its cloud disk and copy the data from the source physical machine's cloud disk to the target physical machine's cloud disk through a data copy process. It should be noted that in this embodiment, the source physical machine can synchronize the data generated by the target instance on the source physical machine with the target physical machine via a dedicated network, ensuring better network stability and higher data security. The dedicated network can be a dedicated network line between the availability zone where the source physical machine is located and the availability zone where the target physical machine is located. For ease of description, the availability zone where the source physical machine is located is referred to as the source availability zone, and the availability zone where the target physical machine is located is referred to as the target availability zone. The source availability zone can contain one or more physical machines, and the target availability zone can also contain one or more physical machines. Data can be transmitted between physical machines in the source availability zone and physical machines in the target availability zone via the dedicated network. Other devices cannot transmit data via the dedicated network. In this embodiment, the instance migration device can monitor the source physical machine and the computer room where the source physical machine is located to determine whether the source physical machine can continue to run the target instance. It should be noted that this embodiment monitors the source physical machine. There are no specific restrictions on the monitoring methods for the source physical machine and the data center where the source physical machine resides. During implementation, you can configure the appropriate monitoring methods based on actual needs. For example, the instance migration device can monitor the heartbeat information of the source physical machine. If the heartbeat information of the source physical machine is abnormal, it can be determined that the source physical machine has failed and cannot continue to run the target instance. The instance migration device can also monitor the power supply of the data center where the source physical machine resides. If the power supply to the data center where the source physical machine resides is interrupted, it can be determined that the source physical machine cannot continue to run the target instance.

5302、 确定目标实例在目标物理机中的目标网络配置信息。 本实施例 中, 在目标物理机中创建目标实例之前, 可以确定目标实例在目标物理机中 的目标网络配置信息, 以便于根据网络配置信息在目标物理机中创建目标实例。 本实施例 中, 可以根据目标实例在源物理机中的源网络配置信息, 确定目标网络配置 信息。 具体 而言, 源网络配置信息可以包括目标实例在源物理机中的源网络地址, 目标网络 配置信息可以包括目标实例在目标物理机中的目标网络地址。 实例迁移设备可以, 根据源 网络地址确定目标网络地址。 目标网络地址可以与源网络地址相同。 需要说 明的是, 目标实例可以使用专有网络 ( virtual private cloud , VPC) 。 实例迁移 设备可 以从源物理机中, 获取目标实例的在 源物理机中使用 的专有网络互联 网协议 (Internet Protocol, IP) 地址 (即源网络地址) , 并可以将目标实例的在源物理机中使用 的专有网络互联网协议 IP地址, 确定为目标网络地址。 示例性的, 假设目标实例在源物理机中的专有网络 IP地址为 IP地址 1 , 则可以确定 目标网络地址为 IP地址 l o S302. Determine the target network configuration information of the target instance in the target physical machine. In this embodiment, before creating the target instance in the target physical machine, the target network configuration information of the target instance in the target physical machine can be determined to facilitate creation of the target instance in the target physical machine based on the network configuration information. In this embodiment, the target network configuration information can be determined based on the source network configuration information of the target instance in the source physical machine. Specifically, the source network configuration information can include the source network address of the target instance in the source physical machine, and the target network configuration information can include the target network address of the target instance in the target physical machine. The instance migration device can determine the target network address based on the source network address. The target network address can be the same as the source network address. It should be noted that the target instance can use a virtual private cloud (VPC). The instance migration device can obtain the target instance's private network Internet Protocol (IP) address (i.e., source network address) from the source physical machine and determine the target instance's private network IP address as the target network address. For example, assuming the target instance's private network IP address in the source physical machine is IP address 1, the target network address can be determined to be IP address 1.

5303、 基于目标物理机中的目标实例对应的预留资源、 以及目标网络配置信息, 在目 标物理机中创建目标实例。 目标物理机中的目标实例, 可以用于接替源物理机中的目标实例进行业务处理。 目标物理机中的目标实例对应的预留资源可以为,在目标物理机中为目标实例预留的 内存资源、 以及中央处理器资源 (central processing unit, CPU) 等。 本实施例 中, 实例迁移设备可以存储、 或获取目标实例的实例配置信息。 在目标实例 所在的源物理机发生故障后, 实例迁移设备可以根据目标实例的实例配置信息, 在目标实 例对应的预留资源中创建目标实例。 可选 的, 实例迁移设备还可以根据目标实例在源物理机中所占资源的资源占用信息, 请求目标物理机为目标实例配置预留资源。 具体 而言, 实例迁移设备可以确定目标实例在源物理机中所占资源的资源占用信息, 资源占用信息中包括多个资源类型、 以及各资源类型对应的历史资源占用量; 根据资源占 用信息确定各资源类型对应的预留资源量; 根据各资源类型对应的预留资源量, 向目标物 理机请求为目标实例预留资源。 资源 类型可以为内存资源类型、 或 CPU资源类型等。 针对任意一种资源 类型, 资源类型对应的历史资源占用量可以为, 目标实例在源物理 机中占用的该类型的资源量。 例如, 内存资源对应的历史资源占用量可以为, 目标实例在 源物理机中占用的内存资源量。 针对任 意一种资源类型, 资源类型对应的预留资源量可以为, 需要为目标实例预留的 该类型的资源量。 应该理解的是, 针对任意一种资源类型, 资源类型对应的预留资源量, 大于或等于资源类型对应的历史资源占用量。 在本实施例 中, 实例迁移设备可以确定待迁移的目标实例所对应的目标物理机; 可以 确定目标实例在目标物理机中的目标网络配置信息;可以基于目标物理机中的目标实例对 应的预留资源、 以及目标网络配置信息, 在目标物理机中创建目标实例。 上述方法中, 源 物理机可以将目标实例的数据同步至目标物理机, 目标物理机可以预先为目标实例配置预 留资源。 若源物理机无法继续运行目标实例, 实例迁移设备可以确定目标网络配置信息, 并可以根据目标网络配置信息、 以及目标实例对应的预留资源, 在目标物理机中创建目标 实例, 以实现目标实例的迁移。 通过上述方法, 无需同时维护两套功能相同的业务系统、 且数据无需双向同步, 降低了容灾复杂度。 另外, 源物理机可以实时向目标物理机同步目 标实例生成的数据; 源物理机无法运行目标实例后, 实例迁移设备可以立即在目标物理机 中创建目标实例, 使得业务连续性较好。 下 面, 在上述图 3所示实施例的基础上, 结合图 4, 对本公开实施例提供的实例迁移 方法进行详细说明。 图 4 为本公开示例性实施例提供的另一种实例迁移方法的流程示意图。 请参见图 4, 方法可以包括: S303. Create a target instance in the target physical machine based on the reserved resources corresponding to the target instance in the target physical machine and the target network configuration information. The target instance in the target physical machine can be used to take over business processing for the target instance in the source physical machine. The reserved resources corresponding to the target instance in the target physical machine can include memory resources and central processing unit (CPU) resources reserved for the target instance in the target physical machine. In this embodiment, the instance migration device can store or obtain instance configuration information of the target instance. After the source physical machine where the target instance resides fails, the instance migration device can create the target instance in the reserved resources corresponding to the target instance based on the instance configuration information of the target instance. Optionally, the instance migration device can also request the target physical machine to configure reserved resources for the target instance based on resource usage information of the target instance in the source physical machine. Specifically, the instance migration device can determine the resource occupancy information of the target instance on the source physical machine. The resource occupancy information includes multiple resource types and the historical resource occupancy corresponding to each resource type; determine the reserved resource amount corresponding to each resource type based on the resource occupancy information; and request the target physical machine to reserve resources for the target instance based on the reserved resource amount corresponding to each resource type. The resource type can be a memory resource type or a CPU resource type. For any resource type, the historical resource occupancy corresponding to the resource type can be: The amount of resources of that type occupied by the target instance on the source physical machine. For example, the historical resource usage corresponding to a memory resource can be the amount of memory resources occupied by the target instance on the source physical machine. For any resource type, the reserved resource amount corresponding to that resource type can be the amount of resources of that type that need to be reserved for the target instance. It should be understood that, for any resource type, the reserved resource amount corresponding to that resource type is greater than or equal to the historical resource usage corresponding to that resource type. In this embodiment, the instance migration device can determine the target physical machine corresponding to the target instance to be migrated; determine the target network configuration information of the target instance on the target physical machine; and create the target instance on the target physical machine based on the reserved resources and target network configuration information corresponding to the target instance on the target physical machine. In the above method, the source physical machine can synchronize the data of the target instance to the target physical machine, and the target physical machine can pre-configure reserved resources for the target instance. If the source physical machine is unable to continue running the target instance, the instance migration device can determine the target network configuration information and, based on the target network configuration information and the reserved resources corresponding to the target instance, create the target instance on the target physical machine to achieve migration of the target instance. This method eliminates the need to maintain two functionally identical business systems and eliminates the need for bidirectional data synchronization, reducing disaster recovery complexity. Furthermore, the source physical machine can synchronize data generated by the target instance to the target physical machine in real time. If the source physical machine is unable to run the target instance, the instance migration device can immediately create the target instance on the target physical machine, ensuring better business continuity. The following describes in detail the instance migration method provided by an embodiment of the present disclosure, based on the embodiment shown in FIG. 3 and in conjunction with FIG. 4 . FIG. 4 is a flow chart illustrating another instance migration method provided by an exemplary embodiment of the present disclosure. Referring to FIG. 4 , the method may include:

S401、 确定源物理机。 本公开实施例 的执行主体可以为实例迁移设备,也可以为设置在实例迁移设备中的实 例迁移装置。 实例迁移装置可以通过软件实现, 也可以通过软件和硬件的结合实现。 为了 便于理解, 在下文中, 以执行主体为实例迁移设备为例进行说明。 本实施例 中, 源物理机满足如下至少一项: 源物理机的物理机状态为预设状态, 源物 理机中的业务发生更新、 或源物理机所在的机房待迁移。 预设状 态可以包括故障状态、 以及满载状态等。 应该理解的是, 若源物理机的状态为 故障状态、 或者满载状态, 则源物理机无法继续运行目标实例。 本实施例 中, 实例迁移设备可以监控源物理机的物理机状态, 以确定源物理机的物理 机状态是否为预设状态。 具体 而言, 实例迁移设备可以监控源物理机的心跳消息、 以及源物理机的负载情况。 若源物理机的心跳消息正常, 则可以确定源物理机的物理机状态为正常状态。 若源物理机 的心跳消息异常, 则可以确定源物理机的物理机状态为故障状态。 若源物理机的负载大于 预设阈值, 则可以确定源物理机的物理机状态为满载状态。 若源物理机的负载小于或等于 预设阈值, 则可以确定源物理机的物理机状态为非满载状态。 源物理机中的业务发生更新的情况可以为, 源物理机需要将目标实例移出, 以释放目 标实例占用的资源。 本实施例中, 若源物理机中的业务发生更新, 源物理机可以向实例迁移设备发送实例 迁移请求, 以使实例迁移设备可以确定源物理机中的业务发生更新。 实例迁移请求中可以 包括源物理机的标识、 以及目标实例的标识等。 源物理机所在的机房待迁移的情况可以为, 源物理机所在的机房断电、 出现火灾、 或 水灾等意外情况。 本实施例中, 实例迁移设备可以对源物理机所在机房进行监控, 以确定源物理机所在 机房是否断电、 是否出现火灾、 以及是否出现水灾等情况。 例如, 实例迁移设备可以通过 电压传感器监控源物理机所在机房是否断电, 可以通过温度传感器或烟雾传感器监控源物 理机所在机房是否出现火灾,可以通过水位传感器监控源物理机所在机房是否出现水灾等。 S401: Determine the source physical machine. The execution entity of the disclosed embodiment may be an instance migration device, or an instance migration apparatus provided within the instance migration device. The instance migration apparatus may be implemented via software or a combination of software and hardware. For ease of understanding, the following description uses the instance migration device as an example. In this embodiment, the source physical machine satisfies at least one of the following conditions: the physical machine status of the source physical machine is in a preset state, a service on the source physical machine has been updated, or the computer room where the source physical machine is located is awaiting migration. Preset states may include a faulty state and a fully loaded state. It should be understood that if the source physical machine is in a faulty state or a fully loaded state, the source physical machine cannot continue to run the target instance. In this embodiment, the instance migration device may monitor the physical machine status of the source physical machine to determine whether the physical machine status of the source physical machine is in a preset state. Specifically, the instance migration device may monitor the heartbeat messages of the source physical machine and the load of the source physical machine. If the heartbeat messages of the source physical machine are normal, the physical machine status of the source physical machine may be determined to be normal. If the source physical machine's heartbeat message is abnormal, the source physical machine's physical machine status can be determined to be faulty. If the source physical machine's load is greater than a preset threshold, the source physical machine's physical machine status can be determined to be fully loaded. If the source physical machine's load is less than or equal to the preset threshold, the source physical machine's physical machine status can be determined to be partially loaded. Business updates on the source physical machine may require the source physical machine to remove the target instance to free up the target instance. The resources occupied by the target instance. In this embodiment, if a service on the source physical machine is updated, the source physical machine can send an instance migration request to the instance migration device so that the instance migration device can determine the service update on the source physical machine. The instance migration request may include the identifier of the source physical machine and the identifier of the target instance. The situation in which the computer room where the source physical machine is located is to be migrated may be due to an unexpected situation such as a power outage, fire, or flood. In this embodiment, the instance migration device can monitor the computer room where the source physical machine is located to determine whether the source physical machine is experiencing a power outage, fire, or flood. For example, the instance migration device can monitor the computer room where the source physical machine is located using a voltage sensor to determine whether the source physical machine is experiencing a power outage, fire, or flood. It can monitor the computer room where the source physical machine is located using a temperature sensor or smoke sensor to determine whether the source physical machine is experiencing a fire, or flooding using a water level sensor.

5402、 将源物理机中运行的实例确定为目标实例。 本实施例中, 源物理机中可以运行至少一个业务实例。 目标实例可以为, 源物理机中 运行的任意一个业务实例。 需要说明的是, 源物理机中每个业务实例的迁移方法相同, 本公开实施例以源物理机 中任意一个业务实例为例, 对实例迁移方法进行说明。 S402. Determine the instance running on the source physical machine as the target instance. In this embodiment, the source physical machine may be running at least one service instance. The target instance may be any service instance running on the source physical machine. It should be noted that the migration method for each service instance on the source physical machine is the same. This embodiment uses any service instance on the source physical machine as an example to illustrate the instance migration method.

5403、 根据目标实例的目标实例标识, 确定目标实例对应的目标物理机。 目标实例标识可以为,目标实例的名称、或者目标实例的唯一编码 ( identity document, ID) 等。 应该理解的是, 目标实例标识可以用于唯一标识目标实例。 本实施例中, 可以为源物理中每个业务实例配置容灾物理机, 若源物理机无法运行任 意一个业务实例, 可以将该业务实例迁移至相应的容灾物理机中。针对源物理中任意一个 业务实例, 为业务实例配置的容灾物理机可以为, 业务实例对应的物理机。 本实施例中, 可以设置源物理机中各个实例、 与每个实例对应的物理机之间的预设对 应关系, 预设对应关系中可以包括多个实例标识、 以及每个实例标识对应的物理机。 实例 迁移设备中可以存储上述预设对应关系。 具体 实施过程中, 实例迁移设备可以从本地获取预设对应关系, 预设对应关系中包括 多个实例标识、 以及每个实例标识对应的物理机; 根据目标实例标识和预设对应关系, 确 定目标物理机。 具体 而言, 实例迁移设备可以在预设对应关系中查找目标实例标识, 并可以将预设对 应关系中、 目标实例标识对应的物理机, 确定为目标物理机。 S403. Determine the target physical machine corresponding to the target instance based on the target instance identifier of the target instance. The target instance identifier can be the name of the target instance or a unique ID of the target instance. It should be understood that the target instance identifier can be used to uniquely identify the target instance. In this embodiment, a disaster recovery physical machine can be configured for each service instance in the source physical machine. If the source physical machine is unable to run any service instance, the service instance can be migrated to the corresponding disaster recovery physical machine. For any service instance in the source physical machine, the disaster recovery physical machine configured for the service instance can be the physical machine corresponding to the service instance. In this embodiment, a preset correspondence can be set between each instance in the source physical machine and the physical machine corresponding to each instance. The preset correspondence can include multiple instance identifiers and the physical machine corresponding to each instance identifier. The instance migration device can store the preset correspondence. During implementation, the instance migration device can obtain a preset correspondence from a local machine. The preset correspondence includes multiple instance identifiers and the physical machine corresponding to each instance identifier. The target physical machine is determined based on the target instance identifier and the preset correspondence. Specifically, the instance migration device can search for the target instance identifier in the preset correspondence and determine the physical machine corresponding to the target instance identifier in the preset correspondence as the target physical machine.

5404、 确定目标实例在源物理机中的源网络配置信息。 目标实例在源物理机中的源网络配置信息可以为, 目标实例在源物理机中运行时, 使 用的专有网络 IP地址等。 本实施例中, 实例迁移设备可以预先从源物理机获取目标实例的源网络配置信息, 并 可以存储目标实例的源网络配置信息。 具体实施过程中, 实例迁移设备可以根据目标实例 标识, 确定目标实例在源物理机中的源网络配置信息。 5405、 根据源网络配置信息, 确定目标网络配置信息。 目标网络配置信息可以为, 目标实例在目标物理机中运行时, 使用的专有网络 IP地 址等。 本实施例 中, 源网络配置信息包括目标实例在源物理机中的源网络地址, 目标网络配 置信息包括目标实例在目标物理机中的目标网络地址。 根据源网络配置信息, 确定目标网 络配置信息时, 可以将目标网络地址确定为源网络地址。 具体 而言, 实例迁移设备可以将目标物理机中目标实例的专有网络 IP地址配置为目 标网络地址。 5404. Determine the source network configuration information of the target instance in the source physical machine. The source network configuration information of the target instance in the source physical machine may include, for example, the private network IP address used by the target instance when running in the source physical machine. In this embodiment, the instance migration device may pre-acquire the source network configuration information of the target instance from the source physical machine and may store the source network configuration information of the target instance. In a specific implementation, the instance migration device may determine the source network configuration information of the target instance in the source physical machine based on the target instance identifier. S405. Determine the target network configuration information based on the source network configuration information. The target network configuration information may include, for example, the private network IP address used by the target instance when running on the target physical machine. In this embodiment, the source network configuration information includes the source network address of the target instance on the source physical machine, and the target network configuration information includes the target network address of the target instance on the target physical machine. When determining the target network configuration information based on the source network configuration information, the target network address may be determined as the source network address. Specifically, the instance migration device may configure the private network IP address of the target instance on the target physical machine as the target network address.

5406、 确定目标实例对应的实例配置信息。 目标实例对应的实例配置信息可以为, 创建目标实例时所需的信息。 例如, 目标实例 对应的实例配置信息可以包括, 目标实例的虚拟 CPU核数、以及目标实例的网络类型等。 本实施例 中, 实例迁移设备可以存储目标实例的实例配置信息。 实例迁移设备可以根 据目标实例的目标实例标识, 确定目标实例对应的配置信息。 S406. Determine instance configuration information corresponding to the target instance. The instance configuration information corresponding to the target instance may be information required when creating the target instance. For example, the instance configuration information corresponding to the target instance may include the number of virtual CPU cores of the target instance and the network type of the target instance. In this embodiment, the instance migration device may store the instance configuration information of the target instance. The instance migration device may determine the configuration information corresponding to the target instance based on the target instance identifier of the target instance.

5407、 根据实例配置信息、 以及目标网络配置信息, 在目标物理机的预留资源中创建 目标实例。 本实施例 中, 实例迁移设备可以向目标物理机发送实例创建请求, 实例创建请求包括 实例配置信息、 目标网络配置信息、 以及目标实例的目标实例标识, 目标实例标识用于目 标物理机确定预留资源; 接收目标物理机发送的实例创建成功响应, 实例创建成功响应用 于指示在目标物理机在预留资源中成功创建目标实例。 具体 而言, 实例迁移设备可以向目标设备发送目标实例标识、 目标网络配置信息、 以 及目标实例对应的实例配置信息。 目标物理机可以根据目标实例标识, 确定目标实例的预 留资源; 可以根据目标网络配置信息、 以及目标实例对应的实例配置信息, 在目标实例的 预留资源中创建目标实例; 并可以在创建完成后向实例迁移设备发送创建成功响应, 以使 实例迁移设备确定目标实例迁移成功。 可选 的, 实例迁移设备还可以在源物理机中注销目标实例。 在本实施例 中, 实例迁移设备可以确定源物理机, 并可以将源物理中运行的实例确定 为目标实例; 可以根据目标实例的目标实例标识, 确定目标实例对应的目标物理机; 可以 确定目标实例在源物理机中的源网络配置信息, 并可以根据源网络配置信息, 确定目标网 络配置信息; 可以确定目标实例对应的实例配置信息, 并根据实例配置信息、 以及目标网 络配置信息, 在目标物理机的预留资源中创建目标实例。 上述方法中, 目标物理机可以在 目标实例的预留资源中创建目标实例。 目标物理机中创建的目标实例的 IP地址, 可以与 源物理中的目标实例的 IP地址相同。通过上述方法,业务端可以不感知目标实例的迁移, 并可以继续请求目标物理机中的目标实例进行业务处理, 降低了容灾复杂度。 在上述任一实施例 的基础上, 下面, 结合图 5, 通过具体的示例对本公开实施例提供 的实例迁移方法进行说明。 图 5为本公开示例性实施例提供的一种实例迁移示意图。 请参见图 5, 机房 A中可以 设置服务器 1 , 服务器 1上可以运行云盘 1和 ECS实例 1。 机房 B中可以设置服务器 2, 艮务器 2上可以运行云盘 2。 S407. Create the target instance in the reserved resources of the target physical machine based on the instance configuration information and the target network configuration information. In this embodiment, the instance migration device may send an instance creation request to the target physical machine. The instance creation request includes the instance configuration information, the target network configuration information, and the target instance identifier of the target instance. The target instance identifier is used by the target physical machine to determine the reserved resources. The instance migration device then receives an instance creation success response from the target physical machine. The instance creation success response indicates that the target instance has been successfully created in the reserved resources on the target physical machine. Specifically, the instance migration device may send the target instance identifier, the target network configuration information, and the instance configuration information corresponding to the target instance to the target device. The target physical machine may determine the reserved resources of the target instance based on the target instance identifier. Create the target instance in the reserved resources of the target instance based on the target network configuration information and the instance configuration information corresponding to the target instance. After the creation is complete, the instance migration device may send a creation success response to the instance migration device, allowing the instance migration device to confirm that the migration of the target instance has been successful. Optionally, the instance migration device may also deregister the target instance from the source physical machine. In this embodiment, the instance migration device can determine a source physical machine and identify the instance running on the source physical machine as the target instance; determine the target physical machine corresponding to the target instance based on the target instance's target instance identifier; determine the source network configuration information of the target instance on the source physical machine and determine the target network configuration information based on the source network configuration information; determine the instance configuration information corresponding to the target instance and, based on the instance configuration information and the target network configuration information, create the target instance within the reserved resources of the target physical machine. In the above method, the target physical machine can create the target instance within the reserved resources of the target instance. The IP address of the target instance created on the target physical machine can be the same as the IP address of the target instance on the source physical machine. With this method, the service end is unaware of the migration of the target instance and can continue to request the target instance on the target physical machine to perform service processing, reducing disaster recovery complexity. Based on any of the above embodiments, the instance migration method provided by the present disclosure is described below using a specific example with reference to FIG5 . FIG5 is a schematic diagram of an example migration provided by an exemplary embodiment of the present disclosure. Referring to FIG5 , server 1 can be set up in computer room A, on which cloud disk 1 and ECS instance 1 can run. Server 2 can be set up in computer room B, on which cloud disk 2 can run.

ECS 实例 1在服务器 1中正常运行时, ECS实例 1生成的业务数据可以存储至云盘 1 中。 同时, 服务器 1可以周期性将 ECS实例 1生成的业务数据同步至服务器 2的云盘 2 中, 以使服务器 2可以获取 ECS实例 1运行时产生的业务数据。 服 务器 2中可以有, 为 ECS实例 1配置的预留资源。 预留资源可以包括预留内存资 源、 以及预留 CPU资源。 若意外原因导致机房 A停止运行, 可以根据上述任一实施例提 供的实例迁移方法, 在服务器 2中创建 ECS实例 1 , 服务器 2中 ECS实例 1的 IP地址可 以与, 服务器 1中 ECS实例 1的 IP地址相同。 例如, 意外原因可以为火灾、 或水灾等。 通过上述方法, 可以实现 ECS实例 1的迁移、 并可以使服务器 2中的 ECS实例 1可以接 替服务器 1中的 ECS实例 1进行业务处理。 在本实施例 中,服务器 1可以将 ECS实例 1的业务数据同步至服务器 2中, 服务器 2 可以预先为 ECS实例 1配置预留资源。若服务器 1发生故障,可以在服务器 2中创建 ECS 实例 1 , 以实现 ECS实例 1 的迁移。 上述方法中, 无需同时维护两套功能相同的业务系 统、 且数据无需双向同步, 降低了容灾复杂度。 图 6为本公开示例性实施例提供的一种实例迁移 装置的结构示意图。请参见图 6 , 所述实例迁移装置 10包括: 确定模块 11和创建模块 12, 其中, 所述确定模块 11 用于, 确定待迁移的目标实例所对应的目标物理机, 所述目标实例 当前位于源物理机,所述源物理机用于周期性向所述目标物理机同步所述目标实例在所述 源物理机中生成的数据; 所述确定模块 11还用于, 确定所述目标实例在所述目标物理机中的目标网络配置信 息; 所述创建模块 12用于, 基于所述目标物理机中的所述目标实例对应的预留资源、 以 及所述目标网络配置信息, 在所述目标物理机中创建所述目标实例; 所述目标物理机中的 所述目标实例用于接替所述源物理机中的目标实例进行业务处理。 本公开实施例提供的实例 迁移装置可以执行上述方法 实施例所示的技术方案, 其 实现原理 以及有益效果类似, 此处不再进行赘述。 在一种可能的实施方式 中, 所述创建模块 12具体用于, 确定所述 目标实例对应的实例配置信息; 根据所述实例配置信 息, 在所述目标物理机的所述预留资源中创建所述目标实例。 在一种可 能的实现方式中, 所述创建模块 12具体用于, 向所述目标物理机发送实例创建请求, 所述实例创建请求包括所述实例配置信息、 所 述目标网络配置信息、 以及所述目标实例的目标实例标识, 所述目标实例标识用于所述目 标物理机确定所述预留资源; 接收所述 目标物理机发送的实例创建成功响应,所述实例创建成功响应用于指示在所 述目标物理机在所述预留资源中成功创建所述目标实例。 在一种可能的实现方式 中, 所述确定模块 11具体用于, 确定所述 目标实例在所述源物理机中的源网络配置信息; 根据所述源 网络配置信息, 确定所述目标网络配置信息。 在一种可能的实现方式 中,所述源网络配置信息包括所述目标实例在所述源物理机中 的源网络地址,所述目标网络信息包括所述目标实例在所述目标物理机中的目标网络地址; 所述确定模块 11具体用于, 将所述 目标网络地址设置为所述源网络地址。 在一种可能的实现方式 中, 所述确定模块 11具体用于, 确定所述源物理机, 所述源物理机满足如下至少一项: 所述源物理机的物理机状态为 预设状态, 所述源物理机中的业务发生更新、 或所述源物理机所在的机房待迁移; 将所述源物理机 中运行的实例确定为所述目标实例; 根据所述 目标实例的目标实例标识, 确定所述目标实例对应的目标物理机。 在一种可能的实现方式 中, 所述确定模块 11具体用于, 获取预设对应关 系, 所述预设对应关系中包括多个实例标识、 以及每个实例标识对应 的物理机; 根据所述 目标实例标识和所述预设对应关系, 确定所述目标物理机。 本公开实施例提供的实例 迁移装置可以执行上述方法 实施例所示的技术方案, 其 实现原理 以及有益效果类似, 此处不再进行赘述。 图 7为本公开示例性实施例提供的 另一种实例迁移装置的结构示 意图。 在图 6的 基础上, 实例迁移装置 10还可以包括发送模块 13和注销模块 14, 其中, 所述确定模块 11还用于, 确定所述目标实例在所述源物理机中所占资源的资源占用 信息, 所述资源占用信息中包括多个资源类型、 以及各资源类型对应的历史资源占用量; 所述确定模块 11还用于,根据所述资源占用信息确定各资源类型对应的预留资源量; 所述发送模块 13 用于, 根据各资源类型对应的预留资源量, 向所述目标物理机请求 为所述目标实例预留资源。 在一种可能的实现方式 中, 所述注销模块 14用于, 在所述源物理机 中注销所述目标实例。 在一种可能的实现方式 中, 所述源物理机和所述 目标物理机设置于不同可用区。 在一种可能的实现方式 中, 所述 源物理机用于通过专线网络周期性向所述目标物理机同步所述 目标实例在所述 源物理机中生成的数据。 本公开实施例提供的实例 迁移装置可以执行上述方法 实施例所示的技术方案, 其 实现原理 以及有益效果类似, 此处不再进行赘述。 图 8为本公开示例性实施例提供一种实例迁移设备的结构示意图。 请参见图 8, 实例 迁移设备 20可以包括处理器 21和存储器 22。 示例性地, 处理器 21、 存储器 22, 各部分 之间通过总线 23相互连接。 所述存储器 22存储计算机执行指令; 所述处理器 21执行所述存储器 22存储的计算机执行指令, 使得所述处理器 21执行 如上述方法实施例所示的方法。 图 8中所示的实例迁移设备可以为服务器、 或者计算机等电子设备。 本公开实施例提供的 实例迁移设备可以执行上述方法实施例所 示的技术方案, 其 实现原理 以及有益效果类似, 此处不再进行赘述。 相应地, 本公开实施例提供一种计算机可读存储介质 , 所述计算机可读存储介质 中存储有计算 机执行指令, 当所述计算机执行指令被处理器执行时用于 实现上述方法 实施例所述 的方法。 相应地, 本公开实施例还可提供一种计算机程序产品 , 包括计算机程序, 该计算 机程序被处理 器执行时, 可实现上述方法实施例所示的方法。 本领域 内的技术人员应明白, 本公开的实施例可提供为方法、 系统、 或计算机程序产 品。 因此, 本公开可采用完全硬件实施例、 完全软件实施例、 或结合软件和硬件方面的实 施例的形式。 而且, 本公开可采用在一个或多个其中包含有计算机可用程序代码的计算机 可用存储介质 (包括但不限于磁盘存储器、 CD-ROM, 光学存储器等) 上实施的计算机程 序产品的形式。 本公开是参照根据本公开实施例 的方法、 设备 (系统) 、 和计算机程序产品的流程图 和/ 或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流 程和 /或方框、 以及流程图和 /或方框图中的流程和 /或方框的结合。 可提供这些计算机 程序指令到通用计算机、 专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器 以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用 于实现在流程图一个流程或 多个流程和 /或方框图一个方框或多个方框中指定的功能的 装置。 这 些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备 以特定方 式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装 置的制造品,该指令装置实现在流程图一个流程或多个流程和 /或方框图一个方框或多个 方框中指定的功能。 这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机 或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他 可编程设备上执行的指令提供 用于实现在流程图一个流程或多个流程和 /或方框图一个 方框或多个方框中指定的功能的步骤。 在一个典型 的配置中, 计算设备包括一个或多个处理器 (CPU)、输入 /输出接口、 网络 接口和内存。 内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器 (RAM) 和 /或非 易失性内存等形式, 如只读存储器 (ROM) 或闪存(flash RAM) o 内存是计算机可读介质的 示例。 计算机可读介质 包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技 术来实现信息存储。 信息可以是计算机可读指令、 数据结构、 程序的模块或其他数据。 计 算机的存储介质的例子包括,但不限于相变内存 (PRAM),静态随机存取存储器 (SRAM)、 动态随机存取存储器 (DRAM)、其他类型的随机存取存储器 (RAM)、只读存储器 (ROM)、 电可擦除可编程只读存储器 (EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储 器 (CD-ROM)、 数字多功能光盘 (DVD) 或其他光学存储、 磁盒式磁带, 磁带磁盘存储或 其他磁性存储设备或任何其他非传输介质, 可用于存储可以被计算设备访问的信息。按照 本文中的界定, 计算机可读介质不包括暂存电脑可读媒体 (transitory media), 如调制的数 据信号和载波。 还 需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含, 从而使得包括一系列要素的过程、 方法、 商品或者设备不仅包括那些要素, 而且还包括没 有明确列出的其他要素, 或者是还包括为这种过程、 方法、 商品或者设备所固有的要素。 在没有更多限制的情况下, 由语句 “包括一个 ..... ”限定的要素, 并不排除在包括所述要素 的过程、 方法、 商品或者设备中还存在另外的相同要素。 以上所述仅为本公开的实施例而已,并不用于限制本公开。对于本领域技术人员来说, 本公开可以有各种更改和变化。凡在本公开的精神和原理之内所作的任何修改、等同替换、 改进等, 均应包含在本公开的权利要求范围之内。 When ECS instance 1 is operating normally on server 1, the business data generated by ECS instance 1 can be stored in cloud disk 1. Server 1 can also periodically synchronize the business data generated by ECS instance 1 to cloud disk 2 on server 2, allowing server 2 to access the business data generated by ECS instance 1 during operation. Server 2 can have reserved resources configured for ECS instance 1. Reserved resources can include reserved memory resources and reserved CPU resources. If computer room A ceases operation due to an unexpected cause, ECS instance 1 can be created on server 2 using the instance migration method provided in any of the above embodiments. The IP address of ECS instance 1 on server 2 can be the same as the IP address of ECS instance 1 on server 1. For example, the unexpected cause could be a fire or flood. Using the above method, ECS instance 1 can be migrated and the ECS instance 1 on server 2 can take over business processing from the ECS instance 1 on server 1. In this embodiment, server 1 can synchronize the business data of ECS instance 1 to server 2, and server 2 can pre-configure reserved resources for ECS instance 1. If server 1 fails, ECS instance 1 can be created on server 2 to migrate ECS instance 1. This method eliminates the need to maintain two functionally identical business systems simultaneously, and bidirectional data synchronization is not required, reducing disaster recovery complexity. Figure 6 is a schematic diagram of the structure of an instance migration apparatus provided in an exemplary embodiment of the present disclosure. Referring to Figure 6 , the instance migration apparatus 10 includes a determination module 11 and a creation module 12. The determination module 11 is configured to determine a target physical machine corresponding to a target instance to be migrated, where the target instance is currently located on a source physical machine, and the source physical machine is configured to periodically synchronize data generated by the target instance on the source physical machine with the target physical machine. The determination module 11 is also configured to determine target network configuration information for the target instance on the target physical machine. The creation module 12 is configured to create the target instance on the target physical machine based on the reserved resources corresponding to the target instance on the target physical machine and the target network configuration information. The target instance on the target physical machine is configured to take over business processing from the target instance on the source physical machine. The instance migration device provided by the embodiment of the present disclosure can execute the technical solution shown in the above-mentioned method embodiment, and its implementation principle and beneficial effects are similar, so they will not be repeated here. In one possible implementation, the creation module 12 is specifically used to determine the instance configuration information corresponding to the target instance; according to the instance configuration information, create the target instance in the reserved resources of the target physical machine. In a possible implementation, the creation module 12 is specifically used to send an instance creation request to the target physical machine, and the instance creation request includes the instance configuration information, the target network configuration information, and the target instance identifier of the target instance, and the target instance identifier is used by the target physical machine to determine the reserved resources; Receive an instance creation success response sent by the target physical machine, the instance creation success response indicating that the target instance has been successfully created in the reserved resources on the target physical machine. In one possible implementation, the determination module 11 is specifically configured to determine source network configuration information of the target instance in the source physical machine; and determine the target network configuration information based on the source network configuration information. In one possible implementation, the source network configuration information includes a source network address of the target instance in the source physical machine, and the target network information includes a target network address of the target instance in the target physical machine. The determination module 11 is specifically configured to set the target network address as the source network address. In one possible implementation, the determination module 11 is specifically configured to determine the source physical machine, where the source physical machine satisfies at least one of the following: a physical machine state of the source physical machine is a preset state, a service on the source physical machine has been updated, or the computer room where the source physical machine is located is to be migrated; determine the instance running on the source physical machine as the target instance; and determine the target physical machine corresponding to the target instance based on the target instance identifier of the target instance. In one possible implementation, the determination module 11 is specifically configured to obtain a preset correspondence, wherein the preset correspondence includes multiple instance identifiers and the physical machine corresponding to each instance identifier; and determine the target physical machine based on the target instance identifier and the preset correspondence. The instance migration apparatus provided in the embodiments of the present disclosure can implement the technical solutions described in the above-mentioned method embodiments. The implementation principles and beneficial effects are similar and are not further described here. FIG7 is a schematic structural diagram of another instance migration apparatus provided in the exemplary embodiments of the present disclosure. Based on FIG6 , the instance migration apparatus 10 may further include a sending module 13 and a deregistration module 14. The determination module 11 is further configured to determine resource occupancy information of resources occupied by the target instance on the source physical machine, wherein the resource occupancy information includes multiple resource types and the historical resource occupancy corresponding to each resource type; the determination module 11 is further configured to determine the reserved resource amount corresponding to each resource type based on the resource occupancy information; and the sending module 13 is configured to request the target physical machine to reserve resources for the target instance based on the reserved resource amount corresponding to each resource type. In one possible implementation, the deregistration module 14 is configured to deregister the target instance in the source physical machine. In one possible implementation, the source physical machine and the target physical machine are located in different availability zones. In one possible implementation, the source physical machine is configured to periodically synchronize data generated by the target instance in the source physical machine to the target physical machine via a dedicated network. The instance migration apparatus provided in the embodiment of the present disclosure may implement the technical solution shown in the above method embodiment, wherein The implementation principles and beneficial effects are similar and will not be further described here. Figure 8 is a schematic diagram of the structure of an instance migration device provided in an exemplary embodiment of the present disclosure. Referring to Figure 8 , the instance migration device 20 may include a processor 21 and a memory 22. For example, the processor 21 and the memory 22 are interconnected via a bus 23. The memory 22 stores computer-executable instructions; the processor 21 executes the computer-executable instructions stored in the memory 22, causing the processor 21 to perform the method described in the above method embodiment. The instance migration device shown in Figure 8 may be an electronic device such as a server or a computer. The instance migration device provided in the embodiments of the present disclosure can implement the technical solutions described in the above method embodiments. Its implementation principles and beneficial effects are similar and will not be further described here. Accordingly, the embodiments of the present disclosure provide a computer-readable storage medium storing computer-executable instructions. When executed by a processor, the computer-executable instructions are used to implement the method described in the above method embodiment. Accordingly, the embodiments of the present disclosure may also provide a computer program product comprising a computer program. When executed by a processor, the computer program can implement the method described in the above method embodiment. Those skilled in the art will appreciate that the embodiments of the present disclosure may be provided as methods, systems, or computer program products. Therefore, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present disclosure may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROMs, optical storage, etc.) containing computer-usable program code. The present disclosure is described with reference to flowcharts and/or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present disclosure. It should be understood that each process and/or block in the flowcharts and/or block diagrams, as well as combinations of processes and/or blocks in the flowcharts and/or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, such that execution of the instructions by the processor of the computer or other programmable data processing device generates means for implementing the functions specified in one or more processes in the flowcharts and/or one or more blocks in the block diagrams. These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device that implements the functions specified in one or more processes of the flowchart and/or one or more blocks of the block diagram. These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes of the flowchart and/or one or more blocks of the block diagram. In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory. Memory may include non-volatile memory in the form of random access memory (RAM) and/or non-volatile memory such as read-only memory (ROM) or flash memory. Memory is an example of a computer-readable medium. Computer-readable media, including both permanent and non-permanent, removable and non-removable media, can implement information storage using any method or technology. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices, or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory media such as modulated data signals and carrier waves. It should also be noted that the terms "comprises,""comprising," or any other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements may include not only those elements but also other elements not expressly listed or inherent to such process, method, article, or apparatus. In the absence of further limitations, elements defined by the phrase "comprising a..." do not preclude the presence of other identical elements in the process, method, product, or device comprising the elements. The foregoing description is merely an embodiment of the present disclosure and is not intended to limit the present disclosure. Persons skilled in the art will readily appreciate that various modifications and variations of the present disclosure are possible. Any modifications, equivalent substitutions, improvements, and the like made within the spirit and principles of the present disclosure are intended to be encompassed by the claims of the present disclosure.

Claims

权 利 要 求 书 Claims 1、 一种实例迁移方法, 其中, 包括: 确定待迁移的 目标实例所对应的目标物理机, 所述目标实例当前位于源物理机, 所述 源物理机用于周期性向所述 目标物理机同步所述目标实例在所述源物理机中生成的数据; 确定所述 目标实例在所述目标物理机中的目标网络配置信息; 基于所述 目标物理机中的所述目标实例对应的预留资源、 以及所述目标网络配置信息 , 在所述目标物理机中创建所述目标实例;所述目标物理机中的所述目标实例用于接替所述 源物理机中的目标实例进行业务处理。 1. An instance migration method, comprising: determining a target physical machine corresponding to a target instance to be migrated, wherein the target instance is currently located on a source physical machine, and the source physical machine is used to periodically synchronize data generated by the target instance in the source physical machine to the target physical machine; determining target network configuration information of the target instance in the target physical machine; creating the target instance in the target physical machine based on reserved resources corresponding to the target instance in the target physical machine and the target network configuration information; and the target instance in the target physical machine is used to take over business processing from the target instance in the source physical machine. 2、 根据权利要求 1所述的方法, 其中, 基于所述目标物理机中的所述目标实例对应 的预留资源、以及所述目标网络配置信息,在所述目标物理机中创建所述目标实例,包括: 确定所述 目标实例对应的实例配置信息; 根据所述实例配置信 息、 以及所述目标网络配置信息, 在所述目标物理机的所述预留 资源中创建所述目标实例。 2. The method according to claim 1, wherein creating the target instance in the target physical machine based on the reserved resources corresponding to the target instance in the target physical machine and the target network configuration information comprises: determining instance configuration information corresponding to the target instance; and creating the target instance in the reserved resources of the target physical machine according to the instance configuration information and the target network configuration information. 3、 根据权利要求 2所述的方法, 其中, 根据所述实例配置信息、 以及所述目标网络 配置信息, 在所述目标物理机的所述预留资源中创建所述目标实例, 包括: 向所述目标物理机发送实例创建请求, 所述实例创建请求包括所述实例配置信息、 所 述目标网络配置信息、 以及所述目标实例的目标实例标识, 所述目标实例标识用于所述目 标物理机确定所述预留资源; 接收所述 目标物理机发送的实例创建成功响应,所述实例创建成功响应用于指示在所 述目标物理机在所述预留资源中成功创建所述目标实例。 3. The method according to claim 2, wherein, based on the instance configuration information and the target network configuration information, creating the target instance in the reserved resources of the target physical machine comprises: sending an instance creation request to the target physical machine, the instance creation request including the instance configuration information, the target network configuration information, and a target instance identifier of the target instance, the target instance identifier being used by the target physical machine to determine the reserved resources; and receiving an instance creation success response sent by the target physical machine, the instance creation success response being used to indicate that the target instance is successfully created in the reserved resources on the target physical machine. 4、根据权利要求 1-3任一项所述的方法, 其中,确定所述目标实例在所述目标物理机 中的目标网络配置信息, 包括: 确定所述 目标实例在所述源物理机中的源网络配置信息; 根据所述 源网络配置信息, 确定所述目标网络配置信息。 4. The method according to any one of claims 1 to 3, wherein determining the target network configuration information of the target instance in the target physical machine comprises: determining the source network configuration information of the target instance in the source physical machine; and determining the target network configuration information based on the source network configuration information. 5、 根据权利要求 4所述的方法, 其中, 所述源网络配置信息包括所述目标实例在所 述源物理机中的源网络地址,所述目标网络信息包括所述目标实例在所述目标物理机中的 目标网络地址; 根据所述源网络配置信息, 确定所述目标网络配置信息, 包括: 将所述 目标网络地址设置为所述源网络地址。 5. The method according to claim 4, wherein the source network configuration information includes a source network address of the target instance in the source physical machine, and the target network information includes a target network address of the target instance in the target physical machine; determining the target network configuration information based on the source network configuration information includes: setting the target network address to the source network address. 6、根据权利要求 1-5任一项所述的方法, 其中,确定待迁移的目标实例所对应的目标 物理机, 包括: 确定所述源物理机, 所述源物理机满足如下至少一项: 所述源物理机的物理机状态为 预设状态, 所述源物理机中的业务发生更新、 或所述源物理机所在的机房待迁移; 将所述 源物理机中运行的实例确定为所述目标实例; 根据所述 目标实例的目标实例标识, 确定所述目标实例对应的目标物理机。 6. The method according to any one of claims 1 to 5, wherein determining the target physical machine corresponding to the target instance to be migrated comprises: determining the source physical machine, where the source physical machine satisfies at least one of the following: the physical machine state of the source physical machine is a preset state, the business in the source physical machine is updated, or the computer room where the source physical machine is located is to be migrated; determining the instance running in the source physical machine as the target instance; and determining the target physical machine corresponding to the target instance based on the target instance identifier of the target instance. 7、 根据权利要求 6所述的方法, 其中, 根据所述目标实例的目标实例标识, 确定所 述目标实例对应的目标物理机, 包括: 获取预设对应 关系, 所述预设对应关系中包括多个实例标识、 以及每个实例标识对应 的物理机; 根据所述 目标实例标识和所述预设对应关系, 确定所述目标物理机。 7. The method according to claim 6, wherein the target instance is determined according to the target instance identifier of the target instance. The method further comprises: obtaining a preset correspondence relationship, wherein the preset correspondence relationship includes multiple instance identifiers and a physical machine corresponding to each instance identifier; and determining the target physical machine based on the target instance identifier and the preset correspondence relationship. 8、 根据权利要求 1-7任一项所述的方法, 其中, 所述方法还包括: 确定所述 目标实例在所述源物理机中所占资源的资源占用信息,所述资源占用信息中 包括多个资源类型、 以及各资源类型对应的历史资源占用量; 根据所述资 源占用信息确定各资源类型对应的预留资源量; 根据各资 源类型对应的预留资源量, 向所述目标物理机请求为所述目标实例预留资源。8. The method according to any one of claims 1 to 7, wherein the method further comprises: determining resource occupancy information of resources occupied by the target instance in the source physical machine, the resource occupancy information including multiple resource types and historical resource occupancy corresponding to each resource type; determining a reserved resource amount corresponding to each resource type based on the resource occupancy information; and requesting the target physical machine to reserve resources for the target instance based on the reserved resource amount corresponding to each resource type. 9、 根据权利要求 1-8任一项所述的方法, 其中, 所述方法还包括: 在所述 源物理机中注销所述目标实例。 9. The method according to any one of claims 1 to 8, further comprising: deregistering the target instance in the source physical machine. 10、 根据权利要求 1-9任一项所述的方法, 其中, 所述 源物理机和所述目标物理机设置于不同可用区。 10. The method according to any one of claims 1 to 9, wherein the source physical machine and the target physical machine are set in different availability zones. 11、根据权利要求 1-10任一项所述的方法, 其中, 所述源物理机用于通过专线网络周 期性向所述目标物理机同步所述目标实例在所述源物理机中生成的数据。 11. The method according to any one of claims 1 to 10, wherein the source physical machine is used to periodically synchronize data generated by the target instance in the source physical machine to the target physical machine through a dedicated network. 12、 一种实例迁移装置, 其中, 所述装置包括: 确定模块和创建模块, 其中, 所述确定模块 用于, 确定待迁移的目标实例所对应的目标物理机, 所述目标实例当前 位于源物理机,所述源物理机用于周期性向所述目标物理机同步所述目标实例在所述源物 理机中生成的数据; 所述确定模块还 用于, 确定所述目标实例在所述目标物理机中的目标网络配置信息; 所述创建模块 用于, 基于所述目标物理机中的所述目标实例对应的预留资源、 以及所 述目标网络配置信息, 在所述目标物理机中创建所述目标实例; 所述目标物理机中的所述 目标实例用于接替所述源物理机中的目标实例进行业务处理。 12. An instance migration device, wherein the device comprises: a determination module and a creation module, wherein the determination module is used to determine a target physical machine corresponding to a target instance to be migrated, the target instance is currently located in a source physical machine, and the source physical machine is used to periodically synchronize data generated by the target instance in the source physical machine to the target physical machine; the determination module is also used to determine target network configuration information of the target instance in the target physical machine; the creation module is used to create the target instance in the target physical machine based on reserved resources corresponding to the target instance in the target physical machine and the target network configuration information; the target instance in the target physical machine is used to take over business processing from the target instance in the source physical machine. 13、 一种实例迁移设备, 其中, 包括: 至 少一个处理器; 以及 与所述至少一个处理器通信连接的存储器; 其 中, 所述存储器存储有可被所述至少一个处理器执行的指令, 所述指令被所述至少 一个处理器执行, 以使所述实例迁移设备执行权利要求 1-11任一项所述的方法。 13. An instance migration device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to cause the instance migration device to perform the method according to any one of claims 1 to 11. 14、 一种计算机可读存储介质, 其中, 所述计算机可读存储介质中存储有计算机执行 指令, 当处理器执行所述计算机执行指令时, 实现如权利要求 1-11任一项所述的方法。 14. A computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when a processor executes the computer-executable instructions, the method according to any one of claims 1 to 11 is implemented. 15、 一种计算机程序产品, 包括计算机程序, 其中, 该计算机程序被处理器执行时 实现如权利要求 1-11任一项所述的方法。 15. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the method according to any one of claims 1 to 11.
PCT/IB2025/050508 2024-01-31 2025-01-17 Instance migration method and apparatus, and device, storage medium and program product Pending WO2025163418A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202410139833.XA CN120407298A (en) 2024-01-31 2024-01-31 Instance migration method, device, equipment, storage medium and program product
CN202410139833.X 2024-01-31

Publications (1)

Publication Number Publication Date
WO2025163418A1 true WO2025163418A1 (en) 2025-08-07

Family

ID=96516323

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/IB2025/050508 Pending WO2025163418A1 (en) 2024-01-31 2025-01-17 Instance migration method and apparatus, and device, storage medium and program product

Country Status (2)

Country Link
CN (1) CN120407298A (en)
WO (1) WO2025163418A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111868676A (en) * 2018-03-15 2020-10-30 净睿存储股份有限公司 Serving I/O operations in cloud-based storage systems
US20210357132A1 (en) * 2020-05-15 2021-11-18 Commvault Systems, Inc. Live recovery of virtual machines in a public cloud computing environment
CN116701361A (en) * 2023-07-07 2023-09-05 中国平安人寿保险股份有限公司 Data migration method and device, electronic equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111868676A (en) * 2018-03-15 2020-10-30 净睿存储股份有限公司 Serving I/O operations in cloud-based storage systems
US20210357132A1 (en) * 2020-05-15 2021-11-18 Commvault Systems, Inc. Live recovery of virtual machines in a public cloud computing environment
CN116701361A (en) * 2023-07-07 2023-09-05 中国平安人寿保险股份有限公司 Data migration method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN120407298A (en) 2025-08-01

Similar Documents

Publication Publication Date Title
EP3490224B1 (en) Data synchronization method and system
JP6362119B2 (en) Arbitration processing method, quorum storage device, and system after cluster brain division
US9992058B2 (en) Redundant storage solution
US10243780B2 (en) Dynamic heartbeating mechanism
US8671218B2 (en) Method and system for a weak membership tie-break
CN111314479A (en) Data processing method and equipment
US9100443B2 (en) Communication protocol for virtual input/output server (VIOS) cluster communication
CN109101196A (en) Host node switching method, device, electronic equipment and computer storage medium
WO2017067484A1 (en) Virtualization data center scheduling system and method
JP2004280738A (en) Proxy responder
US12040936B2 (en) Technique for connection handling in a distributed system
CN111158949A (en) Disaster-tolerant architecture configuration method, switching method, device, device, and storage medium
US20240054054A1 (en) Data Backup Method and System, and Related Device
CN115242700A (en) Communication transmission method, device and system
CN120358242B (en) Disaster recovery methods, products, equipment, and media for cloud environment VPN services
CN111385352A (en) Instance control method, node, terminal and distributed storage system
CN113973114B (en) Cloud server hot migration method, virtual switch and software defined network architecture
CN118101435B (en) A high availability service method and system based on dual-machine hot standby
WO2025163418A1 (en) Instance migration method and apparatus, and device, storage medium and program product
EP4264449A1 (en) Granular replica healing for distributed databases
US10476744B2 (en) Coordinator in cluster membership management protocol
CN117201507A (en) Cloud platform switching method and device, electronic equipment and storage medium
CN116996174A (en) Disaster recovery methods, devices, equipment and media based on multi-availability zone IoT platform
CN111209145A (en) A service self-healing method, device and storage medium based on virtual machine disaster tolerance
CN116094903A (en) SSLVPN high availability method and system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 25748405

Country of ref document: EP

Kind code of ref document: A1