CN110289983B - Load balancing application creation method and device, computer equipment and storage medium - Google Patents

Load balancing application creation method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN110289983B
CN110289983B CN201910411960.XA CN201910411960A CN110289983B CN 110289983 B CN110289983 B CN 110289983B CN 201910411960 A CN201910411960 A CN 201910411960A CN 110289983 B CN110289983 B CN 110289983B
Authority
CN
China
Prior art keywords
application
container
load balancing
information
created
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
CN201910411960.XA
Other languages
Chinese (zh)
Other versions
CN110289983A (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201910411960.XA priority Critical patent/CN110289983B/en
Publication of CN110289983A publication Critical patent/CN110289983A/en
Application granted granted Critical
Publication of CN110289983B publication Critical patent/CN110289983B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/505Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the load
    • 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/0876Aspects of the degree of configuration automation
    • 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
    • H04L67/1004Server selection for load balancing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • 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)
  • Automation & Control Theory (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the application provides a load balancing application creation method and device, computer equipment and a storage medium, relates to the technical field of cloud computing, and can be applied to a PaaS platform. The method comprises the following steps: if a setting instruction is received, calling a preset setting interface according to the setting instruction so as to set information of the container application to be created and information of the F5 load balancing application through the preset setting interface; creating a container instance of the container application according to the set information of the container application; creating the F5 load balancing application according to the set information of the container application and the set information of the load balancing application and generating an incidence relation between the container application and the F5 load balancing application; the generated access domain name is bound with the F5 load balancing application. According to the embodiment of the application, the F5 load balancing application is created while the container application is created, and the created container application and the F5 load balancing application are automatically associated, so that the creating speed and efficiency are increased, and the time cost and the labor cost are saved.

Description

Load balancing application creation method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of cloud computing technologies, and in particular, to a load balancing application creation method and apparatus, a computer device, and a storage medium.
Background
Currently, many PaaS platforms (Platform-as-a-Service) only have the creation of a separate container application and the creation of other non-F5 load balancing, that is, the container application is created separately and the creation of other non-F5 load balancing, and then the association relationship between the created container application and other non-F5 load balancing is manually configured. Thus, the association relationship is complex to create and configure, and is prone to errors.
Disclosure of Invention
The embodiment of the application provides a method and a device for creating a load balancing application, computer equipment and a storage medium, wherein the F5 load balancing application can be created while a container application is created, and the created container application and the created F5 load balancing application are automatically associated, so that the creating speed and efficiency are increased.
In a first aspect, an embodiment of the present application provides a method for creating a load balancing application, where the method includes:
if a setting instruction is received, calling a preset setting interface according to the setting instruction so as to set information of the container application to be created and information of the load balancing application through the preset setting interface, wherein the information of the load balancing application comprises the type of the load balancing application and port information of a virtual server of the load balancing application, and the type of the load balancing application is F5; if a setting completion instruction is received, creating a container instance of the container application according to the set information of the container application; determining a virtual IP of the virtual server and an F5 device for creating a load balancing application according to the set information of the container application; associating the created container instance with the virtual server to obtain an association relation, and encapsulating the association relation, the information of the created container instance, the port information, the virtual IP and preset load balancing parameter information into an object; calling a creation interface of a load balancing application according to the packaged object to create a virtual server of the load balancing application on the determined F5 device and generate a configuration file of the virtual server; and if a message that the virtual server is successfully created is received, generating an access domain name according to a preset domain name generation rule, and binding the access domain name with the virtual IP of the virtual server so as to access the virtual server through the access domain name.
In a second aspect, an embodiment of the present invention provides a load balancing application creating apparatus, where the load balancing application creating apparatus includes a unit configured to execute the method according to the first aspect.
In a third aspect, an embodiment of the present invention provides a computer device, where the computer device includes a memory and a processor connected to the memory;
the memory is configured to store a computer program, and the processor is configured to execute the computer program stored in the memory to perform the method of the first aspect.
In a fourth aspect, the present invention provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the method according to the first aspect.
According to the embodiment of the application, the F5 load balancing application is created at the same time when the container application is created, and the created container application is automatically associated with the created F5 load balancing application, so that the container application and the F5 load balancing application do not need to be created separately and manually associated, and the creating speed is increased. The F5 load balancing application is created while the container application is created, and the created container application and the created F5 load balancing application are automatically associated, so that the whole process is automatically completed, the creating speed and efficiency are further increased, and the time cost and the labor cost are saved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a load balancing application creation method provided in an embodiment of the present application;
FIG. 2 is a schematic diagram of a setup page provided by an embodiment of the present application;
fig. 3 is a sub-flow diagram of a load balancing application creation method provided in an embodiment of the present application;
fig. 4 is a schematic block diagram of a load balancing application creation apparatus provided in an embodiment of the present application;
FIG. 5 is a schematic block diagram of a packaging unit provided by an embodiment of the present application;
fig. 6 is a schematic block diagram of a computer device provided by an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
Fig. 1 is a flowchart illustrating a load balancing application creation method according to an embodiment of the present application. As shown in fig. 1, the method includes S101-S106.
S101, if a setting instruction is received, calling a preset setting interface according to the setting instruction to set information of container applications to be created and information of load balancing applications through the preset setting interface, wherein the information of the load balancing applications comprises types of the load balancing applications and port information of virtual servers of the load balancing applications, and the type of the load balancing applications is F5; the information of the container application includes an application environment of the container application, a region of the container application, a number of container instances of the container application, and container application mirror information.
The preset setting interface is a setting interface written by a developer, and can be presented in the form of a setting page, as shown in fig. 2. And setting information of the container application to be created and information of the load balancing application through the preset setting interface. Specifically, information of a container application to be created and information of a load balancing application, which are input/selected by a user, are received. Because the information of the container application and the information of the load balancing application can be set in the preset creation interface, the information of the container application and the information of the load balancing application can be simultaneously acquired.
The information of the container application includes an application environment of the container application, an area of the container application, the number of container instances of the container application, mirror image information of the container application, and the like. The information of the container application also includes whether monitoring is enabled, an application administrator (the person who creates the container application, who can manage the created container application), a resource group of the container application, and the like. The application environment of the container application includes a production environment, a test environment, a development environment, and the like. The production environment means that the container application is successfully established and then is connected with an external environment or is accessed by an external user; the test environment means that the container application is used for testing after being successfully created; the development environment means that the container application is successfully created and used for development. The area of the container application refers to a machine room location where the container application is created, and consists of two parts: "area" + "safe area". Wherein a "safe area" is a sub-area under a "area". It is understood that the container application is created in a machine room of "xxx safe area" under "xx area". However, determining in which specific machine room the container application is created needs to be determined according to the application environment of the container application and the area of the container application, and it can be understood that the container application is created in the machine room corresponding to the area of the container application in a certain application environment. It can be understood that the machine rooms corresponding to different application environments in the same area are different. The number of container instances for a container application refers to the number of containers for that container application, and there is no upper limit to the number of containers for a container application. Wherein, the number of container instances can be determined according to the access amount of the container application. The container instance mirror information includes a mirror version, a mirror type, and a mirror name. Wherein, the mirror image version comprises an official version, an official version 1.1, an official version 4.5 and the like; the mirror type refers to which mirror the container instance uses, such as nginx, tomcat, weblogic, springboot, etc.; mirror names refer to specific mirror names, such as tomcat1.1, etc. The mirror image information can be acquired from a corresponding mirror image warehouse for a user to select, wherein the corresponding mirror image warehouse refers to a mirror image warehouse in a machine room determined by the application environment of the container application and the area of the container application together. The creation of the container application is subject to a fee, and a resource account is included under the resource group of the container application for the fee used by the creation of the container application. Whether monitoring is enabled or not refers to whether monitoring on the container instance of the container application is selected, such as the use condition of resources such as CPU/memory/IO of the container instance. In some embodiments, the information of the container application further includes a beneficiary resource pool, which refers to a subsidiary/department that creates the container application, determines the IP network segment allocated by the created container and the host resources of the container, and different resource pools, which use different IP network segments and host resources. If the information of the container application further comprises the beneficiary resource pool, the beneficiary resource pool together with the application environment of the container application, the area of the container application determines the IP network segment allocated by the created container instance and the host resources of the container instance.
The information of the load balancing application includes a type of the load balancing application, and port information of a Virtual Server (VS) of the load balancing application, where the type of the load balancing application is F5. The port information of the virtual server of the load balancing application may have one or more ports, where one port corresponds to one VS and a plurality of ports correspond to a plurality of VS. The port of the virtual server refers to an access port supported by the F5 load balancing application, that is, a port accessed in http mode, such as 80, 443, etc.
And S102, if the setting completion instruction is received, creating a container instance of the container application according to the set information of the container application.
The setting completion instruction is triggered by a user clicking a button for submitting and the like, the information of the container application and the information of the load balancing application are set, and the setting completion instruction triggered by the user is received, so that the container application, the load balancing application and the incidence relation between the container application and the load balancing application can be automatically established.
In one embodiment, step S102 includes: determining a container instance IP of the container application according to the application environment of the container application, the area of the container application and the number of container instances of the container application in the set information of the container application; creating a container instance according to the container application mirror image information, the application environment of the container application, the area of the container application and the number of the container instances of the container application in the set information of the container application, and setting the determined IP of the container instance as the IP of the created container instance.
The location where the container application is created, i.e., in which specific machine room the container application is created, may be determined according to the application environment of the container application and the area of the container application. Such as creating the container application in a computer room where SF (a smaller area identifier under the treasure letter) sub-area under the treasure letter (place name) area under the test environment is located. Acquiring an IP address pool which is pre-allocated at a corresponding position (below the machine room) in a database and is used for creating a container instance; and acquiring the idle IPs with the same number as the container instances of the container application from the IP address pool, and determining the idle IPs as the IPs of the container instances of the container application.
After the IP of the container instance for the container application is allocated, the container instance is then created. Specifically, the step of creating a container instance according to the container application mirror image information, the application environment of the container application, the area of the container application, and the number of container instances of the container application in the set information of the container application, and setting the determined IP of the container instance as the IP of the created container instance includes: determining a mirror image warehouse for storing mirror image information of the container application according to the application environment of the container application and the area of the container application, and extracting a specific mirror image required for creating a container instance from the determined mirror image warehouse according to the mirror image type, the mirror image version and the mirror image name of the mirror image information of the container application; determining resources required to be occupied for creating the container instance according to the container mirror image type, the mirror image version and the mirror image name, and determining a host for creating the container instance according to the application environment of the container application, the area of the container application and the resources required to be occupied for creating the container instance; and creating a container instance of the container application on the determined host according to the determined specific mirror image, and binding the created container instance with the determined container instance IP to set the determined container instance IP as the IP of the created container instance.
In the above process of creating the container instance, the determining of the specific mirror image and the determining of the execution sequence of the host that creates the container instance are not strictly limited, and in other embodiments, the host that creates the container instance may be determined first, and then the specific mirror image may be determined.
The location of creating the container application, that is, in which specific machine room the container application is created, can be determined according to the application environment of the container application and the area of the container application. It should be noted that in each application environment, a mirror repository for storing mirror resources is corresponding to each region. All mirror resources needed by the area in the application environment are saved in the mirror repository. Acquiring an IP address pool of a host machine which is pre-allocated at a corresponding position (below the machine room) in a database and is used for creating a container instance; and determining the host machine for creating the container instance from the IP address pool of the host machine according to the resources occupied by creating the container instance. Creating a container instance requires occupying certain resources on the host, and therefore, it is necessary to determine the resources occupied by creating the container instance first to determine whether the host has enough resources to create the container instance. The resources that need to be occupied for creating the container instance include a CPU (such as the number of CPU cores), a memory, monitoring resources, and the like.
The method comprises the following steps of establishing a container instance of the container application on the determined host according to the determined specific mirror image, and binding the established container instance with the determined container instance IP, wherein the steps comprise: sending the determined specific mirror image to the determined host computer for creating the container instance through the container arrangement tool so as to create the container instance; if the creation is completed, the container instance is connected through an operation and maintenance tool such as an allowed tool, and the created container instance is bound with the determined container instance IP. After the container instance is successfully created, returning a message of successful creation; if the container instance fails to be created, the reason of the creation failure is returned.
In an embodiment, if the identifier in the monitoring enabling information in the information of the current container application is the monitoring enabling identifier, the above container application creation process further involves enabling monitoring for the container instance of the created container application to monitor the created container instance, and the corresponding steps further include:
and pushing the monitoring enabling identification in the monitoring enabling information corresponding to the container instance to the determined host machine so as to collect the running data information of the container instance according to the monitoring process of the host machine. Wherein, the monitoring process is installed on all the hosts by default and is in an enabled state. And pushing the monitoring enabling identification to the determined host machine, and monitoring the container instance through a monitoring process installed on the host machine.
In an embodiment, the step of creating the container instance of the container application according to the set information of the container application further includes: generating an application name of the container application according to a preset name generation rule; judging whether the generated application name exists in an area corresponding to the container application or not, wherein the area corresponding to the container application is determined according to the application environment of the container application and the area of the container application; if the generated application name does not exist in the area corresponding to the container application, executing the step of determining the IP of the container instance of the container application according to the application environment of the container application, the area of the container application and the number of the container instances; and if the generated application name already exists in the area corresponding to the container application, prompting.
In an embodiment, the step of creating the container instance of the container application according to the set information of the container application further includes: judging whether the resource group of the container application has enough money to create the container instance of the container application according to the using time of the container instance, the resource group of the container application and the number of the container instances; if the amount is enough to create the container instance of the container application, executing the step of determining the IP of the container instance of the container application according to the application environment of the container application, the area of the container application and the number of the container instances; if the sum is not enough, prompting is carried out.
In an embodiment, the step of creating the container instance of the container application according to the set information of the container application further includes: generating an application name of the container application according to a preset name generation rule; judging whether the generated application name exists in an area corresponding to the container application or not, wherein the area corresponding to the container application is determined according to the application environment of the container application and the area of the container application; if the generated application name does not exist in the region corresponding to the container application, judging whether the resource group of the container application has enough money to be used for creating the container instance of the container application according to the use time of the container instance, the resource group of the container application and the number of the container instances; and if the amount is enough to create the container instance of the container application, executing the step of determining the IP of the container instance of the container application according to the application environment of the container application, the area of the container application and the number of the container instances. And if the generated application name exists in the area corresponding to the container application or the generated application name does not have enough money, prompting.
The method comprises the steps of creating a container application, wherein the container application is used for storing relevant information of all created container applications in advance, and the stored information comprises application names and areas of the container applications. It is understood that there are not allowed two identical application names in the same area. Calculating the amount to be paid for creating the current container application according to the number of container instances of the container application, the using time of the container instances and the cost of each container instance; judging whether the residual amount in the resource group of the container application is larger than or equal to the amount to be paid when the current container application is established; if so, determining that the resource group of the container application has enough money to be used for creating the corresponding container application; if not, determining that the resource group of the container application does not have enough money to be created.
S103, determining the virtual IP of the virtual server and the F5 equipment for creating the load balancing application according to the set information of the container application.
The Virtual IP is Virtual IP, which can be abbreviated as VIP. The VIP is also an IP address, which is a destination address to receive external (internet users or other users) access requests, and a source IP address to which internal (servers providing application services) send messages to the outside. Typically, one container application corresponds to one VIP, and one VIP may correspond to multiple VS (virtual servers). Such as 10.1.2.4 for VIP. If there are two ports of the virtual server, 80 and 443 are provided. Then 10.1.2.4:80 corresponds to one VS and 10.1.2.4:443 corresponds to another VS. I.e., a VS includes a VIP and a port information. It will also be appreciated that a virtual server may be accessed via the VIP and a port.
In one embodiment, step S103 includes: determining a virtual IP address pool according to the application environment of the container application and the area of the container application in the set information of the container application; determining an IP address from a virtual IP address pool, and setting the determined IP address as the virtual IP of the virtual server; determining an F5 device group according to the application environment of the container application and the area of the container application; one F5 device is determined from the group of F5 devices as the F5 device that created the load balancing application.
And searching a virtual IP address pool allocated to the corresponding computer room from the database according to the application environment of the container application and the area of the container application, determining an IP address from the virtual IP address pool, and taking the IP address as the VIP of the virtual server. And searching an F5 device group allocated to the corresponding computer room from the database according to the application environment of the container application and the area of the container application, and determining one device from the F5 device group under the corresponding computer room as an F5 device for creating the load balancing application. It should be noted that the load balancing application F5 is hard load balancing, i.e., a load balancing application needs to be created on a specific hardware device F5. Since the F5 device needs to be purchased, there is typically only one F5 device under a room for cost considerations, and then this device is treated as the F5 device that creates the load balancing application. It should be noted that the order of determining the F5 devices for creating the load balancing application and determining the VIP is not limited, and the F5 devices may be determined first, and then the VIP may be determined.
And S104, associating the created container instance with the virtual server to obtain an association relation, and encapsulating the association relation, the information of the created container instance, the port information, the virtual IP and preset load balancing parameter information into an object.
Wherein, the created information of the container instance mainly refers to the IP of the container instance. In some embodiments, the information for the created container instance also includes a container instance port. A container instance port refers to a port, such as an 8080 port, where the container instance (server) provides application services. Note that the port here refers to a different port from the port in the port information of the virtual server. If the set information of the container application further includes an application administrator, the application administrator needs to be packaged into an object.
In one embodiment, as shown in FIG. 3, step S104 includes the following steps S201-S204.
S201, taking each container instance as a correlation server, and taking all the created container instances as a correlation server cluster.
S202, generating the name of the associated server cluster, the name of the virtual server and the name of the container application according to a preset name generation rule.
The preset name generation rule is preset. The name generation rules corresponding to different names are different. If the name generation rule of the association server cluster (pool) is: pool-container application identification _ application environment number of container application _ serial number generated in order of pool configuration, and the like. The container application identifier is used for representing the calling logic of the container application, and is mainly used for information identification inside an enterprise. The container application identifier may be set in a preset setting interface. For example, the name of pool is: pool _ ABC _ stg10111, where ABC is a container application identifier, stg1 is an application environment number identifier of the container application, and 0111 is a serial number generated in the configured order. If the name generation rule of the VS is: VS _ container application identifier _ port number _ application environment number of container application _ serial number generated in the order of VS configuration, and the like. If the name of VS is: pool _ ABC _80_ stg 10123. The preset name generation rule may also be another rule as long as the generated name can be distinguished. If the name generation rule of the container application is: container application identification _ container application name identification _ container application image belongs to type. The container application name identifier can be set in a preset setting interface. Such as the container application name: ABC _ tag1_ web. Where ABC is the container application identifier, tag1 is the container application name identifier, and the web is the type to which the container instance image belongs. It is noted that the type of container application image is different from the type of container application image.
S203, associating each associated server with a server in the server cluster, and associating the associated server cluster with the server cluster of the virtual server to obtain an association relation.
One Virtual Server (VS) corresponds to one server cluster (pool). A server cluster may be understood as a server cluster corresponding to a load balancing application, and there are multiple servers (pool members) in a server cluster (pool), and the multiple servers are used for really responding to an external access request. After receiving the external access request, the VS allocates the external access request to one server in the server cluster according to a load balancing algorithm, and the allocated server responds to the external access request. And associating the virtual server with the associated server cluster, such as setting a server cluster (pool) of the virtual server as the associated server cluster. Associating the server in the server cluster of the virtual server with a plurality of associated servers, for example, setting the server members (poolmembers) of the server cluster of the virtual server as the plurality of associated servers, and setting the number of the server members in the server cluster as the number of the associated servers.
S204, packaging the generated multiple names, the incidence relation, the created container instance information, the port information, the virtual IP and the preset load balancing parameter information into an object.
The port information is port information of the virtual server, such as 80, 443, etc. The load balancing parameter information includes parameters such as a monitoring protocol (e.g., TCP, etc.), a load balancing algorithm (e.g., round robin, minimum connection mode, etc.), Http profile (e.g., Http), a health check mode (e.g., mode for selecting a load balancing F5 application to monitor a container application, e.g., F5monweb), SNAT mode (SNAT mode for selecting VIP function address translation of a virtual server, including SNAT/DANT universal mode, SNAT mode, etc.), setting of cookie mode, SNAT Pool (IP address Pool for selecting SNAT mode, i.e., IP address range after address translation of an access request source address/destination address) and the like. Obtaining preset load balancing parameter information, wherein the obtaining of the preset load balancing parameter information comprises: presetting a default value for each load balancing parameter according to the current operation requirement of an enterprise; and taking the set default value of each load balancing parameter as preset load balancing parameter information. The default value of each load balancing parameter is set according to the current operation requirement of the enterprise, and can also be understood as the default value is most matched with the current requirement of the enterprise.
In one embodiment, step S204 includes: converting the generated multiple names, the incidence relation, the created container instance information, the port information, the virtual IP and the preset load balancing parameter information into data in a preset format; and encapsulating the data converted into the preset format into an object.
The preset format is a data format matched with the load balancing application creation interface.
And S105, calling a creation interface of the load balancing application according to the packaged object to create a virtual server of the load balancing application on the determined F5 device, and generating a configuration file of the virtual server.
The creation interface of the load balancing application is a function, and parameters in the function comprise encapsulated objects. By the function, an F5 load balancing application (virtual server) can be automatically created on the F5 device according to the related information of the packaged object, and a configuration file of the F5 load balancing application (virtual server) is generated in the creating process. It is understood that, the configuration file of the virtual server includes related information of the F5 device (including IP, device number, etc. of the F5 device), related information of the virtual server (including VS name, VIP, port information, operating state information of the VS, etc.), related information of the Pool related to the VS (including Pool name, number of Pool members, operating state information of the Pool, etc.), related information of the Pool members (IP of each Pool member (i.e., IP of a container instance), port of a container instance, operating state information of each Pool member, etc.), related information of the container application (including container application name, container application manager, etc.), related information of the load balancing parameters (including load balancing related parameters such as Http profile, cookie mode, SNAT mode, load balancing algorithm, listening protocol, SNAT Pool, etc.), etc.
And S106, if a message that the virtual server is successfully created is received, generating an access domain name according to a preset domain name generation rule, and binding the access domain name with the virtual IP of the virtual server so as to access the virtual server through the access domain name.
After the F5 load balancing application is created, the load balancing service of the VS is automatically started. After the start, the VS running state, the pool running state and the pool member running state are changed from the stop state to the start state.
Since the F5 load balancing application is created on the F5 device, the relevant information is returned regardless of success or failure of creation. If a returned message that the load balancing F5 application is successfully created is received, generating an access domain name; and if a message of returning failure is received, positioning the problem according to the failure reason. And when the access domain name is generated, the access domain name is generated according to a preset domain name generation rule. And binding the access domain name with the virtual IP after generating the access domain name so as to access the virtual server through the access domain name.
The F5 load balancing application is created at the same time when the container application is created, and the created container application and the created F5 load balancing application are automatically associated, so that the container creation application and the F5 load balancing application do not need to be created separately and manually associated, and the creation speed is increased. The F5 load balancing application is created while the container application is created, and the created container application and the created F5 load balancing application are automatically associated, so that the whole process is automatically completed, the creating speed and efficiency are further increased, and the time cost and the labor cost are saved.
Fig. 4 is a schematic block diagram of a load balancing application creation apparatus according to an embodiment of the present application. The device comprises a unit corresponding to the load balancing application creation method. Specifically, as shown in fig. 4, the apparatus 30 includes a setting unit 301, an application creating unit 302, a determining unit 303, an encapsulating unit 304, a load creating unit 305, and a domain name binding unit 306.
The setting unit 301 is configured to, if a setting instruction is received, call a preset setting interface according to the setting instruction, so as to set information of a container application and information of a load balancing application, which need to be created, through the preset setting interface, where the information of the load balancing application includes a type of the load balancing application and port information of a virtual server of the load balancing application, and the type of the load balancing application is F5. The information of the container application includes an application environment of the container application, a region of the container application, a number of container instances of the container application, and container application mirror information.
An application creating unit 302, configured to create a container instance of the container application according to the set information of the container application if the setting completion instruction is received.
In an embodiment, the application creating unit 302 includes an instance IP determining unit and an instance creating unit. The instance IP determining unit is used for determining the container instance IP of the container application according to the application environment of the container application, the area of the container application and the number of the container instances of the container application in the set information of the container application. And the instance creating unit is used for creating container instances according to the container application mirror image information in the set information of the container applications, the application environments of the container applications, the areas of the container applications and the number of the container instances of the container applications, and setting the determined container instance IP as the created container instance IP.
In one embodiment, the instance creation unit comprises an application image determination unit, a host determination unit, and a container instance creation unit. The application mirror image determining unit is used for determining a mirror image warehouse used for storing the container application mirror image information according to the application environment of the container application and the area of the container application, and extracting a specific mirror image needed to be used for creating the container instance from the determined mirror image warehouse according to the mirror image type, the mirror image version and the mirror image name of the container application mirror image information. And the host determining unit is used for determining the resources required to be occupied for creating the container instance according to the mirror image type, the mirror image version and the mirror image name, and determining the host for creating the container instance according to the application environment of the container application, the area of the container application and the resources required to be occupied for creating the container instance. And the container instance creating unit is used for creating a container instance of the container application on the determined host according to the determined specific mirror image, and binding the created container instance with the determined container instance IP so as to set the determined container instance IP as the IP of the created container instance.
A determining unit 303, configured to determine, according to the set information of the container application, a virtual IP of the virtual server and an F5 device for creating a load balancing application.
In an embodiment, the determining unit 303 includes a virtual IP pool determining unit, an IP determining unit, a resource determining unit, and a device determining unit. The virtual IP pool determining unit is configured to determine the virtual IP address pool according to the application environment of the container application and the area of the container application in the set information of the container application. And the IP determining unit is used for determining an IP address from the virtual IP address pool and setting the determined IP address as the virtual IP of the virtual server. And the resource determining unit is used for determining the F5 device group according to the application environment of the container application and the area of the container application. And the device determining unit is used for determining one F5 device from the F5 device group as the F5 device for creating the load balancing application.
An encapsulating unit 304, configured to associate the created container instance with the virtual server to obtain an association relationship, and encapsulate the association relationship, the information of the created container instance, the port information, the virtual IP, and preset load balancing parameter information into an object.
In an embodiment, as shown in fig. 5, the encapsulating unit 304 includes a cluster determining unit 401, a name generating unit 402, an associating unit 403, and an object encapsulating unit 404. The cluster determining unit 401 is configured to use each container instance as an associated server, and use all created container instances as an associated server cluster. A name generating unit 402, configured to generate a name of the associated server cluster, a name of the virtual server, and a name of the container application according to a preset name generation rule. An associating unit 403, configured to associate each associated server with a server in the server cluster, and associate the associated server cluster with the server cluster of the virtual server to obtain an association relationship. An object encapsulating unit 404, configured to encapsulate the generated multiple names, the association relationship, the created information of the container instance, the port information, the virtual IP, and preset load balancing parameter information into an object.
The object packaging unit comprises a conversion unit and a data object packaging unit. The conversion unit is configured to convert the generated multiple names, the association relationship, the created information of the container instance, the port information, the virtual IP, and the preset load balancing parameter information into data in a preset format. And the data object packaging unit is used for packaging the data converted into the preset format into an object.
In another embodiment, as shown in fig. 5, the encapsulation unit 304 further comprises a parameter determination unit 405. A parameter determining unit 405, configured to determine preset load balancing parameter information. The parameter determination unit 405 includes a value setting unit, a load parameter determination unit. The value setting unit is used for presetting a default value for each load balancing parameter according to the current operation requirement of the enterprise. And the load parameter determining unit is used for taking the set default value of each load balancing parameter as preset load balancing parameter information.
A load creating unit 305, configured to invoke a creating interface of the load balancing application according to the encapsulated object, to create a virtual server of the load balancing application on the determined F5 device, and generate a configuration file of the virtual server.
And a domain name binding unit 306, configured to generate an access domain name according to a preset domain name generation rule if a message that the virtual server is successfully created is received, and bind the access domain name with a virtual IP of the virtual server, so as to access the virtual server through the access domain name.
It should be noted that, as will be clear to those skilled in the art, specific implementation processes of the above apparatus and each unit may refer to corresponding descriptions in the foregoing method embodiments, and for convenience and brevity of description, no further description is provided herein.
The above-described apparatus may be implemented in the form of a computer program which may be run on a computer device as shown in figure 6.
Fig. 6 is a schematic block diagram of a computer device according to an embodiment of the present application. The device is a terminal or other device, such as a server in a PaaS platform. The device 50 includes a processor 502, memory, and network interface 503 connected by a system bus 501, where the memory may include non-volatile storage media 504 and internal memory 505.
The non-volatile storage medium 504 may store an operating system 5041 and computer programs 5042. The computer program 5042 stored in the non-volatile storage medium, when executed by the processor 502, may implement the load balancing application creation method described in the server above. The processor 502 is used to provide computing and control capabilities to support the operation of the overall apparatus 50. The internal memory 505 provides an environment for running a computer program in a non-volatile storage medium, and the computer program, when executed by the processor 502, may cause the processor 502 to execute the load balancing application creation method described in the server. The network interface 503 is used for network communication. Those skilled in the art will appreciate that the configuration shown in fig. 6 is a block diagram of only a portion of the configuration associated with the present application and does not constitute a limitation on the devices to which the present application may be applied, and that a particular device may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
Wherein the processor 502 is configured to run a computer program stored in the memory to implement the steps of:
if a setting instruction is received, calling a preset setting interface according to the setting instruction to set information of the container application to be created and information of the load balancing application through the preset setting interface, wherein the information of the load balancing application comprises the type of the load balancing application and port information of a virtual server of the load balancing application, and the type of the load balancing application is F5; if a setting completion instruction is received, creating a container instance of the container application according to the set information of the container application; determining a virtual IP of the virtual server and an F5 device for creating a load balancing application according to the set information of the container application; associating the created container instance with the virtual server to obtain an association relation, and encapsulating the association relation, the information of the created container instance, the port information, the virtual IP and preset load balancing parameter information into an object; calling a creation interface of a load balancing application according to the packaged object to create a virtual server of the load balancing application on the determined F5 device and generate a configuration file of the virtual server; and if a message that the virtual server is successfully created is received, generating an access domain name according to a preset domain name generation rule, and binding the access domain name with the virtual IP of the virtual server so as to access the virtual server through the access domain name.
In an embodiment, when the processor 502 performs the steps of associating the created container instance with the virtual server to obtain an association relationship, and encapsulating the association relationship, the information of the created container instance, the port information, the virtual IP, and the preset load balancing parameter information into an object, the following steps are specifically implemented:
taking each container instance as a correlation server, and taking all the created container instances as a correlation server cluster; generating a name of a related server cluster, a name of the virtual server and a name of the container application according to a preset name generation rule; associating each associated server with a server in the server cluster, and associating the associated server cluster with the server cluster of the virtual server to obtain an association relation; and packaging the generated multiple names, the incidence relation, the created container instance information, the port information, the virtual IP and preset load balancing parameter information into an object.
In an embodiment, when the processor 502 performs the step of encapsulating the generated multiple names, the association relationship, the created information of the container instance, the port information, the virtual IP, and the preset load balancing parameter information into an object, the following steps are specifically implemented:
converting the generated multiple names, the incidence relation, the created container instance information, the port information, the virtual IP and the preset load balancing parameter information into data in a preset format; and encapsulating the data converted into the preset format into an object.
In an embodiment, when the processor 502 executes the step of creating the container instance of the container application according to the set information of the container application, the following steps are specifically implemented:
determining a container instance IP of the container application according to the application environment of the container application, the area of the container application and the number of container instances of the container application in the set information of the container application; creating a container instance according to the container application mirror image information, the application environment of the container application, the area of the container application and the number of the container instances of the container application in the set information of the container application, and setting the determined IP of the container instance as the IP of the created container instance.
In an embodiment, when the processor 502 executes the steps of creating a container instance according to the container application mirroring information in the set information of the container application, the application environment of the container application, the area of the container application, and the number of container instances of the container application, and setting the determined IP of the container instance as the IP of the created container instance, the following steps are specifically implemented:
determining a mirror image warehouse for storing mirror image information of the container application according to the application environment of the container application and the area of the container application, and extracting a specific mirror image required for creating a container instance from the determined mirror image warehouse according to the mirror image type, the mirror image version and the mirror image name of the mirror image information of the container application; determining resources required to be occupied for creating the container instance according to the mirror image type, the mirror image version and the mirror image name, and determining a host for creating the container instance according to the application environment of the container application, the area of the container application and the resources required to be occupied for creating the container instance; and creating a container instance of the container application on the determined host according to the determined specific mirror image, and binding the created container instance with the determined container instance IP to set the determined container instance IP as the IP of the created container instance.
In an embodiment, when the processor 502 executes the steps of determining the virtual IP of the virtual server according to the set information of the container application and creating the F5 device of the load balancing application, the following steps are specifically implemented:
determining a virtual IP address pool according to the application environment of the container application and the area of the container application in the set information of the container application; determining an IP address from a virtual IP address pool, and setting the determined IP address as the virtual IP of the virtual server; determining an F5 device group according to the application environment of the container application and the area of the container application; one F5 device is determined from the F5 group of devices as the F5 device that created the load balancing application.
In an embodiment, when the processor 502 executes the step of determining the preset load balancing parameter information, the following steps are specifically implemented:
presetting a default value for each load balancing parameter according to the current operation requirement of an enterprise; and taking the set default value of each load balancing parameter as preset load balancing parameter information.
It should be understood that in the embodiments of the present application, the Processor 502 may be a Central Processing Unit (CPU), and the Processor may be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It will be understood by those skilled in the art that all or part of the flow of the method implementing the above embodiments may be implemented by a computer program instructing associated hardware. The computer program may be stored in a storage medium, which may be a computer-readable storage medium. The computer program is executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.
Accordingly, the present application also provides a storage medium. The storage medium may be a computer-readable storage medium including a non-volatile computer-readable storage medium. The storage medium stores a computer program which, when executed by a processor, implements the steps of:
if a setting instruction is received, calling a preset setting interface according to the setting instruction so as to set information of the container application to be created and information of the load balancing application through the preset setting interface, wherein the information of the load balancing application comprises the type of the load balancing application and port information of a virtual server of the load balancing application, and the type of the load balancing application is F5; if a setting completion instruction is received, creating a container instance of the container application according to the set information of the container application; determining a virtual IP of the virtual server and an F5 device for creating a load balancing application according to the set information of the container application; associating the created container instance with the virtual server to obtain an association relation, and encapsulating the association relation, the information of the created container instance, the port information, the virtual IP and preset load balancing parameter information into an object; calling a creation interface of a load balancing application according to the packaged object to create a virtual server of the load balancing application on the determined F5 device and generate a configuration file of the virtual server; and if a message that the virtual server is successfully created is received, generating an access domain name according to a preset domain name generation rule, and binding the access domain name with the virtual IP of the virtual server so as to access the virtual server through the access domain name.
In an embodiment, when the processor performs the step of associating the created container instance with the virtual server to obtain an association relationship, and encapsulates the association relationship, the information of the created container instance, the port information, the virtual IP, and the preset load balancing parameter information into an object, the following steps are specifically implemented:
taking each container instance as a correlation server, and taking all the created container instances as a correlation server cluster; generating a name of a related server cluster, a name of the virtual server and a name of the container application according to a preset name generation rule; associating each associated server with a server in the server cluster, and associating the associated server cluster with the server cluster of the virtual server to obtain an association relation; and packaging the generated multiple names, the incidence relation, the created container instance information, the port information, the virtual IP and preset load balancing parameter information into an object.
In an embodiment, when the processor performs the step of encapsulating the generated multiple names, the association relationship, the information of the created container instance, the port information, the virtual IP, and the preset load balancing parameter information into an object, the following steps are specifically implemented:
converting the generated multiple names, the incidence relation, the created container instance information, the port information, the virtual IP and the preset load balancing parameter information into data in a preset format; and encapsulating the data converted into the preset format into an object.
In an embodiment, when the processor executes the step of creating the container instance of the container application according to the set information of the container application, the following steps are specifically implemented:
determining a container instance IP of the container application according to the application environment of the container application, the area of the container application and the number of container instances of the container application in the set information of the container application; creating a container instance according to the container application mirror image information, the application environment of the container application, the area of the container application and the number of the container instances of the container application in the set information of the container application, and setting the determined IP of the container instance as the IP of the created container instance.
In an embodiment, when the processor executes the step of creating a container instance according to the container application mirroring information in the set information of the container application, the application environment of the container application, the area of the container application, and the number of container instances of the container application, and setting the determined IP of the container instance as the IP of the created container instance, the following steps are specifically implemented:
determining a mirror image warehouse for storing mirror image information of the container application according to the application environment of the container application and the area of the container application, and extracting a specific mirror image required for creating a container instance from the determined mirror image warehouse according to the mirror image type, the mirror image version and the mirror image name of the mirror image information of the container application; determining resources required to be occupied for creating the container instance according to the mirror image type, the mirror image version and the mirror image name, and determining a host for creating the container instance according to the application environment of the container application, the area of the container application and the resources required to be occupied for creating the container instance; and creating a container instance of the container application on the determined host according to the determined specific mirror image, and binding the created container instance with the determined container instance IP to set the determined container instance IP as the IP of the created container instance.
In an embodiment, when the processor executes the steps of determining the virtual IP of the virtual server according to the set information of the container application and creating the F5 device of the load balancing application, the following steps are specifically implemented:
determining a virtual IP address pool according to the application environment of the container application and the area of the container application in the set information of the container application; determining an IP address from a virtual IP address pool, and setting the determined IP address as the virtual IP of the virtual server; determining an F5 device group according to the application environment of the container application and the area of the container application; one F5 device is determined from the F5 group of devices as the F5 device that created the load balancing application.
In an embodiment, when the processor executes the step of determining the preset load balancing parameter information, the following steps are specifically implemented:
presetting a default value for each load balancing parameter according to the current operation requirement of an enterprise; and taking the set default value of each load balancing parameter as preset load balancing parameter information.
The storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk, which can store various computer readable storage media.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus, device and method may be implemented in other manners. For example, the above-described device embodiments are merely illustrative, and the division of the unit is only one logical function division, and other division manners may be available in actual implementation. It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses, devices and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. While the invention has been described with reference to specific embodiments, the scope of the invention is not limited thereto, and those skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method for load balancing application creation, the method comprising:
if a setting instruction is received, calling a preset setting interface according to the setting instruction so as to set information of the container application to be created and information of the load balancing application through the preset setting interface, wherein the information of the load balancing application comprises the type of the load balancing application and port information of a virtual server of the load balancing application, and the type of the load balancing application is F5;
if a setting completion instruction is received, creating a container instance of the container application according to the set information of the container application;
determining a virtual IP of the virtual server and an F5 device for creating a load balancing application according to the set information of the container application;
associating the created container instance with the virtual server to obtain an association relation, and encapsulating the association relation, the information of the created container instance, the port information, the virtual IP and preset load balancing parameter information into an object;
calling a creation interface of a load balancing application according to the packaged object to create a virtual server of the load balancing application on the determined F5 device and generate a configuration file of the virtual server;
and if a message that the virtual server is successfully created is received, generating an access domain name according to a preset domain name generation rule, and binding the access domain name with the virtual IP of the virtual server so as to access the virtual server through the access domain name.
2. The method according to claim 1, wherein associating the created container instance with the virtual server to obtain an association relationship, and encapsulating the association relationship, the information of the created container instance, the port information, the virtual IP, and preset load balancing parameter information into an object, comprises:
taking each container instance as a correlation server, and taking all the created container instances as a correlation server cluster;
generating a name of a related server cluster, a name of the virtual server and a name of the container application according to a preset name generation rule;
associating each associated server with a server in the server cluster, and associating the associated server cluster with the server cluster of the virtual server to obtain an association relation;
and packaging the generated multiple names, the incidence relation, the created container instance information, the port information, the virtual IP and preset load balancing parameter information into an object.
3. The method according to claim 2, wherein encapsulating the generated plurality of names, the association relationship, the information of the created container instance, the port information, the virtual IP, and the preset load balancing parameter information into an object comprises:
converting the generated multiple names, the incidence relation, the information of the created container instance, the port information, the virtual IP and the preset load balancing parameter information into data in a preset format;
and encapsulating the data converted into the preset format into an object.
4. The method according to claim 1, wherein the creating of the container instance of the container application according to the set information of the container application comprises:
determining a container instance IP of the container application according to the application environment of the container application, the area of the container application and the number of container instances of the container application in the set information of the container application;
creating a container instance according to the container application mirror image information, the application environment of the container application, the area of the container application and the number of the container instances of the container application in the set information of the container application, and setting the determined IP of the container instance as the IP of the created container instance.
5. The method according to claim 4, wherein the creating container instances according to the container application mirror image information, the application environment of the container application, the area of the container application, and the number of container instances of the container application in the set information of the container application, and setting the determined container instance IP as the IP of the created container instances comprises:
determining a mirror image warehouse for storing mirror image information of the container application according to the application environment of the container application and the area of the container application, and extracting a specific mirror image required for creating a container instance from the determined mirror image warehouse according to the mirror image type, the mirror image version and the mirror image name of the mirror image information of the container application;
determining resources required to be occupied for creating the container instance according to the mirror image type, the mirror image version and the mirror image name, and determining a host for creating the container instance according to the application environment of the container application, the area of the container application and the resources required to be occupied for creating the container instance;
and creating a container instance of the container application on the determined host according to the determined specific mirror image, and binding the created container instance with the determined container instance IP to set the determined container instance IP as the IP of the created container instance.
6. The method according to claim 1, wherein the determining the virtual IP of the virtual server and the F5 device for creating the load balancing application according to the set information of the container application comprises:
determining a virtual IP address pool according to the application environment of the container application and the area of the container application in the set information of the container application;
determining an IP address from a virtual IP address pool, and setting the determined IP address as the virtual IP of the virtual server;
determining an F5 device group according to the application environment of the container application and the area of the container application;
one F5 device is determined from the F5 group of devices as the F5 device that created the load balancing application.
7. The method of claim 1, wherein determining the preset load balancing parameter information comprises:
presetting a default value for each load balancing parameter according to the current operation requirement of an enterprise;
and taking the set default value of each load balancing parameter as preset load balancing parameter information.
8. A load balancing application creation apparatus, characterized in that the load balancing application creation apparatus comprises:
the device comprises a setting unit, a processing unit and a processing unit, wherein the setting unit is used for calling a preset setting interface according to a setting instruction if the setting instruction is received so as to set information of container application to be created and information of load balancing application through the preset setting interface, the information of the load balancing application comprises the type of the load balancing application and port information of a virtual server of the load balancing application, and the type of the load balancing application is F5;
the application creating unit is used for creating a container instance of the container application according to the set information of the container application if the application receives the setting completion instruction;
a determining unit, configured to determine a virtual IP of the virtual server and an F5 device for creating a load balancing application according to the set information of the container application;
the packaging unit is used for correlating the created container instance with the virtual server to obtain an incidence relation, and packaging the incidence relation, the information of the created container instance, the port information, the virtual IP and preset load balancing parameter information into an object;
the load creating unit is used for calling a creating interface of the load balancing application according to the packaged object so as to create a virtual server of the load balancing application on the determined F5 equipment and generate a configuration file of the virtual server;
and the domain name binding unit is used for generating an access domain name according to a preset domain name generation rule if a message that the virtual server is successfully created is received, and binding the access domain name with the virtual IP of the virtual server so as to access the virtual server through the access domain name.
9. A computer device, comprising a memory, and a processor coupled to the memory;
the memory is used for storing a computer program; the processor is configured to execute a computer program stored in the memory to perform the method of any of claims 1-7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, implements the method according to any one of claims 1-7.
CN201910411960.XA 2019-05-17 2019-05-17 Load balancing application creation method and device, computer equipment and storage medium Active CN110289983B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910411960.XA CN110289983B (en) 2019-05-17 2019-05-17 Load balancing application creation method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910411960.XA CN110289983B (en) 2019-05-17 2019-05-17 Load balancing application creation method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110289983A CN110289983A (en) 2019-09-27
CN110289983B true CN110289983B (en) 2022-09-20

Family

ID=68002381

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910411960.XA Active CN110289983B (en) 2019-05-17 2019-05-17 Load balancing application creation method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110289983B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111475289B (en) * 2020-03-26 2024-04-12 北京世纪家天下科技发展有限公司 Load balancing method and device
EP3901807B1 (en) * 2020-04-20 2022-07-27 Siemens Aktiengesellschaft Creation of a domain name system container image for creating a domain name system container instance
CN111614746B (en) * 2020-05-15 2022-03-22 北京金山云网络技术有限公司 Load balancing method and device of cloud host cluster and server
CN114691283A (en) * 2020-12-31 2022-07-01 华为云计算技术有限公司 Method and device for managing instances and cloud application engine
CN113127199B (en) * 2021-04-22 2023-10-20 康键信息技术(深圳)有限公司 Load balancing configuration method, device, equipment and storage medium
CN113835836B (en) * 2021-09-23 2024-01-30 证通股份有限公司 System, method, computer device and medium for dynamic publishing container service
CN114826919B (en) * 2022-03-21 2023-09-22 浪潮思科网络科技有限公司 SDN-based load balancing software nanotube method, device, equipment and medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9237194B2 (en) * 2010-11-05 2016-01-12 Verizon Patent And Licensing Inc. Load balancer and firewall self-provisioning system
US9462427B2 (en) * 2015-01-14 2016-10-04 Kodiak Networks, Inc. System and method for elastic scaling using a container-based platform
CN108111470B (en) * 2016-11-25 2020-06-16 华为技术有限公司 Container deployment method, communication method between services and related device
CN107526626B (en) * 2017-08-24 2020-12-01 武汉大学 Docker container thermal migration method and system based on CRIU
CN109032760A (en) * 2018-08-01 2018-12-18 北京百度网讯科技有限公司 Method and apparatus for application deployment

Also Published As

Publication number Publication date
CN110289983A (en) 2019-09-27

Similar Documents

Publication Publication Date Title
CN110289983B (en) Load balancing application creation method and device, computer equipment and storage medium
US10841336B2 (en) Selectively providing mutual transport layer security using alternative server names
US20150186129A1 (en) Method and system for deploying a program module
US9705758B2 (en) Management of cloud provider selection
CN110224860B (en) Load balancing application creation method and device, computer equipment and storage medium
US9148426B2 (en) Securely identifying host systems
US10996997B2 (en) API-based service command invocation
CN110266761B (en) Load balancing application creation method and device, computer equipment and storage medium
US20170140315A1 (en) Managing incident tickets in a cloud managed service environment
US10284660B1 (en) Data flow tokens to trace execution of services in a service provider network
US11108871B2 (en) Dynamic generation of network routing configuration with service requirements
CN112835782B (en) Interface access test method and system
US20230031952A1 (en) Network service management system and network service management method
JP7501983B2 (en) Secure handling of unified message flows in multitenant containers
CN110290172B (en) Container application cloning method and device, computer equipment and storage medium
CN107404410B (en) Method and device for constructing virtual network function platform in cloud environment
AU2021398915B2 (en) Coordinating requests actioned at a scalable application
CN110365742B (en) Multi-active load balancing application creation method and device, computer equipment and storage medium
CN114238927A (en) Business system login method, system, device, computer equipment and storage medium
US9424120B1 (en) Prioritizing first failure data capture (FFDC) data for analysis
CN112217852A (en) Platform-as-a-service system and method based on workflow engine
US11909720B2 (en) Secure remote support of systems deployed in a private network
CN116909756B (en) Cross-cloud service method and device, electronic equipment and storage medium
US11194918B2 (en) Data transmission based on verification codes
US20220398098A1 (en) Dynamic overflow processing in a multi-user computing 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