CN113572856B - Method, control method and medium for configuring seven-layer load balancing for OVN architecture - Google Patents

Method, control method and medium for configuring seven-layer load balancing for OVN architecture Download PDF

Info

Publication number
CN113572856B
CN113572856B CN202111095773.9A CN202111095773A CN113572856B CN 113572856 B CN113572856 B CN 113572856B CN 202111095773 A CN202111095773 A CN 202111095773A CN 113572856 B CN113572856 B CN 113572856B
Authority
CN
China
Prior art keywords
ovn
architecture
load balancer
virtual machine
haproxy
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
CN202111095773.9A
Other languages
Chinese (zh)
Other versions
CN113572856A (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.)
Winhong Information Technology Co ltd
Original Assignee
Winhong Information 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 Winhong Information Technology Co ltd filed Critical Winhong Information Technology Co ltd
Priority to CN202111095773.9A priority Critical patent/CN113572856B/en
Publication of CN113572856A publication Critical patent/CN113572856A/en
Application granted granted Critical
Publication of CN113572856B publication Critical patent/CN113572856B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/4557Distribution of virtual machine instances; Migration and load balancing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention relates to the field of cloud computing, in particular to a method for configuring seven-layer load balancing for OVN architecture, a OVN architecture load balancing control method, a computer-readable storage medium and a cloud platform. The method for configuring seven-layer load balancing for OVN architecture includes deploying a virtual machine in OVN private network environment, installing a Haproxy load balancer with seven-layer network capability inside the virtual machine, configuring a network of the virtual machine, and connecting the network to a logic switch where a OVN private network is located, wherein the virtual machine provided with the Haproxy load balancer and a plurality of virtual machines of OVN are arranged in the same private network, so that the Haproxy load balancer is used as an external port of OVN, and the virtual machine under OVN architecture realizes upper-layer external interaction through the Haproxy load balancer.

Description

Method, control method and medium for configuring seven-layer load balancing for OVN architecture
Technical Field
The invention relates to the field of cloud computing, in particular to a method for configuring seven-layer load balancing for an OVN architecture, a OVN architecture load balancing control method, a computer-readable storage medium and a cloud platform, wherein the computer-readable storage medium can realize the method when being executed by a controller.
Background
The advent of cloud computing brought a completely new IT infrastructure construction, use and delivery model. The virtual machine is obtained through the server virtualization technology and serves as a service server to be provided for users to use, and therefore finer-grained resource utilization can be achieved. Open source software OpenStack is a widely used Cloud computing management platform, and in the prior art, an ovn (open Virtual network) architecture is often adopted, and a web platform is used as an entrance to provide a centralized management and control function for each Cloud resource in the Cloud computing management platform, so as to realize Virtual Private Cloud (VPC) capabilities of routers, Private networks, subnets, security groups, and the like on the Cloud platform.
OVN focus on implementing SDN controllers in a cloud computing management platform scenario; and OVN focuses on implementing lower (two-tier and three-tier) network functions, with substantially no implementation of certain functions at upper (L4-L7) tiers, except that L4-based ACLs are implemented at the transport tier. OVN the controller can only receive the load balance control command from the external load balancer through the external interface, so that OVN the controller can only realize four-layer or lower network load balance, but not seven-layer load balance.
Disclosure of Invention
The invention provides a seven-layer load balancing deployment method based on OVN, which can realize seven-layer load balancing under OVN environment.
A method is provided for configuring seven-tier load balancing for the OVN architecture,
A. building a virtual machine under the OVN architecture, configuring a network of the virtual machine to connect to OVN private network;
B. installing a HaProxy load balancer on the virtual machine, and accessing the HaProxy load balancer into OVN private networks;
C. the output end of OVN is linked to the HaProxy load balancer through a private network, so that the HaProxy load balancer is used as an external port of OVN, and the virtual machine under the OVN architecture realizes external interaction of an upper layer through the HaProxy load balancer.
Preferably, a load balancer distribution engine LBDE is set that monitors OVN the physical machines of the architecture, and if a load balancer creation request is identified, the load balancer distribution engine LBDE automatically extracts the target physical machine to deploy the load balancer.
Preferably, the target physical machine is: and the physical machine with the largest current resource margin.
Preferably, the method includes a load balancer deleting step, where the load balancer distribution engine LBDE obtains a virtual machine location of a pre-deleted load balancer, and performs a deleting operation on the virtual machine.
Preferably, a virtual machine pre-creation step is included that creates a virtual machine image of the HaProxy load balancer, generating snapshots of this image to be stored in the various physical machines of the OVN architecture.
There is also provided a computer readable storage medium storing a computer program which, when executed by a controller, is capable of implementing the above-described method of configuring seven-tier load balancing for the OVN architecture.
Under the OVN architecture configured by the seven-layer load balancing method configured for the OVN architecture, the HaProxy load balancer receives external upper layer interaction information, and then automatically configures the load of each virtual machine under the OVN architecture.
There is also provided a computer readable storage medium storing a computer program which, when executed by a controller, is capable of implementing the OVN architecture load balancing control method described above.
Also provided is a cloud platform comprising the OVN architecture and a plurality of virtual machines, further comprising a controller and the computer readable storage medium described above, a computer program on the computer readable storage medium executable by the controller.
Has the advantages that: the method for configuring seven-layer load balancing for OVN architecture includes deploying a virtual machine in OVN private network environment, installing a Haproxy load balancer with seven-layer network capability inside the virtual machine, configuring a network of the virtual machine, and connecting the network to a logic switch where a OVN private network is located, wherein the virtual machine provided with the Haproxy load balancer and a plurality of virtual machines of OVN are arranged in the same private network, so that the Haproxy load balancer is used as an external port of OVN, and the virtual machine under OVN architecture realizes upper-layer external interaction through the Haproxy load balancer.
Drawings
Fig. 1 is a schematic diagram of OVN private network architecture created by the present invention.
Fig. 2 is a diagram of a distribution engine architecture in the method for configuring seven-layer load balancing for the OVN architecture.
Detailed Description
The invention is described in further detail below with reference to specific embodiments.
The method for configuring seven-layer load balancing for the OVN architecture is applied to a cloud platform comprising OVN architecture and a plurality of virtual machines, and comprises the following specific steps.
A. Building a virtual machine under the OVN architecture, configuring a network of the virtual machine to connect to OVN private network;
B. installing a HaProxy load balancer on the virtual machine, and accessing the HaProxy load balancer into OVN private networks;
C. the output end of OVN is linked to the HaProxy load balancer through a private network, so that the HaProxy load balancer is used as an external port of OVN, and the virtual machine under the OVN architecture realizes external interaction of an upper layer through the HaProxy load balancer.
Referring to fig. 1, a virtual machine is deployed in an OVN private network environment, and a HaProxy load balancer with seven-layer network capability is installed inside, and a network of the virtual machine is configured and connected to a logical switch in which OVN private network is located, where the virtual machine occupies a private network IP of OVN private network, such as 10. x.x.2. In the OVN private network environment, the original three virtual machines respectively occupy the other three IPs of the private network: 10, x.x.3, 10.x.x.4, 10.x.x.5, at this time, since the HaProxy load balancer is set to be under the same private network as the members of the private network, the HaProxy load balancer as a link intermediary brings its seven-layer network capability into OVN architecture, so that OVN architecture has a load balancer with seven-layer network capability.
After the seven-layer load balancing method is configured on the cloud platform of the OVN architecture, the Haproxy load balancer receives external upper-layer interaction information, and then the load of each virtual machine under the OVN architecture is automatically configured, so that the load balancing of the OVN architecture is controlled.
In the method, each time a new load balancer is added, the virtual machine is manually deployed, the HaProxy is installed in the virtual machine, and the specific OVN logic switch is associated, so that the whole process is complicated. Moreover, it is time consuming to deploy the virtual machine itself, which results in a slow creation process and poor experience of the load balancer. When deploying the virtual machine, a user needs to deploy the virtual machine according to the load conditions of different physical machines, which greatly increases the maintenance cost.
To this end, an adaptation engine with load balancer deployment service is constructed: load Balancer Distribution Engine (LBDE). After the user initiates OVN a load balancer creation request, the load balancer distribution engine LBDE automatically calculates the physical machine with the largest amount of remaining resources on the platform, selects and deploys the load balancer on it. When the load balancer is deleted, the load balancer distribution engine LBDE automatically finds the location of the corresponding virtual machine and performs the deletion.
As shown in fig. 2, the cloud platform management system presets a mirror image of the HaProxy load balancer on each physical machine in advance, generates an external snapshot for the mirror image, and uses the external snapshot as a precondition for deploying the load balancer. After the HaProxy load balancer is deployed on the physical machine manually for the first time, the state and information of the mirror image of the HaProxy load balancer are mapped to the storage of each physical machine from the memory.
Specifically, firstly, creating a virtual machine image qemu-img create-f raw/images/vm1. raw 8G of a Haproxy load balancer; then, starting the virtual machine OVN/images/vm 1.raw, at this time, because there is no content in the image, the running result will prompt that no bootable device can be found, for this purpose, after creating the image qemu-img create-f < fmt > -o < options > < fname > < size >, snapshot processing qemu-img snapshot-c booting vm2.qcow2 is performed to keep it in a fast recoverable state, when a HaProxy load balancer needs to be deployed on the physical machine, then performing fast recovery: qemu-img snapshot-a 1/images/vm2. qcow2, and then starting the virtual machine from OVN, so as to obtain a virtual machine image file of the Haproxy load balancer.
According to the method, the characteristics of the qcow2 disk are utilized, qemu-img is used based on the external snapshot, so that the disk of the virtual machine is quickly created in a second level, and a new virtual machine is constructed based on the disk. The deployment of the virtual machine is automatically realized through a Load Balancer Distribution Engine (LBDE), the maintenance cost is reduced, and the creation of the load balancer virtual machine is realized by adopting an external snapshot recovery method of a mirror image, so that the speed is high.
The above description is only the embodiments of the present invention, and the scope of protection is not limited thereto. The insubstantial changes or substitutions will now be made by those skilled in the art based on the teachings of the present invention, which fall within the scope of the claims.

Claims (9)

1. A method for configuring seven-layer load balancing for OVN architecture is characterized by comprising the following steps:
A. building a virtual machine under the OVN architecture, configuring a network of the virtual machine to connect to OVN private network;
B. installing a HaProxy load balancer on the virtual machine, and accessing the HaProxy load balancer into OVN private networks;
C. the output end of OVN is linked to the HaProxy load balancer through a private network, so that the HaProxy load balancer is used as an external port of OVN, and the virtual machine under the OVN architecture realizes external interaction of an upper layer through the HaProxy load balancer.
2. The method of claim 1 further comprising configuring a seven-layer load balancing for an OVN architecture, wherein a load balancer distribution engine LBDE is provided that monitors OVN physical machines of the architecture, and wherein the load balancer distribution engine LBDE automatically extracts a target physical machine to deploy a load balancer if a load balancer creation request is identified.
3. The method of claim 2, wherein the target physical machine is a component of a OVN architecture, the component comprising: and the physical machine with the largest current resource margin.
4. The method of claim 2, comprising a load balancer removal step, wherein the load balancer distribution engine LBDE obtains a virtual machine location of a pre-removal load balancer, and performs a removal operation on the virtual machine.
5. The method of claim 1 including a virtual machine pre-creation step that creates a virtual machine image of the HaProxy load balancer, a snapshot of which is generated and stored in each physical machine of the OVN architecture.
6. A computer-readable storage medium, storing a computer program, which when executed by a controller, is capable of implementing the method of any one of claims 1 to 5 for configuring seven-layer load balancing for the OVN architecture.
7. An OVN architecture load balancing control method is characterized in that: under the OVN architecture configured for the OVN architecture configured seven-layer load balancing method as claimed in any one of claims 1 to 5, receiving the upper layer interaction information from the outside through a Haproxy load balancer, and then automatically configuring the load of each virtual machine under the OVN architecture.
8. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a controller, is capable of implementing the OVN architecture load balancing control method of claim 7.
9. A cloud platform comprising an OVN architecture and a plurality of virtual machines, further comprising a controller and a computer readable storage medium according to claim 6 or 8, a computer program on the computer readable storage medium being executable by the controller.
CN202111095773.9A 2021-09-18 2021-09-18 Method, control method and medium for configuring seven-layer load balancing for OVN architecture Active CN113572856B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111095773.9A CN113572856B (en) 2021-09-18 2021-09-18 Method, control method and medium for configuring seven-layer load balancing for OVN architecture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111095773.9A CN113572856B (en) 2021-09-18 2021-09-18 Method, control method and medium for configuring seven-layer load balancing for OVN architecture

Publications (2)

Publication Number Publication Date
CN113572856A CN113572856A (en) 2021-10-29
CN113572856B true CN113572856B (en) 2022-01-11

Family

ID=78173781

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111095773.9A Active CN113572856B (en) 2021-09-18 2021-09-18 Method, control method and medium for configuring seven-layer load balancing for OVN architecture

Country Status (1)

Country Link
CN (1) CN113572856B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115604272B (en) * 2022-11-30 2023-03-14 苏州浪潮智能科技有限公司 Load balancing method, device, system and system establishing method, device and medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111800329A (en) * 2020-06-28 2020-10-20 浪潮思科网络科技有限公司 Message forwarding method, device and medium based on SDN and OVN

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110928637A (en) * 2018-09-19 2020-03-27 阿里巴巴集团控股有限公司 Load balancing method and system
US11962643B2 (en) * 2019-02-11 2024-04-16 Red Hat Israel, Ltd. Implementing multiple load balancer drivers for a single load balancer
CN111274027A (en) * 2020-01-09 2020-06-12 山东汇贸电子口岸有限公司 Multi-live load balancing method and system applied to openstack cloud platform

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111800329A (en) * 2020-06-28 2020-10-20 浪潮思科网络科技有限公司 Message forwarding method, device and medium based on SDN and OVN

Also Published As

Publication number Publication date
CN113572856A (en) 2021-10-29

Similar Documents

Publication Publication Date Title
US10635496B2 (en) Thread pool management
EP3857364B1 (en) Multi-tenant support on virtual machines in cloud computing networks
US8769040B2 (en) Service providing system, a virtual machine server, a service providing method, and a program thereof
CN105376303B (en) Docker implementation system and communication method thereof
US10050850B2 (en) Rack awareness data storage in a cluster of host computing devices
US9391869B2 (en) Virtual network prototyping environment
CN108255497B (en) Application deployment method and device
EP3905588A1 (en) Cloud platform deployment method and apparatus, server and storage medium
CN113296792B (en) Storage method, device, equipment, storage medium and system
CN111641515B (en) VNF life cycle management method and device
CN110704155A (en) Container network construction method and device, physical host and data transmission method
CN105429938B (en) Resource allocation method and device
US20160350150A1 (en) Handoff of virtual machines based on security requirements
US9268588B2 (en) Optimizing virtual machine migration via identification and treatment of virtual memory swap file
EP3481007A1 (en) Method, device, and equipment for processing resource pool
CN103595801B (en) Cloud computing system and real-time monitoring method for virtual machine in cloud computing system
CN113127150A (en) Rapid deployment method and device of cloud native system, electronic equipment and storage medium
CN108345490B (en) Method and system for deploying virtual machine in NFV
CN113572856B (en) Method, control method and medium for configuring seven-layer load balancing for OVN architecture
EP3439249B1 (en) Network system, management method and device for same, and server
CN113079702A (en) Provisioning virtual machines using a single identification and caching virtual disk
EP3282647B1 (en) Software security verification method, equipment and system
US20230385052A1 (en) Obtaining software updates from neighboring hosts in a virtualized computing system
WO2016041202A1 (en) Deployment method and apparatus based on cloud environment system
CN116466957A (en) Automatic deployment of control nodes at remote locations

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