CN109857521A - A kind of host conveying method and device - Google Patents

A kind of host conveying method and device Download PDF

Info

Publication number
CN109857521A
CN109857521A CN201910065533.0A CN201910065533A CN109857521A CN 109857521 A CN109857521 A CN 109857521A CN 201910065533 A CN201910065533 A CN 201910065533A CN 109857521 A CN109857521 A CN 109857521A
Authority
CN
China
Prior art keywords
business scenario
host
source end
hardware specification
under
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.)
Granted
Application number
CN201910065533.0A
Other languages
Chinese (zh)
Other versions
CN109857521B (en
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.)
Huawei Technologies Co Ltd
Huawei Technologies Service Co Ltd
Original Assignee
Huawei Technologies Service Co 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 Huawei Technologies Service Co Ltd filed Critical Huawei Technologies Service Co Ltd
Priority to CN201910065533.0A priority Critical patent/CN109857521B/en
Publication of CN109857521A publication Critical patent/CN109857521A/en
Application granted granted Critical
Publication of CN109857521B publication Critical patent/CN109857521B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the present application provides a kind of host conveying method and device, is related to field of computer technology, realizes efficient host resettlement.Specifically include: according to the performance parameter of source end host, such as source end host hardware specification and purpose end main frame targeted loads, determine the hardware specification of purpose end main frame;The hardware specification of determining purpose end main frame is sent to the destination platform where purpose end main frame, so that destination platform creates purpose end main frame according to the hardware specification;Send migration instruction to source end host so that source end host will thereon Data Migration to purpose end main frame.

Description

A kind of host conveying method and device
Technical field
This application involves field of computer technology more particularly to a kind of host conveying methods and device.
Background technique
Cloud computing refers to based on networks such as internets, and the novel calculating mode of IT resource is shared by way of virtualization.When Before, cloud computing technology is fast-developing, and the technologies such as public cloud, private clound are widely applied.The fictitious host computer disposed in cloud computing it Between, between cloud computing and data center server, there is a large amount of hosts to move demand.
In host resettlement, according to fixed host specification (be pre-configured with or client inputs or other modes obtain) Destination host is first created, then the data of source host are transmitted to destination host.After source host data are transmitted to destination host, The specification that destination host is adjusted by way of repeatedly calculating, attempting makes system performance meet the requirement of client.Therefore, currently Resettlement mode it is time-consuming and laborious, move low efficiency, while high to personnel skill requirement.
Summary of the invention
The embodiment of the present application provides a kind of host conveying method and device, realizes efficient host resettlement.
In order to achieve the above objectives, embodiments herein adopts the following technical scheme that
In a first aspect, providing a kind of host conveying method, this method may include: to acquire the performance parameter of source end host, The performance parameter may include the hardware specification of source end host;Performance parameter is used to indicate the performance of host;According to performance parameter, The business scenario of the source end host and the targeted loads of purpose end main frame determine the purpose end main frame under the business scenario Required hardware specification;Hardware needed for sending determining purpose end main frame to the destination platform where purpose end main frame is advised Lattice, so that destination platform creates purpose end main frame according to the hardware specification;Migration instruction is sent to source end host, migration refers to Order is used to indicate data of the source end host to destination host migration source end host.
By host conveying method provided by the present application, for the purpose of the targeted loads of purpose end main frame, determine to meet The host specification of targeted loads, then create purpose end main frame and carry out host resettlement, whole process is realized automatically to be participated in without artificial, Instead of repeatedly the specification of adjustment purpose end main frame is attempted in calculation after existing resettlement, move high-efficient.
With reference to first aspect, in one possible implementation, performance parameter can also include the money of N number of business scenario Source consumes parameter;Resource consumption parameter is for indicating the resource that source end host consumes under the business scenario;N is greater than or equal to 1.
Specifically, the resource consumption parameter of a business scenario is for indicating business of the source end host under the business scenario The resource of input phase consumption.Alternatively, the resource consumption parameter of a business scenario is for indicating source end host in the business field The resource of business processing discrete consuming under scape.Alternatively, the resource consumption parameter of a business scenario is for indicating source end host The resource of business output stage consumption under the business scenario.Alternatively, the resource consumption parameter of a business scenario is used for table Show source end host under the business scenario business input, processing, output stage consumption total resources.
With reference to first aspect or any of the above-described kind of possible implementation, in alternatively possible implementation, resource It may include following one or more for consuming parameter: resource consumption rate, consumed resource.
With reference to first aspect or any of the above-described kind of possible implementation, in alternatively possible implementation, resource Consumption parameter may include resource consumption indicated value, and resource consumption indicated value is to indicate the reference value of resource consumption, can make a reservation for The calculation expression of dynamic parameter when adopted resource consumption indicated value is the operation of collectable host.
It should be noted that business scenario can be the Run-time scenario of preset certain business, alternatively, business scenario It is also possible to scene when resource consumption peak value in preset collection period, particular content of the application for business scenario Without limiting.It is of course also possible to the content of configuration service scene according to actual needs.
With reference to first aspect or any of the above-described kind of possible implementation, in alternatively possible implementation, performance Parameter can also include the source end host load under N number of business scenario.
With reference to first aspect or any of the above-described kind of possible implementation, in alternatively possible implementation, M industry Scene of being engaged in is in N number of business scenario, and source end host load is greater than or equal to the business scenario of default load-threshold.
With reference to first aspect, in one possible implementation, according to the performance parameter of source end host and destination The targeted loads of host determine the hardware specification of purpose end main frame, specifically may be implemented are as follows: modify the hardware specification of source end host Parameter, obtain optional hardware specification;Joined according to the resource consumption of the source end host under M business scenario in N number of business scenario The parameter of several and optional hardware specification, judges whether optional hardware specification meets the requirement of the targeted loads;M be less than or Equal to N;If optional hardware specification meets the requirement of targeted loads, by optional hardware specification as a purpose end main frame hardware advise Lattice.
Wherein, the parameter for modifying the hardware specification of source end host may include one in hardware specification by source end host Or multinomial numerical value increases predetermined stepping.The value of object and predetermined stepping for modification, can match according to actual needs It sets, the application is not specifically limited.
With reference to first aspect or any of the above-described kind of possible implementation, in alternatively possible implementation, according to N The resource consumption parameter of source end host in a business scenario under M business scenario and the parameter of optional hardware specification, judgement Whether optional hardware specification meets the requirement of targeted loads, comprising: calculates separately each business scenario in M business scenario Under, the Performance Evaluation value of the hardware specification of source end host and the Performance Evaluation value of optional hardware specification;For in M business scenario Any one business scenario, the resource consumption ginseng according to the Performance Evaluation value of the hardware specification of source end host under the business scenario The score value of several and source end host hardware specification is calculated;The business according to the Performance Evaluation value of optional hardware specification The assessed value of resource consumption parameter and optional hardware specification under scene is calculated;It calculates separately every in M business scenario The first reference value under a business scenario should according to the first reference value for any one business scenario in M business scenario Under business scenario under the Performance Evaluation value of optional hardware specification and the business scenario source end host specification Performance Evaluation value meter It obtains;Specifically, the first reference value can subtract the business for the Performance Evaluation value of optional hardware specification under the business scenario Under scene after the Performance Evaluation value of source end host specification, then divided by the Performance Evaluation value of optional hardware specification under the business scenario. If the first reference value in M business scenario under the business scenario of preset ratio, it is greater than or equal to threshold value, then optional hardware specification Meet the requirement of targeted loads, which can be calculated according to the load of source end host and the difference of targeted loads, specifically, Threshold value can according to the load of source end host and targeted loads difference.
Wherein, Performance Evaluation value of the hardware specification of a host under a business scenario is about the host in the industry The default expression formula of the score value of the hardware specification of resource consumption parameter and the host under business scene is calculated;One host The score value of hardware specification be that the default expression formula of basic score value of each hardware cell about the host is calculated; The basic score value of one hardware cell of one host is the rule of the hardware cell in the scoring corresponding relationship of the hardware cell The corresponding score value of lattice;Scoring corresponding relationship is pre-configured with.
With reference to first aspect or any of the above-described kind of possible implementation, in alternatively possible implementation, according to N The resource consumption parameter of source end host in a business scenario under M business scenario and the parameter of optional hardware specification, judgement Whether optional hardware specification meets the requirement of targeted loads, comprising: according to the resource consumption of the source end host under M business scenario Parameter calculates separately consumed resource of the source end host in M business scenario under each business scenario;Calculate separately M industry The second reference value in scene of being engaged under each business scenario, wherein for any of M business scenario business scenario, second The parameter of source end host source consumption and optional hardware specification is calculated under the business scenario according to reference value, specifically , the second reference value can be source end host source consumption under the business scenario divided by the value of the parameter of optional hardware specification;If M The second reference value in a business scenario under the business scenario of preset ratio is less than or equal to the load, then optional hardware rule Lattice meet the requirement of the targeted loads.
With reference to first aspect or any of the above-described kind of possible implementation, in alternatively possible implementation, this Shen If the host conveying method that please be provided can also include: the requirement that optional hardware specification is unsatisfactory for targeted loads, modify optional hard The parameter of part specification, according to the resource consumption parameter of the source end host under M business scenario in N number of business scenario and optional The parameter of hardware specification, judges whether optional hardware specification meets the requirement of targeted loads, until optional hardware specification meets mesh The requirement for marking load, determines the hardware specification of purpose end main frame.
With reference to first aspect or any of the above-described kind of possible implementation, above-mentioned in alternatively possible implementation Hardware specification may include one or more in the parameters described below of one or more hardware cells in host: model, quantity, big It is small.Certainly, hardware specification can also include one or more hardware cell other parameters in host, and the application is to this without tool Body limits.
With reference to first aspect or any of the above-described kind of possible implementation, in alternatively possible implementation, hardware Unit may include one or more in following hardware: central processing unit (central processing unit, CPU), interior It deposits, hard disk.
Second aspect, this application provides a kind of electronic equipment, which be may be implemented in above method example Function, the function can also execute corresponding software realization by hardware realization by hardware.The hardware or software Including one or more above-mentioned corresponding modules of function.The electronic equipment can exist with the product form of chip.
It include processor and receipts in the structure of the electronic equipment in one possible implementation in conjunction with second aspect Device is sent out, which is configured as that the electronic equipment is supported to execute corresponding function in the above method.The transceiver is for supporting Communication between the electronic equipment and other equipment.The electronic equipment can also include memory, which is used for and processing Device coupling, saves the necessary program instruction of the electronic equipment and data.
The third aspect provides a kind of computer readable storage medium, including instruction, when run on a computer, So that the host conveying method that computer executes any of the above-described aspect or any possible implementation provides.
Fourth aspect provides a kind of computer program product comprising instruction, when run on a computer, so that The host conveying method that computer executes any of the above-described aspect or any possible implementation provides.
Wherein, it should be noted that the various possible implementations in terms of any one in above-mentioned various aspects, Under the premise of scheme is reconcilable, can it be combined.
Detailed description of the invention
Fig. 1 is the configuration diagram that a kind of host that the prior art provides moves system;
Fig. 2 is a kind of configuration diagram for cloud data center that the prior art provides;
Fig. 3 is a kind of configuration diagram for server that the prior art provides;
Fig. 4 is the structural schematic diagram that a kind of host provided by the embodiments of the present application moves device;
Fig. 5 is a kind of flow diagram of host conveying method provided by the embodiments of the present application;
Fig. 6 is a kind of flow diagram of the method for determining purpose end main frame specification provided by the embodiments of the present application;
Fig. 7 is the structural schematic diagram that another host provided by the embodiments of the present application moves device;
Fig. 8 is the structural schematic diagram that another host provided by the embodiments of the present application moves device.
Specific embodiment
The description and claims of this application and term " first ", " second ", " third " and " in above-mentioned attached drawing Four " etc. be for distinguishing different objects, rather than for limiting particular order.
In the embodiment of the present application, " illustrative " or " such as " etc. words for indicate make example, illustration or explanation.This Application embodiment in be described as " illustrative " or " such as " any embodiment or design scheme be not necessarily to be construed as comparing Other embodiments or design scheme more preferably or more advantage.Specifically, use " illustrative " or " such as " etc. words purport Related notion is being presented in specific ways.
It is one or more in A, B, the C described in the embodiment of the present application, for indicating following concepts: A or B, or Person C or A and B, alternatively, A and C, alternatively, B and C, alternatively, A, B and C.
The application proposes that a kind of host conveying method, efficient host are moved, the basic principle is that: acquire source end host Performance parameter, binding purpose end main frame targeted loads to be achieved, first obtains the hardware specification of purpose end main frame, then creates purpose End main frame carries out host resettlement.So, host specification is automatically configured when host is moved without artificial parameter, host resettlement Afterwards, without the modification host specification of trial, the technical requirements of personnel is reduced, resettlement efficiency is improved.
Host conveying method provided by the present application, applied in host resettlement system 10 as shown in Figure 1.As shown in Figure 1, It include: source end host 101, purpose end main frame 102, platform 103 and resettlement device 104 in host resettlement system 10.
Wherein, platform 103 may include the data center of multiple main frames and externally provide interface, so that user or other lists The addressable data center of member.
Platform 103 may include external offer interface, the source platform for accessing and controlling source end host 101, and Interface, the destination platform for accessing and controlling purpose end main frame 102 are externally provided, no longer illustrated in detail in Fig. 1, it is unified Referred to as platform 103.Platform 103 can be the platform (referred to as cloud platform) of fictitious host computer according to the type of host, can also be with For the platform (referred to as physical platform) of actual physics host, the embodiment of the present application is to this without specifically limiting.Platform 103 can To dispose in the server, the host that the server of deployment platform 103 is controlled with it can be in the same server, can also be Different servers.When source end host 101 and purpose end main frame 102 belong to the same data center, source platform and purpose Hold platform can be for a platform.
Resettlement device 104 can be the functional unit for carrying out host resettlement, and resettlement device 104 can be deployed in server In.Device 104 is moved, the same clothes can be deployed in any one in platform 103, source end host 101, purpose end main frame 102 Business device, can also independently be deployed in a server, the embodiment of the present application is to this without specifically limiting.
A kind of specific host moving process includes: to be built when carrying out host resettlement by 104 access platform 103 of resettlement device Network tunnel between vertical purpose end main frame 102 and source end host 101 and purpose end main frame 102, resettlement device 104 obtain flat Platform 103 sends migration instruction to source end host 101, and migration instruction includes the mark of purpose end main frame 102, and migration instruction is used The data (including operating system and business datum) of its own are transmitted to purpose end main frame 102 in instruction source end host 101, Complete host resettlement.
Another specific host moving process includes: that source end host 101 and 102 network of purpose end main frame are obstructed, is being carried out When host is moved, purpose end main frame 102 and source end host 101 and destination master are established by 104 access platform 103 of resettlement device Network tunnel between machine 102, resettlement device 104 obtain platform 103 and send migration instruction to source end host 101, which refers to Order is used to indicate source end host 101 and the data (including operating system and business datum) of its own is transmitted to removable Storage Unit, then by removable memory module is manually connected to purpose end main frame 102, complete host resettlement.
In a kind of possible realization, resettlement device 104 can independently be disposed in a server, as shown in fig. 1.It removes Moving other units that device 104 accesses in host resettlement system 10 is remote access.
In alternatively possible realization, resettlement device 104 can be deployed in the server where source end host 101.Resettlement It is then local IP access that device 104, which accesses source end host 101 in host resettlement system 10, and accessing other units is then remote access.
In another possible realization, resettlement device 104 can be deployed in the server where purpose end main frame 102.It removes Moving device 104 and accessing purpose end main frame 102 in host resettlement system 10 is then local IP access, and accessing other units then is remotely to visit It asks.
In another possible realization, resettlement device 104 can be deployed in the server where platform 103.Move device Platform 103 is then local IP access in 104 access host resettlement systems 10, and accessing other units is then remote access.
It should be noted that host described in this application, can be the host of the physical form in data center, it can also Think fictitious host computer, the embodiment of the present application to this for host actual form without specifically limiting.It is described in this application Host resettlement, can be the host of form server to the resettlement of fictitious host computer, is also possible to fictitious host computer to fictitious host computer Resettlement, be also possible to fictitious host computer to the host of form server resettlement or other, the application for host move when source And the actual form of purpose end main frame, also without specifically limiting.
It should also be noted that, host resettlement system 10 can be a part of frame in data center when progress host resettlement Structure, the application specifically limit the scale and form of host resettlement system 10.
Specifically, the host of Fig. 1 signal moves system 10, it can be a part of data center, which can be with It is the cloud data center for including multiple fictitious host computers, or the typical data center including multiple physical hosts, it can also be with Be the blended data center for including fictitious host computer and physical host, the application for data center type without specifically limiting It is fixed.It is illustrated below with reference to the framework of Fig. 2 cloud data center, with the concept of clear fictitious host computer;In conjunction with Fig. 3 to server Framework is illustrated, with the concept of clear physical host.The framework introduction of following pairs of cloud data centers, server is simply by act The form of example is illustrated, and is not specifically to limit.
Fig. 2 illustrates a kind of inner bay composition of cloud data center 20.As shown in Fig. 2, cloud data center 20 includes basis Facility layer 201, virtualization layer 202 and at least one virtual machine.
Wherein, infrastructure layer 201 includes the hardware facility of composition cloud data center 20, such as calculating equipment, storage are set Standby and physical exchange equipment etc., these hardware facilities can be the special equipment of single type, be also possible to calculate, storage and The integrated integration apparatus of exchange.Physical exchange equipment in infrastructure layer 201 forms net according to certain architectures building network Network core space can fictionalize virtual switch above, and virtual switch forms network edge area except network core area, Core and marginal zone switching equipment interconnect, and collectively form infrastructure network.Resource in infrastructure layer 201 is through virtual Virtual machine (virtual machine, VM), also referred to as fictitious host computer can be derived after changing 202 virtualization process of layer.Virtually Machine access of virtual interchanger passes through to access network.As shown in figure 1, virtual machine 61, virtual machine 62 are virtual machine, edge switch 51,52,53 be virtual switch.User can pass through visiting from outside virtual machine.Wherein, virtual machine can be for shown in Fig. 1 Host resettlement system 10 in source end host 101 or purpose end main frame 102.
Fig. 3 illustrates a kind of internal structure of server 30, and server 30 can also be referred to as physical server form Physical host.As shown in figure 3, the server 30 may include memory 301, it is Memory Controller Hub 302, processor 305, substantially defeated Enter output system (basic input output system, BIOS) 304 and hard disk (Fig. 3 is not shown).The memory 301 Including at least one RAM card, in Fig. 3 by taking 3 RAM cards as an example, RAM card 301-A, 301-B, 301-C.The Memory control Device 302 can configure corresponding Memory Controller Hub 302, example for controlling memory 301 for each RAM card of memory 301 Such as the Memory Controller Hub 302-A of RAM card 301-A, the Memory Controller Hub 302-B of RAM card 301-B, the memory of RAM card 301-C Controller 302-C.Memory fixture body in the present embodiment can be any memory that can be used as such as memory board or memory bar Storage medium, a RAM card can refer to a root memory item or a memory board, can also refer to the set or more of more root memory items The set of a memory board.Each RAM card is equipped with corresponding Memory Controller Hub, and RAM card and the corresponding of Memory Controller Hub are closed System can be one-to-one, be also possible to one-to-many or many-one, Fig. 3 is that the present invention implements one of example.
Memory 301 can be volatile memory (volatile memory), such as random access memory (random-access memory, RAM);Or nonvolatile memory (non-volatile memory), such as read-only deposit Reservoir (read-only memory, ROM), flash memory (flash memory), hard disk (hard disk drive, HDD) Or solid state hard disk (solid-state drive, SSD);Or the combination of the memory of mentioned kind, this can be achieved for storing The program code and configuration file of application method.
Processor 305 is the control centre of server 30, can be a CPU, is also possible to specific integrated circuit (application specific integrated circuit, ASIC), or be arranged to implement the embodiment of the present application One or more integrated circuits, such as: one or more microprocessors (digital singnal processor, DSP), Or, one or more field programmable gate array (field programmable gate array, FPGA).
After the booting of server 30, memory 301 can load the finger in BIOS 304 in 30 starting up of server Enable and store the instruction of the operating system (operating system, OS) 303 of computer in a hard disk, processor 305 The instruction of the instruction of BIOS 304 or the OS 303 of server 30 can be executed, such as processor 305 can execute BIOS 304 Instruction the equipment in server 30 is initialized, and execute OS 303 instruction to memory card carry out read-write operation, Wherein, processor 305 can refer to central processing unit (central processing unit, CPU) kernel portion, can be one CPU core is also possible to the set of multiple CPU cores, and in embodiments of the present invention, processor 305 is the collection of multiple CPU cores It closes.BIOS 304 can be a processing chip, be configured with multiple process instructions in the processing chip, and processor 305 can be with Execute these process instructions.
With reference to the accompanying drawing, embodiments herein is specifically addressed.
On the one hand, the embodiment of the present application provides a kind of electronic equipment 40, or referred to as host moves device 40, host resettlement Device 40 can move the resettlement device 104 in system 10 for host shown in FIG. 1.Fig. 4 is shown respectively to be implemented with the application A kind of relevant host resettlement device 40 of example.As shown in figure 4, host resettlement device 40 may include: processor 401, memory 402, transceiver 403.
It is specifically introduced below with reference to each component parts of the Fig. 4 to host resettlement device 40:
Memory 402 can be volatile memory (volatile memory), such as RAM;Or non- Volatile memory, such as read-only memory (read-only memory, ROM), flash memory (flash Memory), HDD or SSD;Or the combination of the memory of mentioned kind, for storing the program generation of achievable the application method Code and configuration file.
Processor 401 is the control centre of host resettlement device 40, can be a CPU, is also possible to ASIC, either It is configured to implement one or more integrated circuits of the embodiment of the present application, such as: one or more DSP, or, one or more A FPGA.Processor 401 can be by running or executing the software program and/or module that are stored in memory 402, and tune With the data being stored in memory 402, the various functions of host resettlement device 40 are executed.
Transceiver 403 is interacted for host resettlement device 40 with other units.Illustratively, transceiver 403 can be with The transmitting-receiving port of device 40 is moved for host.
Specifically, processor 401 is by operation or executes the software program and/or module that are stored in memory 402, with And the data being stored in memory 402 are called, execute following function:
The performance parameter of source end host is acquired, which may include the hardware specification of source end host;Performance parameter For indicating the performance of host;According to performance parameter and the targeted loads of purpose end main frame, the hardware of purpose end main frame is determined Specification;The hardware specification that determining purpose end main frame is sent to the destination platform where purpose end main frame, so that destination Platform creates purpose end main frame according to the hardware specification;Migration instruction is sent to source end host, migration instruction is used to indicate source Data of the host to destination host migration source end host.
In another aspect, the embodiment of the present application provides a kind of host conveying method, as shown in figure 5, this method may include:
S501, host resettlement device connect source end host.
Specifically, user provides the mark of source end host when requesting host is moved, to host resettlement device, host is removed Device is moved according to the mark, source end host, and the interface connection provided by the platform where source end host can be provided Source end host.When host moves device and source end host belongs to the same physical server on hardware, host moves device Operation host can also be asked about by the way that platform is visiting, therefore, host resettlement device can connect source end host in S501.When host is removed When moving device and being connected to source end host, i.e., by source end host authorization, allow to read configuration and acquisition parameter of source end host etc. Operation.
The performance parameter of S502, host resettlement device acquisition source end host.
Specifically, the performance parameter can be used for indicating the performance of host.Optionally, which may include static Hardware specification can also include dynamic operating parameter.Dynamic operating parameter refers to host during operation business not The parameter of disconnected variation, operating parameter are used to react the service ability of host.
Wherein, performance parameter may include the hardware specification of source end host.
In a kind of possible realization, hardware specification may include in host in the parameters described below of one or more hardware cells It is one or more: model, quantity, size.Certainly, hardware specification can also include other parameters, and the embodiment of the present application is retouched herein State the restriction not constituted to hardware specification content.
It should be noted that different hardware cells can have different parameters, therefore, may include in hardware specification The different parameter of different hardware cells.For example, the hardware specification of hard disk may include model, quantity, size and bandwidth.Its In, the bandwidth of hard disk refers to the speed of hard disk data flow when transmitting data, for reacting the throughput of disk.
Wherein, the model that model can define for the generation producer of hardware cell, or the performance pair of hardware cell The function model answered, the embodiment of the present application is to this without specifically limiting.Size can be the capacity of hardware cell, such as memory Size refer to the memory capacity of memory.
Specifically, host resettlement device can obtain the hardware specification of host by reading host configuration information, host is removed Move device can also by host send demand signalling, the hardware specification that receiving host is fed back by response signaling, certainly There can be the hardware specification of other acquisition modes acquisition host, the embodiment of the present application is without specifically limiting.
In a kind of possible realization, hardware cell may include one or more in following hardware: CPU, memory, hard disk. Certainly, hardware cell can also include other units in other hosts, and the embodiment of the present application is described herein as not constituting to hardware The restriction of location contents.
It should be noted that the parameter for the hardware cell for including in hardware specification, can configure according to actual needs, this Shen Please embodiment to this without specifically limiting.
In alternatively possible realization, on the basis of performance parameter includes the hardware specification of source end host, performance parameter It can also include following one or more: the source end host under resource consumption parameter, N number of business scenario under N number of business scenario Load.Wherein, the resource consumption parameter under a business scenario is for indicating that host runs business extremely under the business scenario The consumption of a few phase resource;Stage described herein may include full stage, input phase, processing stage or output stage In it is one or more.N is greater than or equal to 1.
Wherein, N number of business scenario can be Run-time scenario locating for the peak value of the resource consumption in N number of collection period.Or Person, N number of business scenario can be N number of preset business scenario predetermined.The embodiment of the present application is to this without specifically limiting It is fixed.
It should be noted that any one of the hardware specification of host belongs to the resource of host, therefore, money described herein So-called " resource " refers to ability provided by the hardware specification of host in the contents such as source consumption, resource occupation, and host runs industry Business can consume or occupy resource.
It should be noted that collection period can be the time point of predetermined time or periodic moments, or hold The period of continuous certain time length, the embodiment of the present application is to this without specifically limiting.The specific value of N can be according to actual needs Configuration, the embodiment of the present application is to this also without specifically limiting.
Illustratively, configuration N is 50,50 collection period of duration collection at equal intervals in 7 days.
In a kind of possible realization, in collection period when acquisition performance parameter, peak-data can be acquired, to realize most Excellent host migration.Wherein, peak-data can be the real peak after judgement, rather than the ghost peak under emergency case Value.The embodiment of the present application is for judging the process of true and false peak value without specifically limiting.
Optionally, resource consumption parameter may include following one or more: resource consumption rate, alternatively, consumed resource. The two is to describe resource occupation from different dimensions.
In a kind of possible realization, resource consumption parameter may include resource consumption indicated value.Wherein, resource consumption indicates Value is to indicate the reference value of resource consumption.Can predefined resource consumption indicated value be collectable host operation when dynamic ginseng Several calculation expressions.
In a kind of possible realization, resource consumption parameter can be obtained using scoring software.
In alternatively possible realization, it can be pre-configured with operating parameter relevant to resource consumption parameter, and in advance Calculation expression of the resource consumption parameter about its relevant operating parameter is configured, host resettlement device can acquire resource consumption The relevant operating parameter of parameter, substitutes into preconfigured calculation expression, then calculates and obtains resource consumption parameter.Wherein, it provides Consumption parameter relevant operating parameter in source, which refers to, influences resource consumption parameter, and can directly acquire the dynamic parameter of acquisition.
For example, configuration in business input phase operating parameter relevant to resource consumption parameter can include: input resource,percent1,cpu1,mem1,io1,net in1,net out1.Resource consumption parameter when configuration service inputs Calculation expression, be its relevant operating parameter according to preconfigured weight computing weighted sum.It is logical that host moves device Input resource, the percent1, cpu1, mem1, io1, net in1, net out1 when capturing service input are crossed, then is pressed According to preconfigured weight computing weighted sum, resource consumption when business input is obtained.Wherein, input resource indicates industry The resource percentage that business starting must consume;Percent1 indicates that business consumes percentage in the incipient stage;Cpu1 indicates industry Business consumes cpu size in input phase;Mem1 indicates the memory size that business is consumed in input phase;Io1 indicates business Input and output read-write efficiency is consumed in input phase;Net in1 indicates that business is consumed in input phase and is consumed into network Resource;Net out1 indicates that business perrcentage depletion in input phase goes out resource consumed by network.
For example, configuration in business processing stage operating parameter relevant to resource consumption parameter can include: deal resource,percent2,cpu2,mem2,io2,net in2,net out2.Resource consumption parameter when configuration service processing Calculation expression, be its relevant operating parameter according to preconfigured weight computing weighted sum.It is logical that host moves device Deal resource, the percent2, cpu2, mem2, io2, net in2, net out2 when capturing service processing are crossed, then is pressed According to preconfigured weight computing weighted sum, resource consumption when business processing is obtained.Wherein, deal resource indicates industry Business handles the resource percentage that must be consumed;Percent2 indicates to consume percentage when the business processing stage;Cpu2 indicates business Cpu size is consumed when processing stage;Mem2 indicates the memory size consumed when the business processing stage;Io2 indicates business processing rank Input and output read-write efficiency is consumed when section;Net in2 indicates to consume resource consumed by network when the business processing stage;net Perrcentage depletion goes out resource consumed by network when out2 indicates the business processing stage.
For example, the business output stage operating parameter relevant to resource consumption parameter of configuration can include: out resource,percent3,cpu3,mem3,io3,net in3,net out3.Resource consumption parameter when configuration service exports Calculation expression, be its relevant operating parameter according to preconfigured weight computing weighted sum.It is logical that host moves device Out resource, the percent3, cpu3, mem3, io3, net in3, net out3 when capturing service output are crossed, according still further to Preconfigured weight computing weighted sum obtains resource consumption when business output.Wherein, out resource indicates that business is defeated The resource percentage that must be consumed out;Percent3 indicates to consume percentage when business output stage;Cpu3 indicates business output Cpu size is consumed when the stage;Mem3 indicates the memory size consumed when business output stage;When io3 indicates business output stage Consume input and output read-write efficiency;Net in3 indicates to consume resource consumed by network when business output stage;net out3 Perrcentage depletion goes out resource consumed by network when expression business output stage.
It should be noted that above-mentioned example is said simply by process of the way of example to acquisition resource consumption parameter It is bright, it is not the restriction to the process of acquisition resource consumption parameter.
In a kind of possible realization, load is the index for assessing host performance, and load could alternatively be resource use Rate.Load and resource consumption parameter are to load from different angles come the service condition for describing business to host performance from opposite It is worth angle description, resource consumption parameter is described from absolute value.For example, resource consumption parameter is corresponding when load is 60% Resource be then host total capacity 60%.
Illustratively, it is assumed that the hardware specification of the source end host acquired in S502 are as follows:
CPU specification: model A;CPU quantity: 2;
Memory standards: model B, memory size 16*16G;
Disk specification: model C, disk size 4*1 terabyte (terabyte, TB), Disk bandwidth: 80 megabits per second (million bits per second, MB/S);
Assuming that resource consumption parameter is resource consumption indicated value, and assume (the referred to as business in a sampling period Scene 1), the peak resource consumption parameter of acquisition (illustrative resource consumption parameter is resource consumption indicated value) are as follows: input rank Section resource consumption 13000, processing stage resource consumption 15800, output stage resource consumption 19600.CPU in the business scenario 1 Load is 89%, and memory load is 81%.
Assuming that the peak resource of acquisition consumes reference value are as follows: defeated in another sampling period (referred to as business scenario 2) Enter phase resource and consumes 12000, processing stage resource consumption 13800, output stage resource consumption 16600.In the business scenario 2 Cpu load is 85%, and memory load is 80%.
The similar data for taking multiple collection period obtain at least 7 days data, and available: source end host is multiple Performance parameter under business scenario is as shown in table 1.
Table 1
S503, host resettlement device are according to the performance parameter of source end host, the business scenario of source end host and destination The targeted loads of host determine the hardware specification needed for purpose end main frame under the business scenario.
Wherein, the performance parameter of source end host is to acquire to obtain in S502.The targeted loads of purpose end main frame can by with It is specified by way of input in host resettlement device at family, or professional standard value, or, or other modes obtain The value taken, the embodiment of the present application is to this also without specifically limiting.It, can root for the source end host under different business scene According to the targeted loads of the performance parameter of source end host, business scenario and purpose end main frame, determine hard needed for purpose end main frame Part specification.Such as source end host is often in the lower business scenario of resource consumption, if the hardware specification of the purpose end main frame of configuration It is excessive, resource utilization can be reduced;And the source end host for being often under the higher business scenario of resource consumption, if configuration Purpose end main frame hardware specification it is too small, it is excessive to will lead to destination load on host computers.
Specifically, in S503, it is all according to the performance parameter of source end host, the business scenario of source end host and purpose The targeted loads of end main frame belong to the protection scope of the application to determine the hardware specification of purpose end main frame, the application for Determining concrete scheme is without limiting.
In the application content below provide two kinds of S503 in for determine purpose end main frame hardware specification parameter can It is able to achieve (the first following possible realization and second of possible realization), but is not the restriction to S503 specific implementation. The purpose of S503 is the hardware specification of determining purpose end main frame, so that the load of purpose end main frame reaches wanting for targeted loads It asks.
The first possible realization: in the first possible realization, in S502 according to the performance parameter of source end host with And the targeted loads of purpose end main frame, it determines the hardware specification of purpose end main frame, implements as shown in fig. 6, specifically can wrap Include following steps:
S601, the parameter for modifying current optional hardware specification, to update optional hardware specification.
It should be noted that if current optional hardware specification is source when executing the process of Fig. 6 signal for the first time in S503 The hardware specification of host.
In a kind of possible realization, the parameter of a certain specification is modified, it can be to increase one of them to a certain hardware specification Or the numerical value of multiple parameters, it can be the value that numerical value one or more in hardware specification is increased to default stepping.Default stepping Value can configure according to actual needs, the default stepping of different hardware cells can be different.
It should be noted that the parameter object modified in S601, can configure according to actual needs, the application is real Example is applied to this without specifically limiting.The parameter object modified when executing S601 every time can be the same or different.
S602, according to the resource consumption parameter and optional hardware specification under M business scenario in N number of business scenario Parameter, judges whether optional hardware specification meets the requirement of targeted loads.
Wherein, M is less than or equal to N.
In a kind of possible realization, M is equal to N, and M business scenario is whole business scenarios in N number of business scenario.
In alternatively possible realization, M business scenario is in N number of business scenario, and source end host load is greater than or equal to The business scenario of default load-threshold.Wherein, default load-threshold can configure according to actual needs, and the embodiment of the present application is to this Without specifically limiting.
For example, default load-threshold can be the load cut off value thought whether host is busy.Alternatively, default load-threshold It can be targeted loads.
Specifically, judging whether optional hardware specification meets the requirement of targeted loads, it can be understood as, if judgement is to work as If preceding optional hardware specification establishes business of the host to run source end host, industry of the host in operation source end host Whether load when business is able to satisfy the requirement of targeted loads.In S602, it can be realized by simply calculating and specifically be sentenced It is disconnected.
Specifically, S602 can be there are many realizing, the embodiment of the present application is for specific implementation without limiting.Illustrate below The specific implementation of two kinds of S602, including realize A and realize B, but be not the specific restriction to the process of S602.
It realizes A, S602 is realized by intermediate quantity, specifically include following following steps.
Step 1 calculates separately in M business scenario under each business scenario, the performance of the hardware specification of source end host The Performance Evaluation value of assessed value and optional hardware specification.
Specifically, the Performance Evaluation value of the hardware specification of source end host is to be joined according to the resource consumption under each business scenario The score value of several and source end host hardware specification is calculated;The Performance Evaluation value of optional hardware specification is according to each industry The assessed value of resource consumption parameter and optional hardware specification under business scene is calculated.
In a kind of possible realization, Performance Evaluation value of the hardware specification of a host under a business scenario be about First default expression formula of the score value of the hardware specification of resource consumption parameter and the host of the host under the business scenario It is calculated.The score value of the hardware specification of one host is the of the basic score value of each hardware cell about the host Two default expression formulas are calculated.The basic score value of one hardware cell of one host is that the scoring of the hardware cell is corresponding The corresponding score value of the specification of the hardware cell in relationship.Scoring corresponding relationship is pre-configured with.
Wherein, Performance Evaluation value is the reference value for being used to assess host performance, by presetting the first preset table First is substituted into up to the content of formula, and by the score value of the hardware specification of resource consumption parameter and the host under a business scenario Default expression formula, can be obtained the Performance Evaluation value under the business scenario.
Specifically, empirical value scoring can be carried out the hardware cell to business mainstream in advance, commenting for the hardware cell is constructed Point corresponding relationship, include in the scoring corresponding relationship of the hardware cell different hardware cells specification and corresponding warp Test score value.For a hardware cell, when getting its hardware specification, the scoring corresponding relationship of the hardware cell is inquired, Obtain its basic score value of the corresponding experience score value as the hardware cell.
For example, it is assumed that the resource consumption parameter (resource consumption indicated value) at business scenario A is business input phase Resource consumption S1, the resource consumption S2 in business processing stage, business output stage resource consumption S3, define the hard of source end host The score value of part specification is S4.So, the hardware specification of source end host at business scenario A Performance Evaluation value TF=f (S1, S2, S3, S4).Wherein, f () is the first default expression formula.
Wherein it is possible to define S4=y (MARK C, MARK M, MARK D), y () is the second default expression formula, and MARK C is The basic score value of the CPU of source end host, MARK M are the basic score value of the memory of source end host, and MARK D is source end host Hard disk basic score value.
In a kind of possible realization, the first default expression formula or the second default expression formula can be weighted sum, Huo Zheqi He, the embodiment of the present application is to this without specifically limiting.When the first default expression formula or the second default expression formula are weighted sum, Weight can be pre-configured with, and the application is to this also without specifically limiting.
Illustratively, based on the example in S502, the concrete operations in S601 may include:
Assuming that in the hardware specification of source end host CPU basic score 10000, the basic score 2000 of memory, disk Basic score 3000 obtains the score value S4=10000+2000+3000=15000 of source end host.
In the performance parameter for the source end host illustrated from table 1,2 business scenario (tables 2 that wherein load is greater than 80% are chosen Middle the first row is referred to as business scenario 1, the second row is referred to as business scenario 2).
Assuming that Performance Evaluation value of the hardware specification of a host under a business scenario is about the host in the industry The score value weighted sum of the hardware specification of resource consumption parameter and the host under scene of being engaged in, and weighting coefficient is 1.
Calculating Performance Evaluation value of the source end host in business scenario 1 is TF1=13000+15800+19600+15000= 63400, Performance Evaluation value of the source end host in business scenario 2 is TF2=12000+13800+16600+15000=57400.
Calculate Performance Evaluation value TF1=f (S1, S2, S3, S4 ') of the optional hardware specification at business scenario A.Wherein, S4 '=y (MARK C ', MARK M ', MARK D '), MARK C ' are the basic score value of the CPU of optional hardware specification, MARK M ' is the basic score value of the memory of optional hardware specification, and MARK D ' is the basic score value of the hard disk of optional hardware specification.
Illustratively, it is assumed that increasing resource to obtain optional hardware specification by the hardware specification of source end host is 28 model A CPU+256G memory (constant)+5T model C disk.
Assuming that in optional hardware specification CPU basic score 12000, the basic score 2000 of memory, disk it is basic Divide 4000, obtains the score value S4=12000+2000+4000=18000 of optional hardware specification.
Calculating Performance Evaluation value of the optional hardware specification in business scenario 1 is TF1 '=13000+15800+19600+ 18000=66400, Performance Evaluation value of the optional hardware specification in business scenario 2 are TF2 '=12000+13800+16600+ 18000=60400.
Step 2 calculates separately the first reference value in M business scenario under each business scenario.
Wherein, the first reference value under a business scenario is the Performance Evaluation value of optional hardware specification under the business scenario After the Performance Evaluation value for subtracting source end host specification under the business scenario, divided by the performance of optional hardware specification under the business scenario Assessed value.
Illustratively, based on the example in above-mentioned steps 1, in business scenario 1, the hardware specification of source end host and optional hard The difference (66400-63400) of the Performance Evaluation value of part specification, divided by the Performance Evaluation value 66400 of optional hardware specification, business First reference value of scene 1 is about 4.51%.In business scenario 2, the property of the hardware specification of source end host and optional hardware specification Can assessed value difference (60400-57400), divided by the Performance Evaluation value 60400 of optional hardware specification, under business scenario 2 the One reference value is about 4.97%.
If the first reference value in step 3, M business scenario under the business scenario of preset ratio, it is greater than or equal to source The load of host and the difference of targeted loads, then optional hardware specification meets the requirement of targeted loads.
Wherein, the first reference value under a business scenario be greater than or equal to the business scenario under source end host load with The difference of targeted loads, then optional hardware specification can achieve performance requirement under the business scenario.When the business field of preset ratio Optional hardware specification can achieve performance requirement under scape, then optional hardware specification meets the requirement of targeted loads.
Illustratively, based on the example in above-mentioned steps 2, the first reference value 4.51% under business scenario 1 is less than business The load 89% of the lower source end host of scene 1 and the difference 10% of targeted loads 79%.
The first reference value 4.97% under business scenario 2, less than the load 89% and target of the lower source end host of business scenario 2 The difference 10% of load 79%.
Assuming that preset ratio is 100%, current optional hardware specification is unsatisfactory for the requirement of targeted loads.At this point, again Disk of the S601 by current optional hardware specification for CPU+256GB memory (constant)+5TB model C of 28 model A is executed, Increase numerical value again and obtains the disk of CPU+256GB memory (constant)+6TB model C that optional hardware specification is 48 model A.
Assuming that in newest optional hardware specification CPU basic score 25000, the basic score 2000 of memory, disk Basic score 10000 obtains the score value S4=25000+2000+10000=37000 of optional hardware specification.
Re-executing the step 1 in S602 and calculating Performance Evaluation value of the optional hardware specification in business scenario 1 is TF1 ' =13000+15800+19600+37000=85400, Performance Evaluation value of the optional hardware specification in business scenario 2 are TF2 ' =12000+13800+16600+37000=79400.
Re-execute the step 2 in S602, in business scenario 1, the hardware specification of source end host and optional hardware specification The difference (85400-63400) of Performance Evaluation value, divided by the Performance Evaluation value 85400 of optional hardware specification, under business scenario 1 First assessed value is about 25.8%.The first assessed value under the business scenario 1 is greater than the load of the lower source end host of business scenario 1 89% with the differences 10% of targeted loads 79%.
In business scenario 2, the difference (79400- of the Performance Evaluation value of the hardware specification of source end host and optional hardware specification 57400), divided by the Performance Evaluation value 79400 of optional hardware specification, the first assessed value under business scenario 2 is about 57.7%.It should The first assessed value under business scenario 2 is greater than the lower load 89% of source end host of business scenario 2 and the difference of targeted loads 79% 10%.
Therefore, current optional hardware specification meets the requirement of targeted loads.
It realizes B, realize S602 by specifically obtaining load of the optional hardware specification under each business scenario, specifically include Following step a to step c.
Step a, according to the resource consumption parameter of the source end host under M business scenario, source end host is calculated separately Consumed resource in M business scenario under each business scenario.
In a kind of possible realization, when resource consumption parameter is resource consumption rate, source end host is in M business scenario Consumed resource under each business scenario is that the hardware specification of source end host is every in M business scenario multiplied by source end host Resource consumption rate under a business scenario.
In alternatively possible realization, when resource consumption parameter is consumed resource, source end host is in M business scenario In consumed resource under each business scenario be resource consumption of the source end host in M business scenario under each business scenario Parameter.
Step b, the second reference value in M business scenario under each business scenario is calculated separately.
Wherein, the second reference value under a business scenario be the business scenario under source end host consumed resource divided by The parameter of optional hardware specification.
For example, it is assumed that the CPU of source end host is 16 gigabytes (gigabyte, GB), and at business scenario B, source end host It is 90% in the resource consumption total amount in the full stage of business processing, then consumed resource of the source end host under the business scenario is (16*90%) GB.Assuming that optional hardware specification is 16.5GB, then, second ginseng of the optional hardware specification at business scenario B Examining value is 16.5GB*100%/(16*90%) GB.Wherein, * is multiplying.
If step c, the second reference value in M business scenario under the business scenario of preset ratio is negative less than or equal to target It carries, then optional hardware specification meets the requirement of targeted loads.
Specifically, if the load of optional hardware specification meets the requirement of targeted loads, executing S603 in S602.If can It selects the load of hardware specification to be unsatisfactory for the requirement of targeted loads, re-executes S601, until optional hardware specification meets target and bears The hardware specification parameter of purpose end main frame is determined in the requirement of load.
S603, by the hardware specification of optional hardware specification end main frame as a purpose.
Illustratively, the example based on step 1 in S602 to step 3, can be by the CPU+ of 48 model A in S603 The hardware specification of the disk of 256GB memory (constant)+6TB model C end main frame as a purpose.
Second of possible realization: negative according to the target of the performance parameter of source end host and purpose end main frame in S502 It carries, determines the hardware specification of purpose end main frame, specifically may be implemented are as follows: by the performance in default corresponding relationship, with source end host Parameter and the corresponding host specification of targeted loads, the as a purpose hardware specification of end main frame.
It wherein, include that different performance parameter and different target load corresponding host hardware rule in the default corresponding relationship Lattice.The default corresponding relationship can according to the database of practical experience or history samples data configuration.
Illustratively, table 2 illustrates a kind of content of default corresponding relationship, but is not the content to default corresponding relationship And the specific restriction of form.
Table 2
Targeted loads 1 Targeted loads 2 ……
Performance parameter A Host specification a Host specification b ……
Performance parameter B Host specification c Host specification d ……
Performance parameter C Host specification e Host specification f ……
…… …… …… ……
It should be noted that table 2 is merely illustrative, the performance parameter and targeted loads in table 2 can be specific Value, or interval range, the embodiment of the present application is to this without specifically limiting.
By taking the default corresponding relationship that table 2 is illustrated as an example, it is assumed that the performance parameter C of the source end host acquired in S502 is obtained Purpose end main frame targeted loads be targeted loads 2, inquiry table 2 can determine purpose end main frame hardware specification be host specification f。
Wherein, it when inquiring default corresponding relationship, can be identical with the content in table 2, be also possible to belong in table 2 Content represent range, the embodiment of the present application is to this without specifically limiting.
It should be noted that table 2 is by way of example, to say to the form and content of default corresponding relationship It is bright, it is not the specific restriction to the form and content of default corresponding relationship.
Hardware needed for destination platform where S504, host resettlement from device to purpose end main frame sends purpose end main frame Specification, so that destination platform hardware specification according to needed for purpose end main frame creates purpose end main frame.
Specifically, the application creates the process of host without repeating for destination platform.
S505, host move device to source end host send migration instruction, the migration instruction be used to indicate source end host to The data of destination host migration source end host.
It should be noted that host resettlement device indicates source end host to destination host migration source by migration instruction The process of the data of end main frame, is illustrated in foregoing teachings, is no longer repeated herein.
Host resettlement is completed by the process of above-mentioned S501 to S505, after the completion of resettlement, after purpose end main frame is restarted It can operate normally, provide a user the host for meeting targeted loads.
By host conveying method provided by the present application, host resettlement is carried out again after first determining the specification of purpose end main frame, Realize efficient host resettlement.
Further, as shown in figure 5, host conveying method provided by the embodiments of the present application may also include S506.
S506, host move device and upload appendage to purpose end main frame, and appendage is added to destination master In the os starting program of machine.
Wherein, appendage includes network strategy and/or security strategy, and appendage automatically configures network plan when being executed Summary and/or security strategy.Optionally, network strategy and/or security strategy that appendage includes can be the distal end master of acquisition The network strategy and/or security strategy of machine, or the network strategy and/or security strategy that user provides, the application are implemented Example is to this without specifically limiting.
Since appendage is added in the os starting program of purpose end main frame, when purpose end main frame is restarted When, appendage is then started, and has automatically configured network strategy and/or security strategy.
It is above-mentioned that mainly scheme provided by the embodiments of the present application is described from the angle of interaction between each network element.It can With understanding, in order to realize the above functions, it comprises execute each corresponding hardware knot of function for above-mentioned host resettlement device Structure and/or software module.Those skilled in the art should be readily appreciated that, described in conjunction with the examples disclosed in this document Each exemplary unit and algorithm steps, the application can be realized with the combining form of hardware or hardware and computer software.Certain A function is executed in a manner of hardware or computer software driving hardware actually, depending on technical solution specific application and Design constraint.Professional technician can realize described function using distinct methods to each specific application Can, but this realization is it is not considered that exceed scope of the present application.
The embodiment of the present application can carry out the division of functional module, example according to above method example to host resettlement device Such as, each functional module of each function division can be corresponded to, two or more functions can also be integrated at one It manages in module.Above-mentioned integrated module both can take the form of hardware realization, can also use the form of software function module It realizes.It should be noted that being schematical, only a kind of logic function stroke to the division of module in the embodiment of the present application Point, there may be another division manner in actual implementation.
In the case where each function division of use correspondence each functional module, Fig. 7 shows involved in above-described embodiment And host resettlement device 70 a kind of possible structural schematic diagram.As shown in fig. 7, host resettlement device 70 may include: to adopt Collect unit 701, determination unit 702, transmission unit 703.Acquisition unit 701 is used to execute the process S502 in Fig. 5;Determination unit 702 for executing the process S503 in Fig. 5;Sending module 703 is used to execute process S504, S505 in Fig. 5.Wherein, above-mentioned All related contents for each step that embodiment of the method is related to can quote the function description of corresponding function module, herein not It repeats again.
Using integrated unit, Fig. 8 shows the resettlement device 80 of host involved in above-described embodiment A kind of possible structural schematic diagram.It may include: processing module 801, communication module 802 that host, which moves device 80,.Handle mould Block 801 is used to carry out control management to the movement of host resettlement device 80.For example, processing module 801 is used to execute the mistake in Fig. 5 Journey S501, S502, S503;Communication module 802 is used to execute process S504, S505 in Fig. 5.Host moves device 80 can be with Including memory module 803, for storing the program code and data of host resettlement device 80.
Wherein, processing module 801 can move the processor 401 in the entity structure of device 40 for host shown in Fig. 4, It can be processor or controller.Such as can be CPU, and general processor, DSP, ASIC, FPGA or other programmable logic Device, transistor logic, hardware component or any combination thereof.It, which may be implemented or executes, combines present disclosure Described various illustrative logic blocks, module and circuit.Processor 801 is also possible to realize the combination of computing function, Such as it is combined comprising one or more microprocessors, DSP and the combination of microprocessor etc..Communication module 802 can be Fig. 4 institute Transceiver 403 in the entity structure of the host resettlement device 40 shown, communication module 802 can be communication port, or can be with It is transceiver, transmission circuit or communication interface etc..Alternatively, above-mentioned communication interface can pass through the above-mentioned member with transmission-receiving function Part realizes the communication with other equipment.The above-mentioned element with transmission-receiving function can be realized by antenna and/or radio-frequency unit.It deposits Storage module 803 can be the memory 402 in the entity structure of host resettlement device 40 shown in Fig. 4.
When processing module 801 is processor, communication module 802 is transceiver, when memory module 803 is memory, this Shen Please the resettlement of host involved in implementation example figure 8 device 80 can move device 40 for host shown in Fig. 4.
It has been observed that host resettlement device 70 provided by the embodiments of the present application or host resettlement device 80 can be used in implementation The step stated in the method that each embodiment of the application is realized illustrates only relevant to the embodiment of the present application for ease of description Part, it is disclosed by specific technical details, please refer to each embodiment of the application.
As another form of the present embodiment, a kind of computer readable storage medium is provided, is stored thereon with instruction, it should Instruction is performed the host conveying method executed in above method embodiment.
As another form of the present embodiment, a kind of computer program product comprising instruction is provided, which is held The host conveying method in above method embodiment is executed when row.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
Those skilled in the art are it will be appreciated that in said one or multiple examples, function described herein It can be realized with hardware, software, firmware or their any combination.It when implemented in software, can be by these functions Storage in computer-readable medium or as on computer-readable medium one or more instructions or code transmitted. Computer-readable medium includes computer storage media and communication media, and wherein communication media includes convenient for from a place to another Any medium of one place transmission computer program.Storage medium can be general or specialized computer can access it is any Usable medium.It is apparent to those skilled in the art that for convenience and simplicity of description, foregoing description is System, the specific work process of device and unit can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit It closes or communicates to connect, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that the independent physics of each unit includes, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can store and computer-readable deposit at one In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer The portion of equipment (can be personal computer, server or the network equipment etc.) execution each embodiment the method for the application Step by step.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), with Machine accesses various Jie that can store program code such as memory (Random Access Memory, RAM), magnetic or disk Matter.
Finally, it should be noted that above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although The application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: it still may be used To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features; And these are modified or replaceed, each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution spirit and Range.

Claims (18)

1. a kind of host conveying method characterized by comprising
The performance parameter of source end host is acquired, the performance parameter includes the hardware specification of the source end host;
According to the targeted loads of the performance parameter, the business scenario of the source end host and purpose end main frame, determine in institute State hardware specification needed for the purpose end main frame under business scenario;
Hardware specification needed for sending the purpose end main frame to the destination platform where the purpose end main frame, so that institute It states destination platform hardware specification according to needed for the purpose end main frame and creates the purpose end main frame;
Migration instruction is sent to the source end host, the migration instruction is used to indicate the source end host to the destination master Machine migrates the data of the source end host.
2. the method according to claim 1, wherein the performance parameter further includes the resource of N number of business scenario Parameter is consumed, the resource consumption parameter is for indicating the resource that the source end host consumes under any business scenario;The N More than or equal to 1;
The targeted loads according to the performance parameter, the business scenario of the source end host and the purpose end main frame, Determine the hardware specification of the purpose end main frame described under the business scenario, comprising:
The parameter for modifying the hardware specification of the source end host obtains optional hardware specification;
According to the resource consumption parameter of the source end host under M business scenario in N number of business scenario and it is described can The parameter for selecting hardware specification, judges whether the optional hardware specification meets the requirement of the targeted loads;The M is less than or waits In N;
If the optional hardware specification meets the requirement of the targeted loads, using the optional hardware specification as the destination The hardware specification of host.
3. according to the method described in claim 2, it is characterized in that, the performance parameter further includes in N number of business scenario The load of the source end host under each business scenario, the institute according under M business scenario in N number of business scenario The resource consumption parameter of source end host and the parameter of the optional hardware specification are stated, whether judges the optional hardware specification Meet the requirement of the targeted loads, comprising:
It calculates separately in the M business scenario under each business scenario, the performance of the hardware specification of the source end host is commented The Performance Evaluation value of valuation and the optional hardware specification;The Performance Evaluation value of the hardware specification of the source end host is according to institute The score value for stating the hardware specification of the resource consumption parameter and the source end host under business scenario is calculated;It is described optional The Performance Evaluation value of hardware specification is according to the resource consumption parameter and the optional hardware specification under the business scenario Assessed value is calculated;
The first reference value in the M business scenario under each business scenario is calculated separately, according to first reference value Under the business scenario under the Performance Evaluation value of the optional hardware specification and the business scenario source end host it is hard The Performance Evaluation value of part specification is calculated;
If first reference value in the M business scenario under the business scenario of preset ratio, it is greater than or equal to threshold value, then The optional hardware specification meets the requirement of the targeted loads, load and the mesh of the threshold value according to the source end host The difference of mark load is calculated.
4. according to the method described in claim 2, it is characterized in that, described according to M business scenario in N number of business scenario Under the source end host resource consumption parameter and the optional hardware specification parameter, judge the optional hardware rule Whether lattice meet the requirement of the targeted loads, comprising:
According to the resource consumption parameter of the source end host under the M business scenario, calculates separately the source end host and exist Consumed resource in the M business scenario under each business scenario;
The second reference value in the M business scenario under each business scenario is calculated separately, according to second reference value The parameter of the consumed resource of the source end host and the optional hardware specification is calculated under the business scenario;
If second reference value in the M business scenario under the business scenario of preset ratio, it is less than or equal to the mesh Mark load, then the optional hardware specification meets the requirement of the targeted loads.
5. according to the described in any item methods of claim 2-4, which is characterized in that the performance parameter further includes N number of industry The load of the source end host in scene of being engaged under each business scenario;The M business scenario is in N number of business scenario The source end host load is greater than or equal to the business scenario of default load-threshold.
6. method according to claim 1-5, which is characterized in that the hardware specification include in host one or It is one or more in the parameters described below of multiple hardware cells:
Model, quantity, size.
7. according to the method described in claim 6, it is characterized in that, the hardware cell includes one or more in following hardware :
Central processor CPU, memory, hard disk.
8. the method according to claim 2, which is characterized in that the resource consumption parameter includes following one It is or multinomial: resource consumption rate, consumed resource.
9. a kind of electronic equipment, which is characterized in that the electronic equipment includes:
Acquisition unit, for acquiring the performance parameter of source end host, the performance parameter includes hard needed for the source end host Part specification;
Determination unit, the business scenario and mesh of performance parameter, the source end host for being acquired according to the acquisition unit End main frame targeted loads, hardware specification needed for determining described under business scenario purpose end main frame;
Transmission unit, for hardware needed for sending the purpose end main frame to the destination platform where the purpose end main frame Specification, so that destination platform hardware specification according to needed for the purpose end main frame creates the purpose end main frame; Migration instruction is sent to the source end host, the migration instruction is used to indicate the source end host and moves to the purpose end main frame Move the data of the source end host.
10. electronic equipment according to claim 9, which is characterized in that the performance parameter further includes N number of business scenario Resource consumption parameter;The resource consumption parameter is for indicating the resource that the source end host consumes under the business scenario; The N is greater than or equal to 1;
The determination unit is specifically used for:
The hardware specification parameter for modifying the source end host, obtains optional hardware specification;
According to the resource consumption parameter of the source end host under M business scenario in N number of business scenario and described optional The parameter of hardware specification, judges whether the optional hardware specification meets the requirement of the targeted loads;The M is less than or equal to N;
If the optional hardware specification meets the requirement of the targeted loads, using the optional hardware specification as the destination The hardware specification of host.
11. electronic equipment according to claim 10, which is characterized in that the performance parameter further includes N number of business The load of the source end host in scene under each business scenario;
The determination unit is specifically used for:
It calculates separately in the M business scenario under each business scenario, the performance of the hardware specification of the source end host is commented The Performance Evaluation value of valuation and the optional hardware specification;The Performance Evaluation value of the hardware specification of the source end host is according to institute The score value for stating the hardware specification of the resource consumption parameter and the source end host under business scenario is calculated;It is described optional The Performance Evaluation value of hardware specification is according to the resource consumption parameter and the optional hardware specification under the business scenario Assessed value is calculated;
The first reference value in the M business scenario under each business scenario is calculated separately, first reference value is the industry The hardware of the Performance Evaluation value of the optional hardware specification and the source end host under described business scenario rule under scene of being engaged in The Performance Evaluation value of lattice is calculated;
If first reference value in the M business scenario under the business scenario of preset ratio, it is greater than or equal to threshold value, then The optional hardware specification meets the requirement of the targeted loads, the threshold value be according to the load of the source end host with it is described The difference of targeted loads is calculated.
12. electronic equipment according to claim 10, which is characterized in that the determination unit is specifically used for:
According to the resource consumption parameter of the source end host under the M business scenario, calculates separately the source end host and exist Consumed resource in the M business scenario under each business scenario;
The second reference value in the M business scenario under each business scenario is calculated separately, according to second reference value The parameter of the consumed resource of the source end host and the optional hardware specification is calculated under the business scenario;
If second reference value in the M business scenario under the business scenario of preset ratio, it is less than or equal to the mesh Mark load, then the optional hardware specification meets the requirement of the targeted loads.
13. the described in any item electronic equipments of 0-12 according to claim 1, which is characterized in that the performance parameter further includes institute State the source end host load in N number of business scenario under each business scenario;The M business scenario is N number of business In scene, the source end host load is greater than or equal to the business scenario of default load-threshold.
14. according to the described in any item electronic equipments of claim 9-13, which is characterized in that the hardware specification includes in host It is one or more in the parameters described below of one or more hardware cells:
Model, quantity, size.
15. electronic equipment according to claim 14, which is characterized in that the hardware cell includes one in following hardware Or it is multinomial:
Central processor CPU, memory, hard disk.
16. the described in any item electronic equipments of 0-15 according to claim 1, which is characterized in that the resource consumption parameter includes It is following one or more: resource consumption rate, consumed resource.
17. a kind of electronic equipment, which is characterized in that the electronic equipment includes memory and processor, and the memory is used for Computer program is stored, the processor is executed as described in any one of claim 1-8 for calling the computer program Host conveying method.
18. a kind of computer readable storage medium, which is characterized in that be stored with computer in the computer readable storage medium Program, when the computer program is run on a processor, so that the processor is executed such as any one of claim 1-8 institute The host conveying method stated.
CN201910065533.0A 2019-01-23 2019-01-23 Host computer relocation method and device Active CN109857521B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910065533.0A CN109857521B (en) 2019-01-23 2019-01-23 Host computer relocation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910065533.0A CN109857521B (en) 2019-01-23 2019-01-23 Host computer relocation method and device

Publications (2)

Publication Number Publication Date
CN109857521A true CN109857521A (en) 2019-06-07
CN109857521B CN109857521B (en) 2021-06-01

Family

ID=66895812

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910065533.0A Active CN109857521B (en) 2019-01-23 2019-01-23 Host computer relocation method and device

Country Status (1)

Country Link
CN (1) CN109857521B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101739287A (en) * 2008-11-13 2010-06-16 国际商业机器公司 Device, system and method for managing virtual machines
CN101937357A (en) * 2009-07-01 2011-01-05 华为技术有限公司 Virtual machine migration decision-making method, device and system
US20110320556A1 (en) * 2010-06-29 2011-12-29 Microsoft Corporation Techniques For Migrating A Virtual Machine Using Shared Storage
CN102609361A (en) * 2012-01-16 2012-07-25 北京邮电大学 Method and device for transferring storage data of virtual machine
CN104102523A (en) * 2013-04-03 2014-10-15 华为技术有限公司 Method for migrating virtual machine and resource scheduling platform

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101739287A (en) * 2008-11-13 2010-06-16 国际商业机器公司 Device, system and method for managing virtual machines
CN101937357A (en) * 2009-07-01 2011-01-05 华为技术有限公司 Virtual machine migration decision-making method, device and system
US20110320556A1 (en) * 2010-06-29 2011-12-29 Microsoft Corporation Techniques For Migrating A Virtual Machine Using Shared Storage
CN102609361A (en) * 2012-01-16 2012-07-25 北京邮电大学 Method and device for transferring storage data of virtual machine
CN104102523A (en) * 2013-04-03 2014-10-15 华为技术有限公司 Method for migrating virtual machine and resource scheduling platform

Also Published As

Publication number Publication date
CN109857521B (en) 2021-06-01

Similar Documents

Publication Publication Date Title
US10412021B2 (en) Optimizing placement of virtual machines
CN106776005B (en) Resource management system and method for containerized application
DE102015102678B4 (en) IMAGE RECOVERY SYSTEMS AND METHODS
DE112016004801T5 (en) WORKING ASSIGNMENT FOR COMPUTER RESOURCES
Hung et al. Wide-area analytics with multiple resources
CN105487930B (en) A kind of optimizing and scheduling task method based on Hadoop
DE102018006894A1 (en) Technologies for offloading acceleration task scheduling operations on accelerator carriages
DE112020003742T5 (en) METHODS, SYSTEMS, PRODUCTS AND DEVICES FOR IMPROVING JOB PLANNING EFFICIENCY
CN109565515A (en) System, equipment and the process of dynamic tenant's structural adjustment in distributed resource management system
DE102016100902A1 (en) A method for dynamically allocating resources from configurable computing resources
CN106326002B (en) Resource scheduling method, device and equipment
CN107003887A (en) Overloaded cpu setting and cloud computing workload schedules mechanism
CN108008911A (en) Read-write requests processing method and processing device
US10432491B2 (en) Control device for estimation of power consumption and energy efficiency of application containers
DE102015118705A1 (en) Technologies for performance-based off-line data center task scheduling
CN109684074A (en) Physical machine resource allocation methods and terminal device
DE112017003294T5 (en) Technologies for scalable sending and receiving of packets
CN110333945A (en) A kind of dynamic load balancing method, system and terminal
DE102019105881A1 (en) TECHNOLOGIES FOR PROVIDING EFFICIENT DETECTION OF EMPTYING QUALITY GRINDING
CN106790332B (en) Resource scheduling method, system and main node
DE112021005586T5 (en) AUTOMATICALLY SCALING A QUERY CONTROL ROUTINE FOR ENTERPRISE-SCALE BIG DATA WORKLOADS
DE102019102643A1 (en) Novel SSD architecture for FPGA-based acceleration
CN110830384A (en) Method, device and system for limiting service flow
CN112148468A (en) Resource scheduling method and device, electronic equipment and storage medium
DE102012219705B4 (en) DATA PACK PROCESSING ON THE NETWORK

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant