CN107766154A - The conversion method and device of server - Google Patents

The conversion method and device of server Download PDF

Info

Publication number
CN107766154A
CN107766154A CN201710981279.XA CN201710981279A CN107766154A CN 107766154 A CN107766154 A CN 107766154A CN 201710981279 A CN201710981279 A CN 201710981279A CN 107766154 A CN107766154 A CN 107766154A
Authority
CN
China
Prior art keywords
server
bare metal
calculation server
calculation
state
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
CN201710981279.XA
Other languages
Chinese (zh)
Other versions
CN107766154B (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.)
Beijing Hundred Enlightenment Technology Co Ltd
Original Assignee
Beijing Hundred Enlightenment Technology 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 Beijing Hundred Enlightenment Technology Co Ltd filed Critical Beijing Hundred Enlightenment Technology Co Ltd
Priority to CN201710981279.XA priority Critical patent/CN107766154B/en
Publication of CN107766154A publication Critical patent/CN107766154A/en
Application granted granted Critical
Publication of CN107766154B publication Critical patent/CN107766154B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Hardware Redundancy (AREA)

Abstract

Present disclose provides a kind of conversion method of server, including:Judge the state of calculation server;And the state according to the calculation server, realize the mutual conversion between calculation server and bare metal server;Wherein, the calculation server includes mirror image, computation module and virtual machine, and the bare metal server includes mirror image and bare metal component, and the mirror image is static uninstalled operating system, and the virtual machine is produced by computation module and mirror image.Meanwhile the disclosure additionally provides a kind of conversion equipment of server.The disclosure can realize the mutual conversion between calculation server and bare metal server, solve and use uneven situation between two clusters of calculation server and bare metal server, two clusters are enable mutually to change, resource rationally is utilized, reaches the poised state of two kinds of servers when in use.

Description

The conversion method and device of server
Technical field
This disclosure relates to computer realm, more particularly to the conversion method and device of a kind of server.
Background technology
Calculation server can be divided into two independent clusters with bare metal server in current cloud computing platform, the two collection Group in actual use it is possible that calculation server cluster and bare metal server cluster use uneven situation, That is some cluster uses more, resource wretched insufficiency, and another cluster resources idle, causes capital input in whole platform It is bigger, and limitation is very big when using resource.
The content of the invention
(1) technical problems to be solved
The purpose of the disclosure is the conversion method and device for providing a kind of server, to solve above-mentioned at least one skill Art problem.
(2) technical scheme
The one side of the disclosure, there is provided a kind of conversion method of server, including:
Judge the state of calculation server;And
According to the state of the calculation server, the mutual conversion between calculation server and bare metal server is realized;
Wherein, the calculation server includes mirror image, computation module and virtual machine, and the bare metal server includes mirror image With bare metal component, the mirror image is static uninstalled operating system, and the virtual machine is produced by computation module and mirror image.
In some embodiments of the present disclosure, the state for judging calculation server, is to utilize underload algorithm and mistake Loading algorithm is realized.
In some embodiments of the present disclosure, the underload algorithm and overload algorithm are by judging calculation server CPU and the utilization rate of internal memory realize.
In some embodiments of the present disclosure, according to the state of the calculation server, calculation server and naked gold are realized Belong to the mutual conversion between server, specifically include step:
If the state of calculation server is overload, the bare metal server of free time is selected, deletes bare metal therein Component, and computation module is installed on the idle bare metal server, the idle bare metal server is converted into counting Calculate server;And
If the state of calculation server is underload, the calculation server of free time is selected, deletes computation module therein, By on the virtual machine (vm) migration on the idle calculation server to remaining any calculation server, and in idle calculating clothes It is engaged in that bare metal component is installed on device, the idle calculation server is converted into bare metal server.
In some embodiments of the present disclosure, the first management role that the bare metal component is sent according to cloud platform configures The bare metal server, the second management role that the computation module is sent according to cloud platform, manages the virtual machine.
In some embodiments of the present disclosure, mutually turn between calculation server and bare metal server in described realize After alternatively, this method also includes:
Calculation server or bare metal server ip address after modification conversion, and to the calculation server after conversion or Bare metal server is restarted.
Another aspect of the present disclosure, a kind of conversion equipment of server is additionally provided, including:
Condition adjudgement unit, for judging the state of calculation server;And
Converting unit, for the state according to the calculation server, realize calculation server and bare metal server it Between mutual conversion, wherein, the calculation server includes mirror image, computation module and virtual machine, the bare metal server bag Mirror image and bare metal component are included, the mirror image is static uninstalled operating system, and the virtual machine is by computation module and mirror As producing.
In some embodiments of the present disclosure, if the state of calculation server is overload, converting unit selection is idle Bare metal server, and computation module is installed on the idle bare metal server, by the idle bare metal service Device is converted into calculation server;
If the state of calculation server is underload, the idle calculation server of converting unit selection, by the free time Calculation server on virtual machine (vm) migration to remaining any calculation server on, and installed on the idle calculation server Bare metal component, the idle calculation server is converted into bare metal server.
In some embodiments of the present disclosure, it can also include:
Change unit, for change change after calculation server or bare metal server ip address, and to conversion after Calculation server or bare metal server restarted.
In some embodiments of the present disclosure, the bare metal component is used for the first management role sent according to cloud platform The bare metal server is configured, the computation module is used for the second management role sent according to cloud platform, manages described virtual Machine.
(3) beneficial effect
The conversion method and device of the server of the disclosure, compared to prior art, at least with advantages below:
1st, by calculation server overload algorithm and calculation server underload algorithm, the load of calculation server is judged State, in addition, the also separate state of change calculation server and two clusters of bare metal server, realizes the two clusters Changed according to the difference of the load condition of calculation server so that the use of two kinds of servers reaches the state of balance, real The reasonable utilization of existing resource.
2nd, calculation server includes mirror image, computation module and virtual machine, and the bare metal server includes mirror image and naked gold Belong to component, it is only necessary to by deleting and adding the component on two kinds of servers, migrate virtual machine, you can realize two kinds of servers it Between mutual conversion, it is simple to operate, easily realize.
Brief description of the drawings
Fig. 1 is the step schematic diagram of the conversion method of the server of the embodiment of the present disclosure.
Fig. 2 is the schematic flow sheet of the transfer process of the embodiment of the present disclosure.
Fig. 3 is the structural representation of the conversion equipment of the server of the embodiment of the present disclosure.
Embodiment
Cloud computing environment can provide the user two kinds of components of computation module and bare metal component, so as to provide the user Calculating/bare metal server.In traditional cloud computing environment, bare metal server is used to directly to create example to be made for user With, and calculation server is then by virtualization technology, fictionalizes cloud main frame with for users to use.And calculation server and naked gold Category server can be divided into two independent clusters, and the two clusters are in actual use it is possible that calculation server collection Group uses uneven situation with bare metal cluster, i.e. some cluster uses more, resource wretched insufficiency, and another cluster Resources idle, therefore can have in whole platform the defects of capital input is bigger, and limitation is very big when using resource.There is mirror In this, present disclose provides a kind of conversion method of server and device, by calculation server overload algorithm and calculates clothes Business device underload algorithm, judges the load condition of calculation server, in addition, also changing calculation server and bare metal server two The separate state of individual cluster, realize that the two clusters are changed according to the difference of the load condition of calculation server, make The use for obtaining two kinds of servers reaches the state of balance.
For the purpose, technical scheme and advantage of the disclosure are more clearly understood, below in conjunction with specific embodiment, and reference Accompanying drawing, the disclosure is further described.
The one side of the embodiment of the present disclosure, there is provided a kind of conversion method of server, Fig. 1 are the clothes of the embodiment of the present disclosure The step schematic diagram of the conversion method of business device, as shown in figure 1, the conversion method comprises the following steps:
S1, the situation for obtaining from server database calculation server, include the data and number of calculation server Deng, then judge the state of calculation server.In general, bare metal server can not be virtualized, and cloud management platform can only Manage bare metal server in itself, and calculation server can virtualize, and obtain at least one virtual machine, these virtual machines can By cloud management platform management, therefore, server database meeting prioritizing selection calculation server, calculation server should be judged herein State.
S2, the state according to the calculation server, realize and mutually turn between calculation server and bare metal server Change, wherein, the calculation server includes mirror image, computation module and virtual machine, and the bare metal server includes mirror image and naked Metal assembly.The mirror image is static uninstalled operating system, and the virtual machine is produced by computation module and mirror image.Typically Ground, bare metal component can configure the bare metal server, such as network configuration according to the first management role that cloud platform is sent. The second management role that computation module can be sent according to cloud platform, the virtual machine is managed, such as create and delete virtual machine.
In general, the state of calculation server can be judged by underload algorithm and overload algorithm, such as passed through The CPU (central processing unit) of calculation server and the utilization rate of internal memory are judged, in this way, just can quickly judge the negative of calculation server Load state.
Fig. 2 is the schematic flow sheet of the transfer process of the embodiment of the present disclosure, as shown in Fig. 2 the transfer process is specially:
By calculation server overload algorithm, judge whether calculation server is in overload state.If calculate service The state of device is overload, then selects the bare metal server of free time, delete bare metal component therein, and described idle Computation module is installed on bare metal server, the idle bare metal server is converted into calculation server.By by the free time Bare metal server be converted into calculation server, alleviate the state of calculation server overload, realize bare metal service Effective distribution of resources between two clusters of device and calculation server.
When calculation server is not at overload state, then using calculation server underload algorithm, judge to calculate clothes Whether business device is in underload state.If the state of calculation server is underload, the calculation server of free time is selected, is deleted Computation module therein, by the virtual machine (vm) migration on the idle calculation server to remaining any calculation server, and Bare metal component is installed on the idle calculation server, the idle calculation server is converted into bare metal server. It is understood that one side user can be by accessing the calculation server after virtual machine (vm) migration, to obtain in virtual machine Data, the another aspect idle calculation server can be converted into bare metal server and provide the user service.
In order to prevent the calculation server after conversion or bare metal server to be unable to normal use, the conversion method can be with Including the calculation server or bare metal server ip address after step S3, modification conversion, and to the calculating service after conversion Device or bare metal server are restarted.
The another aspect of the embodiment of the present disclosure, additionally provides a kind of conversion equipment of server, and Fig. 3 is the embodiment of the present disclosure Server conversion equipment structural representation, as shown in figure 3, the conversion equipment includes condition adjudgement unit 1 and conversion is single Member 2.
Condition adjudgement unit 1, for judging the state of calculation server.Wherein, the condition adjudgement unit 1 can be by owing Loading algorithm and overload algorithm judge the state of calculation server, more specifically, underload algorithm and overload algorithm can be with Realized by judging CPU and the memory usage of calculation server.
Converting unit 2, for the state according to the calculation server, realize calculation server and bare metal server it Between mutual conversion, wherein, the calculation server includes mirror image, computation module and virtual machine, the bare metal server bag Include mirror image and bare metal component.The virtual machine is produced by computation module and mirror image, and the mirror image is static uninstalled behaviour Make system, bare metal component is used to configure the bare metal server, computation module according to the first management role that cloud platform is sent For the second management role sent according to cloud platform, the virtual machine is managed.
Further, the concrete implementation mode of converting unit 2 is:
By calculation server overload algorithm, judge whether calculation server is in overload state.If calculate service The state of device is overload, then selects the bare metal server of free time, delete bare metal component therein, and described idle Computation module is installed on bare metal server, the idle bare metal server is converted into calculation server.By free time it is naked Metal server is converted into calculation server, takes full advantage of the bare metal server of free time, it is excessively negative to alleviate calculation server The state of load, realize the reasonable disposition of resource.
When calculation server is not at overload state, then using calculation server underload algorithm, judge to calculate clothes Whether business device is in underload state.If the state of calculation server is underload, the calculation server of free time is selected, is deleted Computation module therein, by the virtual machine (vm) migration on the idle calculation server to remaining any calculation server (with Prevent the loss of data in calculation server, the calculation server that user need to only be provided with virtual machine by accessing can obtain pair The data answered), and bare metal component is installed on the idle calculation server, the idle calculation server is converted into naked Metal server.One side user can be by accessing the calculation server after virtual machine (vm) migration, to obtain the number in virtual machine According on the other hand the idle calculation server can also be converted into bare metal server and provide the user service, can prevent There is the situation of resource allocation inequality between idle, two kinds of servers in calculation server.
In addition, in order to prevent the calculation server after conversion or bare metal server to be unable to normal use, the conversion equipment Modification unit can also be included, for changing calculation server or bare metal server ip address after changing, and to conversion Calculation server or bare metal server afterwards is restarted.
The conversion equipment and method of the server of the disclosure, are owed by calculation server overload algorithm and calculation server Loading algorithm, judge the load condition of calculation server, always according to the load condition, change calculation server and bare metal clothes The separate state of business two clusters of device, realizes that the two clusters are turned according to the difference of the load condition of calculation server Change so that the use of two kinds of servers reaches the state of balance, realizes the reasonable utilization of resource.Further, service is calculated The conversion regime of device and bare metal server is simple, easily operated.
The shape and size of each part do not reflect actual size and ratio in accompanying drawing, and only illustrate the interior of the embodiment of the present disclosure Hold.In addition, in the claims, any reference symbol between bracket should not be configured to limitations on claims.
Unless there are known entitled phase otherwise meaning, the numerical parameter in this specification and appended claims are approximations, energy Enough required characteristic changings according to as obtained by content of this disclosure.Specifically, it is all to be used in specification and claim The numeral of the middle content for representing composition, reaction condition etc., it is thus understood that repaiied by the term of " about " in all situations Decorations.Generally, the implication of its expression refers to include by specific quantity ± 10% change in certain embodiments, at some ± 5% change in embodiment, ± 1% change in certain embodiments, in certain embodiments ± 0.5% change.
Furthermore word "comprising" does not exclude the presence of element or step not listed in the claims.Before element Word "a" or "an" does not exclude the presence of multiple such elements.
In addition, unless specifically described or the step of must sequentially occur, the order of above-mentioned steps, which has no, is limited to above institute Row, and can change or rearrange according to required design.And above-described embodiment can based on design and reliability consideration, that This mix and match uses using or with other embodiment mix and match, i.e., the technical characteristic in different embodiments can be with independent assortment Form more embodiments.
Similarly, it will be appreciated that in order to simplify the disclosure and help to understand one or more of each open aspect, Above in the description to the exemplary embodiment of the disclosure, each feature of the disclosure is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor The disclosure of shield requires features more more than the feature being expressly recited in each claim.It is more precisely, such as following Claims reflect as, open aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following embodiment are expressly incorporated in the embodiment, wherein each claim is in itself Separate embodiments all as the disclosure.
Particular embodiments described above, the purpose, technical scheme and beneficial effect of the disclosure are carried out further in detail Describe in detail bright, it should be understood that the foregoing is only the specific embodiment of the disclosure, be not limited to the disclosure, it is all Within the spirit and principle of the disclosure, any modification, equivalent substitution and improvements done etc., the protection of the disclosure should be included in Within the scope of.

Claims (10)

1. a kind of conversion method of server, including:
Judge the state of calculation server;And
According to the state of the calculation server, the mutual conversion between calculation server and bare metal server is realized;
Wherein, the calculation server includes mirror image, computation module and virtual machine, and the bare metal server includes mirror image and naked Metal assembly, the mirror image are static uninstalled operating system, and the virtual machine is produced by computation module and mirror image.
2. conversion method according to claim 1, wherein, the state for judging calculation server, is to utilize underload Algorithm and overload algorithm are realized.
3. conversion method according to claim 1, wherein, the underload algorithm and overload algorithm are by judging to count The CPU of server and the utilization rate of internal memory is calculated to realize.
4. conversion method according to claim 1, wherein, according to the state of the calculation server, realize the service of calculating Mutual conversion between device and bare metal server, specifically includes step:
If the state of calculation server is overload, the bare metal server of free time is selected, deletes bare metal component therein, And computation module is installed on the idle bare metal server, the idle bare metal server is converted into calculate service Device;And
If the state of calculation server is underload, the calculation server of free time is selected, computation module therein is deleted, by institute State on virtual machine (vm) migration to remaining any calculation server on the calculation server of free time, and in the idle calculation server Upper installation bare metal component, bare metal server is converted into by the idle calculation server.
5. conversion method according to claim 1, wherein, the first management that the bare metal component is sent according to cloud platform Task configures the bare metal server, the second management role that the computation module is sent according to cloud platform, manages described virtual Machine.
6. conversion method according to claim 1, wherein, realized described between calculation server and bare metal server Mutual conversion after, this method also includes:
Calculation server or bare metal server ip address after modification conversion, and to the calculation server after conversion or naked gold Category server is restarted.
7. a kind of conversion equipment of server, including:
Condition adjudgement unit, for judging the state of calculation server;And
Converting unit, for the state according to the calculation server, realize between calculation server and bare metal server Mutually conversion, wherein, the calculation server includes mirror image, computation module and virtual machine, and the bare metal server includes mirror Picture and bare metal component, the mirror image are static uninstalled operating system, and the virtual machine is produced by computation module and mirror image It is raw.
8. conversion equipment according to claim 7, wherein:
If the state of calculation server is overload, the idle bare metal server of converting unit selection, and in the free time Bare metal server on computation module is installed, the idle bare metal server is converted into calculation server;
If the state of calculation server is underload, the idle calculation server of converting unit selection, by the idle meter Calculate on virtual machine (vm) migration to remaining any calculation server on server, and naked gold is installed on the idle calculation server Belong to component, the idle calculation server is converted into bare metal server.
9. conversion equipment according to claim 7, wherein, the device also includes:
Unit is changed, for changing calculation server or bare metal server ip address after changing, and to the meter after conversion Calculate server or bare metal server is restarted.
10. conversion equipment according to claim 7, wherein, the bare metal component is used for the sent according to cloud platform One management role configures the bare metal server, and the computation module is used for the second management role sent according to cloud platform, pipe Manage the virtual machine.
CN201710981279.XA 2017-10-19 2017-10-19 Server conversion method and device Active CN107766154B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710981279.XA CN107766154B (en) 2017-10-19 2017-10-19 Server conversion method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710981279.XA CN107766154B (en) 2017-10-19 2017-10-19 Server conversion method and device

Publications (2)

Publication Number Publication Date
CN107766154A true CN107766154A (en) 2018-03-06
CN107766154B CN107766154B (en) 2020-11-10

Family

ID=61269807

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710981279.XA Active CN107766154B (en) 2017-10-19 2017-10-19 Server conversion method and device

Country Status (1)

Country Link
CN (1) CN107766154B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109451056A (en) * 2018-12-20 2019-03-08 中国软件与技术服务股份有限公司 Server dynamic allocation method and system between more clusters
CN110213148A (en) * 2019-05-22 2019-09-06 腾讯科技(深圳)有限公司 A kind of method, system and device of data transmission
US20220138008A1 (en) * 2020-11-04 2022-05-05 Vmware, Inc. Methods and apparatus to manage resources in a hybrid workload domain

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150052519A1 (en) * 2013-08-14 2015-02-19 Bank Of America Corporation Hypervisor driven embedded endpoint security monitoring
CN104683363A (en) * 2013-11-26 2015-06-03 中国银联股份有限公司 Migration of binary application in cloud computing environment
CN104866372A (en) * 2015-05-13 2015-08-26 华中科技大学 Server integration oriented high efficiency physical machine to virtual machine conversion method
CN104899095A (en) * 2014-03-03 2015-09-09 广达电脑股份有限公司 Resource adjustment method and system for virtual machine
CN105959411A (en) * 2016-06-30 2016-09-21 中原智慧城市设计研究院有限公司 Dynamic load balance distributed processing method in cloud computing environment based on coordination
CN106775993A (en) * 2017-02-15 2017-05-31 郑州云海信息技术有限公司 A kind of physical machine is migrated to the method and system of cloud computing platform

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150052519A1 (en) * 2013-08-14 2015-02-19 Bank Of America Corporation Hypervisor driven embedded endpoint security monitoring
CN104683363A (en) * 2013-11-26 2015-06-03 中国银联股份有限公司 Migration of binary application in cloud computing environment
CN104899095A (en) * 2014-03-03 2015-09-09 广达电脑股份有限公司 Resource adjustment method and system for virtual machine
CN104866372A (en) * 2015-05-13 2015-08-26 华中科技大学 Server integration oriented high efficiency physical machine to virtual machine conversion method
CN105959411A (en) * 2016-06-30 2016-09-21 中原智慧城市设计研究院有限公司 Dynamic load balance distributed processing method in cloud computing environment based on coordination
CN106775993A (en) * 2017-02-15 2017-05-31 郑州云海信息技术有限公司 A kind of physical machine is migrated to the method and system of cloud computing platform

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109451056A (en) * 2018-12-20 2019-03-08 中国软件与技术服务股份有限公司 Server dynamic allocation method and system between more clusters
CN110213148A (en) * 2019-05-22 2019-09-06 腾讯科技(深圳)有限公司 A kind of method, system and device of data transmission
CN110213148B (en) * 2019-05-22 2021-10-15 腾讯科技(深圳)有限公司 Data transmission method, system and device
US20220138008A1 (en) * 2020-11-04 2022-05-05 Vmware, Inc. Methods and apparatus to manage resources in a hybrid workload domain

Also Published As

Publication number Publication date
CN107766154B (en) 2020-11-10

Similar Documents

Publication Publication Date Title
WO2020253347A1 (en) Container cluster management method, device and system
CN104813614B (en) Asynchronous framework for IAAS management
CN106385329B (en) Processing method, device and the equipment of resource pool
US20070233838A1 (en) Method for workload management of plural servers
CN105024851A (en) Cloud computing-based monitoring management system
CN110661842B (en) Resource scheduling management method, electronic equipment and storage medium
CN106663012B (en) Hardware acceleration method and related equipment
CN102710793B (en) Network printing system based on cloud computing and data storage method thereof
CN108701132B (en) Resource management system and method
CN109428764B (en) Virtual network function instantiation method
CN103473115B (en) virtual machine placement method and device
WO2012039053A1 (en) Method of managing computer system operations, computer system and computer-readable medium storing program
CN103873534A (en) Method and device for application cluster migration
US10666713B2 (en) Event processing
CN107766154A (en) The conversion method and device of server
CN103034526B (en) A kind of implementation method of virtualization services and device
CN106874116A (en) A kind of server selection method and device for placing newly-built virtual machine
Remesh Babu et al. Service‐level agreement–aware scheduling and load balancing of tasks in cloud
CN112395075A (en) Resource processing method and device and resource scheduling system
CN109408230A (en) Docker container dispositions method and system based on energy optimization
CN105677492B (en) A kind of reliability application execution method of terminaloriented
CN105406983A (en) Cloud computing network management control method based on user requirements
US10990519B2 (en) Multi-tenant cloud elastic garbage collector
US10572412B1 (en) Interruptible computing instance prioritization
CN105718297A (en) Virtual machine establishing system and method

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