CN110278243A - Load balancing application management method, device, computer equipment and storage medium - Google Patents

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

Info

Publication number
CN110278243A
CN110278243A CN201910414016.XA CN201910414016A CN110278243A CN 110278243 A CN110278243 A CN 110278243A CN 201910414016 A CN201910414016 A CN 201910414016A CN 110278243 A CN110278243 A CN 110278243A
Authority
CN
China
Prior art keywords
application
load balancing
information
server
interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910414016.XA
Other languages
Chinese (zh)
Other versions
CN110278243B (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 CN201910414016.XA priority Critical patent/CN110278243B/en
Publication of CN110278243A publication Critical patent/CN110278243A/en
Application granted granted Critical
Publication of CN110278243B publication Critical patent/CN110278243B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0677Localisation of faults
    • 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

Abstract

The embodiment of the present application provides a kind of load balancing application management method, device, computer equipment and storage medium, is related to field of cloud computer technology, can be applied in PaaS platform.The described method includes: creating the application of F5 load balancing according to preset creation interface;After F5 load balancing application creation is completed, if receiving the open instructions for opening default management interface, default management interface is opened according to the open instructions;If receiving the management instruction of the triggering of the administration interface corresponding to the default management interface, is instructed according to the management and the F5 load balancing application created is managed.The embodiment of the present application can be by by the F5 load balancing application of preset creation interface creation, and the administration interface corresponding to default management interface is managed.Administration interface by presetting management interface may be implemented to be managed the different information of the F5 load balancing application created, improves the efficiency of F5 load balancing application management, improves the experience of user.

Description

Load balancing application management method, device, computer equipment and storage medium
Technical field
This application involves field of cloud computer technology more particularly to a kind of load balancing application management methods, device, computer Equipment and storage medium.
Background technique
Currently, PaaS platform (Platform-as-a-Service: platform services) in the market is for F5 load balancing The management of application is all to rely on the user of corresponding authority to log on and carry out manual amendment in F5 equipment, will lead to load in this way Equalization information it is opaque, while the user for needing to modify has higher specialty background knowledge, and causes operation very cumbersome.
Summary of the invention
The embodiment of the present application provides a kind of load balancing application management method, device, computer equipment and storage medium, can The F5 load balancing application created is managed by administration interface corresponding to default management interface, it is equal to improve F5 load The efficiency of weighing apparatus application management.
In a first aspect, the embodiment of the present application provides a kind of load balancing application management method, this method comprises:
The application of F5 load balancing is created according to preset creation interface;In F5 load balancing application creation completion Afterwards, if receiving the open instructions for opening default management interface, default management interface is opened according to the open instructions;If receiving To the management instruction of the triggering of the administration interface corresponding to the default management interface, according to management instruction to the F5 created Load balancing application is managed.
Second aspect, the embodiment of the invention provides a kind of load balancing application management device, load balancing application pipes Managing device includes for executing the corresponding unit of method described in above-mentioned first aspect.
The third aspect, the embodiment of the invention provides a kind of computer equipment, the computer equipment includes memory, with And the processor being connected with the memory;
The memory is for storing computer program, and the processor is for running the calculating stored in the memory Machine program, to execute method described in above-mentioned first aspect.
Fourth aspect, the embodiment of the invention provides a kind of computer readable storage medium, the computer-readable storage Media storage has computer program, when the computer program is executed by processor, realizes method described in above-mentioned first aspect.
The F5 load balancing application that the embodiment of the present application can will be created by preset creation interface, in default management interface Corresponding administration interface is managed.Administration interface by presetting management interface may be implemented equal to the F5 load created The different information of weighing apparatus application are managed, there is no need to log in specific F5 equipment to be managed accordingly, the operation of management It is convenient and simple, it is not easy to malfunction, improve the efficiency of F5 load balancing application management;And pass through the management for presetting management interface Interface can be very visual and clear the various relevant informations of F5 load balancing application that are created of acquisition, information is very transparent straight It sees, improves the experience of user;In addition when load balancing application is broken down, relevant information can be obtained rapidly and is checked, To help investigation positioning failure.
Detailed description of the invention
Technical solution in order to illustrate the embodiments of the present invention more clearly, below will be to needed in embodiment description Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, general for this field For logical technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is the flow diagram of load balancing application management method provided by the embodiments of the present application;
Fig. 2 is the schematic diagram of set interface provided by the embodiments of the present application;
Fig. 3 is the sub-process schematic diagram of load balancing application management method provided by the embodiments of the present application;
Fig. 4 is the schematic diagram for the set interface that another embodiment of the application provides;
Fig. 5 a is the schematic diagram of the information of F5 load balancing application provided by the embodiments of the present application;
Fig. 5 b is the schematic diagram of the information of virtual server provided by the embodiments of the present application;
Fig. 6 is the change method flow schematic diagram of load balancing application management method provided by the embodiments of the present application;
Fig. 7 is the adding method flow diagram of load balancing application management method provided by the embodiments of the present application;
Fig. 8 is the delet method flow diagram of load balancing application management method provided by the embodiments of the present application;
Fig. 9 is the schematic block diagram of load balancing application management device provided by the embodiments of the present application;
Figure 10 is the schematic block diagram of the first creating unit provided by the embodiments of the present application;
Figure 11 is the schematic block diagram of administrative unit provided by the embodiments of the present application;
Figure 12 is the schematic block diagram of administrative unit provided by the embodiments of the present application;
Figure 13 is the schematic block diagram of administrative unit provided by the embodiments of the present application;
Figure 14 is the schematic block diagram of computer equipment provided by the embodiments of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiment is some embodiments of the present application, instead of all the embodiments.Based on this Shen Please in embodiment, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall in the protection scope of this application.
Fig. 1 is the flow diagram of load balancing application management method provided by the embodiments of the present application.As shown in Figure 1, should Method includes S101-S103.
S101 creates the application of F5 load balancing according to preset creation interface.
Wherein, preset creation interface includes the first default creation interface and the second default creation interface.Wherein, first is pre- If creating interface for first creation container application, then create the F5 load balancing application of container application, and container application is set With the incidence relation of F5 load balancing application.It is to be appreciated that container application and the container are answered by the first default creation interface The disposable creation of F5 load balancing application is completed, that is, is creating the F5 load that container application is created while container application Equilibrium, which applies and the container is arranged, applies the incidence relation applied with F5 load balancing.Second default creation interface is for creating F5 Load balancing application.Applicable scene includes following scene: container application has created completion, has such as transported container application It has gone a period of time, then has been determined as container application creation F5 load balancing application.Under this kind of scene, need to be individually for container Using creation load balancing application, that is, need to use the second default creation interface.Specifically, the first default creation interface and second Default creation interface can exist in the form of set interface and interface function.
It should be noted that only by the F5 load balancing application of preset creation interface creation, it just can be default It is managed on administration interface corresponding to management interface.
In one embodiment, it if preset creation interface is the first default creation interface, is created according to preset creation interface Build F5 load balancing application, i.e. step S101 the following steps are included:
The information by the container application of the first default creation interface setting and the information of load balancing application are obtained, In, the type of load balancing application is F5;The information for information and the load balancing application applied according to set container, and Preset load balancing parameter information, using the first default creation interface, the application of creation container and F5 load balancing application, and Created container is set and applies the incidence relation applied with F5 load balancing.
Wherein, the first default creation interface includes a setting interface, and the letter that container is applied is arranged by the setting interface The information of breath and load balancing application, wherein the setting interface is the setting interface that developer writes, and can be arranged with one The form at interface is presented.As shown in Fig. 2, for the schematic diagram of set interface corresponding to the setting interface.It is first default by this The information for the container application that the setting interface setting of creation interface need to create and the information of load balancing application.Specifically, it connects Receive user input/selection need creation container application information and load balancing application information.Since this is preset The information of container application and the information of load balancing application can be set in creation interface, therefore obtain the letter of container application simultaneously The information of breath and load balancing application.
Wherein, the information of container application includes the region of the application environment of container application, container application, the appearance of container application Device example quantity, container application Mirror Info etc..Container application information further include whether enable monitoring, application management person or Using founder (people of creation container application, can be managed to the container application of creation), resource group of container application etc.. Wherein, the application environment of container application includes production environment, test environment, exploitation environment etc..Wherein, production environment means this Container application docks external environment after creating successfully, or accesses for external user;Test environment means that the container is answered It is used with after creating successfully for test;Exploitation environment means to use after container application creates successfully for exploitation.Container application Region refer to creation container application Host equipment room, consist of two parts: " region "+" safety zone ".Wherein, " safety Region " is the sub-regions under " region ".It is to be understood that " the safety zone xxx by container application creation under " region xx " In the computer room in domain ".However, determining that container application creation in which specifically computer room, needs that applies according to container to apply ring Border and the region of container application codetermine, it can be understood as apply container application creation container under some application environment In computer room corresponding to region.It is to be understood that computer room corresponding to the same region different application environment is different.Container The container instance quantity of application refers to the number of containers of container application, and the number of containers of container application is no upper limit 's.Wherein, the amount of access that container instance quantity can be applied according to the container determines.Container instance Mirror Info includes mirrored version Originally, mirror image nature and mirror image title.Wherein, image release includes official version, unofficial version, version 1.1, edition 4 .5 etc.; Mirror image nature refers to the container instance uses which kind of mirror image, such as nginx, tomcat, weblogic, springboot;Mirror As title refers to specific mirror image title, such as tomcat1.1.Wherein, Mirror Info can be from corresponding mirror image warehouse It obtains for selection by the user, wherein corresponding mirror image warehouse refers to the application environment of container application and the area of container application Mirror image warehouse under the computer room that domain determines jointly.Creation container application needs are charged, and are wrapped under the resource group of container application Resource account has been included, has created used expense for container application.Whether enabling monitoring refers to whether selecting to answer container Container instance is monitored, for example, container instance the resources such as CPU/ memory/IO service condition.In some embodiments In, the information of container application further includes beneficiary's resource pool, and beneficiary's resource pool refers to subsidiary/portion of creation container application Door determines the IP network section of created container allocation and the host resource of container, and different resource pond uses different IP network section and host resource.If the information of container application further includes beneficiary's resource pool, then beneficiary's resource pool and appearance The application environment of device application, the region of container application determine that the IP network section of created container instance distribution and container are real together The host resource of example.
The information of load balancing application includes the virtual server of the type of load balancing application, load balancing application The port information of (Virtual Server, VS), wherein the type of load balancing application is F5.Load balancing is applied virtual The port information of server can have one or have multiple, wherein the corresponding VS of a port, multiple port correspondences are more A VS.The port of virtual server refers to the access port that the application of F5 load balancing is supported, that is, http mode access Port, such as 80,443 ports.
In one embodiment, as shown in figure 3, what the information and load balancing of the container application according to set by were applied Information and preset load balancing parameter information, using the first default creation interface, the application of creation container and F5 load are equal Weighing apparatus application, and created container is set and applies the incidence relation applied with F5 load balancing, include the following steps S301- S305.Wherein, the first default creation interface further includes interface function.Using the first default creation interface it is to be understood that utilizing Interface function corresponding to first default creation interface.
S301, using the first default creation interface, according to application environment, the appearance of the container application in container application message The region of device application, container instance quantity, container application Mirror Info create the container instance that the container is applied.
Specifically, according in set container application message container application application environment, container application region, The container instance quantity of container application determines the container instance IP of the container application;According to the application environment of container application, hold The region of device application is determined for saving the mirror image warehouse of container application Mirror Info and according to the mirror of container application Mirror Info As type, image release, mirror image title extract the creation required tool of container instance from identified mirror image warehouse Somascope picture;The resource that creation container instance need to occupy is determined according to container mirror image nature, image release, and according to container application The resource that application environment, the region of container application, creation container instance need to occupy determines the host of creation container instance;According to Identified specific mirror image creates the container instance of container application, and the container instance that will be created on identified host It is bound with identified container instance IP to set identified container instance IP to the IP of created container instance.
Wherein, it can determine the position of container application creation according to the region of the application environment of container application, container application Which set, i.e., by container application creation in specific computer room.It should be noted that under each application environment in each region It is corresponding with the mirror image warehouse for saving mirror image resources.Use required for the region under the application environment is preserved in the mirror image warehouse All mirror image resources.The host for determining creation container application includes: to obtain corresponding position in database (under the computer room) The IP address pond of the pre-assigned host for being used to create container instance;According to the resource that need to occupy of creation container instance from place The host of creation container instance is determined in the IP address pond of host.Creation container instance is to need to occupy centainly on host Resource, it is therefore desirable to determine the resource that creation container instance need to occupy, first to judge whether host has enough resources To create the container instance.Wherein, the resource that creation container instance need to occupy includes CPU, memory, monitoring resource etc..Wherein, root The container instance of container application is created on identified host according to identified specific mirror image, and the container created is real Example with identified container instance IP bind, comprising: by container programming facility by identified specific mirror image be sent to really Surely on the host for creating container instance, to carry out the creation of container instance;Creation is completed, and operation and maintenance tools such as ansible is passed through Tool removes connection container instance, and the container instance created and identified container instance IP are bound.
S302 determines load balancing application according to the region of the application environment of container application, container application The virtual IP address of virtual server and the F5 equipment of creation load balancing application.
Virtual IP address is Virtual IP, can be abbreviated as VIP.VIP is also an IP address, it is to receive external (interconnection Network users or other users) access request destination address, and internal (providing the server of application service) send message To external source IP address.Under normal circumstances, a corresponding VIP of container application, it is (empty that a VIP can correspond to multiple VS Quasi- server).If VIP is 10.1.2.4.If there are two the ports of virtual server, respectively 80,443.So 10.1.2.4: A 80 corresponding VS, 10.1.2.4:443 correspond to another VS.I.e. a VS includes a VIP and a port information.It can also To be interpreted as, pass through the accessible virtual server of VIP and a port.
Specifically, step S302, comprising: according in set container application message container application application environment, The region of container application determines virtual ip address pond;An IP address is determined from virtual ip address pond, by identified IP Location is set as the virtual IP address of the virtual server;It is determined according to the region of the application environment of container application, container application F5 equipment group;F5 equipment of the F5 equipment as creation load balancing application is determined from F5 equipment group.It should be noted that Load balancing application F5 is hard load balancing, that is, needs to create load balancing application on specific hardware device F5.Due to F5 Equipment needs to buy, for cost consideration, as soon as only one F5 equipment under general computer room, then using the equipment as creation The F5 equipment of load balancing application.It should be noted that determining the F5 equipment of creation load balancing application and determining the sequence of VIP There is no restriction, F5 equipment can be first determined, then determine VIP.
The container instance created and the virtual server are associated to obtain incidence relation by S303, and by institute State incidence relation, the information of the container instance that is created, the port information, the virtual IP address and preset load balancing ginseng Number Information encapsulations in pairs as.
Wherein, the information of the container instance created generally refers to the IP of container instance.In some embodiments, it is created The information for the container instance built further includes container instance port.Container instance port refers to that container instance (server) offer is answered With the port of service, such as 8080 ports.If further including application management person in set container application message, then also need by Application management person is encapsulated into object.
Specifically, step S303, comprising: all by what is created using each container instance as an associated server Container instance is as associated server cluster;Title, the institute of associated server cluster are generated according to preset title create-rule State the title of virtual server, the title of container application;By the clothes in each associated server and the server cluster Business device is associated, and associated server cluster is associated with the server cluster of the virtual server to obtain being associated with System;By multiple titles generated, the incidence relation, the information of the container instance created, the port information, the void Quasi- IP and preset load balancing parameter information are packaged into object.
Wherein, a virtual server (VS) is corresponding with a server cluster (pool).Server cluster is understood that Corresponding server cluster is applied for load balancing, there are multiple server member (pool in server cluster (pool) Member), multiple server is used to real response external access request.After VS receives outside access request, VS is outer by this Portion's access request is assigned to a server in server cluster according to load-balancing algorithm, is responded by the server of the distribution Outside access request.Virtual server and associated server cluster are associated, the server set of virtual server is such as set Group (pool) is associated server cluster.By in the server cluster of virtual server server and multiple associated servers into Row association, the server member (poolmember) that the server cluster of virtual server is such as arranged is multiple association service Device, the quantity of the server member in server cluster are the quantity of associated server.
Wherein, load balancing parameter information includes monitoring protocols (such as TCP), (such as training in rotation at least connects load-balancing algorithm Connect mode etc.), Http profile (such as http, http-transparent, http-explicit, http-xforward Deng), health examination mode (for select load balancing F5 application monitor container application mode, such as f5monweb), Snat mould Formula (the snat mode for selecting the VIP functional address of virtual server to convert, including the omnipotent mode of SNAT/DANT, SNAT mould Formula etc.), cookie mode (value of cookie mode such as NONE, source-addr, hash, dest-addr, ssl, cookie Deng), (the IP address pond of selection snat mode, i.e., by the IP address after the conversion of access request source address/destination address SnatPool Range) etc. parameters.Wherein, preset load balancing parameter information is obtained, comprising: will be each according to the current operation demand of enterprise Load balancing parameter presets a default value;Using the default value of set each load balancing parameter as preset negative Carry balance parameters information.Wherein, the default value of each load balancing parameter is arranged according to the current operation demand of enterprise, It is to be understood that the default value most matches the current demand of enterprise.
S304 calls the creation interface of F5 load balancing application, in identified F5 equipment according to the object after encapsulation The virtual server of the upper creation load balancing application, and generate the configuration file of virtual server.
Wherein, the creation interface of load balancing application is a function, and the parameter in the function includes the object after encapsulation. F5 load balancing application can be automatically created in F5 equipment according to the relevant information of the object after encapsulation by the function, and The configuration file of F5 load balancing application is generated during creation.
S305 is generated according to preset domain name create-rule and is accessed if receiving virtual server creates successful message Domain name binds the virtual IP address of the access domain name and virtual server, described to be accessed by the access domain name Virtual server.
After the completion of the application creation of F5 load balancing, the automatic load balancing service for starting VS.It, can be by the operation of VS after starting State, the operating status of pool, each pool member operating status change into starting state by halted state.Since F5 is negative Carrying balanced application is to create in F5 equipment, therefore no matter create successfully or failure can all return to relevant information.If connecing The load balancing F5 application for receiving return creates successful message, generates access domain name;If receiving return failure news, According to where orientation problem the reason of failure.Wherein, it is generated when generating access domain name according to preset domain name create-rule.It is raw At domain name and virtual IP address binding will be accessed after access domain name, to access the virtual server by the access domain name.
The application of F5 load balancing is created while creating container application above, while the container of creation being applied and creation The application of F5 load balancing carried out auto-associating, this whole process is automatically performed, further speeded up creation speed and effect Rate has saved time cost and cost of labor.
In one embodiment, it if preset creation interface is the second default creation interface, is created according to preset creation interface Build F5 load balancing application, i.e. step S101 the following steps are included:
Obtain by the information of the load balancing application of the second default creation interface setting and with the load balancing application The information of associated associated application, wherein the type of load balancing is F5;The information applied according to set load balancing and The information of associated application creates the application of F5 load balancing using the second default creation interface.
Wherein, the second default creation interface includes a setting interface, and the load that need to be created is arranged by the setting interface The information that equilibrium is applied and the associated application with the load balancing association, wherein the setting interface is developer The setting interface write can be presented in the form of a set interface.As shown in figure 4, setting for the second default creation interface Set the schematic diagram of set interface corresponding to interface.By the setting interface setting need to create load balancing application information with And the associated application with the load balancing association.Wherein, the information of load balancing application includes load balancing application class Type (being defaulted as F5), associated application, Http profile (such as http), load-balancing algorithm (such as training in rotation), health examination side Formula (such as f5monweb), Snat mode (the omnipotent mode of SNAT/DANT), Snat Pool, the port (void of F5 load balancing application 80) port of the quasi- server such as parameters such as.
Wherein, the second default creation interface further includes interface function, and using the second default creation interface, creation F5 load is equal Weighing apparatus application, it will be appreciated that for the name for obtaining set associated application using interface function corresponding to the second default creation interface Claim, obtains the information of associated application, the information creating associated application applied further according to the information of associated application, F5 load balancing F5 load balancing application.
It should be noted that load balancing parameter uses preset load balancing to join in the first default creation interface Number, and load balancing is created by the second default creation interface in application, can be by the setting interface of the second default creation interface The parameter of load balancing application is arranged.
S102, after F5 load balancing application creation is completed, if receiving the opening for opening default management interface Instruction opens default management interface according to the open instructions.
Wherein, default management interface is the multiple and different administration interfaces write by developer.It can in administration interface To check all information by the created all F5 load balancing applications of preset creation interface.And to created institute All information for having F5 load balancing to apply are modified.
Wherein, the VS's that each F5 load balancing applies information, F5 load balancing including the application of F5 load balancing to apply Each server member (pool in the information of server cluster (pool) in information, virtual server, server cluster Member information).
Fig. 5 a is the schematic diagram of the information of F5 load balancing application provided by the embodiments of the present application.It should be noted that figure 5a is only example, in practice, can show more or less information.Wherein, the packet of F5 load balancing application Include VIP, VS title of F5 load balancing application, the end with F5 load balancing using relevant container Apply Names, VS (the F5 load balancing applies institute using the number of containers that corresponding access domain name, F5 load balancing are applied for mouth, F5 load balancing Corresponding container instance quantity), F5 load balancing is using founder or application management person etc..In the application of F5 load balancing On administration interface corresponding to information, it is corresponding with Edit button, inquiry button etc..The Edit button is triggered, can further be existed The information that relevant VS is applied to the F5 load balancing is checked on another administration interface;The inquiry button is triggered, it can be from numerous F5 load balancing application message in obtain required for inquire F5 load balancing application information.
Fig. 5 b is the schematic diagram of the information of virtual server provided by the embodiments of the present application.It should be noted that due to aobvious The limitation shown, in Fig. 5 b and unlisted load balancing parameter information.It should be noted that Fig. 5 b is only example, in practice, It can show more or less information.The information of the VS of F5 load balancing application includes the VS name of F5 load balancing application Title, server cluster title, virtual IP address, the port of VS, VS operating status (including run, stop), load balancing parameter Information etc..Wherein, load balancing parameter information includes Http profile, cookie mode, Snat mode, SnatPool.? Administration interface corresponding to the information of the VS of F5 load balancing application, is corresponding with change button, delete button, start button is stopped Only button etc. can realize the change to the information of VS (as included change Httpprofile, cookie mode, Snat mould respectively The parameters such as formula, SnatPool), the information of the VS is deleted, starts the VS, stop the VS etc..
As shown in Figure 5 b, the information of the server cluster in virtual server includes server cluster title, server set The load balancing in server member's quantity, the operating status of server cluster, load balancing parameter information included by group Algorithm (such as training in rotation, minimum connection type), monitoring protocol etc..On the administration interface corresponding to the information of server cluster, There are change button, Pool member to check that button, delete button etc., the corresponding function that may be implemented are to change the service respectively The information (such as include change load-balancing algorithm, monitoring protocol) of device cluster, check server in the server cluster at The information of member deletes the Pool.
Server member's information in server cluster includes server ip (container instance IP), Service-Port, operation State etc..On the administration interface corresponding to server member's information, there is the information of each server member, each server at Member is corresponding with addition button, delete button, start button, stop button etc..One server of addition is realized respectively, is deleted and is somebody's turn to do Server starts the server, stops the server.
S103, if the management instruction of the triggering of the administration interface corresponding to the default management interface is received, according to described Management instruction is managed the F5 load balancing application created.
Management instruction is clicked the associated button on administration interface by user and is triggered, wherein and management instruction includes inquiry instruction, Change directive deletes instruction, enabled instruction, halt instruction etc..
If management instruction is inquiry instruction.If receiving the pipe of the triggering of the administration interface corresponding to the default management interface Reason instruction is managed the F5 load balancing application created according to management instruction, comprising: if receiving from default The inquiry instruction of the triggering of administration interface corresponding to management interface, obtains the querying condition in the inquiry instruction, the inquiry It include query object in condition, wherein the query object includes the information of F5 load balancing application, F5 load balancing applies The information of virtual server, the information of server cluster in virtual server, server member in server cluster letter Breath;According to the querying condition, obtained and the querying condition from all information that the F5 load balancing created is applied The information matched consults the matched information of institute back to administration interface.In one embodiment, querying condition further includes load Affiliated application environment etc. is applied in equilibrium, the information applied such as environment lower created all F5 load balancing of inquiry exploitation. By inquiry instruction, the information of the VS of some F5 load balancing application can also be consulted, consult the server cluster in VS The information of each server member etc. in information, reference service device cluster.
By inquiry instruction, can be very visual and clear on the administration interface corresponding to default management interface see is various To F5 load balancing using relevant different information, information is very transparent;Simultaneously when container application is broken down, it can obtain rapidly It takes to F5 load balancing using relevant different information, to help malfunction elimination and positioning failure is carried out.
If management instruction is change directive.As shown in fig. 6, being load balancing application management side provided by the embodiments of the present application The change method flow schematic diagram of method, the change method include the following steps S601-S604.
S601, if receiving the change directive of the triggering of the administration interface corresponding to the default management interface, described in acquisition Change object in change directive, wherein the change object includes information, the void of the virtual server of F5 load balancing application The information of server cluster in quasi- server.
If the change object in change directive is the information of the virtual server of F5 load balancing application, wherein can be more The information of the virtual server changed includes the parameters such as Http profile, cookie mode, Snat mode, SnatPool, can Attribute of the parameters such as Http profile, cookie mode, Snat mode, SnatPool of change as virtual server, one The corresponding attribute of a parameter.
S602 is obtained and the change object from the F5 equipment that creation F5 load balancing is applied according to the change object The corresponding candidate options of attribute.
It is set according to the F5 that the acquisition of information of the virtual server creates the F5 load balancing application of the virtual server It is standby, the candidate options of modifiable each attribute are obtained in real time from F5 equipment, such as the candidate options of Http profile attribute Including http, http-transparent, http-explicit, http-xforward;The candidate choosing of cookie mode attribute Item is including NONE, source-addr, hash, dest-addr, ssl, cookie etc..
S603 receives the targets option that user selects from candidate options.
Such as Http profile attribute, the targets option that user selects from candidate options is http, then receiving The http that user selects from candidate options.Such as cookie mode attribute, the target that user selects from candidate options is selected Item is ssl, receives the ssl that user selects from candidate options.
S604, if receiving change determine instruction, using selected targets option as the attribute institute of the change object Corresponding value changes the change object's property value in the configuration file of virtual server.
If receiving change determine instruction, using selected targets option as corresponding to the attribute of the change object Value, as using selected http as value corresponding to Http profile attribute, using selected ssl as cookie mode Value corresponding to attribute;And the change object's property value is changed in the configuration file of virtual server, it will be in the management The information of change on interface is all written in the configuration file of virtual server.Wherein, change determine instruction is by user's point It hits and determines the triggering of the buttons such as change, specifically, call the change interface of F5 load balancing application (it can be appreciated that change letter Number), value corresponding to the attribute and attribute of object will be changed and be passed to the change interface, with virtual by change interface change The change object's property value in the configuration file of server.
If management instruction is addition instruction.As shown in fig. 7, being load balancing application management side provided by the embodiments of the present application The adding method flow diagram of method, the adding method include the following steps S701-S705.
S701, if receiving the addition instruction of the triggering of the administration interface corresponding to the default management interface, described in acquisition Addition object in addition instruction, the addition object include server member's information in server cluster, the server Cluster is the server cluster of the virtual server of F5 load balancing application.
S702 is obtained and is applied relevant container application with the F5 load balancing, obtains the container application Server corresponding to the IP and container instance of container instance is used to provide the port information of service.
Wherein, the container instance IP of the container application of acquisition can be all container instance IP of container application, then container The port information that server corresponding to example is used to provide service refers to all container instances for providing the port of service Information.The container instance IP of the container application of acquisition is also possible to be not added with the container instance IP for server member, then holding The port information that server corresponding to device example is used to provide service refers to that this is not added with the container reality for server member Example is for providing the port information of service.
S703 needs to add according to the port information determination that the IP of the container instance and the server are used to provide service Server member IP and port information.
If that obtain is all container instance IP of container application, determination is also not added with first from all container instance IP It (is the shape that cannot be selected as setting has been added to the container instance IP of server member for the container instance IP of server member State, being not added with as the container instance IP of server member is selectable state), then never it is added to the container of server member IP of the container instance IP as the server member that need to be added is determined in example IP, and identified container instance institute is right Port information of the port information answered as the server member that need to be added.The container that such as can be never added to server member is real IP of the one container instance IP of random selection as the server member that need to be added in example IP, and the randomly selected container is real Port information of the port information of example as the server member that need to be added.
S704, if receiving addition determine instruction, using identified IP and port information as the server that need to be added at The information of member, the server member set the server member in Virtual Server Cluster.
Wherein, addition determine instruction is to be clicked to determine the triggering of the buttons such as addition by user.
S705, the information of the added server member are added in the configuration file of the virtual server, and Server member's quantity in server cluster is added 1.
The information of server member added by being added in the configuration file of virtual server, and will be in server cluster Server member's quantity add 1, the information of the addition on administration interface is all written to the configuration file of virtual server In.Specifically, the addition interface (it can be appreciated that addition function) for calling the application of F5 load balancing, by added server The information of member is passed to the addition interface, to increase the server in the configuration file of virtual server by adding interface The information of member, and server member's quantity in server cluster is added 1 simultaneously.
If management instruction is deletes instruction, as shown in figure 8, being load balancing application management side provided by the embodiments of the present application The delet method flow diagram of method, the delet method include the following steps S801-S804.
S801, if receiving the deletion instruction of the triggering of the administration interface corresponding to the default management interface, described in acquisition Delete the deletion object in instruction, the information for deleting the virtual server that object includes the application of F5 load balancing, virtual clothes Be engaged in device server cluster information, the information of server member in server cluster.
Whether S802, detect server member corresponding to the deletion object and have and shared by other virtual servers.
If detecting with the F5 load balancing using relevant container using offline, then can delete and the container Using the information for the virtual server that the relevant F5 load balancing is applied.If discovery creates F5 in F5 equipment When load balancing application failure, then the information of the virtual server of load balancing application can be deleted.
It is shared by other virtual servers, it can be understood as, at least the same clothes have been used there are two virtual server Be engaged in device member.
If the information for deleting the virtual server that object is the application of F5 load balancing, then judging the virtual server Server cluster in the presence or absence of the situation that there is server member to be shared by other virtual servers;If the deletion object For the information of the server cluster of virtual server, judging, which whether there is in the server cluster, has server member other The shared situation of virtual server.The situation for thering is a server member to be shared by other virtual servers if it exists, then really It is set to have and is shared by other virtual servers, if the feelings that Servers-all member is not shared by other virtual servers Condition, it is determined that do not shared by other virtual servers.If the object of deleting is the server member in server cluster Information, then judging whether the server member is shared by other virtual servers, if the server member is not by it His virtual server shares, it is determined that is not shared by other virtual servers, if the server member is by other empty Quasi- server shares, it is determined that has and is shared by other virtual servers.
S803 will if server member corresponding to the deletion object is not shared by other virtual servers The deletion object is deleted, and the letter that the deletion object need to be deleted is deleted in the configuration file of the virtual server Breath.
If the information for deleting the virtual server that object is F5 load balancing application, then what correspondence need to delete Information includes the information of virtual server, the information of the server cluster of virtual server, all services in server cluster The information of device member.If the information for deleting the server cluster that object is virtual server, then needing the packet deleted Include the information of the server cluster of virtual server, the information of Servers-all member in server cluster.If the deletion Object is the information of the server member in server cluster, then deletes the information of the server member, and by server cluster In the quantity of server member subtract 1.It should be noted that delete server member information, not will be deleted the server at The container instance of container application corresponding to member.
Specifically, the deletion interface (it can be appreciated that deleting function) for calling the application of F5 load balancing, by the deletion The information of object is passed to the deletion interface, to delete the deletion pair in the configuration file of virtual server by deleting interface The information that need to be deleted as correspondence.
S804 is shared by other virtual servers if server member corresponding to the deletion object has, is carried out Prompt.
Such as prompt not can be carried out deletion.In some embodiments, if deleting object is the server in server cluster The information of member is shared if the server member has by other virtual servers, then removing the server member, and will clothes The quantity of server member in business device cluster subtracts 1.It is to be appreciated that removing only by the server member from server cluster Middle deletion, but the server member there is also;And after deleting, which is not present.
If management instruction is enabled instruction, the starting object in enabled instruction is obtained, wherein the starting object includes F5 The information of virtual server that load balancing is applied, the information of the server member in the server cluster of virtual server;It opens The starting object is moved, and sets starting state for the operating status of the starting object.Wherein, start the starting object When, start command can be used to realize.If the trouble shooting of some server member in server cluster, refers to according to starting It enables starting the server member and run.
If management instruction is halt instruction, the stopping object in halt instruction is obtained, wherein the stopping object includes F5 The information of virtual server that load balancing is applied, the information of the server member in the server cluster of virtual server;Stop The only stopping object, and halted state is set by the operating status for stopping object.Wherein, stop the stopping object When, it can be used and cease and desist order to realize.If the virtual server of F5 load balancing application breaks down, then according to halt instruction Virtual server is out of service.After virtual server is out of service, the F5 load balancing corresponding to the virtual server is answered With also can be out of service.If some server member in server cluster is broken down, according to halt instruction by the service Device member is out of service.After the server member is out of service, the operation of other server members is not influenced.
It should be noted that the above management method in other than querying method, other methods all can adaptability general Corresponding data are modified in the database.
Above method embodiment may be implemented to answer the F5 load balancing of creation by presetting the administration interface of management interface The management of different information, there is no need to log in specific F5 equipment to be managed accordingly, the easy to operate letter of management It is single, it is not easy to malfunction;On the other hand, acquisition creation that can be very visual and clear by presetting the administration interface of management interface it is negative The various relevant informations of equilibrium F5 are carried, information is very transparent intuitive, improves the experience of user;And event occurs in container application When barrier, all information with the F5 load balancing application of container application can be obtained, rapidly to help investigation and positioning failure.
Fig. 9 is the schematic block diagram of load balancing application management device provided by the embodiments of the present application.As shown in figure 9, should Device includes for executing unit corresponding to above-mentioned load balancing application management method.Specifically, as shown in figure 9, the device 90 include creating unit 901, opening unit 902, administrative unit 903.
Creating unit 901, for creating the application of F5 load balancing according to preset creation interface;
Opening unit 902, for opening default management if receiving after F5 load balancing application creation is completed The open instructions of interface opens default management interface according to the open instructions;
Administrative unit 903, if the management for receiving the triggering of the administration interface corresponding to the default management interface refers to It enables, the F5 load balancing application created is managed according to management instruction.
In one embodiment, if preset creation interface is the first default creation interface, creating unit 901 is obtained including first Take unit, the first creating unit.Wherein, first acquisition unit, for obtaining the container for passing through the first default creation interface setting The information of information and the load balancing application of application, wherein the type of load balancing application is F5.First creating unit, is used for The information for information and the load balancing application applied according to set container and preset load balancing parameter information, benefit With the first default creation interface, the application of creation container and F5 load balancing application, and created container application and F5 are set The incidence relation of load balancing application.
In one embodiment, as shown in Figure 10, the first creating unit 100 includes applying creating unit 101, determination unit 102, encapsulation unit 103, load creating unit 104 and domain name binding unit 105.
Wherein, using creating unit 101, for presetting creation interface using first, according in container application message The application environment of container application, the region of container application, container instance quantity, container application Mirror Info create the container and answer Container instance.Determination unit 102, the application environment, the region of container application for being applied according to the container are true The virtual IP address of the virtual server of fixed load equilibrium application and the F5 equipment of creation load balancing application.Encapsulation unit 103 is used In the container instance created and the virtual server being associated to obtain incidence relation, and by the incidence relation, The information of the container instance created, the port information, the virtual IP address and the encapsulation of preset load balancing parameter information In pairs as.Load creating unit 104, for calling the creation interface of F5 load balancing application according to the object after encapsulation, with The virtual server of the load balancing application is created in identified F5 equipment, and generates the configuration file of virtual server. Domain name binding unit 105, it is raw according to preset domain name create-rule if creating successful message for receiving virtual server At access domain name, the virtual IP address of the access domain name and virtual server is bound, with visiting by the access domain name Ask the virtual server.
In one embodiment, if preset creation interface is the second default creation interface, creating unit 901 is obtained including second Take unit, the second creating unit.Second acquisition unit is answered for obtaining by the load balancing of the second default creation interface setting Information and information with the associated application of the load balancing association, wherein the type of load balancing is F5.Second Creating unit, for utilizing the second default creation according to the information of set load balancing application and the information of associated application Interface creates the application of F5 load balancing.
In one embodiment, if management instruction is inquiry instruction, the administrative unit 903 includes that querying condition acquisition is single Member, query information acquiring unit.Wherein, querying condition acquiring unit, if being come from corresponding to default management interface for receiving Administration interface triggering inquiry instruction, obtain the querying condition in the inquiry instruction, include inquiry in the querying condition Object, wherein the query object includes the information of virtual server of F5 load balancing application, the service in virtual server The information of device cluster, the information of server member in server cluster.Query information acquiring unit, for according to the inquiry Condition, acquisition and the matched information of the querying condition from all information that the F5 load balancing created is applied, by institute The information matched is consulted back to administration interface.
In one embodiment, if management instruction is change directive, as shown in figure 11, the administrative unit 903 includes change Object acquisition unit 111, attributes section acquiring unit 112, selection receiving unit 113, changing unit 114.Wherein, object is changed Acquiring unit 111 obtains institute if the change directive for receiving the triggering of the administration interface corresponding to the default management interface State the change object in change directive, wherein the change object includes the virtual server of the F5 load balancing application The information of server cluster in information, virtual server.Attributes section acquiring unit 112, for according to the change object Candidate options corresponding with the change attribute of object are obtained from the F5 equipment that creation F5 load balancing is applied.Selection connects Receive unit 113, the targets option selected from candidate options for receiving user.Changing unit 114, if for receiving change Determine instruction, using selected targets option as value corresponding to the attribute of the change object, and in virtual server The change object's property value is changed in configuration file.
In one embodiment, if management instruction is addition instruction, as shown in figure 12, the administrative unit 903 includes addition Object acquisition unit 121, case-based system unit 122, example determination unit 123, addition setting unit 124.Wherein, object is added Acquiring unit 121, if the addition instruction for receiving the triggering of the administration interface corresponding to the default management interface, obtains institute The addition object in addition instruction is stated, the addition object includes server member's information in server cluster, the service Device cluster is the server cluster of the virtual server of F5 load balancing application.Case-based system unit 122, for obtain with it is described F5 load balancing applies relevant container application, obtains IP and the container instance institute of the container instance of the container application Corresponding server is used to provide the port information of service.Example determination unit 123, for according to the IP of the container instance and The IP and port information for the server member that the port information determination that the server is used to provide service need to be added.Addition setting Unit 124, if for receiving addition determine instruction, using identified IP and port information as the server member that need to be added Information, the server member set the server member in server cluster;And it will the added server The information of member is added in the configuration file of virtual server, and server member's quantity in server cluster is added 1.
In one embodiment, if management instruction is deletes instruction, as shown in figure 13, the administrative unit 903 includes deleting Object acquisition unit 131 shares detection unit 132, deletes unit 133, prompt unit 134.Wherein, object acquisition unit is deleted 131, if the deletion instruction for receiving the triggering of the administration interface corresponding to the default management interface, obtains the deletion and refer to Deletion object in order, the information for deleting the virtual server that object includes the application of F5 load balancing, virtual server The information of server cluster, the information of server member in server cluster.Detection unit 132 is shared, it is described for detecting Whether server member corresponding to deletion object has is shared by other virtual servers.Unit 133 is deleted, if for described It deletes server member corresponding to object not shared by other virtual servers, then deletes the deletion object, The information that the deletion object need to be deleted is deleted in the configuration file of the virtual server.Prompt unit 134, if for described Server member corresponding to deletion object has to be shared by other virtual servers, then is prompted.
It should be noted that it is apparent to those skilled in the art that, the tool of above-mentioned apparatus and each unit Body realizes process, can be no longer superfluous herein with reference to the corresponding description in preceding method embodiment, for convenience of description and succinctly It states.
Above-mentioned apparatus can be implemented as a kind of form of computer program, and computer program can be in meter as shown in figure 14 It calculates and is run on machine equipment.
Figure 14 is a kind of schematic block diagram of computer equipment provided by the embodiments of the present application.The equipment is that terminal etc. is set It is standby, such as the server in PaaS platform.The equipment 140 includes processor 142, the memory connected by system bus 141 With network interface 143, wherein memory may include non-volatile memory medium 144 and built-in storage 145.
The non-volatile memory medium 144 can storage program area 1441 and computer program 1442.This is non-volatile to deposit , it can be achieved that load described in above-mentioned server when the computer program 1442 stored in storage media is executed by processor 142 Balanced application management method.The processor 142 supports the operation of whole equipment 140 for providing calculating and control ability.This is interior Memory 145 provides environment for the operation of the computer program in non-volatile memory medium, and the computer program is by processor When 142 execution, processor 142 may make to execute load balancing application management method described in above-mentioned server.The network connects Mouth 143 is for carrying out network communication.It will be understood by those skilled in the art that structure shown in Figure 14, only and the application The block diagram of the relevant part-structure of scheme, does not constitute the restriction for the equipment being applied thereon to application scheme, specifically Equipment may include perhaps combining certain components or with different component cloth than more or fewer components as shown in the figure It sets.
Wherein, the processor 142 is for running computer program stored in memory, to realize following steps:
The application of F5 load balancing is created according to preset creation interface;In F5 load balancing application creation completion Afterwards, if receiving the open instructions for opening default management interface, default management interface is opened according to the open instructions;If receiving To the management instruction of the triggering of the administration interface corresponding to the default management interface, according to management instruction to the F5 created Load balancing application is managed.
In one embodiment, the management instruction includes inquiry instruction, if the processor 142 is executing described receive The management instruction of the triggering of the administration interface corresponding to the default management interface, bears the F5 created according to management instruction When carrying the step that balanced application is managed, it is implemented as follows step:
If receiving the inquiry instruction of the triggering of the administration interface corresponding to the default management interface, obtains the inquiry and refer to Querying condition in order includes query object in the querying condition, wherein the query object includes F5 load balancing application The information of virtual server, the information of server cluster in virtual server, server member in server cluster Information;According to the querying condition, obtained and the querying condition from all information that the F5 load balancing created is applied Matched information consults the matched information of institute back to administration interface.
In one embodiment, the management instruction includes change directive, if the processor 142 is executing described receive The management instruction of the triggering of the administration interface corresponding to the default management interface, bears the F5 created according to management instruction When carrying the step that balanced application is managed, it is implemented as follows step:
If receiving the change directive of the triggering of the administration interface corresponding to the default management interface, obtains the change and refer to Change object in order, wherein the change object includes information, the Virtual Service of the virtual server of F5 load balancing application The information of server cluster in device;Object acquisition and institute from the F5 equipment that creation F5 load balancing is applied are changed according to described State the corresponding candidate options of attribute of change object;Receive the targets option that user selects from candidate options;If receiving Determine instruction is changed, using selected targets option as value corresponding to the attribute of the change object, and in Virtual Service The change object's property value is changed in the configuration file of device.
In one embodiment, the management instruction includes addition instruction, if the processor 142 is executing described receive The management instruction of the triggering of the administration interface corresponding to the default management interface, bears the F5 created according to management instruction When carrying the step that balanced application is managed, it is implemented as follows step:
If receiving the addition instruction of the triggering of the administration interface corresponding to the default management interface, obtains the addition and refer to Addition object in order, the addition object include server member's information in server cluster, and the server cluster is The server cluster of the virtual server of F5 load balancing application;It obtains and applies relevant appearance with the F5 load balancing Device application obtains server corresponding to the IP and container instance of the container instance of the container application and is used to provide the end of service Message breath;It is used to provide the port information of service according to server corresponding to the IP of the container instance and the container instance The IP and port information for the server member that determination need to be added;If receiving addition determine instruction, by identified IP and port Information of the information as the server member that need to be added, the server set the server member in server cluster Member;The information of the added server member is added in the configuration file of virtual server, and by server cluster In server member's quantity add 1.
In one embodiment, the management instruction includes deleting instruction, if the processor 142 is executing described receive The management instruction of the triggering of the administration interface corresponding to the default management interface, bears the F5 created according to management instruction When carrying the step that balanced application is managed, it is implemented as follows step:
If receiving the deletion instruction of the triggering of the administration interface corresponding to the default management interface, obtains the deletion and refer to Deletion object in order, the information for deleting the virtual server that object includes the application of F5 load balancing, virtual server The information of server cluster, the information of server member in server cluster;Detect service corresponding to the deletion object Whether device member has is shared by other virtual servers;If server member corresponding to the deletion object is not by other Virtual server share, then by the deletions object delete, in the configuration file of the virtual server deletion described in delete The information that need to be deleted except object;It is shared if server member corresponding to the deletion object has by other virtual servers, Then prompted.
In one embodiment, the preset creation interface includes the first default creation interface, and the processor 142 is being held When the capable step applied according to preset creation interface creation F5 load balancing, it is implemented as follows step:
The information by the container application of the first default creation interface setting and the information of load balancing application are obtained, In, the type of load balancing application is F5;The information for information and the load balancing application applied according to set container, and Preset load balancing parameter information, using the first default creation interface, the application of creation container and F5 load balancing application, and Created container is set and applies the incidence relation applied with F5 load balancing.
In one embodiment, the preset creation interface includes the second default creation interface, and the processor 142 is being held When the capable step applied according to preset creation interface creation F5 load balancing, it is implemented as follows step:
Obtain by the information of the load balancing application of the second default creation interface setting and with the load balancing application The information of associated associated application, wherein the type of load balancing is F5;The information applied according to set load balancing and The information of associated application creates the application of F5 load balancing using the second default creation interface.
It should be appreciated that in the embodiment of the present application, alleged processor 142 can be central processing unit (Central Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (application program lication Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other can Programmed logic device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor Or the processor is also possible to any conventional processor etc..
Those of ordinary skill in the art will appreciate that be realize above-described embodiment method in all or part of the process, It is that relevant hardware can be instructed to complete by computer program.The computer program can be stored in a storage medium, The storage medium can be computer readable storage medium.The computer program is by the processing of at least one of the computer system Device executes, to realize the process step of the embodiment of the above method.
Therefore, present invention also provides a kind of storage mediums.The storage medium can be computer readable storage medium, should Computer readable storage medium includes non-volatile computer readable storage medium storing program for executing.The storage medium is stored with computer program, The computer program performs the steps of when being executed by a processor
The application of F5 load balancing is created according to preset creation interface;In F5 load balancing application creation completion Afterwards, if receiving the open instructions for opening default management interface, default management interface is opened according to the open instructions;If receiving To the management instruction of the triggering of the administration interface corresponding to the default management interface, according to management instruction to the F5 created Load balancing application is managed.
In one embodiment, the management instruction includes inquiry instruction, if the processor comes in described receive of execution The management instruction of the triggering of the administration interface corresponding to the default management interface loads the F5 created according to the management instruction When the step that equilibrium application is managed, it is implemented as follows step:
If receiving the inquiry instruction of the triggering of the administration interface corresponding to the default management interface, obtains the inquiry and refer to Querying condition in order includes query object in the querying condition, wherein the query object includes F5 load balancing application The information of virtual server, the information of server cluster in virtual server, server member in server cluster Information;According to the querying condition, obtained and the querying condition from all information that the F5 load balancing created is applied Matched information consults the matched information of institute back to administration interface.
In one embodiment, the management instruction includes change directive, if the processor comes in described receive of execution The management instruction of the triggering of the administration interface corresponding to the default management interface loads the F5 created according to the management instruction When the step that equilibrium application is managed, it is implemented as follows step:
If receiving the change directive of the triggering of the administration interface corresponding to the default management interface, obtains the change and refer to Change object in order, wherein the change object includes information, the Virtual Service of the virtual server of F5 load balancing application The information of server cluster in device;Object acquisition and institute from the F5 equipment that creation F5 load balancing is applied are changed according to described State the corresponding candidate options of attribute of change object;Receive the targets option that user selects from candidate options;If receiving Determine instruction is changed, using selected targets option as value corresponding to the attribute of the change object, and in Virtual Service The change object's property value is changed in the configuration file of device.
In one embodiment, the management instruction includes addition instruction, if the processor comes in described receive of execution The management instruction of the triggering of the administration interface corresponding to the default management interface loads the F5 created according to the management instruction When the step that equilibrium application is managed, it is implemented as follows step:
If receiving the addition instruction of the triggering of the administration interface corresponding to the default management interface, obtains the addition and refer to Addition object in order, the addition object include server member's information in server cluster, and the server cluster is The server cluster of the virtual server of F5 load balancing application;It obtains and applies relevant appearance with the F5 load balancing Device application obtains server corresponding to the IP and container instance of the container instance of the container application and is used to provide the end of service Message breath;It is used to provide the port information of service according to server corresponding to the IP of the container instance and the container instance The IP and port information for the server member that determination need to be added;If receiving addition determine instruction, by identified IP and port Information of the information as the server member that need to be added, the server set the server member in server cluster Member;The information of the added server member is added in the configuration file of virtual server, and by server cluster In server member's quantity add 1.
In one embodiment, the management instruction includes deleting instruction, if the processor comes in described receive of execution The management instruction of the triggering of the administration interface corresponding to the default management interface loads the F5 created according to the management instruction When the step that equilibrium application is managed, it is implemented as follows step:
If receiving the deletion instruction of the triggering of the administration interface corresponding to the default management interface, obtains the deletion and refer to Deletion object in order, the information for deleting the virtual server that object includes the application of F5 load balancing, virtual server The information of server cluster, the information of server member in server cluster;Detect service corresponding to the deletion object Whether device member has is shared by other virtual servers;If server member corresponding to the deletion object is not by other Virtual server share, then by the deletions object delete, in the configuration file of the virtual server deletion described in delete The information that need to be deleted except object;It is shared if server member corresponding to the deletion object has by other virtual servers, Then prompted.
In one embodiment, the preset creation interface includes the first default creation interface, and the processor is executing When the step applied according to preset creation interface creation F5 load balancing, it is implemented as follows step:
The information by the container application of the first default creation interface setting and the information of load balancing application are obtained, In, the type of load balancing application is F5;The information for information and the load balancing application applied according to set container, and Preset load balancing parameter information, using the first default creation interface, the application of creation container and F5 load balancing application, and Created container is set and applies the incidence relation applied with F5 load balancing.
In one embodiment, the preset creation interface includes the second default creation interface, and the processor is executing When the step applied according to preset creation interface creation F5 load balancing, it is implemented as follows step:
Obtain by the information of the load balancing application of the second default creation interface setting and with the load balancing application The information of associated associated application, wherein the type of load balancing is F5;The information applied according to set load balancing and The information of associated application creates the application of F5 load balancing using the second default creation interface.
The storage medium can be USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), magnetic disk Or the various computer readable storage mediums that can store program code such as CD.
In several embodiments provided herein, it should be understood that disclosed device, device and method, it can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, the division of the unit, Only a kind of logical function partition, there may be another division manner in actual implementation.Those skilled in the art can be with It is well understood, for convenience of description and succinctly, the specific work process of the device of foregoing description, equipment and unit can With with reference to the corresponding process in preceding method embodiment, details are not described herein.The above, the only specific embodiment party of the application Formula, but the protection scope of the application is not limited thereto, and anyone skilled in the art discloses in the application In technical scope, various equivalent modifications or substitutions can be readily occurred in, these modifications or substitutions should all cover the guarantor in the application Within the scope of shield.Therefore, the protection scope of the application should be subject to the protection scope in claims.

Claims (10)

1. a kind of load balancing application management method, which is characterized in that the described method includes:
The application of F5 load balancing is created according to preset creation interface;
After F5 load balancing application creation is completed, if receiving the open instructions for opening default management interface, according to The open instructions opens default management interface;
If receiving the management instruction of the triggering of the administration interface corresponding to the default management interface, instructed pair according to the management The F5 load balancing application created is managed.
2. the method according to claim 1, wherein management instruction includes inquiry instruction, if described receive To the management instruction of the triggering of the administration interface corresponding to the default management interface, according to management instruction to the F5 created Load balancing application is managed, comprising:
If receiving the inquiry instruction of the triggering of the administration interface corresponding to the default management interface, obtain in the inquiry instruction Querying condition, include query object in the querying condition, wherein the query object includes the void of F5 load balancing application The information of quasi- server, the information of server cluster in virtual server, the information of server member in server cluster;
According to the querying condition, obtained and the querying condition from all information that the F5 load balancing created is applied The information matched consults the matched information of institute back to administration interface.
3. the method according to claim 1, wherein management instruction includes change directive, if described receive To the management instruction of the triggering of the administration interface corresponding to the default management interface, according to management instruction to the F5 created Load balancing application is managed, comprising:
If receiving the change directive of the triggering of the administration interface corresponding to the default management interface, obtain in the change directive Change object, wherein the change object includes the information of virtual server of F5 load balancing application, in virtual server Server cluster information;
The attribute phase with the change object is obtained from the F5 equipment that creation F5 load balancing is applied according to the change object Corresponding candidate options;
Receive the targets option that user selects from candidate options;
If receiving change determine instruction, using selected targets option as it is described change object attribute corresponding to value, And the change object's property value is changed in the configuration file of virtual server.
4. the method according to claim 1, wherein management instruction includes addition instruction, if described receive To the management instruction of the triggering of the administration interface corresponding to the default management interface, according to management instruction to the F5 created Load balancing application is managed, comprising:
If receiving the addition instruction of the triggering of the administration interface corresponding to the default management interface, obtain during the addition instructs Addition object, the addition object includes server member's information in server cluster, and the server cluster is negative for F5 Carry the server cluster of the virtual server of balanced application;
It obtains and applies relevant container application with the F5 load balancing, obtain the container instance of the container application Server corresponding to IP and container instance is used to provide the port information serviced;
The port information for being used to provide service according to server corresponding to the IP of the container instance and the container instance is true Surely the IP and port information for the server member that need to be added;
If receiving addition determine instruction, using identified IP and port information as the information for the server member that need to be added, The server member server member set in server cluster;
The information of the added server member is added in the configuration file of virtual server, and will be in server cluster Server member's quantity add 1.
5. the method according to claim 1, wherein management instruction includes deleting instruction, if described receive To the management instruction of the triggering of the administration interface corresponding to the default management interface, according to management instruction to the F5 created Load balancing application is managed, comprising:
If receiving the deletion instruction of the triggering of the administration interface corresponding to the default management interface, obtain during deletions instruct Deletion object, it is described delete object include F5 load balancing application virtual server information, virtual server service The information of device cluster, the information of server member in server cluster;
It detects server member corresponding to the deletion object and whether has and shared by other virtual servers;
If server member corresponding to the deletion object is not shared by other virtual servers, by the deletion pair As deleting, the information that the deletion object need to be deleted is deleted in the configuration file of the virtual server;
It is shared, is prompted by other virtual servers if server member corresponding to the deletion object has.
6. the method according to claim 1, wherein the preset creation interface includes that the first default creation connects Mouthful, it is described that the application of F5 load balancing is created according to preset creation interface, comprising:
Obtain the information by the container application of the first default creation interface setting and the information of load balancing application, wherein negative The type for carrying balanced application is F5;
The information and preset load balancing parameter letter for information and the load balancing application applied according to set container Breath, using the first default creation interface, the application of creation container and F5 load balancing application, and created container application is set With the incidence relation of F5 load balancing application.
7. the method according to claim 1, wherein the preset creation interface includes that the second default creation connects Mouthful, it is described that the application of F5 load balancing is created according to preset creation interface, comprising:
Obtain by the information of the load balancing application of the second default creation interface setting and with the load balancing association Associated application information, wherein the type of load balancing be F5;
The information of the information and associated application applied according to set load balancing utilizes the second default creation interface, creation F5 load balancing application.
8. a kind of load balancing application management device, which is characterized in that the load balancing application management device includes:
Creating unit, for creating the application of F5 load balancing according to preset creation interface;
Opening unit, for opening default management interface if receiving after F5 load balancing application creation is completed Open instructions opens default management interface according to the open instructions;
Administrative unit, if the management instruction for receiving the triggering of the administration interface corresponding to the default management interface, according to The management instruction is managed the F5 load balancing application created.
9. a kind of computer equipment, which is characterized in that the computer equipment includes memory, and is connected with the memory Processor;
The memory is for storing computer program;The processor is for running the computer journey stored in the memory Sequence, to execute the method according to claim 1 to 7.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has computer journey Sequence when the computer program is executed by processor, realizes the method according to claim 1 to 7.
CN201910414016.XA 2019-05-17 2019-05-17 Load balancing application management method and device, computer equipment and storage medium Active CN110278243B (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
CN110278243A true CN110278243A (en) 2019-09-24
CN110278243B CN110278243B (en) 2023-05-23

Family

ID=67960046

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN110278243B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160191411A1 (en) * 2014-12-30 2016-06-30 Nhn Entertainment Corporation Cloud service system and method
CN106506648A (en) * 2016-11-10 2017-03-15 东软集团股份有限公司 Load balancing service management method and system
CN109032760A (en) * 2018-08-01 2018-12-18 北京百度网讯科技有限公司 Method and apparatus for application deployment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160191411A1 (en) * 2014-12-30 2016-06-30 Nhn Entertainment Corporation Cloud service system and method
CN106506648A (en) * 2016-11-10 2017-03-15 东软集团股份有限公司 Load balancing service management method and system
CN109032760A (en) * 2018-08-01 2018-12-18 北京百度网讯科技有限公司 Method and apparatus for application deployment

Also Published As

Publication number Publication date
CN110278243B (en) 2023-05-23

Similar Documents

Publication Publication Date Title
US11956207B2 (en) Multi-tenant aware dynamic host configuration protocol (DHCP) mechanism for cloud networking
US11765057B2 (en) Systems and methods for performing end-to-end link-layer and IP-layer health checks between a host machine and a network virtualization device
CN108683516B (en) Application instance upgrading method, device and system
US11682055B2 (en) Partitioned private interconnects to provider networks
US9244817B2 (en) Remote debugging in a cloud computing environment
CN106302565B (en) Scheduling method and system of service server
US11546289B1 (en) User-configurable dynamic DNS mapping for virtual services
CN110224860B (en) Load balancing application creation method and device, computer equipment and storage medium
US11422844B1 (en) Client-specified network interface configuration for serverless container management service
US11392422B1 (en) Service-managed containers for container orchestration service
CN105991694B (en) A kind of method and apparatus realizing Distributed Services and calling
CN110289983A (en) Load balancing application creation method, device, computer equipment and storage medium
US9628505B2 (en) Deploying a security appliance system in a high availability environment without extra network burden
CN110275775A (en) Resource allocation method, system and the storage medium of container application
US11178252B1 (en) System and method for intelligent distribution of integration artifacts and runtime requests across geographic regions
US10862948B1 (en) Virtual data centers
CN110262872A (en) Load balancing application management method, device, computer equipment and storage medium
WO2022268503A1 (en) Non-disruptive storage volume migration between storage controllers
CN110286997A (en) More container application creation methods, device, computer equipment and storage medium
US20210075880A1 (en) Delegating network data exchange
US11722580B2 (en) Routing of web requests to on-premise network in a multi-tenant environment
CN110287021A (en) Load balancing application management method, device, computer equipment and storage medium
CN110278243A (en) Load balancing application management method, device, computer equipment and storage medium
WO2022206231A1 (en) Kubernetes cluster load balance handling method and apparatus, and storage medium
US20220138220A1 (en) Dedicated replication channels for replicating records between regions

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