CN113127199B - Load balancing configuration method, device, equipment and storage medium - Google Patents

Load balancing configuration method, device, equipment and storage medium Download PDF

Info

Publication number
CN113127199B
CN113127199B CN202110433830.3A CN202110433830A CN113127199B CN 113127199 B CN113127199 B CN 113127199B CN 202110433830 A CN202110433830 A CN 202110433830A CN 113127199 B CN113127199 B CN 113127199B
Authority
CN
China
Prior art keywords
information
load
preset
asset management
load balancing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110433830.3A
Other languages
Chinese (zh)
Other versions
CN113127199A (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.)
Kangjian Information Technology Shenzhen Co Ltd
Original Assignee
Kangjian Information 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 Kangjian Information Technology Shenzhen Co Ltd filed Critical Kangjian Information Technology Shenzhen Co Ltd
Priority to CN202110433830.3A priority Critical patent/CN113127199B/en
Publication of CN113127199A publication Critical patent/CN113127199A/en
Application granted granted Critical
Publication of CN113127199B publication Critical patent/CN113127199B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5083Techniques for rebalancing the load in a distributed system

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to the technical field of cloud service, and discloses a load balancing configuration method, device, equipment and storage medium, which are applied to the intelligent medical field and are used for reducing operation and maintenance cost and improving operation and maintenance efficiency. The load balancing configuration method comprises the following steps: determining unoccupied virtual network ports in the virtual Internet interconnection protocol information through a preset asset management interface; retrieving load balancing configuration information according to the unoccupied virtual network ports and the target soft load environment information to obtain at least one soft load cluster; calling a preset hard load interface to bind virtual Internet interconnection protocol information and at least one soft load cluster according to an unoccupied virtual network port; and distributing domain names to the virtual Internet protocol information through a preset domain name management system, and updating the load association mapping information and the domain names to the preset asset management system. In addition, the invention also relates to a blockchain technology, and load association mapping information can be stored in a blockchain node.

Description

Load balancing configuration method, device, equipment and storage medium
Technical Field
The present invention relates to the field of load monitoring of cloud services, and in particular, to a method, an apparatus, a device, and a storage medium for load balancing configuration.
Background
The load balancing architecture comprises software load balancing and hardware load balancing, wherein the software load balancing is generally realized by installing and deploying load balancing software on an operating system, and the hardware load balancing solution is to directly install load balancing equipment between a server and an external network. The internet company often has a complex service structure, and the hardware load balancing device is often matched with various open-source software load balancing for use due to cost and configuration convenience.
The infrastructure design through hybrid load balancing can save a part of hardware cost, but two or more sets of load balancing are required to be managed, so that the workload of daily maintenance and load balancing configuration is increased, the operation and maintenance efficiency is low, and the operation and maintenance cost is high.
Disclosure of Invention
The invention provides a load balancing configuration method, a device, equipment and a storage medium, which are used for improving operation and maintenance efficiency and reducing operation and maintenance cost.
In order to achieve the above object, a first aspect of the present invention provides a load balancing configuration method, including: receiving a load balancing configuration request, and acquiring virtual Internet interconnection protocol information and target soft load environment information from the load balancing configuration request; calling a preset asset management interface according to the virtual internet protocol information to obtain a return value of the asset management interface, and judging whether the virtual internet protocol information is occupied or not according to the return value of the asset management interface, wherein the return value of the asset management interface is used for indicating an unoccupied virtual network port; if the virtual internet protocol information is unoccupied, carrying out data retrieval on preset load balancing configuration information according to the unoccupied virtual network port and the target soft load environment information to obtain at least one soft load cluster; calling a preset hard load interface, and binding the virtual Internet interconnection protocol information and the at least one soft load cluster according to the unoccupied virtual network port to obtain a return code of the hard load interface; when the return code of the hard load interface is a preset state code, load association mapping information is obtained, a domain name is allocated to the virtual internet protocol information through a preset domain name management system, and the load association mapping information and the domain name are updated to a preset asset management system.
Optionally, in a first implementation manner of the first aspect of the present invention, the receiving a load balancing configuration request, obtaining virtual internet protocol information and target soft load environment information from the load balancing configuration request includes: receiving a load balancing configuration request, and carrying out parameter analysis on the load balancing configuration request to obtain a plurality of service parameters, wherein each service parameter comprises a parameter name and a parameter value corresponding to the parameter name; acquiring a parameter verification rule, and respectively carrying out parameter verification on the plurality of service parameters according to the parameter verification rule; when any one service parameter fails to pass the verification, extracting a user identifier from the plurality of service parameters, generating parameter anomaly description information for the service parameters which fail to pass the verification, transmitting the parameter anomaly description information to a terminal based on the user identifier, and recording the parameter anomaly description information into a preset operation log based on the user identifier; and when all service parameters pass verification, extracting virtual Internet protocol information and target soft load environment information from the service parameters, and caching the virtual Internet protocol information and the target soft load environment information.
Optionally, in a second implementation manner of the first aspect of the present invention, the calling a preset asset management interface according to the virtual internet protocol information to obtain a return value of the asset management interface, and judging whether the virtual internet protocol information is occupied according to the return value of the asset management interface, where the return value of the asset management interface is used to indicate an unoccupied virtual network port, includes: setting the virtual Internet protocol information as an input parameter, and calling a preset asset management interface based on the input parameter, wherein the asset management interface belongs to a preset asset management system, and the asset management system is used for uniformly managing preset information industry asset information, preset network addresses and preset application metadata information; traversing and querying a preset data table according to the input parameters through the asset management interface to obtain a return value of the asset management interface, judging whether the return value of the asset management interface is a null value or not, wherein the return value of the asset management interface is used for indicating an unoccupied virtual network port; if the return value of the asset management interface is a null value, determining that the virtual Internet protocol information is occupied, generating and recording resource occupied prompt information, and sending the resource occupied prompt information to a terminal; and if the returned value of the asset management interface is not null, determining that the virtual Internet interconnection protocol information is unoccupied.
Optionally, in a third implementation manner of the first aspect of the present invention, if the virtual internet protocol information is unoccupied, performing data retrieval on preset load balancing configuration information according to the unoccupied virtual network port and the target soft load environment information to obtain at least one soft load cluster, including: if the virtual internet protocol information is unoccupied, extracting a virtual network address from the virtual internet protocol information, and extracting at least one subnet mask from the target soft load environment information according to the unoccupied virtual network port; performing AND operation on the virtual network address based on the at least one subnet mask to obtain at least one network segment address; generating a target query statement according to the structured query language grammar rules and the at least one network segment address; and executing the target query statement, reading a load balancing type from preset load balancing configuration information, and determining at least one soft load cluster according to the load balancing type.
Optionally, in a fourth implementation manner of the first aspect of the present invention, the calling a preset hard load interface binds the virtual internet protocol information and the at least one soft load cluster according to the unoccupied virtual network port to obtain a return code of the hard load interface, where the method includes: extracting a virtual network address from the virtual internet protocol information, and acquiring an actual network address corresponding to each soft load cluster; calling a preset hard load interface, creating a target virtual machine according to the virtual network address, and creating at least one service cluster according to the unoccupied virtual network port, wherein each service cluster corresponds to each soft load cluster one by one; binding the actual network address corresponding to each soft load cluster with the service cluster corresponding to each soft load cluster, and carrying out port mapping on the target virtual machine and the at least one service cluster according to the unoccupied virtual network port to obtain a return code of a hard load interface.
Optionally, in a fifth implementation manner of the first aspect of the present invention, when the return code of the hard load interface is a preset status code, acquiring load association mapping information, allocating a domain name to the virtual internet protocol information through a preset domain name management system, and updating the load association mapping information and the domain name to a preset asset management system, where the method includes: when the return code of the hard load interface is a preset state code, calling a preset hardware inquiry interface according to the virtual network address and the unoccupied virtual network port to obtain a response result of the hardware inquiry interface; when the response result of the hardware query interface is a preset response value, determining that the target virtual machine and the at least one service cluster are successfully created, calling a preset data reading interface according to the virtual network address and the unoccupied virtual network port to obtain load association mapping information, and caching the load association mapping information; and distributing a domain name to the virtual network address through a preset domain name management system, acquiring a user identifier, and updating the load association mapping information and the domain name to a preset asset management system based on the user identifier, wherein the domain name has a one-to-one correspondence with the virtual network address.
Optionally, in a sixth implementation manner of the first aspect of the present invention, when the return code of the hard load interface is a preset status code, load association mapping information is obtained, a domain name is allocated to the virtual internet protocol information through a preset domain name management system, and after the load association mapping information and the domain name are updated to a preset asset management system, the load balancing configuration method further includes: acquiring a user identifier, and reading load balancing configuration link information from a preset operation log according to the user identifier and preset query time length, wherein the load balancing configuration link information comprises parameter anomaly description information, user request anomaly information, resource occupation prompt information, soft load binding failure information and service creation failure information; and generating load balancing link report information based on the load balancing configuration link information.
The second aspect of the present invention provides a load balancing configuration apparatus, including: the system comprises an acquisition module, a load balancing module and a load balancing module, wherein the acquisition module is used for receiving a load balancing configuration request and acquiring virtual Internet protocol information and target soft load environment information from the load balancing configuration request; the judging module is used for calling a preset asset management interface according to the virtual Internet protocol information to obtain a return value of the asset management interface, judging whether the virtual Internet protocol information is occupied or not according to the return value of the asset management interface, wherein the return value of the asset management interface is used for indicating an unoccupied virtual network port; the retrieval module is used for carrying out data retrieval on preset load balancing configuration information according to the unoccupied virtual network port and the target soft load environment information if the virtual internet protocol information is unoccupied, so as to obtain at least one soft load cluster; the binding module is used for calling a preset hard load interface, binding the virtual Internet interconnection protocol information and the at least one soft load cluster according to the unoccupied virtual network port, and obtaining a return code of the hard load interface; and the updating module is used for acquiring the load association mapping information when the return code of the hard load interface is a preset state code, distributing a domain name to the virtual internet protocol information through a preset domain name management system, and updating the load association mapping information and the domain name into the preset asset management system.
Optionally, in a first implementation manner of the second aspect of the present invention, the acquiring module is specifically configured to: receiving a load balancing configuration request, and carrying out parameter analysis on the load balancing configuration request to obtain a plurality of service parameters, wherein each service parameter comprises a parameter name and a parameter value corresponding to the parameter name; acquiring a parameter verification rule, and respectively carrying out parameter verification on the plurality of service parameters according to the parameter verification rule; when any one service parameter fails to pass the verification, extracting a user identifier from the plurality of service parameters, generating parameter anomaly description information for the service parameters which fail to pass the verification, transmitting the parameter anomaly description information to a terminal based on the user identifier, and recording the parameter anomaly description information into a preset operation log based on the user identifier; and when all service parameters pass verification, extracting virtual Internet protocol information and target soft load environment information from the service parameters, and caching the virtual Internet protocol information and the target soft load environment information.
Optionally, in a second implementation manner of the second aspect of the present invention, the judging module is specifically configured to: setting the virtual Internet protocol information as an input parameter, and calling a preset asset management interface based on the input parameter, wherein the asset management interface belongs to a preset asset management system, and the asset management system is used for uniformly managing preset information industry asset information, preset network addresses and preset application metadata information; traversing and querying a preset data table according to the input parameters through the asset management interface to obtain a return value of the asset management interface, judging whether the return value of the asset management interface is a null value or not, wherein the return value of the asset management interface is used for indicating an unoccupied virtual network port; if the return value of the asset management interface is a null value, determining that the virtual Internet protocol information is occupied, generating and recording resource occupied prompt information, and sending the resource occupied prompt information to a terminal; and if the returned value of the asset management interface is not null, determining that the virtual Internet interconnection protocol information is unoccupied.
Optionally, in a third implementation manner of the second aspect of the present invention, the matching module is specifically configured to: if the virtual internet protocol information is unoccupied, extracting a virtual network address from the virtual internet protocol information, and extracting at least one subnet mask from the target soft load environment information according to the unoccupied virtual network port; performing AND operation on the virtual network address based on the at least one subnet mask to obtain at least one network segment address; generating a target query statement according to the structured query language grammar rules and the at least one network segment address; and executing the target query statement, reading a load balancing type from preset load balancing configuration information, and determining at least one soft load cluster according to the load balancing type.
Optionally, in a fourth implementation manner of the second aspect of the present invention, the binding module is specifically configured to: extracting a virtual network address from the virtual internet protocol information, and acquiring an actual network address corresponding to each soft load cluster; calling a preset hard load interface, creating a target virtual machine according to the virtual network address, and creating at least one service cluster according to the unoccupied virtual network port, wherein each service cluster corresponds to each soft load cluster one by one; binding the actual network address corresponding to each soft load cluster with the service cluster corresponding to each soft load cluster, and carrying out port mapping on the target virtual machine and the at least one service cluster according to the unoccupied virtual network port to obtain a return code of a hard load interface.
Optionally, in a fifth implementation manner of the second aspect of the present invention, the update module is specifically configured to: when the return code of the hard load interface is a preset state code, calling a preset hardware inquiry interface according to the virtual network address and the unoccupied virtual network port to obtain a response result of the hardware inquiry interface; when the response result of the hardware query interface is a preset response value, determining that the target virtual machine and the at least one service cluster are successfully created, calling a preset data reading interface according to the virtual network address and the unoccupied virtual network port to obtain load association mapping information, and caching the load association mapping information; and distributing a domain name to the virtual network address through a preset domain name management system, acquiring a user identifier, and updating the load association mapping information and the domain name to a preset asset management system based on the user identifier, wherein the domain name has a one-to-one correspondence with the virtual network address.
Optionally, in a sixth implementation manner of the second aspect of the present invention, the load balancing configuration apparatus further includes: the reading module is used for acquiring a user identifier, and reading load balancing configuration link information from a preset operation log according to the user identifier and preset query time length, wherein the load balancing configuration link information comprises parameter anomaly description information, user request anomaly information, resource occupation prompt information, soft load binding failure information and service creation failure information; and the generating module is used for generating load balancing link report information based on the load balancing configuration link information.
A third aspect of the present invention provides a load balancing configuration apparatus, comprising: a memory and at least one processor, the memory having instructions stored therein; the at least one processor invokes the instructions in the memory to cause the load balancing configuration apparatus to perform the load balancing configuration method described above.
A fourth aspect of the present invention provides a computer readable storage medium having instructions stored therein which, when run on a computer, cause the computer to perform the load balancing configuration method described above.
In the technical scheme provided by the invention, unoccupied virtual network ports are determined through an asset management interface; screening at least one soft load cluster from the load balancing configuration information according to the unoccupied virtual network port and the target soft load environment information; invoking a hard load interface to bind virtual internetworking protocol information and at least one soft load cluster according to the unoccupied virtual network port; and updating the load association mapping information and the assigned domain name. The mixed load balancing centralized management reduces the probability of command misoperation, standardizes the operation and maintenance operation flow, improves the operation and maintenance efficiency and reduces the operation and maintenance cost.
Drawings
FIG. 1 is a schematic diagram of an embodiment of a load balancing configuration method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of another embodiment of a load balancing configuration method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an embodiment of a load balancing configuration apparatus according to an embodiment of the present invention;
fig. 4 is a schematic diagram of another embodiment of a load balancing configuration apparatus according to an embodiment of the present invention;
fig. 5 is a schematic diagram of an embodiment of a load balancing configuration apparatus according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a load balancing configuration method, a device, equipment and a storage medium, which are used for improving operation and maintenance efficiency and reducing operation and maintenance cost.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims and in the above drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments described herein may be implemented in other sequences than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or apparatus.
For easy understanding, the following describes a specific flow of an embodiment of the present invention, referring to fig. 1, and one embodiment of a load balancing configuration method in an embodiment of the present invention includes:
101. and receiving a load balancing configuration request, and acquiring virtual Internet protocol information and target soft load environment information from the load balancing configuration request.
The load balancing configuration request may include virtual internet protocol information and target soft load environment information, and may further include a user identifier, where the user identifier is used to indicate that the user identity is uniquely identified according to a preset character. Specifically, a server receives a load balancing configuration request sent by a terminal; the server sequentially performs uniform resource locator decoding (e.g. base64 and the like) and parameter analysis processing on the load balancing configuration request to obtain a plurality of service parameters, namely, the load balancing configuration request is a request which is decoded and processed by the uniform resource locator, and the server improves the safety and stability of the load balancing configuration request through uniform resource locator coding; the server checks the corresponding parameter name and the corresponding parameter value of each service parameter to obtain a checking result; when the verification result is that the verification is passed, the server extracts virtual internet protocol information and target soft load environment information from a plurality of service parameters, wherein the virtual internet protocol information comprises a virtual network address and can also comprise a virtual network port, and the virtual network port is used for being configured on the hard load equipment as a service entrance and switching different hosts. When the virtual network port is null, the server queries preset port configuration information according to the virtual network address to obtain the virtual network port (the number can be 1 or a plurality of virtual network ports), or the server sets the virtual network port corresponding to the virtual network address to be 80 (i.e. a default value). The target soft-load environment information includes at least one soft-load cluster. There is a one-to-many correspondence between virtual network addresses and virtual network ports, for example, the virtual network address is 192.168.0.1, and the virtual network ports may include 80 and 8080.
It can be understood that the execution body of the present invention may be a load balancing configuration device, and may also be a terminal or a server, which is not limited herein. The embodiment of the invention is described by taking a server as an execution main body as an example.
102. And calling a preset asset management interface according to the virtual internet protocol information to obtain a return value of the asset management interface, and judging whether the virtual internet protocol information is occupied or not according to the return value of the asset management interface, wherein the return value of the asset management interface is used for indicating an unoccupied virtual network port.
The preset asset management interface belongs to a preset asset management system CMDB, and the CMDB is used for uniformly managing preset information technology industry asset information, preset network addresses and preset application program metadata information. The server centrally manages asset information through the CMDB to enable operation and maintenance automation and to apply these underlying metadata in the automation process. Specifically, the server invokes a preset asset management interface to retrieve a preset data table in the CMDB according to the virtual internet protocol information to obtain a return value of the asset management interface, where the return value of the asset management interface is used to indicate an unoccupied virtual network port. For example, the return value of the asset management interface is 220, the server determines that the virtual network port 220 is unoccupied. The preset data table is used for recording the virtual internet protocol information which is already associated and bound.
103. And if the virtual Internet protocol information is unoccupied, carrying out data retrieval on preset load balancing configuration information according to the unoccupied virtual network port and the target soft load environment information to obtain at least one soft load cluster.
The at least one soft load cluster is used for conducting business processing on preset medical scenes (such as an online inquiry business or a medicine distribution business). The target soft load environment information may include a subnet mask corresponding to the unoccupied virtual network port, or may include a network segment address (i.e., a network segment) corresponding to the unoccupied virtual network port, where the number of subnet masks and the number of network segment addresses may be 1 or more, and the method is not limited herein specifically. The target soft load environment information may also include information such as a site name and a network identifier, which is not limited herein. Specifically, if the virtual internet protocol information is unoccupied, the server extracts at least one network segment address from the target soft load environment information according to the unoccupied virtual network port; the server queries preset load balancing configuration information based on at least one network segment address to obtain at least one soft load cluster, wherein each network segment address has a one-to-one correspondence with each soft load cluster, and the preset load balancing configuration information comprises information such as a load balancing type (for example, the load balancing type is lb_type: ngnix), an actual network address (for example, the actual network address is ip: 10.129.138.145), configured network segment addresses and the like. Different soft-load clusters can be distinguished by soft-load environments, e.g. test environments, online environments, external environments or internal environments, etc. Different types of soft-load clusters correspond to different network segment addresses, e.g., the virtual network address 192.168.0.1 and the virtual network address 192.168.0.2 correspond to each other with a network segment address of 192.168.1.0, i.e., all network addresses between 192.168.0.1 and 192.168.0.255 belong to the same network segment.
104. And calling a preset hard load interface, and binding the virtual Internet interconnection protocol information and at least one soft load cluster according to the unoccupied virtual network port to obtain a return code of the hard load interface.
It will be appreciated that in this embodiment, the server sets hardware load balancing (i.e., hard load) through a preset hard load interface. Hardware load balancing is to install load balancing devices (i.e., physical devices) between the server and the external network, such as an application delivery network F5, a virtualized device citrix, and an application switch netscaler. Specifically, the server extracts a virtual network address from the virtual internet protocol information, and invokes a preset hard load interface to respectively create a target virtual machine and at least one service cluster according to the virtual network address and the unoccupied virtual network port; the server obtains the actual network address corresponding to each soft load cluster, and maps the actual network address corresponding to each soft load cluster with the service cluster corresponding to each soft load cluster according to the unoccupied virtual network port; and binding the target virtual machine with at least one service cluster by the server to obtain a return code of the hard load interface. Wherein the return code of the hard load interface is used to indicate whether the hardware load balancing is successful.
105. When the return code of the hard load interface is a preset status code, load association mapping information is obtained, a domain name is allocated to the virtual internet protocol information through a preset domain name management system, and the load association mapping information and the domain name are updated to a preset asset management system.
The load association mapping information is used for indicating the association mapping relation between the virtual internet interconnection protocol information and at least one soft load cluster. The preset status code may be 200, or may be 1, or may be another character string or a numerical value, which is not limited herein. Further, the server judges whether the return code of the hard load interface is a preset status code (for example, 200), if the return code of the hard load interface is not the preset status code, the server determines that the soft load cluster information is bound and fails, the server generates soft load binding failure information, the server records the soft load binding failure information into a preset operation log, and the soft load binding failure information is sent to the terminal, so that the terminal displays the soft load binding failure information; if the return code of the hard load interface is a preset status code, the server determines that the soft load cluster information is successfully bound, the server calls a preset hardware query interface to obtain a response result of the hardware query interface, when the response result of the hardware query interface is successful in creation, the server distributes a domain name to a virtual network address in the virtual Internet protocol information through a preset domain name management system, the server acquires load association mapping information, and updates the load association mapping information and the domain name to a preset asset management system.
Further, the server stores the load-associated mapping information in a blockchain database, and is not limited herein.
In the embodiment of the invention, unoccupied virtual network ports are determined through an asset management interface; screening at least one soft load cluster from the load balancing configuration information according to the unoccupied virtual network port and the target soft load environment information; invoking a hard load interface to bind virtual internetworking protocol information and at least one soft load cluster according to the unoccupied virtual network port; and updating the load association mapping information and the assigned domain name. The operation and maintenance efficiency is improved, and the operation and maintenance cost is reduced. The scheme can be applied to the intelligent medical field, so that the construction of the intelligent city is promoted.
Referring to fig. 2, another embodiment of a load balancing configuration method in an embodiment of the present invention includes:
201. and receiving a load balancing configuration request, and carrying out parameter analysis on the load balancing configuration request to obtain a plurality of service parameters, wherein each service parameter comprises a parameter name and a parameter value corresponding to the parameter name.
For example, the parameter names and parameter values of the virtual internet protocol information are VIP and 192.168.0.1:80, respectively. Specifically, a server receives a load balancing configuration request, and the server sends the load balancing configuration request to a preset queue; the server analyzes the load balancing configuration request according to the writing sequence through a preset queue to obtain a uniform resource locator url, a parameter name of each service parameter and a parameter value corresponding to the parameter name of each service parameter. The number of parameter values corresponding to the parameter names may be 1 or a plurality of parameter values, which is not limited herein. Further, the server acquires a preset separator, and performs data segmentation processing on the parameter values corresponding to the parameter names according to the preset separator. For example, the parameter values corresponding to the virtual internet protocol information are "192.168.0.1:80,192.168.0.1:8080", the preset separator is comma ",", and the server performs data segmentation processing on the parameter values corresponding to the virtual internet protocol information according to the comma "," to obtain 192.168.0.1:80 and 192.168.0.1:8080.
202. And acquiring a parameter verification rule, and respectively carrying out parameter verification on a plurality of service parameters according to the parameter verification rule.
The parameter verification rules are used for indicating that each parameter name and the parameter value corresponding to each parameter name are respectively verified according to preset business parameter verification rules, and the verification rules comprise verification rules such as completeness verification, validity verification and the like. For example, the virtual internet protocol information and the target soft load environment information are necessary parameters, and when the server verifies that a plurality of service parameters lack internet protocol information or target soft load environment information based on a parameter verification rule, the server determines that the parameters do not have completeness; when the server verifies that the parameter values corresponding to the internet protocol information in the service parameters do not accord with the preset network address rule based on the parameter verification rule, the server determines that the parameters do not have legality.
Specifically, the server acquires a parameter verification rule from a preset database, and performs semantic analysis on the parameter verification rule; the server performs parameter name and parameter value verification on the plurality of service parameters according to the parameter verification rule after semantic analysis to obtain a verification result; the server judges whether the verification result is a preset value, and if the verification result is the preset value, the server determines that all service parameters pass verification; if the checking result is not the preset value, the server checks any service parameter and fails.
203. When any one service parameter check fails, extracting user identification from a plurality of service parameters, generating parameter anomaly description information for the service parameters which fail the check, transmitting the parameter anomaly description information to a terminal based on the user identification, and recording the parameter anomaly description information to a preset operation log based on the user identification.
Further, the terminal displays the parameter anomaly description information. It should be noted that, the parameter anomaly description information includes information such as parameter name, parameter value, reason for failure in verification, verification time, etc., and the parameter anomaly description information is encapsulated in a preset data format, which may be a data serialization format YAML or other data formats, and is not limited herein specifically.
204. And when all service parameters pass the verification, extracting virtual Internet protocol information and target soft load environment information from a plurality of service parameters, and carrying out cache processing on the virtual Internet protocol information and the target soft load environment information.
Specifically, when all service parameters pass verification, the server reads virtual internet protocol information and target soft load environment information from a plurality of service parameters, and stores the virtual internet protocol information and the target soft load environment information into a preset memory database. The preset memory database may be a remote service dictionary redis or a map, or may be other databases, which is not limited herein.
It can be understood that the server can also determine user permission data according to the user identifier, and judge whether the user has permission of load balancing configuration based on the user permission data; if the user does not have the authority of the load balancing configuration, combining the user identification, the user authority data and the load balancing configuration request into user request abnormal information, and sending the user request abnormal information to the terminal, so that the terminal displays the user request abnormal information, and the server records the user request abnormal information into a preset operation log.
205. And calling a preset asset management interface according to the virtual internet protocol information to obtain a return value of the asset management interface, and judging whether the virtual internet protocol information is occupied or not according to the return value of the asset management interface, wherein the return value of the asset management interface is used for indicating an unoccupied virtual network port.
Wherein the virtual internet protocol information comprises a virtual network address and at least one virtual network port. Alternatively, first, the server sets virtual internet protocol information as an input parameter (i.e., sets a virtual network address and at least one virtual network port as input parameters), and the server invokes a preset asset management interface based on the input parameter, where the asset management interface belongs to a preset asset management system, and the asset management system is configured to uniformly manage preset information industry asset information, preset network address, and preset application metadata information. For example, the server extracts the virtual network address VIP from the virtual internet protocol information vip_info as 10.141.153.126, and at least one virtual network port vport includes 220, 221, and 223, and the server sets 10.141.153.126, 220, 221, and 223 as input parameters corresponding to the preset asset management interface, respectively. Secondly, the server searches a preset data table through the asset management interface according to the input parameters to obtain a return value of the asset management interface, and the server judges whether the return value of the asset management interface is a null value or not, wherein the return value of the asset management interface is used for indicating an unoccupied virtual network port. Specifically, the server queries a preset data table according to the virtual network address through the asset management interface to obtain a query result, when the query result is a null value, the server sets at least one virtual network port as a return value of the asset management interface, and the server determines that the return value of the asset management interface is not the null value; and when the query result is not null, traversing, matching and filtering the query result by the server according to at least one virtual network port address to obtain a return value of the asset management interface. Further, the server respectively combines the virtual network addresses with at least one virtual network port packet to obtain at least one virtual network port address; the server reads a preset data table according to at least one virtual network port address through the asset management interface to obtain a reading result; and the server filters the read result according to the matching of the at least one virtual network port address to obtain a return value of the asset management interface. Then, if the return value of the asset management interface is a null value, the server determines that the virtual internet protocol information is occupied, the server generates and records the resource occupied prompt information, and sends the resource occupied prompt information to the terminal, so that the terminal displays the resource occupied prompt information, and the server stores the resource occupied prompt information into a preset operation log according to the user identification. Finally, if the returned value of the asset management interface is not null, the server determines that the virtual Internet protocol information is unoccupied. When the virtual internet protocol information is detected to be unoccupied, the server performs load distribution on the virtual internet protocol information.
206. And if the virtual Internet protocol information is unoccupied, carrying out data retrieval on preset load balancing configuration information according to the unoccupied virtual network port and the target soft load environment information to obtain at least one soft load cluster.
It can be understood that each soft load cluster has multiple load balancing types, for example, a server software apache cluster, a Linux virtual server LVS, a reverse proxy nginx, and the like, and all the load balancing types are recorded in preset load balancing configuration information, and the preset load balancing configuration information further includes each soft load cluster and a preset network segment address. Optionally, if the virtual internet protocol information is unoccupied, the server extracts a virtual network address from the virtual internet protocol information, and extracts at least one subnet mask from the target soft load environment information according to the unoccupied virtual network port; the server performs an and operation with the virtual network address based on the at least one subnet mask, respectively, to obtain at least one network segment address, e.g., the server converts the virtual network address 192.168.0.1 to binary, i.e., 11000000.10101000.00000000.00000001, and converts the subnet mask 255.255.255.0 to binary, i.e., 11111111.11111111.11111111.00000000; the server performs an and operation on both to obtain 11000000.10101000.00000000.00000000, that is, a network address of 192.168.0.0. For the same virtual network address, different subnet masks are used, corresponding to different network segment addresses. The server generates a target query statement according to the structured query language grammar rules and the at least one network segment address. The server executes the target query statement, reads the load balancing type from the preset load balancing configuration information, and determines at least one soft load cluster according to the load balancing type. It should be noted that, the software load balancing (i.e. soft load) is used to instruct to install, deploy and configure load balancing software on the server, so as to achieve the purpose of balancing the load.
207. And calling a preset hard load interface, and binding the virtual Internet interconnection protocol information and at least one soft load cluster according to the unoccupied virtual network port to obtain a return code of the hard load interface.
The preset hard load interface may be a hard load interface provided by a netscaler. Optionally, the server extracts a virtual network address from the virtual internet protocol information, and obtains an actual network address corresponding to each soft load cluster, where the virtual network address and the actual network address corresponding to each soft load cluster are in a one-to-many relationship. For example, the virtual network address vip is 192.168.0.1, and two real network addresses real-ip corresponding to a soft-load cluster include 192.168.1.3 and 192.168.1.4. The server calls a preset hard load interface, creates a target virtual machine according to a virtual network address, creates at least one service cluster according to an unoccupied virtual network port, wherein each service cluster corresponds to each soft load cluster one by one, creates a target virtual machine vserver according to a virtual network address vip through a netscaler, and creates at least one service cluster, such as servicegroup1 and servicegroup2, according to the unoccupied virtual network port. The server binds the actual network address corresponding to each soft load cluster with the service cluster corresponding to each soft load cluster, and performs port mapping on the target virtual machine and at least one service cluster according to the unoccupied virtual network port to obtain the return code of the hard load interface.
It can be appreciated that the server binds the real network address real-ip corresponding to each soft load cluster (for example, the nginx cluster) to the corresponding service cluster servicegroup, and associates and maps the vserver and servicegroup. For example, the virtual network address vip is 10.129.0.1, the unoccupied virtual network ports include 80 and 8080, the two real network addresses real-ip corresponding to one soft-load cluster include 192.168.1.3 and 192.168.1.4, the server maps port 80 of 10.129.0.1 to real-ip192.168.2.3 in the a-cluster and port 8080 of 10.129.0.1 to real-ip192.168.4.3 in the B-cluster. The actual traffic access is to access the virtual network 10.129.0.1, which is forwarded to any one real-ip via port polling or other load balancing policy.
208. When the return code of the hard load interface is a preset status code, load association mapping information is obtained, a domain name is allocated to the virtual internet protocol information through a preset domain name management system, and the load association mapping information and the domain name are updated to a preset asset management system.
It will be appreciated that the hard load interface and the hardware query interface are provided by a netscaler that is used to manage all vserver, service, servicegroup, acl etc. information. The server acquires whether the target virtual machine and at least one service cluster are successfully created or not through the hardware query interface. Optionally, when the return code of the hard load interface is a preset status code, the server calls a preset hardware inquiry interface according to the virtual network address and the unoccupied virtual network port to obtain a response result of the hardware inquiry interface; when the response result of the hardware query interface is a preset response value, the server determines that the target virtual machine and at least one service cluster are successfully created, invokes a preset data reading interface according to the virtual network address and the unoccupied virtual network port to obtain load association mapping information, and caches the load association mapping information; further, when the response result of the hardware query interface is a preset response value, the server generates service creation failure information, records the service creation failure information into a preset operation log, and sends the service creation failure information to the terminal. The server distributes domain names to the virtual network addresses through a preset domain name management system, obtains user identifiers, and updates the load association mapping information and the domain names to the preset asset management system based on the user identifiers, wherein the domain names and the virtual network addresses have a one-to-one correspondence. It should be noted that, the unbinding of the virtual network address is also realized by calling the netscaler interface. For example, when the virtual network address vip is offline, the server clears the vip domain name record and the load association mapping information through the netscaler interface.
Optionally, the server acquires a user identifier, and reads load balancing configuration link information from a preset operation log according to the user identifier and a preset query time length, wherein the load balancing configuration link information comprises parameter anomaly description information, user request anomaly information, resource occupation prompt information, soft load binding failure information and service creation failure information; the server generates load balancing link report information based on the load balancing configuration link information. The load balancing link report information intuitively displays the abnormal condition of load balancing configuration.
In the embodiment of the invention, unoccupied virtual network ports are filtered through an asset management interface; screening at least one soft load cluster from the load balancing configuration information according to the unoccupied virtual network port and the target soft load environment information; invoking a hard load interface to bind virtual internetworking protocol information and at least one soft load cluster according to the unoccupied virtual network port; and updating the load association mapping information and the assigned domain name. The mixed load balancing centralized management reduces the probability of command misoperation, standardizes the operation and maintenance operation flow, improves the operation and maintenance efficiency and reduces the operation and maintenance cost. The scheme can be applied to the intelligent medical field, so that the construction of the intelligent city is promoted.
The load balancing configuration method in the embodiment of the present invention is described above, and the load balancing configuration device in the embodiment of the present invention is described below, referring to fig. 3, where an embodiment of the load balancing configuration device in the embodiment of the present invention includes:
an obtaining module 301, configured to receive a load balancing configuration request, and obtain virtual internet protocol information and target soft load environment information from the load balancing configuration request; a judging module 302, configured to call a preset asset management interface according to the virtual internet protocol information, obtain a return value of the asset management interface, and judge whether the virtual internet protocol information is occupied according to the return value of the asset management interface, where the return value of the asset management interface is used to indicate an unoccupied virtual network port; a retrieving module 303, configured to perform data retrieval on preset load balancing configuration information according to the unoccupied virtual network port and the target soft load environment information if the virtual internet protocol information is unoccupied, so as to obtain at least one soft load cluster; a binding module 304, configured to invoke a preset hard load interface, and bind the virtual internet protocol information and at least one soft load cluster according to the unoccupied virtual network port, to obtain a return code of the hard load interface; and the updating module 305 is configured to obtain the load association mapping information when the return code of the hard load interface is a preset status code, allocate a domain name to the virtual internet protocol information through a preset domain name management system, and update the load association mapping information and the domain name to the preset asset management system.
Further, the load-associated mapping information is stored in a blockchain database, and is not limited herein.
In the embodiment of the invention, unoccupied virtual network ports are filtered through an asset management interface; screening at least one soft load cluster from the load balancing configuration information according to the unoccupied virtual network port and the target soft load environment information; invoking a hard load interface to bind virtual internetworking protocol information and at least one soft load cluster according to the unoccupied virtual network port; and updating the load association mapping information and the assigned domain name. The operation and maintenance efficiency is improved, and the operation and maintenance cost is reduced.
Referring to fig. 4, another embodiment of a load balancing configuration apparatus according to an embodiment of the present invention includes:
an obtaining module 301, configured to receive a load balancing configuration request, and obtain virtual internet protocol information and target soft load environment information from the load balancing configuration request; a judging module 302, configured to call a preset asset management interface according to the virtual internet protocol information, obtain a return value of the asset management interface, and judge whether the virtual internet protocol information is occupied according to the return value of the asset management interface, where the return value of the asset management interface is used to indicate an unoccupied virtual network port; a retrieving module 303, configured to perform data retrieval on preset load balancing configuration information according to the unoccupied virtual network port and the target soft load environment information if the virtual internet protocol information is unoccupied, so as to obtain at least one soft load cluster; a binding module 304, configured to invoke a preset hard load interface, and bind the virtual internet protocol information and at least one soft load cluster according to the unoccupied virtual network port, to obtain a return code of the hard load interface; and the updating module 305 is configured to obtain the load association mapping information when the return code of the hard load interface is a preset status code, allocate a domain name to the virtual internet protocol information through a preset domain name management system, and update the load association mapping information and the domain name to the preset asset management system.
Optionally, the obtaining module 301 may be further specifically configured to: receiving a load balancing configuration request, and carrying out parameter analysis on the load balancing configuration request to obtain a plurality of service parameters, wherein each service parameter comprises a parameter name and a parameter value corresponding to the parameter name; acquiring a parameter verification rule, and respectively carrying out parameter verification on a plurality of service parameters according to the parameter verification rule; when any one service parameter check fails, extracting user identification from a plurality of service parameters, generating parameter anomaly description information for the service parameter which fails to pass the check, transmitting the parameter anomaly description information to a terminal based on the user identification, and recording the parameter anomaly description information to a preset operation log based on the user identification; and when all service parameters pass the verification, extracting virtual Internet protocol information and target soft load environment information from a plurality of service parameters, and carrying out cache processing on the virtual Internet protocol information and the target soft load environment information.
Optionally, the determining module 302 may be further specifically configured to: setting virtual Internet protocol information as input parameters, and calling a preset asset management interface based on the input parameters, wherein the asset management interface belongs to a preset asset management system, and the asset management system is used for uniformly managing preset information industry asset information, preset network addresses and preset application program metadata information; traversing and inquiring a preset data table through the asset management interface according to input parameters to obtain a return value of the asset management interface, and judging whether the return value of the asset management interface is a null value or not, wherein the return value of the asset management interface is used for indicating an unoccupied virtual network port; if the return value of the asset management interface is a null value, determining that the virtual Internet protocol information is occupied, generating and recording resource occupied prompt information, and sending the resource occupied prompt information to the terminal; if the return value of the asset management interface is not null, determining that the virtual Internet interconnection protocol information is unoccupied.
Optionally, the retrieving module 303 may be further specifically configured to: if the virtual internet protocol information is unoccupied, extracting a virtual network address from the virtual internet protocol information, and extracting at least one subnet mask from the target soft load environment information according to the unoccupied virtual network port; performing AND operation on the virtual network address based on at least one subnet mask to obtain at least one network segment address; generating a target query statement according to the structured query language grammar rules and at least one network segment address; and executing the target query statement, reading the load balancing type from preset load balancing configuration information, and determining at least one soft load cluster according to the load balancing type.
Optionally, the binding module 304 may be further specifically configured to: extracting virtual network addresses from the virtual Internet protocol information, and acquiring actual network addresses corresponding to all the soft load clusters; calling a preset hard load interface, creating a target virtual machine according to a virtual network address, and creating at least one service cluster according to an unoccupied virtual network port, wherein each service cluster corresponds to each soft load cluster one by one; binding the actual network address corresponding to each soft load cluster with the service cluster corresponding to each soft load cluster, and carrying out port mapping on the target virtual machine and at least one service cluster according to the unoccupied virtual network port to obtain the return code of the hard load interface.
Optionally, the updating module 305 may be further specifically configured to: when the return code of the hard load interface is a preset state code, calling a preset hardware inquiry interface according to the virtual network address and the unoccupied virtual network port to obtain a response result of the hardware inquiry interface; when the response result of the hardware query interface is a preset response value, determining that the target virtual machine and at least one service cluster are successfully created, calling a preset data reading interface according to the virtual network address and the unoccupied virtual network port to obtain load association mapping information, and caching the load association mapping information; and distributing the domain name to the virtual network address through a preset domain name management system, acquiring a user identifier, and updating the load association mapping information and the domain name to the preset asset management system based on the user identifier, wherein the domain name and the virtual network address have a one-to-one correspondence.
Optionally, the load balancing configuration apparatus further includes: the reading module 306 is configured to obtain a user identifier, and read load balancing configuration link information from a preset operation log according to the user identifier and a preset query time length, where the load balancing configuration link information includes parameter anomaly description information, user request anomaly information, resource occupation prompt information, soft load binding failure information and service creation failure information; a generating module 307, configured to generate load balancing link report information based on the load balancing configuration link information.
In the embodiment of the invention, unoccupied virtual network ports are filtered through an asset management interface; screening at least one soft load cluster from the load balancing configuration information according to the unoccupied virtual network port and the target soft load environment information; invoking a hard load interface to bind virtual internetworking protocol information and at least one soft load cluster according to the unoccupied virtual network port; and updating the load association mapping information and the assigned domain name. The mixed load balancing centralized management reduces the probability of command misoperation, standardizes the operation and maintenance operation flow, improves the operation and maintenance efficiency and reduces the operation and maintenance cost.
The load balancing configuration apparatus in the embodiment of the present invention is described in detail from the modularization point of view in fig. 3 and fig. 4, and the load balancing configuration device in the embodiment of the present invention is described in detail from the point of view of hardware processing.
Fig. 5 is a schematic structural diagram of a load balancing configuration apparatus according to an embodiment of the present invention, where the load balancing configuration apparatus 500 may have relatively large differences according to different configurations or performances, and may include one or more processors (central processing units, CPU) 510 (e.g., one or more processors) and a memory 520, and one or more storage media 530 (e.g., one or more mass storage devices) storing application programs 533 or data 532. Wherein memory 520 and storage medium 530 may be transitory or persistent storage. The program stored on the storage medium 530 may include one or more modules (not shown), each of which may include a series of instruction operations in the load balancing configuration apparatus 500. Still further, the processor 510 may be arranged to communicate with a storage medium 530 to execute a series of instruction operations in the storage medium 530 on the load balancing configuration apparatus 500. The load balancing configuration apparatus 500 may also include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input/output interfaces 560, and/or one or more operating systems 531, such as Windows Serve, mac OS X, unix, linux, freeBSD, and the like. It will be appreciated by those skilled in the art that the load balancing configuration apparatus structure shown in fig. 5 does not constitute a limitation of the load balancing configuration apparatus, and may include more or fewer components than shown, or may combine certain components, or may be a different arrangement of components.
The present invention also provides a computer readable storage medium, which may be a non-volatile computer readable storage medium, and may also be a volatile computer readable storage medium, where instructions are stored in the computer readable storage medium, when the instructions are executed on a computer, cause the computer to perform the steps of the load balancing configuration method.
The invention also provides load balancing configuration equipment, which comprises a memory and a processor, wherein the memory stores instructions which, when executed by the processor, cause the processor to execute the steps of the load balancing configuration method in the above embodiments.
Further, the computer-readable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created from the use of blockchain nodes, and the like.
The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm and the like. The Blockchain (Blockchain), which is essentially a decentralised database, is a string of data blocks that are generated by cryptographic means in association, each data block containing a batch of information of network transactions for verifying the validity of the information (anti-counterfeiting) and generating the next block. The blockchain may include a blockchain underlying platform, a platform product services layer, an application services layer, and the like.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein. The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. The load balancing configuration method is characterized by comprising the following steps of:
receiving a load balancing configuration request, and acquiring virtual Internet interconnection protocol information and target soft load environment information from the load balancing configuration request;
calling a preset asset management interface according to the virtual internet protocol information to obtain a return value of the asset management interface, and judging whether the virtual internet protocol information is occupied or not according to the return value of the asset management interface, wherein the return value of the asset management interface is used for indicating an unoccupied virtual network port;
if the virtual internet protocol information is unoccupied, carrying out data retrieval on preset load balancing configuration information according to the unoccupied virtual network port and the target soft load environment information to obtain at least one soft load cluster;
Calling a preset hard load interface, and binding the virtual Internet interconnection protocol information and the at least one soft load cluster according to the unoccupied virtual network port to obtain a return code of the hard load interface;
when the return code of the hard load interface is a preset state code, acquiring load association mapping information, distributing a domain name to the virtual internet protocol information through a preset domain name management system, and updating the load association mapping information and the domain name into a preset asset management system;
the receiving a load balancing configuration request, obtaining virtual internet protocol information and target soft load environment information from the load balancing configuration request, including:
receiving a load balancing configuration request, and carrying out parameter analysis on the load balancing configuration request to obtain a plurality of service parameters, wherein each service parameter comprises a parameter name and a parameter value corresponding to the parameter name;
acquiring a parameter verification rule, and respectively carrying out parameter verification on the plurality of service parameters according to the parameter verification rule;
when any one service parameter fails to pass the verification, extracting a user identifier from the plurality of service parameters, generating parameter anomaly description information for the service parameters which fail to pass the verification, transmitting the parameter anomaly description information to a terminal based on the user identifier, and recording the parameter anomaly description information into a preset operation log based on the user identifier;
And when all service parameters pass verification, extracting virtual Internet protocol information and target soft load environment information from the service parameters, and caching the virtual Internet protocol information and the target soft load environment information.
2. The load balancing configuration method according to claim 1, wherein the calling a preset asset management interface according to the virtual internet protocol information to obtain a return value of the asset management interface, and determining whether the virtual internet protocol information is occupied according to the return value of the asset management interface, where the return value of the asset management interface is used to indicate an unoccupied virtual network port, includes:
setting the virtual Internet protocol information as an input parameter, and calling a preset asset management interface based on the input parameter, wherein the asset management interface belongs to a preset asset management system, and the asset management system is used for uniformly managing preset information industry asset information, preset network addresses and preset application metadata information;
traversing and querying a preset data table according to the input parameters through the asset management interface to obtain a return value of the asset management interface, judging whether the return value of the asset management interface is a null value or not, wherein the return value of the asset management interface is used for indicating an unoccupied virtual network port;
If the return value of the asset management interface is a null value, determining that the virtual Internet protocol information is occupied, generating and recording resource occupied prompt information, and sending the resource occupied prompt information to a terminal;
and if the returned value of the asset management interface is not null, determining that the virtual Internet interconnection protocol information is unoccupied.
3. The load balancing configuration method according to claim 1, wherein if the virtual internet protocol information is unoccupied, performing data retrieval on preset load balancing configuration information according to the unoccupied virtual network port and the target soft load environment information to obtain at least one soft load cluster, including:
if the virtual internet protocol information is unoccupied, extracting a virtual network address from the virtual internet protocol information, and extracting at least one subnet mask from the target soft load environment information according to the unoccupied virtual network port;
performing AND operation on the virtual network address based on the at least one subnet mask to obtain at least one network segment address;
generating a target query statement according to the structured query language grammar rules and the at least one network segment address;
And executing the target query statement, reading a load balancing type from preset load balancing configuration information, and determining at least one soft load cluster according to the load balancing type.
4. The load balancing configuration method according to claim 1, wherein the calling a preset hard load interface binds the virtual internet protocol information and the at least one soft load cluster according to the unoccupied virtual network port to obtain a return code of the hard load interface, and the method comprises:
extracting a virtual network address from the virtual internet protocol information, and acquiring an actual network address corresponding to each soft load cluster;
calling a preset hard load interface, creating a target virtual machine according to the virtual network address, and creating at least one service cluster according to the unoccupied virtual network port, wherein each service cluster corresponds to each soft load cluster one by one;
binding the actual network address corresponding to each soft load cluster with the service cluster corresponding to each soft load cluster, and carrying out port mapping on the target virtual machine and the at least one service cluster according to the unoccupied virtual network port to obtain a return code of a hard load interface.
5. The load balancing configuration method according to claim 4, wherein when the return code of the hard load interface is a preset status code, obtaining load association mapping information, allocating a domain name to the virtual internet protocol information through a preset domain name management system, and updating the load association mapping information and the domain name to a preset asset management system, comprises:
when the return code of the hard load interface is a preset state code, calling a preset hardware inquiry interface according to the virtual network address and the unoccupied virtual network port to obtain a response result of the hardware inquiry interface;
when the response result of the hardware query interface is a preset response value, determining that the target virtual machine and the at least one service cluster are successfully created, calling a preset data reading interface according to the virtual network address and the unoccupied virtual network port to obtain load association mapping information, and caching the load association mapping information;
and distributing a domain name to the virtual network address through a preset domain name management system, acquiring a user identifier, and updating the load association mapping information and the domain name to a preset asset management system based on the user identifier, wherein the domain name has a one-to-one correspondence with the virtual network address.
6. The load balancing configuration method according to any one of claims 1 to 5, wherein, when the return code of the hard load interface is a preset status code, load association mapping information is obtained, a domain name is allocated to the virtual internet protocol information through a preset domain name management system, and after the load association mapping information and the domain name are updated to a preset asset management system, the load balancing configuration method further comprises:
acquiring a user identifier, and reading load balancing configuration link information from a preset operation log according to the user identifier and preset query time length, wherein the load balancing configuration link information comprises parameter anomaly description information, user request anomaly information, resource occupation prompt information, soft load binding failure information and service creation failure information;
and generating load balancing link report information based on the load balancing configuration link information.
7. A load balancing configuration apparatus, characterized in that the load balancing configuration apparatus comprises:
the system comprises an acquisition module, a load balancing module and a load balancing module, wherein the acquisition module is used for receiving a load balancing configuration request and acquiring virtual Internet protocol information and target soft load environment information from the load balancing configuration request;
The judging module is used for calling a preset asset management interface according to the virtual Internet protocol information to obtain a return value of the asset management interface, judging whether the virtual Internet protocol information is occupied or not according to the return value of the asset management interface, wherein the return value of the asset management interface is used for indicating an unoccupied virtual network port;
the retrieval module is used for carrying out data retrieval on preset load balancing configuration information according to the unoccupied virtual network port and the target soft load environment information if the virtual internet protocol information is unoccupied, so as to obtain at least one soft load cluster;
the binding module is used for calling a preset hard load interface, binding the virtual Internet interconnection protocol information and the at least one soft load cluster according to the unoccupied virtual network port, and obtaining a return code of the hard load interface;
the updating module is used for acquiring load association mapping information when the return code of the hard load interface is a preset status code, distributing domain names to the virtual internet protocol information through a preset domain name management system, and updating the load association mapping information and the domain names into a preset asset management system;
The acquisition module is specifically configured to:
receiving a load balancing configuration request, and carrying out parameter analysis on the load balancing configuration request to obtain a plurality of service parameters, wherein each service parameter comprises a parameter name and a parameter value corresponding to the parameter name;
acquiring a parameter verification rule, and respectively carrying out parameter verification on the plurality of service parameters according to the parameter verification rule;
when any one service parameter fails to pass the verification, extracting a user identifier from the plurality of service parameters, generating parameter anomaly description information for the service parameters which fail to pass the verification, transmitting the parameter anomaly description information to a terminal based on the user identifier, and recording the parameter anomaly description information into a preset operation log based on the user identifier;
and when all service parameters pass verification, extracting virtual Internet protocol information and target soft load environment information from the service parameters, and caching the virtual Internet protocol information and the target soft load environment information.
8. The load balancing configuration apparatus according to claim 7, wherein the judging module is specifically configured to:
setting the virtual Internet protocol information as an input parameter, and calling a preset asset management interface based on the input parameter, wherein the asset management interface belongs to a preset asset management system, and the asset management system is used for uniformly managing preset information industry asset information, preset network addresses and preset application metadata information;
Traversing and querying a preset data table according to the input parameters through the asset management interface to obtain a return value of the asset management interface, judging whether the return value of the asset management interface is a null value or not, wherein the return value of the asset management interface is used for indicating an unoccupied virtual network port;
if the return value of the asset management interface is a null value, determining that the virtual Internet protocol information is occupied, generating and recording resource occupied prompt information, and sending the resource occupied prompt information to a terminal;
and if the returned value of the asset management interface is not null, determining that the virtual Internet interconnection protocol information is unoccupied.
9. A load balancing configuration apparatus, characterized in that the load balancing configuration apparatus comprises: a memory and at least one processor, the memory having instructions stored therein;
the at least one processor invoking the instructions in the memory to cause the load balancing configuration apparatus to perform the load balancing configuration method of any of claims 1-6.
10. A computer readable storage medium having instructions stored thereon, which when executed by a processor implement the load balancing configuration method of any of claims 1-6.
CN202110433830.3A 2021-04-22 2021-04-22 Load balancing configuration method, device, equipment and storage medium Active CN113127199B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110433830.3A CN113127199B (en) 2021-04-22 2021-04-22 Load balancing configuration method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110433830.3A CN113127199B (en) 2021-04-22 2021-04-22 Load balancing configuration method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113127199A CN113127199A (en) 2021-07-16
CN113127199B true CN113127199B (en) 2023-10-20

Family

ID=76778916

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110433830.3A Active CN113127199B (en) 2021-04-22 2021-04-22 Load balancing configuration method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113127199B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113660316B (en) * 2021-07-29 2024-03-12 广州汇通国信科技有限公司 Network resource adaptive configuration method, system and medium based on container cloud platform
CN114374696A (en) * 2021-12-15 2022-04-19 深圳前海微众银行股份有限公司 Container load balancing method, device, equipment and storage medium
CN114866594B (en) * 2022-04-24 2023-08-08 普联技术有限公司 Device connection management method, device, system, server and readable storage medium
CN114900526B (en) * 2022-04-28 2024-04-16 京东科技信息技术有限公司 Load balancing method and system, computer storage medium and electronic equipment
CN115865929B (en) * 2023-02-15 2023-04-25 珠海大横琴泛旅游发展有限公司 Equipment security management method, device and equipment based on Internet of things

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107733991A (en) * 2017-09-19 2018-02-23 大唐网络有限公司 One kind provides load balancing service implementation method based on OpenStack frameworks
US20180063231A1 (en) * 2016-08-25 2018-03-01 Nhn Entertainment Corporation Method and system for processing direct server return load balancing using loopback interface in virtual network environment
CN110289983A (en) * 2019-05-17 2019-09-27 平安科技(深圳)有限公司 Load balancing application creation method, device, computer equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180063231A1 (en) * 2016-08-25 2018-03-01 Nhn Entertainment Corporation Method and system for processing direct server return load balancing using loopback interface in virtual network environment
CN107733991A (en) * 2017-09-19 2018-02-23 大唐网络有限公司 One kind provides load balancing service implementation method based on OpenStack frameworks
CN110289983A (en) * 2019-05-17 2019-09-27 平安科技(深圳)有限公司 Load balancing application creation method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN113127199A (en) 2021-07-16

Similar Documents

Publication Publication Date Title
CN113127199B (en) Load balancing configuration method, device, equipment and storage medium
CN112615849B (en) Micro-service access method, device, equipment and storage medium
CN110710168B (en) Intelligent thread management across isolated network stacks
CN109428922B (en) Subscription and publishing method and server
US10834013B2 (en) Network slice management
JP4202709B2 (en) Volume and failure management method in a network having a storage device
CN103119907B (en) It is provided for the system and method for the smart group of access control
CN109871224A (en) A kind of gray scale dissemination method, system, medium and equipment based on user identifier
US20140067914A1 (en) Computer system and packet transfer method
US20120072589A1 (en) Information Processing Apparatus and Method of Operating the Same
CN102750184A (en) Cloud resource classification and identification system and cloud resource classification and identification method
CN113992504B (en) Network transmission equipment management method based on industrial Internet identification analysis
CN115934202A (en) Data management method, system, data service gateway and storage medium
CN109286617B (en) Data processing method and related equipment
CN111600749B (en) Method and system for managing multiple servers and computer storage medium
KR20130085457A (en) Apparatus and method for tenant-aware security management in multi-tenancy system
CN112631727A (en) Method and device for monitoring pod
US10445120B2 (en) Tiered application discovery
CN1316385C (en) Storing fibre channel information on an infiniband administration data base
US20240007876A1 (en) Restoration of a network slice
TWI820961B (en) Electronic device and method for processing intelligence based on microservice and public cloud component
US10417093B2 (en) Methods for providing global spare data storage device management and devices thereof
CN117336257A (en) Method and device for communication between containers, computer storage medium and electronic equipment
CN118140211A (en) Hardware accelerator service aggregation
JP2002135250A (en) Network-managing equipment, network-managing system, network-managing method, and recording medium with program for managing network recorded thereon

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