CN107766154B - Server conversion method and device - Google Patents

Server conversion method and device Download PDF

Info

Publication number
CN107766154B
CN107766154B CN201710981279.XA CN201710981279A CN107766154B CN 107766154 B CN107766154 B CN 107766154B CN 201710981279 A CN201710981279 A CN 201710981279A CN 107766154 B CN107766154 B CN 107766154B
Authority
CN
China
Prior art keywords
server
computing
bare metal
idle
computing server
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.)
Active
Application number
CN201710981279.XA
Other languages
Chinese (zh)
Other versions
CN107766154A (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 Baiwu Tech Co ltd
Original Assignee
Beijing Baiwu Tech 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 Baiwu Tech Co ltd filed Critical Beijing Baiwu Tech 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

Images

Landscapes

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

Abstract

The present disclosure provides a conversion method of a server, including: judging the state of the computing server; according to the state of the computing server, the mutual conversion between the computing server and the bare metal server is realized; the computing server comprises a mirror image, a computing component and a virtual machine, the bare metal server comprises the mirror image and the bare metal component, the mirror image is a static uninstalled operating system, and the virtual machine is generated by the computing component and the mirror image. Meanwhile, the disclosure also provides a conversion device of the server. The method and the device can realize the interconversion between the computing server and the bare metal server, solve the problem of uneven use between the two clusters of the computing server and the bare metal server, enable the two clusters to realize the interconversion, reasonably utilize resources and achieve the balance state of the two servers in use.

Description

Server conversion method and device
Technical Field
The present disclosure relates to the field of computers, and in particular, to a method and an apparatus for converting a server.
Background
The computing server and the bare metal server can be divided into two independent clusters in the current cloud computing platform, the two clusters can cause uneven use of the computing server cluster and the bare metal server cluster in the actual use process, namely, a certain cluster is used more, resources are seriously insufficient, but the other cluster is idle, so that the asset investment in the whole platform is large, and the limitation is large when the resources are used.
Disclosure of Invention
Technical problem to be solved
The present disclosure is directed to a method and an apparatus for converting a server, so as to solve at least one of the above technical problems.
(II) technical scheme
In one aspect of the present disclosure, a method for converting a server is provided, including:
judging the state of the computing server; and
according to the state of the computing server, the mutual conversion between the computing server and the bare metal server is realized;
the computing server comprises a mirror image, a computing component and a virtual machine, the bare metal server comprises the mirror image and the bare metal component, the mirror image is a static uninstalled operating system, and the virtual machine is generated by the computing component and the mirror image.
In some embodiments of the present disclosure, the determining the state of the computing server is implemented by using an underload algorithm and an overload algorithm.
In some embodiments of the present disclosure, the underload algorithm and the overload algorithm are implemented by determining the utilization of the CPU and the memory of the computing server.
In some embodiments of the present disclosure, according to the state of the computing server, implementing mutual conversion between the computing server and the bare metal server, specifically including the steps of:
if the state of the computing server is overload, selecting an idle bare metal server, deleting a bare metal assembly in the idle bare metal server, installing the computing assembly on the idle bare metal server, and converting the idle bare metal server into the computing server; and
if the state of the computing server is under-load, selecting an idle computing server, deleting the computing components in the idle computing server, migrating the virtual machine on the idle computing server to any of the other computing servers, installing a bare metal component on the idle computing server, and converting the idle computing server into the bare metal server.
In some embodiments of the present disclosure, the bare metal component configures the bare metal server according to a first management task sent by a cloud platform, and the computing component manages the virtual machine according to a second management task sent by the cloud platform.
In some embodiments of the disclosure, after said implementing the interconversion between the compute server and the bare metal server, the method further comprises:
modifying the converted IP address of the computing server or the bare metal server, and restarting the converted computing server or the bare metal server.
In another aspect of the present disclosure, there is also provided a conversion apparatus of a server, including:
a state judgment unit for judging the state of the calculation server; and
the conversion unit is used for realizing the mutual conversion between the computing server and the bare metal server according to the state of the computing server, wherein the computing server comprises a mirror image, a computing component and a virtual machine, the bare metal server comprises the mirror image and the bare metal component, the mirror image is a static operating system which is not installed, and the virtual machine is generated by the computing component and the mirror image.
In some embodiments of the present disclosure, if the state of the computing server is overloaded, the conversion unit selects an idle bare metal server, and installs a computing component on the idle bare metal server to convert the idle bare metal server into the computing server;
if the state of the computing server is under-load, the conversion unit selects an idle computing server, migrates the virtual machine on the idle computing server to any of the other computing servers, installs a bare metal component on the idle computing server, and converts the idle computing server into the bare metal server.
In some embodiments of the present disclosure, may further include:
and the modifying unit is used for modifying the converted IP address of the computing server or the bare metal server and restarting the converted computing server or bare metal server.
In some embodiments of the present disclosure, the bare metal component is configured to configure the bare metal server according to a first management task sent by a cloud platform, and the computing component is configured to manage the virtual machine according to a second management task sent by the cloud platform.
(III) advantageous effects
Compared with the prior art, the conversion method and the conversion device for the server at least have the following advantages:
1. the load state of the computing server is judged through a computing server overload algorithm and a computing server underload algorithm, in addition, the mutually independent states of the computing server and the bare metal server are changed, the two clusters are switched according to the difference of the load states of the computing server, the use of the two servers reaches a balanced state, and the reasonable utilization of resources is realized.
2. The computing server comprises a mirror image, a computing assembly and a virtual machine, the bare metal server comprises the mirror image and the bare metal assembly, the virtual machine is migrated only by deleting and adding assemblies on the two servers, and the mutual conversion between the two servers can be realized.
Drawings
Fig. 1 is a schematic step diagram of a conversion method of a server according to an embodiment of the present disclosure.
Fig. 2 is a flow chart of a conversion process according to an embodiment of the disclosure.
Fig. 3 is a schematic structural diagram of a conversion device of a server according to an embodiment of the present disclosure.
Detailed Description
The cloud computing environment may provide both computing components and bare metal components to a user, thereby providing a computing/bare metal server to the user. In a traditional cloud computing environment, a bare metal server is used for directly creating an instance for a user to use, and a computing server virtualizes a cloud host for the user to use through a virtualization technology. The computing server and the bare metal server are divided into two independent clusters, and the two clusters may have uneven use of the computing server cluster and the bare metal cluster in the actual use process, that is, one cluster is used more and has serious shortage of resources, while the other cluster is idle, so that the defects of large asset investment and large limitation in resource use in the whole platform exist. In view of this, the present disclosure provides a method and an apparatus for switching servers, in which a computing server overload algorithm and a computing server underload algorithm are used to determine a load state of a computing server, and in addition, a state in which two clusters of the computing server and a bare metal server are independent from each other is changed, so that the two clusters are switched according to different load states of the computing server, and the two servers are used in a balanced state.
For the purpose of promoting a better understanding of the objects, aspects and advantages of the present disclosure, reference is made to the following detailed description taken in conjunction with the accompanying drawings.
In an aspect of the embodiments of the present disclosure, a method for converting a server is provided, and fig. 1 is a schematic step diagram of the method for converting a server in the embodiments of the present disclosure, as shown in fig. 1, the method for converting includes the following steps:
s1, obtaining the condition of the calculation server from the server database, including the data and number of the calculation server, and judging the state of the calculation server. Generally, the bare metal server cannot be virtualized, the cloud management platform can only manage the bare metal server, and the computing server can be virtualized to obtain at least one virtual machine, and the virtual machines can be managed by the cloud management platform, so that the server database preferentially selects the computing server where the state of the computing server should be judged.
S2, according to the state of the computing server, realizing the mutual conversion between the computing server and the bare metal server, wherein the computing server comprises a mirror image, a computing component and a virtual machine, and the bare metal server comprises a mirror image and a bare metal component. The image is a static, uninstalled operating system, and the virtual machine is generated by the computing component and the image. Generally, a bare metal component may configure the bare metal server according to a first management task sent by the cloud platform, such as network configuration. The computing component may manage the virtual machine, such as creating and deleting the virtual machine, according to a second management task sent by the cloud platform.
Generally, the state of the computing server can be judged through an underload algorithm and an overload algorithm, for example, by judging the utilization rate of a Central Processing Unit (CPU) and a memory of the computing server, so that the load state of the computing server can be quickly judged.
Fig. 2 is a schematic flow chart of a conversion process according to an embodiment of the present disclosure, and as shown in fig. 2, the conversion process specifically includes:
and judging whether the computing server is in an overload state or not through a computing server overload algorithm. If the state of the computing server is overload, selecting an idle bare metal server, deleting a bare metal assembly in the idle bare metal server, installing the computing assembly on the idle bare metal server, and converting the idle bare metal server into the computing server. By converting the idle bare metal server into the computing server, the overload state of the computing server is relieved, and the effective resource configuration between the bare metal server and the computing server is realized.
And when the computing server is not in an overload state, judging whether the computing server is in an underload state or not by adopting a computing server underload algorithm. If the state of the computing server is under-load, selecting an idle computing server, deleting the computing components in the idle computing server, migrating the virtual machine on the idle computing server to any of the other computing servers, installing a bare metal component on the idle computing server, and converting the idle computing server into the bare metal server. It can be understood that, on one hand, a user can obtain data in the virtual machine by accessing the computing server after the virtual machine is migrated, and on the other hand, the idle computing server can be converted into a bare metal server to provide services for the user.
In order to prevent the converted computing server or bare metal server from being used abnormally, the conversion method may further include step S3, modifying the IP address of the converted computing server or bare metal server, and restarting the converted computing server or bare metal server.
In another aspect of the embodiments of the present disclosure, a conversion apparatus of a server is further provided, and fig. 3 is a schematic structural diagram of the conversion apparatus of the server of the embodiments of the present disclosure, as shown in fig. 3, the conversion apparatus includes a state determination unit 1 and a conversion unit 2.
A state judgment unit 1 for judging the state of the computing server. The state determining unit 1 may determine the state of the computing server through an underload algorithm and an overload algorithm, and more specifically, the underload algorithm and the overload algorithm may be implemented by determining a CPU and a memory usage rate of the computing server.
And the conversion unit 2 is used for realizing the mutual conversion between the computing server and the bare metal server according to the state of the computing server, wherein the computing server comprises a mirror image, a computing component and a virtual machine, and the bare metal server comprises the mirror image and the bare metal component. The virtual machine is generated by a computing component and a mirror image, the mirror image is a static operating system which is not installed, the bare metal component is used for configuring the bare metal server according to a first management task sent by the cloud platform, and the computing component is used for managing the virtual machine according to a second management task sent by the cloud platform.
Further, the specific implementation manner of the conversion unit 2 is as follows:
and judging whether the computing server is in an overload state or not through a computing server overload algorithm. If the state of the computing server is overload, selecting an idle bare metal server, deleting a bare metal assembly in the idle bare metal server, installing the computing assembly on the idle bare metal server, and converting the idle bare metal server into the computing server. The idle bare metal server is converted into the computing server, the idle bare metal server is fully utilized, the overload state of the computing server is relieved, and reasonable allocation of resources is realized.
And when the computing server is not in an overload state, judging whether the computing server is in an underload state or not by adopting a computing server underload algorithm. If the state of the computing server is under-load, selecting an idle computing server, deleting the computing components in the idle computing server, migrating the virtual machines on the idle computing server to any other computing server (so as to prevent data loss in the computing server, and a user can obtain corresponding data only by accessing the computing server provided with the virtual machines), installing bare metal components on the idle computing server, and converting the idle computing server into the bare metal server. On one hand, a user can obtain data in the virtual machine by accessing the computing server after the virtual machine is migrated, on the other hand, the idle computing server can be converted into a bare metal server to provide service for the user, and the situations that the computing server is idle and resources between the two servers are unevenly distributed can be prevented.
In addition, in order to prevent the converted computing server or bare metal server from being used abnormally, the conversion device may further include a modification unit configured to modify the IP address of the converted computing server or bare metal server and restart the converted computing server or bare metal server.
According to the conversion device and method of the server, the load state of the calculation server is judged through the calculation server overload algorithm and the calculation server underload algorithm, the mutually independent states of the calculation server and the bare metal server are changed according to the load state, the two clusters are converted according to the difference of the load states of the calculation server, the two servers are enabled to be in a balanced state, and reasonable utilization of resources is achieved. Furthermore, the conversion mode of the computing server and the bare metal server is simple and easy to operate.
The shapes and dimensions of the components in the drawings are not to reflect actual sizes and proportions, but are merely illustrative of the contents of the embodiments of the present disclosure. Furthermore, in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim.
Unless otherwise indicated, the numerical parameters set forth in the specification and attached claims are approximations that can vary depending upon the desired properties sought to be obtained by the present disclosure. In particular, all numbers expressing quantities of ingredients, reaction conditions, and so forth used in the specification and claims are to be understood as being modified in all instances by the term "about". Generally, the expression is meant to encompass variations of ± 10% in some embodiments, 5% in some embodiments, 1% in some embodiments, 0.5% in some embodiments by the specified amount.
Furthermore, the word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements.
In addition, unless steps are specifically described or must occur in sequence, the order of the steps is not limited to that listed above and may be changed or rearranged as desired by the desired design. The embodiments described above may be mixed and matched with each other or with other embodiments based on design and reliability considerations, i.e., technical features in different embodiments may be freely combined to form further embodiments.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the disclosure, various features of the disclosure are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various disclosed aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that is, the claimed disclosure requires more features than are expressly recited in each claim. Rather, as the following claims reflect, disclosed aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this disclosure.
The above-mentioned embodiments are intended to illustrate the objects, aspects and advantages of the present disclosure in further detail, and it should be understood that the above-mentioned embodiments are only illustrative of the present disclosure and are not intended to limit the present disclosure, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.

Claims (6)

1. A method of translation of a server, comprising:
judging the state of the computing server;
according to the state of the computing server, the mutual conversion between the computing server and the bare metal server is realized;
modifying the converted IP address of the computing server or the bare metal server, and restarting the converted computing server or the bare metal server;
the computing server comprises a mirror image, a computing component and a virtual machine, the bare metal server comprises a mirror image and a bare metal component, the mirror image is a static uninstalled operating system, and the virtual machine is generated by the computing component and the mirror image;
wherein, according to the state of the computing server, the mutual conversion between the computing server and the bare metal server is realized, and the method comprises the following steps:
if the state of the computing server is overload, selecting an idle bare metal server, deleting a bare metal assembly in the idle bare metal server, installing the computing assembly on the idle bare metal server, and converting the idle bare metal server into the computing server; and
if the state of the computing server is under-load, selecting an idle computing server, deleting the computing components in the idle computing server, migrating the virtual machine on the idle computing server to any of the other computing servers, installing a bare metal component on the idle computing server, and converting the idle computing server into the bare metal server.
2. The transition method according to claim 1, wherein said determining the state of the computing server is performed using an underload algorithm and an overload algorithm.
3. The conversion method of claim 2, wherein the underload algorithm and the overload algorithm are implemented by determining CPU and memory usage of a compute server.
4. The conversion method according to claim 1, wherein the bare metal component configures the bare metal server according to a first management task sent by a cloud platform, and the computing component manages the virtual machine according to a second management task sent by the cloud platform.
5. A conversion apparatus of a server, comprising:
a state judgment unit for judging the state of the calculation server;
the conversion unit is used for realizing the mutual conversion between the computing server and a bare metal server according to the state of the computing server, wherein the computing server comprises a mirror image, a computing component and a virtual machine, the bare metal server comprises the mirror image and the bare metal component, the mirror image is a static operating system which is not installed, and the virtual machine is generated by the computing component and the mirror image; and
the modification unit is used for modifying the converted IP address of the calculation server or the bare metal server and restarting the converted calculation server or bare metal server; if the state of the computing server is overload, the conversion unit selects an idle bare metal server, deletes a bare metal assembly in the idle bare metal server, installs the computing assembly on the idle bare metal server and converts the idle bare metal server into the computing server;
if the state of the computing server is under-load, the conversion unit selects an idle computing server, deletes a computing component in the idle computing server, migrates the virtual machine on the idle computing server to any of the other computing servers, installs a bare metal component on the idle computing server, and converts the idle computing server into the bare metal server.
6. The conversion apparatus according to claim 5, wherein the bare metal component is configured to configure the bare metal server according to a first management task sent by a cloud platform, and the computing component is configured to manage the virtual machine according to a second management task sent by the cloud platform.
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 CN107766154A (en) 2018-03-06
CN107766154B true 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)

Families Citing this family (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
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

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

Also Published As

Publication number Publication date
CN107766154A (en) 2018-03-06

Similar Documents

Publication Publication Date Title
US9183378B2 (en) Runtime based application security and regulatory compliance in cloud environment
US9984648B2 (en) Delivering GPU resources to a migrating virtual machine
US10394477B2 (en) Method and system for memory allocation in a disaggregated memory architecture
US8930731B2 (en) Reducing power consumption in data centers having nodes for hosting virtual machines
US9218042B2 (en) Cooperatively managing enforcement of energy related policies between virtual machine and application runtime
EP3313023A1 (en) Life cycle management method and apparatus
US9038085B2 (en) System, method and program product for cost-aware selection of stored virtual machine images for subsequent use
US20070233838A1 (en) Method for workload management of plural servers
WO2018040525A1 (en) Method, device, and equipment for processing resource pool
JP5352890B2 (en) Computer system operation management method, computer system, and computer-readable medium storing program
US8621081B2 (en) Hypervisor controlled user device that enables available user device resources to be used for cloud computing
US11463509B2 (en) Rolling capacity upgrade control
EP3706368A1 (en) Method and device for deploying virtualized network element device
CN106663012B (en) Hardware acceleration method and related equipment
JP2013536518A (en) How to enable hypervisor control in a cloud computing environment
CN107766154B (en) Server conversion method and device
US9407523B2 (en) Increasing performance of a streaming application by running experimental permutations
US10990519B2 (en) Multi-tenant cloud elastic garbage collector
EP3387816A1 (en) Connecting and retrieving security tokens based on context
Wu et al. iShare: Balancing I/O performance isolation and disk I/O efficiency in virtualized environments
Lee et al. Design for management software of desktop virtualization solutions
Rochwerger et al. Design for Future Internet Service Infrastructures.
Zhou et al. Guaranteeing QoS of media-based applications in virtualized environment
Kuang et al. A study on cloud platform for multi-service virtual computing resource contention
Bipinchadra et al. Survey on Resource Management Strategies for Desktop-as-a-Service in Cloud Environment

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