CN116208483A - Method for realizing high-availability bare metal service, related device and storage medium - Google Patents

Method for realizing high-availability bare metal service, related device and storage medium Download PDF

Info

Publication number
CN116208483A
CN116208483A CN202211441259.0A CN202211441259A CN116208483A CN 116208483 A CN116208483 A CN 116208483A CN 202211441259 A CN202211441259 A CN 202211441259A CN 116208483 A CN116208483 A CN 116208483A
Authority
CN
China
Prior art keywords
bare metal
network
availability
service
creation request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211441259.0A
Other languages
Chinese (zh)
Inventor
才鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
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 China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN202211441259.0A priority Critical patent/CN116208483A/en
Publication of CN116208483A publication Critical patent/CN116208483A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0806Configuration setting for initial configuration or provisioning, e.g. plug-and-play
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application provides a realization method of high-availability bare metal service, a related device and a storage medium, wherein the method comprises the following steps: after receiving a creation request of high-availability bare metal service of a tenant, analyzing the creation request to obtain an analyzed creation request; calling a private cloud network component according to the analyzed creation request, and applying for three available Overlay network IPs under the subnet corresponding to the tenant; the two available Overlay network IPs are used as the true IPs of the two bare metals and are directly bound on a bond0 network card of the physical machine, and the other Overlay network IP is used as a floating IP of the high-availability bare metal for external service; performing system installation and initialization configuration on the two bare metal servers, and simultaneously pulling out high-availability agents for installation and deployment; bare metal is mapped into an overlay network through network virtualization techniques. Thereby realizing bare metal service of 'out-of-box and use'.

Description

Method for realizing high-availability bare metal service, related device and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method for implementing a high-availability bare metal service, a related device, and a storage medium.
Background
The existing bare metal example can be matched with a component load balance (Component LoActive DirectoryBalancing, CLB) product on the cloud to realize high-availability service of the main bare metal and the standby bare metal. An intranet CLB is applied in a private network (Virtual Private Cloud, VPC), two bare metal examples are mounted behind the CLB, the weight of the bare metal (main service) is set to 100, the weight of the bare metal (standby service) is set to 0, and when a tenant accesses daily, the address of the intranet CLB can be accessed directly. And deploying monitoring and main-standby switching control services under the tenant, and calling a CLB interface when the main service abnormality is monitored, dynamically modifying the weight of the CLB interface to 0 and modifying the weight of bare metal (standby service) to 100, thereby completing the main-standby dynamic switching.
The existing CLB-based schemes have mainly three drawbacks: 1. the client (cvm) accesses the high-availability bare metal service, the whole transaction link is longer, and the transaction performance is reduced by devices such as a CLB gateway, a VPC gateway, a bare metal gateway and the like; 2. the partial gateway on the link is AZ (logic available area) high-availability, so that the overall high-availability capacity is reduced; 3. the tenant is required to additionally call an API interface on the cloud and deploy a corresponding monitoring component, and the whole scheme cannot be used after unpacking.
Disclosure of Invention
In view of this, the present application provides a method for implementing a high availability bare metal service, a related device and a storage medium, which do not depend on other network components on the cloud, and the overall transaction link is shorter, and meanwhile, the technical characteristics of network blurring of the existing bare metal are fully utilized, so as to implement a bare metal service that is "out of box and in use".
The first aspect of the present application provides a method for implementing a high availability bare metal service, including:
receiving a creation request of high-availability bare metal service of a tenant;
analyzing the creation request to obtain an analyzed creation request; wherein the parsed creation request includes a user demand;
calling a private cloud network component according to the parsed creation request, and applying for three available Overlay network IPs under the subnet corresponding to the tenant; the two available Overlay network IPs are used as the true IPs of the two bare metals and are directly bound on a bond0 network card of the physical machine, and the other Overlay network IP is used as a floating IP of the high-availability bare metal for external service;
installing a system of the two bare metal servers through a pre-start execution environment according to the user demand;
after the bare metal server is installed, logging in the bare metal service through a secure shell protocol, carrying out the initialization configuration of the password and the network of the bare metal, and simultaneously pulling out the high-availability agent for installation and deployment;
the control plane issues configuration to the uplink switch, and the bare metal is mapped into the Overlay network through a network virtualization technology.
Optionally, the implementation method of the high-availability bare metal service further includes:
continuously receiving the reported health state of the agent;
if the health state indicates that the health is abnormal, performing active-standby switching; wherein, the standby node adds a network subinterface newly and configures a floating IP; and after the standby node agent receives the configuration, the standby node agent automatically completes the floating IP configuration.
Optionally, the automatic floating IP configuration is performed by configuring a sub-interface of the bond0 network card.
Optionally, the implementation method of the high-availability bare metal service further includes:
if the CPU or the memory in the health state exceeds a threshold value, determining that the health is abnormal;
or alternatively, the first and second heat exchangers may be,
if the agent does not report the health state beyond the preset time interval, determining that the health is abnormal.
A second aspect of the present application provides an isolation device of a server, including:
a first receiving unit, configured to receive a creation request of a high-availability bare metal service of a tenant;
the analysis unit is used for analyzing the creation request to obtain an analyzed creation request; wherein the parsed creation request includes a user demand;
an application unit, configured to invoke a private cloud network component according to the parsed creation request, and apply for three available Overlay network IPs under the subnet corresponding to the tenant; the two available Overlay network IPs are used as the true IPs of the two bare metals and are directly bound on a bond0 network card of the physical machine, and the other Overlay network IP is used as a floating IP of the high-availability bare metal for external service;
the first installation unit is used for performing system installation on the two bare metal servers through a pre-starting execution environment according to the user requirements;
the second installation unit is used for logging in the bare metal service through a secure shell protocol after the bare metal server is installed, carrying out the initialization configuration of the password and the network of the bare metal, and simultaneously pulling out the high-availability agent for installation and deployment;
and the mapping unit is used for controlling the configuration of the uplink switch and mapping the bare metal into the Overlay network through a network virtualization technology.
Optionally, the implementation device of the high-availability bare metal service further includes:
the second receiving unit is used for continuously receiving the reported health state of the agent;
the main-standby switching unit is used for switching the main unit and the standby unit if the health state indicates that the health is abnormal; wherein, the standby node adds a network subinterface newly and configures a floating IP; and after the standby node agent receives the configuration, the standby node agent automatically completes the floating IP configuration.
Optionally, the automatic floating IP configuration is performed by configuring a sub-interface of the bond0 network card.
Optionally, the implementation device of the high-availability bare metal service further includes:
the first determining unit is used for determining that the health is abnormal if the CPU or the memory in the health state exceeds a threshold value;
or alternatively, the first and second heat exchangers may be,
and the second determining unit is used for determining the health abnormality if the agent does not report the health state beyond the preset time interval.
A third aspect of the present application provides an electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement a method of implementing a high availability bare metal service as claimed in any of the first aspects.
A fourth aspect of the present application provides a storage medium having stored thereon a computer program, wherein the computer program, when executed by a processor, implements a method of implementing a high availability bare metal service according to any of the first aspects.
As can be seen from the above solutions, the present application provides a method for implementing a high availability bare metal service, a related device, and a storage medium, where the method for implementing the high availability bare metal service includes: firstly, receiving a creation request of high-availability bare metal service of a tenant; then, analyzing the creation request to obtain an analyzed creation request; wherein the parsed creation request includes a user demand; then, calling a private cloud network component according to the parsed creation request, and applying for three available Overlay network IPs under the subnet corresponding to the tenant; the two available Overlay network IPs are used as the true IPs of the two bare metals and are directly bound on a bond0 network card of the physical machine, and the other Overlay network IP is used as a floating IP of the high-availability bare metal for external service; performing system installation on the two bare metal servers through a pre-start execution environment according to the user requirements; after the bare metal server is installed, logging in the bare metal service through a secure shell protocol, carrying out the initialization configuration of the password and the network of the bare metal, and simultaneously pulling out the high-availability agent for installation and deployment; finally, the control plane issues configuration to the uplink switch, and the bare metal is mapped into the Overlay network through a network virtualization technology. The method does not depend on other network components on the cloud, the whole transaction link is shorter, the technical characteristic of network blurring of the existing bare metal is fully utilized, and the bare metal service of 'out-of-box and use' is realized.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings may be obtained according to the provided drawings without inventive effort to a person skilled in the art.
Fig. 1 is a specific flowchart of an implementation method of a high-availability bare metal service according to an embodiment of the present application;
FIG. 2 is a flow chart of a method for implementing a high availability bare metal service according to another embodiment of the present application;
FIG. 3 is an overall frame diagram of an implementation method for implementing high availability bare metal services according to another embodiment of the present application;
FIG. 4 is a schematic diagram of an implementation apparatus for high availability bare metal services according to another embodiment of the present application;
FIG. 5 is a schematic diagram of an implementation apparatus for high availability bare metal services according to another embodiment of the present application;
fig. 6 is a schematic diagram of an electronic device implementing a method for implementing a high availability bare metal service according to another embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The term "including" and variations thereof as used herein are intended to be open-ended, i.e., including, but not limited to. The term "based on" is based at least in part on. The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments. Related definitions of other terms will be given in the description below.
It should be noted that the terms "first," "second," and the like herein are merely used for distinguishing between different devices, modules, or units and not for limiting the order or interdependence of the functions performed by such devices, modules, or units.
It should be noted that references to "one" or "a plurality" in this application are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be interpreted as "one or more" unless the context clearly indicates otherwise.
First, technical terms mentioned in the present application are explained:
bare metal server (Bare Metal Server, BMS): the physical server on the cloud can be seamlessly integrated with the existing cloud computing, network and other services, so that the extremely-high-performance and stable physical computing resources are provided for the service, and the physical server on the cloud can be matched with cloud products such as a cloud server (CVM), a private network (VPC) and the like for use, and the advantages of stability of the traditional host and high elasticity of resources on the cloud are integrated.
EVPN: the EVPN technique can be used to dynamically transfer MAC information, support MAC migration, and ARP suppression.
BGP EVPN: the EVPN defines a series of new BGP EVPN route types based on MP-BGP, so that different stations in the EVPN network can mutually learn MAC address information.
Underway network: the cloud service based on the bearer network is composed of various physical devices, and the bearer network ensures IP connectivity among the devices by using a routing protocol, and all the cloud services run in an underley network.
Overlay network: refers to one or more virtual logical networks constructed on the same underway network through a network virtualization technology.
The embodiment of the application provides a method for realizing high-availability bare metal service, which specifically comprises the following steps as shown in fig. 1:
s101, receiving a creation request of high-availability bare metal service of a tenant.
S102, analyzing the creation request to obtain an analyzed creation request.
The parsed creation request comprises user requirements, a subnet, a machine type, an operating system, a high-availability identifier and the like.
Specifically, after receiving a creation request of a high-availability bare metal service of a tenant, performing basic parameter verification on the creation request, and then analyzing to obtain the data.
S103, calling a private cloud network component according to the analyzed creation request, and applying for three available Overlay network IPs under the subnet corresponding to the tenant.
The two available Overlay network IPs are used as the true IPs of the two bare metals and are directly bound on a bond0 network card of the physical machine, and the other Overlay network IP is used as a floating IP of the high-availability bare metal for external service.
It should be noted that, eventually, in the overlay network, two bare metal servers and three overlay ips will be used. The reaip is that two bare metals each configure a fixed reaip, the floating IP is configured on the main server by default, and when the main server fails, the floating IP is switched to the standby server. Floating IP will be the IP for external services.
S104, installing the system of the two bare metal servers through the pre-starting execution environment according to the user requirements.
S105, logging in the bare metal service through a secure shell protocol after the bare metal server is installed, carrying out the initialization configuration of the password and the network of the bare metal, and simultaneously pulling out the high-availability agent for installation and deployment.
S106, the control plane issues configuration to the uplink switch, and the bare metal is mapped into the Overlay network through a network virtualization technology.
It should be noted that, the network virtualization technology includes, but is not limited to, VXLAN, BGP EVPN, and the like, which are not limited herein.
Optionally, in another embodiment of the present application, an implementation method of the high available bare metal service, as shown in fig. 2, further includes:
s201, continuously receiving the reported health state of the agent.
And S202, if the health state indicates that the health is abnormal, performing active-standby switching.
Wherein, the standby node newly adds a network subinterface and configures a floating IP; after the standby node agent receives the configuration, the standby node agent automatically completes the floating IP configuration.
It should be noted that, only one realpp is configured at the beginning of the standby server, and when the main fault occurs, the floating IP address is configured by means of the network subinterface. Since the external always accesses the address that is the floating IP, the switching traffic is not interrupted and no additional action is required by the accessing party.
Because of the limitation of network security on public cloud, the service of the underlay is forbidden to directly access the service of the overlay, so that the bare metal of the overlay is designed to access the high-availability control module of the underlay through the proxy, and corresponding control instructions are issued through corresponding messages, so that the automatic configuration of the high-availability bare metal is realized.
Optionally, in another embodiment of the present application, the manner of automatically completing the floating IP configuration is by configuring a sub-interface of the bond0 network card.
It should be noted that, under the same cloud region, the uplink switch of the bare metal will make a fully connected BGP neighbor, and the arp information of the bare metal under the same VPN INSTANCE will be synchronized automatically by BGP EVPN, so that even if the active and standby bare metals are distributed across the switch, after the floating IP is migrated, the synchronization of the arp information can be completed automatically.
Specifically, EVPN (Ethernet Virtual Private Network) is a VPN technology for two-layer network interconnection. The EVPN technology adopts a mechanism similar to BGP/MPLS IP VPN, defines a new network layer reachable information NLRI (Network Layer Reachability Information), namely EVPN NLRI, on the basis of BGP protocol, and defines several new BGP EVPN route types for MAC address learning and release between different sites of a two-layer network.
The original VXLAN implementation scheme has no control plane, is used for VTEP discovery and host information (including IP address, MAC address, VNI and gateway VTEP IP address) learning through traffic flooding of a data plane, and causes the VXLAN network to have a lot of flooding traffic. In order to solve the problem, VXLAN introduces EVPN as a control plane, and realizes functions of automatic discovery of VTEP, mutual notification of host information, etc. by exchanging BGP EVPN routes between VTEPs, thereby avoiding unnecessary data traffic flooding.
In summary, the EVPN newly defines several BGP EVPN routes by extending BGP protocol, and these BGP EVPN routes can be used to transfer VTEP addresses and host information, so that the EVPN is applied in VXLAN network, and VTEP discovery and host information learning can be transferred from the data plane to the control plane.
Optionally, in another embodiment of the present application, if the CPU or the memory in the health state exceeds the threshold, determining that the health is abnormal; or if the agent does not report the health state beyond the preset time interval, determining that the health is abnormal.
As shown in fig. 3, an overall framework diagram of a method for implementing a high-availability bare metal service provided in the present application includes a bare metal management and control device, a bare metal resource pool, a public cloud service, and an installed service. The bare metal management device includes an interface (API) access layer, a bare metal management module (IRONIC), and a high availability module. The bare metal resource pool comprises a proxy server.
The bare metal management module interface layer analyzes the request of creating high-availability bare metal service by the tenant and forwards the request to the high-availability module;
the high-availability module calls the VCP network component through the IRONIC module, applies for three available Overlay network IPs under the corresponding tenant subnets, wherein two REALIPs serving as two bare metals are directly bound on a bond0 network card of the physical machine, and the other IP is used as a floating IP of the high-availability bare metal for external service;
calling an installation component, and performing system installation on two bare metals through PXE (pre-start execution environment) according to user requirements;
after the bare metal system is installed (the bare metal is still on an underley network at the moment), logging in to a bare metal service through SSH, carrying out password and network initialization configuration of the bare metal, and simultaneously, pulling high-availability agents for installation and deployment;
the control plane issues configuration to the uplink switch, and the bare metal is mapped into the overlay network through network virtualization technologies such as VXLAN, BGP EVPN and the like.
After the bare metal is switched to the overlay network, the agent can automatically report the health information of the bare metal to the high-availability module. After receiving the health report request, the high-availability module randomly selects one device and issues a configuration task of the floating IP in a response message of the request. After the Agent receives the configuration, the floating IP configuration is automatically completed, and the sub-interface of the bond0 network card is configured at present. To this end, the client can access the service provided by the bare metal through the floating IP.
According to the scheme, the application provides a realization method of high-availability bare metal service, which comprises the following steps: firstly, receiving a creation request of high-availability bare metal service of a tenant; then, analyzing the creation request to obtain an analyzed creation request; the parsed creation request comprises a user requirement; then, calling a private cloud network component according to the analyzed creation request, and applying for three available Overlay network IPs under the subnet corresponding to the tenant; the two available Overlay network IPs are used as the true IPs of the two bare metals and are directly bound on a bond0 network card of the physical machine, and the other Overlay network IP is used as a floating IP of the high-availability bare metal for external service; secondly, installing the system of the two bare metal servers through a pre-starting execution environment according to the requirements of users; after the bare metal server is installed, logging in the bare metal service through a secure shell protocol, carrying out the initialization configuration of the password and the network of the bare metal, and simultaneously pulling out the high-availability agent for installation and deployment; finally, the control plane issues configuration to the uplink switch, and the bare metal is mapped into the Overlay network through a network virtualization technology. The method does not depend on other network components on the cloud, the whole transaction link is shorter, the technical characteristic of network blurring of the existing bare metal is fully utilized, and the bare metal service of 'out-of-box and use' is realized.
The embodiment of the application provides a device for realizing high-availability bare metal service, as shown in fig. 4, which specifically comprises:
the first receiving unit 401 is configured to receive a creation request of a high available bare metal service of a tenant.
The parsing unit 402 is configured to parse the creation request to obtain a parsed creation request.
Wherein the parsed creation request includes a user requirement.
An application unit 403, configured to invoke the private cloud network component according to the parsed creation request, and apply for three available Overlay network IPs under the subnet corresponding to the tenant.
The two available Overlay network IPs are used as the true IPs of the two bare metals and are directly bound on a bond0 network card of the physical machine, and the other Overlay network IP is used as a floating IP of the high-availability bare metal for external service.
The first installation unit 404 is configured to perform system installation on two bare metal servers through a pre-boot execution environment according to a user requirement.
And the second installation unit 405 is configured to log in to the bare metal service through a secure shell protocol after the bare metal server is installed, perform the initialization configuration of the password and the network of the bare metal, and pull the high available agent at the same time, and perform installation deployment.
And a mapping unit 406, configured to control the configuration of the upstream switch, and map the bare metal into the Overlay network through a network virtualization technology.
The specific working process of the unit disclosed in the foregoing embodiments of the present application may refer to the content of the corresponding method embodiment, as shown in fig. 1, which is not repeated herein.
Optionally, in another embodiment of the present application, an implementation apparatus for implementing a high available bare metal service, as shown in fig. 5, further includes:
the second receiving unit 501 is configured to continuously receive the reported health status of the agent.
And the active/standby switching unit 502 is configured to perform active/standby switching if the health status indicates that the health status is abnormal.
Wherein, the standby node newly adds a network subinterface and configures a floating IP; after the standby node agent receives the configuration, the standby node agent automatically completes the floating IP configuration.
The specific working process of the unit disclosed in the foregoing embodiments of the present application may refer to the content of the corresponding method embodiment, as shown in fig. 2, which is not described herein again.
Optionally, in another embodiment of the present application, the manner of automatically completing the floating IP configuration is by configuring a sub-interface of the bond0 network card.
Optionally, in another embodiment of the present application, an implementation apparatus for implementing a high available bare metal service further includes:
the first determining unit is used for determining that the health is abnormal if the CPU or the memory in the health state exceeds a threshold value;
or alternatively, the first and second heat exchangers may be,
and the second determining unit is used for determining the health abnormality if the agent does not report the health state beyond the preset time interval.
The specific working process of the unit disclosed in the foregoing embodiments of the present application may refer to the content of the corresponding method embodiment, which is not described herein again.
According to the scheme, the application provides a device for realizing high-availability bare metal service: first, the first receiving unit 401 receives a creation request of a high available bare metal service of a tenant; then, the parsing unit 402 parses the creation request to obtain a parsed creation request; the parsed creation request comprises a user requirement; then, the application unit 403 calls the private cloud network component according to the parsed creation request, and applies for three available Overlay network IPs under the subnet corresponding to the tenant; the two available Overlay network IPs are used as the true IPs of the two bare metals and are directly bound on a bond0 network card of the physical machine, and the other Overlay network IP is used as a floating IP of the high-availability bare metal for external service; the first installation unit 404 performs system installation on the two bare metal servers through a pre-start execution environment according to user requirements; after the bare metal server is installed, the second installation unit 405 logs on to the bare metal service through a secure shell protocol, performs the initialization configuration of the password and the network of the bare metal, and pulls up the high-availability agent to perform installation deployment; finally, the mapping unit 406 controls the configuration of the upstream switch, and maps the bare metal into the Overlay network through the network virtualization technology. The method does not depend on other network components on the cloud, the whole transaction link is shorter, the technical characteristic of network blurring of the existing bare metal is fully utilized, and the bare metal service of 'out-of-box and use' is realized.
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
Another embodiment of the present application provides an electronic device, as shown in fig. 6, including:
one or more processors 601.
A storage device 602 on which one or more programs are stored.
The one or more programs, when executed by the one or more processors 601, cause the one or more processors 601 to implement the method of implementing a high availability bare metal service as in any of the embodiments above.
Another embodiment of the present application provides a storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements a method for implementing a high availability bare metal service as in any of the above embodiments.
In the context of this application, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
It should be noted that the computer readable medium described in the present application may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present application, however, a computer-readable signal medium may include a data signal that propagates in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device.
Another embodiment of the present application provides a computer program product for performing the implementation of the high availability bare metal service of any of the above, when the computer program product is executed.
In particular, according to embodiments of the present application, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a non-transitory computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via a communication device, or installed from a storage device, or installed from ROM. The above-described functions defined in the methods of the embodiments of the present application are performed when the computer program is executed by a processing device.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are example forms of implementing the claims.
While several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present application. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
The foregoing description is only of the preferred embodiments of the present application and is presented as a description of the principles of the technology being utilized. It will be appreciated by persons skilled in the art that the scope of the application referred to in this application is not limited to the specific combinations of features described above, but it is intended to cover other embodiments in which any combination of features described above or their equivalents is contemplated without departing from the spirit of the application. Such as the above-mentioned features and the technical features having similar functions (but not limited to) applied for in this application are replaced with each other.

Claims (10)

1. A method for implementing a high availability bare metal service, comprising:
receiving a creation request of high-availability bare metal service of a tenant;
analyzing the creation request to obtain an analyzed creation request; wherein the parsed creation request includes a user demand;
calling a private cloud network component according to the parsed creation request, and applying for three available Overlay network IPs under the subnet corresponding to the tenant; the two available Overlay network IPs are used as the true IPs of the two bare metals and are directly bound on a bond0 network card of the physical machine, and the other Overlay network IP is used as a floating IP of the high-availability bare metal for external service;
installing a system of the two bare metal servers through a pre-start execution environment according to the user demand;
after the bare metal server is installed, logging in the bare metal service through a secure shell protocol, carrying out the initialization configuration of the password and the network of the bare metal, and simultaneously pulling out the high-availability agent for installation and deployment;
the control plane issues configuration to the uplink switch, and the bare metal is mapped into the Overlay network through a network virtualization technology.
2. The method for implementing high availability bare metal services according to claim 1, further comprising:
continuously receiving the reported health state of the agent;
if the health state indicates that the health is abnormal, performing active-standby switching; wherein, the standby node adds a network subinterface newly and configures a floating IP; and after the standby node agent receives the configuration, the standby node agent automatically completes the floating IP configuration.
3. The method for implementing high availability bare metal services according to claim 2, wherein said automatically completing the floating IP configuration is by configuring a sub-interface of a bond0 network card.
4. The method for implementing high availability bare metal services according to claim 2, further comprising:
if the CPU or the memory in the health state exceeds a threshold value, determining that the health is abnormal;
or alternatively, the first and second heat exchangers may be,
if the agent does not report the health state beyond the preset time interval, determining that the health is abnormal.
5. An apparatus for implementing a high availability bare metal service, comprising:
a first receiving unit, configured to receive a creation request of a high-availability bare metal service of a tenant;
the analysis unit is used for analyzing the creation request to obtain an analyzed creation request; wherein the parsed creation request includes a user demand;
an application unit, configured to invoke a private cloud network component according to the parsed creation request, and apply for three available Overlay network IPs under the subnet corresponding to the tenant; the two available Overlay network IPs are used as the true IPs of the two bare metals and are directly bound on a bond0 network card of the physical machine, and the other Overlay network IP is used as a floating IP of the high-availability bare metal for external service;
the first installation unit is used for performing system installation on the two bare metal servers through a pre-starting execution environment according to the user requirements;
the second installation unit is used for logging in the bare metal service through a secure shell protocol after the bare metal server is installed, carrying out the initialization configuration of the password and the network of the bare metal, and simultaneously pulling out the high-availability agent for installation and deployment;
and the mapping unit is used for controlling the configuration of the uplink switch and mapping the bare metal into the Overlay network through a network virtualization technology.
6. The apparatus for implementing high availability bare metal services according to claim 5, further comprising:
the second receiving unit is used for continuously receiving the reported health state of the agent;
the main-standby switching unit is used for switching the main unit and the standby unit if the health state indicates that the health is abnormal; wherein, the standby node adds a network subinterface newly and configures a floating IP; and after the standby node agent receives the configuration, the standby node agent automatically completes the floating IP configuration.
7. The apparatus for implementing high availability bare metal services according to claim 6, wherein said automatically completing floating IP configuration is by configuring a sub-interface of a bond0 network card.
8. The apparatus for implementing high availability bare metal services according to claim 6, further comprising:
the first determining unit is used for determining that the health is abnormal if the CPU or the memory in the health state exceeds a threshold value;
or alternatively, the first and second heat exchangers may be,
and the second determining unit is used for determining the health abnormality if the agent does not report the health state beyond the preset time interval.
9. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of implementing a high availability bare metal service as claimed in any one of claims 1 to 4.
10. A storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the method of implementing a high availability bare metal service according to any of claims 1 to 4.
CN202211441259.0A 2022-11-17 2022-11-17 Method for realizing high-availability bare metal service, related device and storage medium Pending CN116208483A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211441259.0A CN116208483A (en) 2022-11-17 2022-11-17 Method for realizing high-availability bare metal service, related device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211441259.0A CN116208483A (en) 2022-11-17 2022-11-17 Method for realizing high-availability bare metal service, related device and storage medium

Publications (1)

Publication Number Publication Date
CN116208483A true CN116208483A (en) 2023-06-02

Family

ID=86510213

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211441259.0A Pending CN116208483A (en) 2022-11-17 2022-11-17 Method for realizing high-availability bare metal service, related device and storage medium

Country Status (1)

Country Link
CN (1) CN116208483A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116668296A (en) * 2023-08-01 2023-08-29 苏州浪潮智能科技有限公司 Gateway node scheduling method, system, equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116668296A (en) * 2023-08-01 2023-08-29 苏州浪潮智能科技有限公司 Gateway node scheduling method, system, equipment and storage medium
CN116668296B (en) * 2023-08-01 2023-11-03 苏州浪潮智能科技有限公司 Gateway node scheduling method, system, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN112470436B (en) Systems, methods, and computer-readable media for providing multi-cloud connectivity
US11057343B2 (en) Default gateway extension
US11588683B2 (en) Stitching enterprise virtual private networks (VPNs) with cloud virtual private clouds (VPCs)
CN110971442B (en) Migrating workloads in a multi-cloud computing environment
US20190196921A1 (en) High availability and failovers
CN105610632B (en) Virtual network equipment and related method
EP2854352B1 (en) Apparatuses for implementing connectivity between edge devices via a switch fabric
JP5986692B2 (en) Network function virtualization for network devices
US9203784B2 (en) Distributed virtual switch architecture for a hybrid cloud
US20180027009A1 (en) Automated container security
US20150124823A1 (en) Tenant dhcp in an overlay network
WO2022015492A1 (en) Multi-edge etherchannel (meec) creation and management
US9590855B2 (en) Configuration of transparent interconnection of lots of links (TRILL) protocol enabled device ports in edge virtual bridging (EVB) networks
JP7443549B2 (en) Dynamic cellular connectivity between hypervisor and virtual machines
CN116208483A (en) Method for realizing high-availability bare metal service, related device and storage medium
CN115484232A (en) DHCP server deployment method, device, equipment and storage medium
CN103281406A (en) Message forwarding method for inter-cloud VM (virtual machine) migration, NAT (Network Address Translation) server and network
CN113254148A (en) Virtual machine migration method and cloud management platform
CN113726648B (en) Multipath communication method, device, electronic equipment and computer readable medium
US9804907B2 (en) Remote procedure call for a distributed system
CN115665026A (en) Cluster networking method and device
CN116418724A (en) Service access method, device and load balancing system
CN112565048B (en) Three-layer VPN (virtual private network) network creation method, three-layer VPN network data transmission method, three-layer VPN network creation device, three-layer VPN network data transmission device and electronic equipment
CN116915585B (en) Software-defined wide area network networking method, device, electronic equipment and storage medium
US20230318968A1 (en) Using a routing protocol for network port failover

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