Hardware migration method and device

By building and migrating containers on a second hardware platform, setting up an adaptive operating system and middleware, and determining hardware requirements, the issues of service interruption and failure during container migration were resolved, achieving a stable and efficient container migration process.

CN121833136APending Publication Date: 2026-04-10CHINA CONSTRUCTION BANK +1
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-25
Publication Date
2026-04-10

AI Technical Summary

Technical Problem

Existing technologies suffer from issues such as service interruptions and slow recovery from new container failures during container migration.

Method used

By building a second container on the second hardware, allocating pending requests and obtaining processing parameters, gradually migrating requests until preset conditions are met, setting the operating system and middleware to adapt to the container's confidentiality level and business type, determining storage device and processor requirements, and achieving stable container migration.

Benefits of technology

This reduces service downtime, improves the stability and reliability of container migration, and ensures that new containers can provide services normally.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121833136A_ABST
    Figure CN121833136A_ABST
Patent Text Reader

Abstract

The invention provides a hardware migration method which can be applied to the technical field of cloud computing. The hardware migration method comprises the following steps: in response to a migration instruction for migrating a first container from first hardware to second hardware, constructing a second container on the second hardware according to first configuration information of the first container on the first hardware; allocating a first proportion of to-be-processed requests to the second container from a plurality of to-be-processed requests accessing the first container, and obtaining a first processing parameter; under the condition that the first processing parameter meets a preset condition, distributing a second proportion of to-be-processed requests to the second container, and obtaining a second processing parameter; and under the condition that the second processing parameter meets the preset condition, continuing to distribute the to-be-processed requests to the second container until all the to-be-processed requests accessing the first container are distributed to the second container. The invention further provides a hardware migration device and equipment, a storage medium and a program product.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of cloud computing technology, and more specifically to a hardware migration method and apparatus. Background Technology

[0002] In existing technologies, when migrating containers, the old container is often simply deactivated and a new container is started. This migration method not only causes service disruptions during the container transition period, but also makes it impossible to restore service quickly if the new container malfunctions.

[0003] Therefore, a new hardware migration method and device are needed. Summary of the Invention

[0004] In view of the above problems, this application provides a hardware migration method and apparatus that can reduce contract storage space.

[0005] According to a first aspect of this application, a hardware migration method is provided, characterized by comprising: responding to a migration instruction to migrate a first container from a first hardware to a second hardware, constructing a second container on the second hardware according to first configuration information of the first container on the first hardware; allocating a first proportion of pending requests from a plurality of pending requests accessing the first container to the second container, and obtaining a first processing parameter; if the first processing parameter satisfies a preset condition, allocating a second proportion of pending requests to the second container, and obtaining a second processing parameter, wherein the first processing parameter and the second processing parameter reflect the processing efficiency of the second container for the pending requests, and the second proportion is greater than the first proportion; if the second processing parameter satisfies a preset condition, continuing to allocate pending requests to the second container until all pending requests accessing the first container are allocated to the second container.

[0006] According to an embodiment of this application, the step of determining the preset condition includes: obtaining historical processing parameters, wherein the historical processing parameters reflect the historical processing performance of the first container for the request to be processed; and setting the preset condition to be that the ratio of the first processing parameter or the second processing parameter to the historical processing parameters is within a preset ratio range.

[0007] According to an embodiment of this application, a first operating system is provided on the first hardware, and the method further includes: providing a second operating system on the second hardware, wherein the second operating system is determined according to the confidentiality level and business type of the second container.

[0008] According to an embodiment of this application, a first middleware is provided on the first hardware, and the method further includes: providing a second middleware on the second hardware, wherein the second middleware is determined based on the number of concurrent requests to be processed.

[0009] According to an embodiment of this application, the method further includes: the second hardware includes a storage device and a processor, and the step of determining the second hardware includes: obtaining the storage device requirements and processor requirements of the second container for the second hardware; determining the size of the storage device according to a first preset ratio and the storage device requirements, determining the number of processors according to a second preset ratio and the processor requirements; and determining the second hardware based on the size of the storage device and the number of processors.

[0010] According to an embodiment of this application, the method further includes: setting configuration information for multiple sub-hardware components based on the backup requirements of the second container, wherein the multiple sub-hardware components serve as backup hardware for each other; and determining the second hardware based on the configuration information of the sub-hardware components.

[0011] According to a second aspect of this application, a hardware migration apparatus is provided, characterized in that the contract is configured with rules and conditions for business processing, the contract includes default contract parameters and custom contract parameters, and the apparatus includes: a default contract parameter acquisition module, configured to acquire the default contract parameters of the target contract from a public storage area of ​​multiple contracts in response to receiving a call request for a target contract for a target business; a custom contract parameter acquisition module, configured to acquire custom contract parameters from a private storage area corresponding to the target contract; and a business processing submodule, configured to process the target business according to the default contract parameters and the custom contract parameters.

[0012] A third aspect of this application provides an electronic device comprising: one or more processors; and a memory for storing one or more computer programs, wherein the one or more processors execute the one or more computer programs to implement the steps of the method described above.

[0013] A fourth aspect of this application also provides a computer-readable storage medium having a computer program or instructions stored thereon, which, when executed by a processor, implement the steps of the above-described method.

[0014] The fifth aspect of this application also provides a computer program product, including a computer program or instructions that, when executed by a processor, implement the steps of the above-described method. Attached Figure Description

[0015] The above-mentioned contents, other objects, features and advantages of this application will become clearer from the following description of embodiments with reference to the accompanying drawings, in which:

[0016] Figure 1 The illustrations depict application scenarios of hardware migration methods, apparatuses, devices, media, and program products according to embodiments of this application.

[0017] Figure 2 A flowchart illustrating a hardware migration method according to an embodiment of this application is shown schematically;

[0018] Figure 3 This schematically illustrates a structural block diagram of a hardware migration apparatus according to an embodiment of the present application;

[0019] Figure 4 A block diagram schematically illustrates an electronic device suitable for implementing a hardware migration method according to an embodiment of this application. Detailed Implementation

[0020] The embodiments of this application will now be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of this application. In the following detailed description, numerous specific details are set forth to provide a thorough understanding of the embodiments of this application for ease of explanation. However, it will be apparent that one or more embodiments may be implemented without these specific details. Furthermore, descriptions of well-known structures and technologies are omitted in the following description to avoid unnecessarily obscuring the concepts of this application.

[0021] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the scope of this application. The terms “comprising,” “including,” etc., as used herein indicate the presence of the stated features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.

[0022] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein are to be interpreted in a manner consistent with the context of this specification, and not in an idealized or overly rigid way.

[0023] When using expressions such as "at least one of A, B and C", they should generally be interpreted in accordance with the meaning that is commonly understood by those skilled in the art (e.g., "a system having at least one of A, B and C" should include, but is not limited to, a system having A alone, a system having B alone, a system having C alone, a system having A and B, a system having A and C, a system having B and C, and / or a system having A, B and C, etc.).

[0024] It should be noted that the hardware migration methods, apparatus, devices, media, and program products defined in this application can be used in the fields of cloud computing technology and fintech, and can also be used in a variety of other fields besides those mentioned above. The application fields of the hardware migration methods, apparatus, devices, media, and program products provided in the embodiments of this application are not limited.

[0025] It should be noted that in the embodiments of this application, certain software, components, models and other existing solutions in the industry may be mentioned. These should be regarded as exemplary and are only intended to illustrate the feasibility of implementing the technical solution of this application. However, they do not mean that the applicant has used or necessarily used the solution.

[0026] In the technical solution of this application, the user information (including but not limited to user data, user personal information, user image information, user device information, such as location information) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, storage, use, processing, transmission, provision, disclosure, and application of related data all comply with relevant laws, regulations, and standards, and necessary measures have been taken to ensure that they do not violate public order and good morals. Corresponding operation entry points are provided for users to choose to authorize or refuse.

[0027] In scenarios involving automated decision-making using personal information, the methods, devices, and systems provided in this application all offer users corresponding entry points for choosing to agree to or reject the automated decision-making results. If the user chooses to reject, the process proceeds to the expert decision-making stage. Here, "automated decision-making" refers to the activity of automatically analyzing and evaluating an individual's behavioral habits, interests, or economic, health, and credit status through computer programs, and then making a decision. Here, "expert decision-making" refers to the activity of making decisions by personnel who specialize in a particular field, possess specialized experience, knowledge, and skills, and have reached a certain level of professional expertise.

[0028] Embodiments of this application provide a hardware migration method, apparatus, device, medium, and program product.

[0029] Figure 1 The illustrations depict application scenarios of hardware migration methods, apparatuses, devices, media, and program products according to embodiments of this application.

[0030] like Figure 1 As shown, application scenario 100 according to this embodiment may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104, and a server 105. The network 104 serves as a medium for providing a communication link between the first terminal device 101, the second terminal device 102, the third terminal device 103, and the server 105. The network 104 may include various connection types, such as wired or wireless communication links, or fiber optic cables, etc.

[0031] Users can use the first terminal device 101, the second terminal device 102, and the third terminal device 103 to interact with the server 105 via the network 104 to receive or send messages, etc. Various communication client applications can be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social media platform software, etc. (for example only).

[0032] The first terminal device 101, the second terminal device 102, and the third terminal device 103 can be various electronic devices with displays and support web browsing, including but not limited to smartphones, tablets, laptops, and desktop computers.

[0033] Server 105 can be a server that provides various services, such as a backend management server that supports websites browsed by users using the first terminal device 101, the second terminal device 102, and the third terminal device 103 (this is just an example). The backend management server can analyze and process data such as received user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal devices.

[0034] It should be noted that the hardware migration method provided in this application embodiment can generally be executed by server 105. Correspondingly, the hardware migration device provided in this application embodiment can generally be located in server 105. The hardware migration method provided in this application embodiment can also be executed by a server or server cluster that is different from server 105 and capable of communicating with the first terminal device 101, the second terminal device 102, the third terminal device 103, and / or server 105. Correspondingly, the hardware migration device provided in this application embodiment can also be located in a server or server cluster that is different from server 105 and capable of communicating with the first terminal device 101, the second terminal device 102, the third terminal device 103, and / or server 105.

[0035] It should be understood that Figure 1 The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, any number of terminal devices, networks, and servers can be included.

[0036] The following will be based on Figure 1 The described scene, through Figure 2 The hardware migration method according to the embodiments of this application will be described in detail.

[0037] Figure 2 A flowchart illustrating a hardware migration method according to an embodiment of this application is shown schematically.

[0038] like Figure 2 As shown, the hardware migration method of this embodiment includes steps 210-240, and the hardware migration method can be performed in an electronic device.

[0039] In step 210, in response to a migration instruction to migrate the first container from the first hardware to the second hardware, a second container is built on the second hardware according to the first configuration information of the first container on the first hardware;

[0040] In step 220, a first proportion of pending requests are allocated to the second container from the multiple pending requests accessing the first container, and a first processing parameter is obtained;

[0041] In step 230, if the first processing parameter meets the preset conditions, the second container is allocated a second proportion of the requests to be processed, and the second processing parameter is obtained. The first processing parameter and the second processing parameter reflect the processing efficiency of the second container for the requests to be processed, and the second proportion is greater than the first proportion.

[0042] In step 240, if the second processing parameter meets the preset conditions, the pending requests continue to be assigned to the second container until all pending requests to access the first container are assigned to the second container.

[0043] According to one implementation, this application allows for the setup of a second hardware device while a first container is running on a first hardware device, and the services originally running on the first hardware device are migrated to the second hardware device, thereby achieving hardware migration. By observing the container migration process and gradually migrating pending requests, this application can promptly identify potential problems during the container migration process and test the new container, avoiding service interruptions caused by failures when a new container is directly deployed.

[0044] According to one implementation, the second ratio is greater than the first ratio; the first processing parameter and the second processing parameter reflect the processing efficiency of the second container for the pending requests. For example, before migration begins, there are 100 pending requests per minute on the first container; when allocating a first ratio of pending requests from multiple pending requests accessing the first container to the second container, the first ratio can be set to 10%, allocating 10 pending requests to the second container; if the first processing parameter meets a preset condition, the ratio is increased, allocating a second ratio of pending requests to the second container. The second ratio can be set to 30%, allocating 30 pending requests to the second container, thus obtaining the second processing parameter. If the second processing parameter meets a preset condition, the ratio continues to increase, for example, increasing it to 50%, then to 70%, and finally to 100%, migrating all pending requests to the second container for processing. If the second container can provide normal service, the first container can be taken offline.

[0045] According to one embodiment, the step of determining the preset condition includes: acquiring historical processing parameters, which reflect the historical processing performance of the first container for requests to be processed; and setting the preset condition as the ratio of the first or second processing parameter to the historical processing parameter being within a preset ratio range. The processing parameters (including historical processing parameters, the first processing parameter, and the second processing parameter) represent the container's processing performance for requests to be processed, specifically including the number of requests to be processed per second, processing latency, concurrent processing volume, etc. This application does not limit the specific implementation of the processing parameters. In the preset condition, the preset ratio range is set to be greater than 85%, meaning the processing performance of the second container is greater than 85% of the processing performance of the first container. This application does not limit the specific setting of the preset condition. If the processing parameters of the second container meet the preset condition, it indicates that the second container can normally process requests to be processed, and its proportion of processing requests to be processed can be further increased, gradually migrating all requests to be processed to the second container for processing. This application uses the processing performance of the old container as a standard to judge whether the new container can work normally, which can improve the accuracy of the judgment.

[0046] According to one embodiment, a first operating system is installed on the first hardware. The method further includes installing a second operating system on the second hardware. The second operating system is determined based on the security level and business type of the second container. This application allows selection of an operating system with appropriate security based on the security level of the second container. For example, if the security level is classified, an operating system that has passed security review is selected; if the security level is not classified, a common operating system can be selected. When selecting an operating system based on the business type, a relatively mature operating system developed for the corresponding business type can be selected; for example, if the business type is education or government affairs, an operating system with a high degree of maturity for that type can be selected. This application flexibly determines the second operating system based on the security level and business type of the second container, meeting the usage requirements of the operating system.

[0047] According to one embodiment, a first middleware is configured on a first piece of hardware. The method further includes configuring a second middleware on a second piece of hardware, wherein the second middleware is determined based on the concurrency of requests to be processed. Since different middlewares have different concurrency processing capabilities and varying degrees of support for distributed systems, the second middleware can be determined based on the concurrency of requests to be processed. For example, if the concurrency is on the first order of magnitude, a first type of middleware that meets the first order of magnitude can be selected as the second middleware; if the concurrency is on the second order of magnitude, a second type of middleware that meets the second order of magnitude can be selected as the second middleware. This application, by determining the required middleware based on the concurrency, can meet access requirements with different throughputs.

[0048] According to one embodiment, the second hardware includes a storage device and a processor. The step of determining the second hardware includes: obtaining the storage device requirements and processor requirements of the second container for the second hardware; determining the size of the storage device according to a first preset ratio and the storage device requirements; determining the number of processors according to a second preset ratio and the processor requirements; and determining the second hardware based on the size of the storage device and the number of processors. The storage device can be specifically implemented as internal memory and / or external memory. The device storage requirement is the size of the storage device required by the second container; the processor requirement is the number of processors required by the second container. When setting the size of the second hardware, the thermal design power (TDP) at full load (e.g., 100% CPU utilization) can be estimated and multiplied by 50% (indicating that the maximum load will be controlled below 50% to ensure that a single availability zone can handle all the services of another availability zone in extreme cases), to determine the number of processors required to meet a TDP of less than 50% as the processor requirement. The first and second preset ratios can be set according to the requirements of different technology stacks. The first and second preset ratios can be different to meet the stability requirements and customization requirements of the hardware for the second container.

[0049] According to one embodiment, the method further includes: setting configuration information for multiple sub-hardware components based on the backup requirements of the second container, wherein the multiple sub-hardware components serve as backup hardware for each other; and determining the second hardware based on the configuration information of the sub-hardware components. Each sub-hardware component can specifically be implemented as an availability zone. For example, if the second hardware includes 4 CPUs and 16GB of storage, and 2 availability zones are set, then the sub-hardware component corresponding to each availability zone is 2 CPUs and 8GB of storage. The container backup requirements include how many backupable availability zones the second container needs. If 2 availability zones are needed, then 2 sub-hardware components are set; if 4 availability zones are needed, then 4 sub-hardware components are set. Based on the backup requirements of the second container, the number of sub-hardware components set can be adjusted, and the total size of the second hardware can be expanded to ensure that each sub-hardware component can meet the operational requirements of the second container. This application sets hardware configuration based on container backup requirements to realize the setting of multiple container backups in the second hardware, thereby improving operational stability.

[0050] Based on the above hardware migration method, this application also provides a hardware migration apparatus. The following will be combined with... Figure 3 The device is described in detail.

[0051] Figure 3 A schematic block diagram of a hardware migration apparatus according to an embodiment of this application is shown.

[0052] like Figure 3 As shown, the hardware migration device 300 of this embodiment includes a second container building module 310, a first processing parameter acquisition module 320, a second processing parameter acquisition module 330, and a request migration module 340 to be processed.

[0053] The second container building module 310 is configured to, in response to a migration instruction to migrate the first container from the first hardware to the second hardware, build the second container on the second hardware according to the first configuration information of the first container on the first hardware. In one embodiment, the second container building module 310 may be used to perform step 210 described above, which will not be repeated here.

[0054] The first processing parameter acquisition module 320 is used to allocate a first proportion of pending requests from multiple pending requests accessing the first container to the second container, and to acquire first processing parameters. In one embodiment, the first processing parameter acquisition module 320 can be used to execute step 220 described above, which will not be repeated here.

[0055] The second processing parameter acquisition module 330 is used to allocate a second proportion of the pending requests to the second container when the first processing parameters meet preset conditions, and to acquire the second processing parameters. The first and second processing parameters reflect the processing efficiency of the second container for the pending requests, and the second proportion is greater than the first proportion. In one embodiment, the second processing parameter acquisition module 330 can be used to execute step 230 described above, which will not be repeated here.

[0056] The pending request migration module 340 is used to continue allocating pending requests to the second container when the second processing parameters meet preset conditions, until all pending requests accessing the first container are allocated to the second container. In one embodiment, the pending request migration module 340 can be used to execute step 240 described above, which will not be repeated here.

[0057] According to an embodiment of this application, the device 300 further includes a preset condition determination module, used to: obtain historical processing parameters, the historical processing parameters reflecting the historical processing performance of the first container for the request to be processed; and set a preset condition that the ratio of the first processing parameter or the second processing parameter to the historical processing parameter is within a preset ratio range.

[0058] According to an embodiment of this application, a first operating system is provided on the first hardware, and the device 300 further includes an operating system setting module for: setting a second operating system on the second hardware, wherein the second operating system is determined according to the confidentiality level and business type of the second container.

[0059] According to an embodiment of this application, a first middleware is provided on the first hardware, and the device 300 further includes a middleware setting module for: setting a second middleware on the second hardware, wherein the second middleware is determined according to the number of concurrent requests to be processed.

[0060] According to an embodiment of this application, the second hardware includes a storage device and a processor. The device 300 further includes a second hardware determination module, configured to: obtain the storage device requirements and processor requirements of the second container for the second hardware; determine the size of the storage device according to a first preset ratio and the storage device requirements; determine the number of processors according to a second preset ratio and the processor requirements; and determine the second hardware based on the size of the storage device and the number of processors.

[0061] According to an embodiment of this application, the device 300 includes a backup module, configured to: set configuration information of multiple sub-hardware according to the backup requirements of the second container, wherein the multiple sub-hardware serve as backup hardware for each other; and determine the second hardware according to the configuration information of the sub-hardware.

[0062] According to embodiments of this application, any multiple modules among the second container construction module 310, the first processing parameter acquisition module 320, the second processing parameter acquisition module 330, and the pending request migration module 340 can be merged into one module, or any one of these modules can be split into multiple modules. Alternatively, at least some of the functions of one or more of these modules can be combined with at least some of the functions of other modules and implemented in one module. According to embodiments of this application, at least one of the second container construction module 310, the first processing parameter acquisition module 320, the second processing parameter acquisition module 330, and the pending request migration module 340 can be at least partially implemented as hardware circuitry, such as a field-programmable gate array (FPGA), a programmable logic array (PLA), a system-on-a-chip, a system-on-a-substrate, a system-on-package, an application-specific integrated circuit (ASIC), or implemented in hardware or firmware by any other reasonable means of integrating or packaging the circuitry, or implemented in software, hardware, or firmware, or in any appropriate combination of any of these three implementation methods. Alternatively, at least one of the second container construction module 310, the first processing parameter acquisition module 320, the second processing parameter acquisition module 330, and the pending request migration module 340 can be at least partially implemented as a computer program module, which can perform corresponding functions when the computer program module is run.

[0063] Figure 4 A block diagram schematically illustrates an electronic device suitable for implementing a hardware migration method according to an embodiment of this application.

[0064] like Figure 4 As shown, an electronic device 400 according to an embodiment of this application includes a processor 401, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 402 or a program loaded from a storage portion 408 into a random access memory (RAM) 403. The processor 401 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or an associated chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 401 may also include onboard memory for caching purposes. The processor 401 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of this application.

[0065] RAM 403 stores various programs and data required for the operation of electronic device 400. Processor 401, ROM 402, and RAM 403 are interconnected via bus 404. Processor 401 executes various operations of the method flow according to embodiments of this application by executing programs in ROM 402 and / or RAM 403. It should be noted that the programs may also be stored in one or more memories other than ROM 402 and RAM 403. Processor 401 may also execute various operations of the method flow according to embodiments of this application by executing programs stored in said one or more memories.

[0066] According to embodiments of this application, the electronic device 400 may further include an input / output (I / O) interface 405, which is also connected to a bus 404. The electronic device 400 may also include one or more of the following components connected to the input / output (I / O) interface 405: an input section 406 including a keyboard, mouse, etc.; an output section 407 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 408 including a hard disk, etc.; and a communication section 409 including a network interface card such as a LAN card, modem, etc. The communication section 409 performs communication processing via a network such as the Internet. A drive 410 is also connected to the input / output (I / O) interface 405 as needed. A removable medium 411, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on the drive 410 as needed so that computer programs read from it can be installed into the storage section 408 as needed.

[0067] This application also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or it may exist independently and not assembled into the device / apparatus / system. The computer-readable storage medium carries one or more programs, which, when executed, implement the method according to the embodiments of this application.

[0068] According to embodiments of this application, the computer-readable storage medium can be a non-volatile computer-readable storage medium, such as including but not limited to: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this application, the computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. For example, according to embodiments of this application, the computer-readable storage medium may include ROM 402 and / or RAM 403 and / or one or more memories other than ROM 402 and RAM 403 described above.

[0069] Embodiments of this application also include a computer program product comprising a computer program containing program code for performing the methods shown in the flowchart. When the computer program product is run on a computer system, the program code is used to enable the computer system to implement the hardware migration method provided in the embodiments of this application.

[0070] When the computer program is executed by the processor 401, it performs the functions defined in the system / apparatus of this application embodiment. According to the embodiments of this application, the systems, apparatuses, modules, units, etc., described above can be implemented by computer program modules.

[0071] In one embodiment, the computer program may rely on a tangible storage medium such as an optical storage device or a magnetic storage device. In another embodiment, the computer program may also be transmitted and distributed in the form of signals over a network medium, and downloaded and installed via communication section 409, and / or installed from removable medium 411. The program code contained in the computer program can be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination thereof.

[0072] In such an embodiment, the computer program can be downloaded and installed from a network via communication section 409, and / or installed from removable medium 411. When the computer program is executed by processor 401, it performs the functions defined in the system of this application embodiment. According to embodiments of this application, the systems, devices, apparatuses, modules, units, etc., described above can be implemented by computer program modules.

[0073] According to embodiments of this application, program code for executing the computer programs provided in the embodiments of this application can be written in any combination of one or more programming languages. Specifically, these computational programs can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages ​​include, but are not limited to, languages ​​such as Java, C++, Python, "C", or similar programming languages. The program code can be executed entirely on the user's computing device, partially on the user's device, partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).

[0074] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0075] Those skilled in the art will understand that the features described in the various embodiments of this application can be combined and / or combined in various ways, even if such combinations or combinations are not explicitly described in this application. In particular, the features described in the various embodiments of this application can be combined and / or combined in various ways without departing from the spirit and teachings of this application. All such combinations and / or combinations fall within the scope of this application.

[0076] The embodiments of this application have been described above. However, these embodiments are merely illustrative and not intended to limit the scope of this application. Although various embodiments have been described above, this does not mean that the measures in the various embodiments cannot be used advantageously in combination. Without departing from the scope of this application, those skilled in the art can make various substitutions and modifications, all of which should fall within the scope of this application.

Claims

1. A hardware migration method, characterized in that, The method includes: In response to a migration instruction to migrate a first container from a first hardware to a second hardware, a second container is built on the second hardware based on the first configuration information of the first container on the first hardware; Distribute a first proportion of pending requests from multiple pending requests accessing the first container to the second container, and obtain the first processing parameters; When the first processing parameter meets the preset conditions, the second container is allocated a second proportion of the pending requests, and the second processing parameter is obtained. The first processing parameter and the second processing parameter reflect the processing efficiency of the second container for the pending requests, and the second proportion is greater than the first proportion. If the second processing parameter meets the preset conditions, continue to allocate pending requests to the second container until all pending requests to access the first container are allocated to the second container.

2. The method according to claim 1, characterized in that, The steps for determining the preset conditions include: Obtain historical processing parameters, which reflect the historical processing performance of the first container for the request to be processed; The preset condition is set such that the ratio of the first processing parameter or the second processing parameter to the historical processing parameter is within a preset ratio range.

3. The method according to claim 1 or 2, characterized in that, The first hardware is equipped with a first operating system, and the method further includes: A second operating system is set on the second hardware, and the second operating system is determined according to the confidentiality level and business type of the second container.

4. The method according to claim 1 or 2, characterized in that, The first hardware is equipped with a first middleware, and the method further includes: A second middleware is set on the second hardware, and the second middleware is determined based on the number of concurrent requests to be processed.

5. The method according to claim 1, characterized in that, The second hardware includes a storage device and a processor. The steps for determining the second hardware include: Obtain the storage device requirements and processor requirements of the second container for the second hardware; The size of the storage device is determined according to a first preset ratio and the storage device requirements, and the number of processors is determined according to a second preset ratio and the processor requirements. The second hardware is determined based on the size of the storage device and the number of processors.

6. The method according to claim 5, characterized in that, Also includes: Configure the configuration information of multiple sub-hardware according to the backup requirements of the second container, and the multiple sub-hardware serve as backup hardware for each other; The second hardware is determined based on the configuration information of the sub-hardware.

7. A hardware migration device, characterized in that, The device includes: The second container building module is configured to, in response to a migration instruction to migrate the first container from the first hardware to the second hardware, build the second container on the second hardware based on the first configuration information of the first container on the first hardware. The first processing parameter acquisition module is used to allocate a first proportion of pending requests from multiple pending requests accessing the first container to the second container, and to acquire the first processing parameters. The second processing parameter acquisition module is used to allocate a second proportion of pending requests to the second container when the first processing parameter meets the preset conditions, and to acquire the second processing parameter. The first processing parameter and the second processing parameter reflect the processing efficiency of the second container for the pending requests, and the second proportion is greater than the first proportion. The pending request migration module is used to continue to allocate pending requests to the second container when the second processing parameters meet the preset conditions, until all pending requests accessing the first container are allocated to the second container.

8. An electronic device, comprising: One or more processors; Memory, used to store one or more computer programs. The characteristic feature is that the one or more processors execute the one or more computer programs to implement the steps of the method according to any one of claims 1-6.

9. A computer-readable storage medium having a computer program or instructions stored thereon, characterized in that, When the computer program or instructions are executed by a processor, they implement the steps of the method according to any one of claims 1-6.

10. A computer program product, comprising a computer program or instructions, characterized in that, When the computer program or instructions are executed by a processor, they implement the steps of the method according to any one of claims 1-6.