WO2020082416A1 - 一种虚拟ip的端口配置方法及装置 - Google Patents

一种虚拟ip的端口配置方法及装置 Download PDF

Info

Publication number
WO2020082416A1
WO2020082416A1 PCT/CN2018/113735 CN2018113735W WO2020082416A1 WO 2020082416 A1 WO2020082416 A1 WO 2020082416A1 CN 2018113735 W CN2018113735 W CN 2018113735W WO 2020082416 A1 WO2020082416 A1 WO 2020082416A1
Authority
WO
WIPO (PCT)
Prior art keywords
server
configuration
configuration code
code
port
Prior art date
Application number
PCT/CN2018/113735
Other languages
English (en)
French (fr)
Inventor
孙云云
陈世发
Original Assignee
网宿科技股份有限公司
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 网宿科技股份有限公司 filed Critical 网宿科技股份有限公司
Priority to US17/042,856 priority Critical patent/US20210021468A1/en
Priority to EP18938098.3A priority patent/EP3869735A4/en
Publication of WO2020082416A1 publication Critical patent/WO2020082416A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/084Configuration by using pre-existing information, e.g. using templates or copying from other elements
    • H04L41/0843Configuration by using pre-existing information, e.g. using templates or copying from other elements based on generic templates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0866Checking the configuration
    • H04L41/0869Validating the configuration within one network element
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0883Semiautomatic configuration, e.g. proposals from system
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/085Retrieval of network configuration; Tracking network configuration history
    • H04L41/0859Retrieval of network configuration; Tracking network configuration history by keeping history of different configuration generations or by rolling back to previous configuration versions

Definitions

  • the present invention relates to the field of Internet technology, and in particular, to a virtual IP port configuration method and device.
  • the configuration parameters of the virtual IP ports of different servers in the LVS cluster need to be configured according to the server type and application service type.
  • the administrator when configuring a virtual IP port, the administrator usually manually maintains the configuration parameters of the port, and then the developer adjusts the configuration code of the virtual IP port according to the configuration parameters before deploying the configuration code to the corresponding server on. It can be seen that the port configuration process of the virtual IP in the prior art is complicated, and the developer needs to repeatedly modify the code, which is a heavy workload for the developer.
  • Embodiments of the present invention provide a virtual IP port configuration method and device, to solve the technical problem that the virtual IP port configuration process in the prior art is relatively complicated and requires a large workload for developers.
  • An embodiment of the present invention provides a virtual IP port configuration method.
  • the method includes:
  • the port configuration information includes attribute information of the server to be configured and configuration parameters to be configured; the format of the port configuration information is consistent with a preset configuration code generation template;
  • a template is generated according to the port configuration information and the configuration code to generate a configuration code; the configuration code is used to provide the server to be configured so that the server to be configured performs configuration according to the configuration code.
  • the management platform can automatically generate configuration code, without the need for developers to manually modify the code, simplifying the port configuration operation, greatly The efficiency of port configuration is improved; further, during the configuration code generation process, the configuration code can be combined with the configuration code generation template to generate the configuration code, thereby ensuring the accuracy of the generated configuration code.
  • the configuration code includes indication information used to represent the attribute information
  • the method further includes:
  • the server can timely obtain the corresponding configuration code from the management platform and configure it, thereby improving the timeliness of port configuration.
  • the method before generating the configuration code, the method further includes:
  • the attribute information includes a priority; it is determined that the priority of the historical configuration code is inconsistent with the priority of the attribute information.
  • the management platform can verify the port configuration information, which can effectively avoid the occurrence of configuration conflicts or errors in the port configuration information, thereby ensuring the accuracy of the generated configuration code. Further, the administrator can fill in the port configuration information regularly, which improves the standardization of the port configuration information, making the method provided by the embodiments of the present invention more applicable in scope and also convenient for later maintenance.
  • the method further includes:
  • a configuration notification is sent to the server to be configured, and the configuration notification is used to notify the server to be configured to obtain the configuration code.
  • the embodiment of the present invention can timely notify the server that has been on the shelf to modify the port configuration, thereby improving the timeliness of the modification of the port configuration.
  • the configuration code generation template includes a server type, a server application service type, a server application service type group, a network protocol, a port number, whether a persistent connection, a persistent connection time, and a client Granularity, scheduling method, detection method, whether to fallback, RS weight value, IP type.
  • the method further includes:
  • the server is notified to replace the current configuration code.
  • the purpose of monitoring the service quality of the server is realized, and the service quality of the server is guaranteed; further, even if a problem is found in the service quality of the server, the management platform can take corresponding measures in time to optimize the service quality of the server.
  • the operation data includes the number of requests received within a preset period and the response speed after receiving the requests;
  • determining that the server does not meet the preset service requirements includes:
  • the operation data includes a protocol corresponding to the received request, a port corresponding to the received request, and a connection status corresponding to the received request;
  • determining that the server does not meet the preset service requirements includes:
  • it also includes:
  • a modification notification is sent, and the modification notification is used to notify the modification of the current configuration code used by the server.
  • An embodiment of the present invention provides a virtual IP port configuration method, which is applied to a server.
  • the method includes:
  • the configuration code is determined according to the attribute information of the server and the indication information of each of the stored multiple configuration codes; the indication information is used to represent the attribute information of the server to which the configuration code applies;
  • the configuring according to the at least one configuration code includes:
  • the method before sending the configuration request, the method further includes:
  • the configuration notification being sent after determining that the server is a server that has been put on the shelf.
  • the method further includes:
  • the configuration modification notification used to notify the server to replace the current configuration code is after determining that the server does not meet the preset service requirements, and there is a candidate configuration code corresponding to the server Sent
  • An embodiment of the present invention provides a virtual IP port configuration device.
  • the device includes:
  • the receiving unit is configured to receive port configuration information, and the port configuration information includes attribute information of the server to be configured and configuration parameters to be configured; the format of the port configuration information is consistent with a preset configuration code generation template;
  • a processing unit configured to generate a template according to the port configuration information and the configuration code, and generate a configuration code; the configuration code is used to provide the server to be configured, so that the server to be configured performs according to the configuration code Configuration.
  • the configuration code includes indication information used to represent the attribute information
  • the processing unit After the processing unit generates the configuration code, the receiving unit is also used to:
  • the processing unit is also used to:
  • the device also includes:
  • the sending unit is configured to send the target configuration code to the server, so that the server performs configuration according to the target configuration code.
  • the processing unit before the processing unit generates the configuration code, it is also used to:
  • the attribute information includes a priority; it is determined that the priority of the historical configuration code is inconsistent with the priority of the attribute information.
  • the processing unit After the processing unit generates the configuration code, it is also used to:
  • the sending unit sends a configuration notification to the server to be configured, and the configuration notification is used to notify the server to be configured to obtain the configuration code.
  • the configuration code generation template includes a server type, a server application service type, a server application service type group, a network protocol, a port number, whether a persistent connection, a persistent connection time, and a client Granularity, scheduling method, detection method, whether to fallback, RS weight value, IP type.
  • the receiving unit is further used to:
  • the processing unit is also used to:
  • the server is notified to replace the current configuration code.
  • the operation data includes the number of requests received within a preset period and the response speed after receiving the requests;
  • the processing unit is specifically used for:
  • the operation data includes a protocol corresponding to the received request, a port corresponding to the received request, and a connection status corresponding to the received request;
  • the processing unit is specifically used for:
  • processing unit is further used to:
  • the sending unit member sends a modification notification, and the modification notification is used to notify the modification of the current configuration code used by the server.
  • An embodiment of the present invention provides a virtual IP port configuration device, which is applied to a server, and the method device:
  • a sending unit configured to send a configuration request, where the configuration request includes attribute information of the server
  • a receiving unit configured to receive at least one configuration code, the configuration code is determined according to the attribute information of the server and the respective indication information of the stored multiple configuration codes; the indication information is used to represent that the configuration code is applicable The attribute information of the server;
  • the processing unit is configured to configure according to the at least one configuration code.
  • the processing unit is specifically configured to:
  • Parse each configuration code separately to obtain the priority information corresponding to each configuration code; and determine the configuration code with the highest priority according to the priority information corresponding to each configuration code; and according to the priority The highest configuration code to configure.
  • the receiving unit before the sending unit sends a configuration request, the receiving unit is further used to:
  • the configuration notification being sent after determining that the server is a server that has been put on the shelf.
  • the receiving unit is further used to:
  • the configuration modification notification used to notify the server to replace the current configuration code is after determining that the server does not meet the preset service requirements, and there is a candidate configuration code corresponding to the server Sent
  • the processing unit is also used to:
  • An embodiment of the present application further provides an apparatus, which has a function of implementing the virtual IP port configuration method described above.
  • This function can be implemented by hardware executing corresponding software.
  • the device includes: a processor, a transceiver, and a memory; the memory is used to store computer execution instructions, and the transceiver is used to implement the device to communicate with other Entity communicates, the processor and the memory are connected through the bus, and when the device is running, the processor executes the computer execution instructions stored in the memory to cause the device to perform the virtual IP port configuration method described above .
  • An embodiment of the present invention also provides a computer storage medium that stores a software program, which when read and executed by one or more processors implements the virtual described in various possible implementation manners described above IP port configuration method.
  • Embodiments of the present invention also provide a computer program product containing instructions that, when run on a computer, cause the computer to perform the virtual IP port configuration method described in the various possible implementation manners described above.
  • FIG. 1 is a system architecture diagram applicable to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a virtual IP port configuration method according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of filling configuration parameters in an embodiment of the present invention.
  • FIG. 4 is a schematic flowchart of a virtual IP port configuration method involved in an embodiment of the present invention.
  • FIG. 5 is a schematic flowchart of a method for configuring a virtual IP port on a server side according to an embodiment of the present invention
  • FIG. 6 is a schematic flowchart of a method for configuring a virtual IP port on a server side involved in an embodiment of the present invention
  • FIG. 7 is a schematic flowchart of a method corresponding to a quality monitoring method after server configuration provided by an embodiment of the present invention.
  • FIG. 8 is a schematic flowchart of an overall quality monitoring method after server configuration involved in an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of a virtual IP port configuration device according to an embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of another virtual IP port configuration device according to an embodiment of the present invention.
  • FIG. 1 exemplarily shows a system architecture diagram to which an embodiment of the present invention is applicable.
  • the system 100 includes a management platform 101, at least one server (eg, server 1021, server 1022, server 1023, server 1024 shown in FIG. 1), and a scheduling device 103.
  • the management platform 101 may be connected to each server through a network.
  • the management platform 101 shown in FIG. 1 may be connected to the server 1021 through the network, the server 1022 through the network, or the server 1023 through the network. You can also connect to the server 1024 via the network.
  • the scheduling device can be connected to each server through a virtual IP to achieve load balancing.
  • the scheduling device 103 shown in FIG. 1 can be connected to the server 1021 through the network, the server 1022 through the network, or the server through the network 1023 connection, you can also connect to the server 1024 through the network.
  • the system shown in FIG. 1 can be applied to an LVS cluster.
  • the LVS cluster can adopt an IP load balancing technology and a content-based request distribution technology. That is, the scheduling device 103 shown in FIG. 1 may be a load scheduler in the LVS cluster.
  • FIG. 2 exemplarily shows a schematic flowchart of a method corresponding to a port configuration method of virtual IP provided by an embodiment of the present invention, including the following steps:
  • Step 201 The management platform receives the port configuration information sent by the administrator.
  • Step 202 the management platform generates a template according to the port configuration information and the configuration code, and generates the configuration code.
  • the management platform can automatically generate configuration code, without the need for developers to manually modify the code, simplifying the port configuration operation, greatly The efficiency of port configuration is improved; further, during the configuration code generation process, the configuration code can be combined with the configuration code generation template to generate the configuration code, thereby ensuring the accuracy of the generated configuration code.
  • the port configuration information may include various forms of content, for example, the port configuration information may include attribute information of the server to be configured, configuration parameters to be configured, etc., which is not specifically limited.
  • the attribute information of the server to be configured may include the type of the server to be configured, the application service type of the server to be configured, the application service type group of the server to be configured, etc., and may further include the type of the server to be configured and excluded
  • the application service type of the server to be configured and the like may further include priority, which is not specifically limited.
  • the types of servers to be configured may include the CISC architecture Servers, RISC architecture servers, VLIW architecture servers, etc .; for example, according to the shape structure, the types of servers to be configured may include tower servers, rack servers, blade servers, etc., without specific limitations.
  • the application service types of the server to be configured may include file application service, database application service, application application service, WEB application service, etc.
  • the configuration parameter to be configured may refer to the configuration parameter applied to the port configuration of the virtual IP.
  • the configuration parameters to be configured may include a network protocol, a port number, whether a persistent connection, a persistent connection time, a client granularity, a scheduling method, a detection method, whether to fallback, RS weight value, IP type, etc.
  • the format of the port configuration information may be consistent with the configuration code generation template of the management platform, that is to say, the configuration code generation template may include the type of server, the application service type of the server, the application service type group of the server, the network protocol, Port number, whether it is a persistent connection, the time of a persistent connection, the granularity of the client, the scheduling method, the detection method, whether it is fallback, RS weight value, IP type, etc. In this way, it is convenient for the management platform to generate configuration code.
  • the port configuration information may be expressed in the form of a table.
  • Table 1 it is an example of port configuration information in the form of a table.
  • Table 1 please refer to the content shown in Table 1, which will not be described in detail here.
  • Table 1 An example of port configuration information in the form of a table
  • the content to be filled in the blank cells shown in Table 1 can be filled in according to the content shown in FIG. 3.
  • FIG. 3 it is a schematic diagram of filling configuration parameters in an embodiment of the present invention.
  • the diamond-shaped selection box is optional, and the optional items are the contents that can be filled in corresponding to the exhibition; for non-diamond-shaped selection boxes, such as the port number, the administrator needs to manually enter it. select. If the content is filled in according to the content shown in FIG. 3, the situation of incorrect filling can be effectively avoided, thereby reducing the probability of configuration code generation error and reducing the adverse impact on the server. Further, the administrator can fill in the port configuration information regularly, which improves the standardization of the port configuration information, making the method provided by the embodiments of the present invention more applicable in scope and also convenient for later maintenance.
  • the embodiment of the present invention may verify the port configuration information generated by the administrator.
  • the management platform can determine whether there is a server to be configured based on the attribute information. If so, the above step 202 can be performed; otherwise, it can be Inform the administrator that the port configuration information is incorrectly filled, so that the administrator can modify the port configuration information.
  • the management platform when it determines whether there is a server to be configured, it can determine the type of the server to be configured, the application service type of the server to be configured, and the application service of the server to be configured.
  • the type group, the type of the excluded server to be configured, and the application service type of the excluded server to be configured are inconsistent. If there is a conflict, the management platform can determine that there is no server to be configured, otherwise, the management platform can determine that there is a configuration to be configured server. For example, if the type of the server to be configured is a CISC architecture server and the type of the excluded server to be configured is also a CISC architecture server, it can be determined that a contradiction has occurred.
  • the type of the server to be configured is a CISC architecture server
  • the application service type of the server to be configured is a WEB application service
  • all servers corresponding to all WEB application services are not CISC architecture servers
  • the management platform when the management platform determines whether there is a server to be configured, it can determine the type of the server to be configured, the application service type of the server to be configured, and the application service type of the server to be configured. Whether any of the group, the type of the excluded server to be configured, and the application service type of the excluded server to be configured conflict with the server set by the system, if there is a conflict, the management platform can determine that there is no server to be configured, Otherwise, the management platform may determine that there is a server to be configured.
  • the type of server to be configured is a CISC architecture server, and the server set by the system does not include a CISC architecture server, it can be determined that a contradiction has occurred.
  • the application service type of the server to be configured is WEB application service, and the server set by the system does not include the server corresponding to the WEB application service, it can be determined that a contradiction occurs.
  • the management platform can determine whether to store the historical configuration code corresponding to the server to be configured according to the attribute information. If the historical configuration code corresponding to the server to be configured is stored, the above step 202 can be performed; otherwise, it can be determined again Whether the priority of the historical configuration code is consistent with the priority of the attribute information. If they are inconsistent, the above step 202 can be performed. If they are consistent, the administrator can be notified that the port configuration information is incorrectly filled, thereby allowing the administrator to modify the port configuration information.
  • the management platform can also determine whether there is a server to be configured according to the attribute information, and then determine whether the historical configuration code corresponding to the server to be configured is stored, and then determine the historical configuration code if the historical configuration code is stored Whether the priority of is the same as the priority of attribute information is not limited. It should be noted that, after determining that the priority of the historical configuration code and the priority of the attribute information are inconsistent, the management platform can also notify the administrator of this situation so that the administrator can further confirm this and ensure that the administrator occurs The port configuration information is correct.
  • the management platform can verify the port configuration information, which can effectively avoid the occurrence of configuration conflicts or errors in the port configuration information, thereby ensuring the accuracy of the generated configuration code.
  • the management platform In step 202, the management platform generates a configuration code according to the port configuration information and the configuration code generation template in various ways. For example, as shown in Table 1, the management platform can use the "Begin” and "End IDs” shown in Table 1. To determine the port configuration information to be read, and then combine the configuration code generation template to generate the configuration code; or, the management platform can also generate the configuration code according to other methods (such as an automatic code generation tool), without limitation.
  • the configuration code generated by the management platform can be used to provide the server to be configured, so that the server to be configured can be configured according to the configuration code.
  • the management platform can automatically generate the corresponding configuration code, without the need for developers to manually write code, which greatly reduces the workload of developers.
  • Step 401 The management platform receives the port configuration information sent by the administrator.
  • step 402 the management platform determines whether there is a server to be configured, and if so, step 403 is executed; otherwise, step 407 is executed.
  • Step 403 The management platform determines whether the historical configuration code corresponding to the server to be configured is stored. If the historical configuration code corresponding to the server to be configured is stored, step 404 is executed; otherwise, step 406 is executed.
  • step 404 the management platform judges whether the priority of the historical configuration code is consistent with the priority of the attribute information, if not, step 405 is executed; otherwise, step 407 is executed.
  • step 405 the management platform notifies the administrator to confirm the port configuration information, and after the administrator confirms that it is correct, step 406 is executed.
  • Step 406 the management platform generates a template according to the port configuration information and the configuration code, and generates the configuration code.
  • Step 407 the management platform notifies the administrator that the port configuration information is incorrectly filled.
  • the management platform can ensure the accuracy and availability of the generated configuration codes, and avoid the occurrence of two or more configuration codes on the same service and the same priority to cause server abnormalities. Further, it is possible to check the filling norm of the port configuration information, so that the accuracy of the port configuration information can be improved, and thus the accuracy of generating the configuration code can be improved.
  • the generated configuration code may be provided to the server.
  • FIG. 5 exemplarily shows that the embodiment of the present invention further provides a server-side virtual IP port configuration method.
  • the corresponding flow diagram includes the following steps:
  • step 501 the server sends a configuration request to the management platform.
  • Step 502 the management platform receives the configuration request sent by the server.
  • Step 503 The management platform determines the target configuration code according to the attribute information of the server and the indication information of each of the stored multiple configuration codes.
  • Step 504 The management platform sends the target configuration code to the server.
  • Step 505 The server receives at least one configuration code sent by the management platform.
  • Step 506 The server performs configuration according to at least one configuration code.
  • the server can timely obtain the corresponding configuration code from the management platform and configure it, thereby improving the timeliness of port configuration.
  • the server may be divided into a server that has been put on the shelf and a server that has not been put on the shelf.
  • the management platform determines that the server to be configured is a server that has been on the shelf, it can send a configuration notification to the server to be configured. In this way, after the server receives the configuration notification sent by the management platform , The above step 501 can be performed again.
  • the configuration notification can be used to notify the server to obtain the configuration code from the management platform.
  • a grayscale deployment method may be used.
  • the management platform first sends a configuration notification to some of the servers that have been on the shelf. This part of the server deployment is successful, and then send configuration notifications to other servers that are already on the shelf to achieve full deployment; if it is determined that this part of the server deployment fails, you can notify the administrator of the deployment failure so that the administrator can handle this in a timely manner.
  • step 501 can be directly executed when they are listed.
  • the configuration request may include attribute information of the server.
  • the attribute information of the server is as described above, and may include the type of the server to be configured, the application service type of the server to be configured, the application service type group of the server to be configured, etc., and may further include the type of the excluded server to be configured , The type of application service of the excluded server to be configured, etc., and may further include priority, which will not be described in detail here.
  • the configuration code may include indication information for representing attribute information.
  • the instruction information may be in the form of text, or may be in the form of a character string, or may also be in the form of a number, which is not specifically limited.
  • the management platform when determining the target configuration code, may be determined according to the attribute information of the server and the respective indication information of the stored multiple configuration codes.
  • the indication information may be used to represent attribute information of the server to which the configuration code is applicable.
  • the instruction information of configuration code 1 is A
  • the instruction information of configuration code 2 is B
  • the instruction information of configuration code 3 is C
  • the instruction information of configuration code 4 is C.
  • Table 2 An example of multiple stored configuration codes
  • Configuration code A Configuration code 1 B Configuration code 2 C Configuration code 3 C Configuration code 4
  • the target configuration code is the configuration code 1 shown in Table 2; if the attribute information of the server corresponds to the instruction code C, then It can be determined that the target configuration codes are configuration code 3 and configuration code 4 shown in Table 2.
  • the server performs different configurations according to the number of configuration codes received.
  • the server can perform configuration according to the configuration code.
  • the server can first parse each configuration code separately to obtain the priority information corresponding to each configuration code, and then according to the priority information corresponding to each configuration code, Determine the configuration code with the highest priority, which can then be configured according to the configuration code with the highest priority.
  • Step 601 the management platform judges whether the server to be configured is a server that has been put on the shelf. If it is a server that has been put on the shelf, step 602 is executed; otherwise, step 620 is executed.
  • step 602 the management platform sends a configuration notification to the server in the first part.
  • Step 603 The server on the shelf in the first part sends a configuration request to the management platform.
  • step 604 the management platform receives the configuration request sent by the server that has been added to the first part.
  • step 605 the management platform determines the target configuration code according to the attribute information of the server on the shelf in the first part and the indication information of each of the stored multiple configuration codes.
  • Step 606 The management platform sends the target configuration code to the first part of the listed server.
  • step 607 the server on the shelf in the first part receives at least one configuration code sent by the management platform.
  • Step 608 The first part of the rack-mounted server is configured according to at least one configuration code.
  • step 609 the server on the shelf in the first part determines whether the configuration is successful, then the configuration is successful, and then step 610 is performed; otherwise, step 618 is performed.
  • step 610 the server on the shelf in the first part returns a successful configuration to the management platform.
  • Step 611 The management platform sends a configuration notification to the server in the second part.
  • step 612 the server on the shelf in the second part sends a configuration request to the management platform.
  • step 613 the management platform receives the configuration request sent by the server on the shelf in the second part.
  • Step 614 The management platform determines the target configuration code according to the attribute information of the server on the shelf in the second part and the indication information of each of the stored multiple configuration codes.
  • step 615 the management platform sends the target configuration code to the server in the second part.
  • Step 616 The server on the shelf in the second part receives at least one configuration code sent by the management platform.
  • step 617 the server on the shelf in the second part is configured according to at least one configuration code.
  • step 618 the server on the shelf in the first part returns a configuration failure to the management platform.
  • Step 619 the management platform notifies the administrator that the configuration has failed.
  • Step 620 the management platform sends a configuration notification to the server that is not on the shelf.
  • step 621 the unlisted server sends a configuration request to the management platform.
  • step 622 the management platform receives the configuration request sent by the unlisted server.
  • Step 623 The management platform determines the target configuration code according to the attribute information of the unlisted server and the indication information of each of the stored multiple configuration codes.
  • Step 624 The management platform sends the target configuration code to the server that is not on the shelf.
  • Step 625 the unlisted server receives at least one configuration code sent by the management platform.
  • Step 626 the unlisted server is configured according to at least one configuration code.
  • step numbers are only an exemplary representation of an execution process, and the sequence of the steps is not specifically limited in this application.
  • the management platform may also be unlisted first
  • the server sends the configuration notification, and then sends the configuration notification to the server in the first part, which is not limited.
  • An embodiment of the present invention also provides a method for monitoring the quality of the server after configuration, as shown in FIG. 7, specifically including the following steps:
  • Step 701 the management platform obtains the running data of the server under the current configuration code.
  • Step 702 Based on the operation data, if the management platform determines that the server does not meet the preset service requirements and there is a candidate configuration code corresponding to the server, the server is notified to replace the current configuration code.
  • step 703 the server receives the configuration modification notification sent by the management platform.
  • Step 704 the server replaces the current configuration code.
  • the purpose of monitoring the service quality of the server is realized, and the service quality of the server is guaranteed; further, even if a problem is found in the service quality of the server, the management platform can take corresponding measures in time to optimize the service quality of the server.
  • the operation data may include various forms of content, such as the following content:
  • the management platform can determine whether the server meets the preset service requirements based on the operation data.
  • the operation data may include the number of requests received within a preset period and the response speed after receiving the requests.
  • the management platform can determine the service quality of the server according to the number of requests received within the preset period and the response speed of the server after receiving the request, and can further determine whether the service quality is lower than the preset service quality, It can be determined that the server does not meet the preset service requirements; otherwise, it can be determined that the server meets the preset service requirements.
  • the operation data may include the protocol corresponding to the received request, the port corresponding to the received request, and the connection status corresponding to the received request.
  • the management platform may determine the protocol corresponding to the request received by the server, the server Whether any of the port corresponding to the received request and the connection status corresponding to the request received by the server meets the configuration requirements of the server under the current configuration code. If it does not, it can be determined that the server does not meet the preset service requirements; otherwise, It can be determined that the server meets the preset service requirements.
  • the management platform may also determine whether the server meets the preset service requirements through other methods, such as determining whether the server meets the preset service requirements according to the fault information in the operation data, without specific limitation.
  • the management platform when it determines that the server does not meet the preset service requirements and there is a candidate configuration code corresponding to the server, it can send a configuration modification notification to the server.
  • the configuration modification notification can be used to notify the server to replace the current configuration code;
  • the platform determines that the server does not meet the preset service requirements and there is no candidate configuration code corresponding to the server, it can send a modification notification to the administrator.
  • This modification notification can be used to notify the administrator of the current configuration code used by the server. modify.
  • Step 801 The management platform obtains the running data of the server under the current configuration code.
  • step 802 the management platform determines whether the server meets the preset service requirements according to the operation data, and if so, ends the operation; otherwise, executes step 803.
  • step 803 the management platform determines whether there is a candidate configuration code corresponding to the server. If it exists, step 804 is executed; otherwise, step 807 is executed.
  • Step 804 the management platform sends a configuration modification notification to the server.
  • step 805 the server receives the configuration modification notification sent by the management platform.
  • Step 806 the server replaces the current configuration code.
  • Step 807 the management platform sends a modification notification to the administrator, so that the administrator can modify the current configuration code used by the server.
  • FIG. 9 exemplarily shows a schematic structural diagram of a virtual IP port configuration device provided by an embodiment of the present invention.
  • the device may be a management platform, and the device includes a receiving unit 901, Processing unit 902, sending unit 903; where,
  • the receiving unit 901 is configured to receive port configuration information sent by an administrator, where the port configuration information includes attribute information of the server to be configured and configuration parameters to be configured; the format of the port configuration information and the configuration code of the management platform are generated The template is consistent;
  • the processing unit 902 is configured to generate a template according to the port configuration information and the configuration code to generate a configuration code; the configuration code is used to provide the server to be configured, so that the server to be configured according to the configuration code To configure.
  • the configuration code includes indication information used to represent the attribute information
  • the processing unit 902 After the processing unit 902 generates a configuration code, the receiving unit 901 is further used to:
  • the processing unit 902 is also used to:
  • the indication information is used to represent the attribute information of the server to which the configuration code applies;
  • the device also includes:
  • the sending unit 903 is configured to send the target configuration code to the server, so that the server performs configuration according to the target configuration code.
  • the processing unit 902 before the processing unit 902 generates the configuration code, it is also used to:
  • the server to be configured it is determined that the server to be configured exists.
  • the processing unit 902 determines that the server to be configured exists according to the attribute information, it is further used to:
  • the attribute information includes the priority.
  • the processing unit 902 After the processing unit 902 generates the configuration code, it is also used to:
  • the sending unit sends a configuration notification to the server to be configured, and the configuration notification is used to notify the server to be configured to obtain the configuration from the management platform Code.
  • the receiving unit 901 is further used to:
  • the processing unit 902 is also used to:
  • the server is notified to replace the current configuration code.
  • the operation data includes the number of requests received within a preset period and the response speed after receiving the requests;
  • the processing unit 902 is specifically used to:
  • the operation data includes a protocol corresponding to the received request, a port corresponding to the received request, and a connection status corresponding to the received request;
  • the processing unit 902 is specifically used to:
  • processing unit 902 is further configured to:
  • the sending unit sends a modification notification to the administrator, where the modification notification is used to notify the administrator to modify the current configuration code used by the server .
  • FIG. 10 exemplarily shows a schematic structural diagram of another virtual IP port configuration device provided by an embodiment of the present invention.
  • the device may be a management platform, and the device includes a sending unit 1001 , Receiving unit 1002, processing unit 1003; where,
  • the sending unit 1001 is configured to send a configuration request to the management platform, where the configuration request includes attribute information of the server;
  • the receiving unit 1002 is configured to receive at least one configuration code sent by the management platform, the configuration code is determined by the management platform according to the attribute information of the server and the respective indication information of the stored multiple configuration codes;
  • the instruction information is used to represent attribute information of the server to which the configuration code is applicable;
  • the processing unit 1003 is configured to perform configuration according to the at least one configuration code.
  • processing unit 1003 is specifically configured to:
  • Parse each configuration code separately to obtain the priority information corresponding to each configuration code; and determine the configuration code with the highest priority according to the priority information corresponding to each configuration code; and according to the priority The highest configuration code to configure.
  • the receiving unit 1002 before the sending unit 1001 sends a configuration request to the management platform, the receiving unit 1002 is also used to:
  • the configuration notification used to notify the server to obtain the configuration code from the management platform is when the management platform determines that the server is on the shelf Sent after the server.
  • the receiving unit 1002 is further used to:
  • the configuration modification notification used to notify the server to replace the current configuration code is that the management platform determines that the server does not meet the preset service requirements, and Sent after there is a candidate configuration code corresponding to the server;
  • the processing unit 1003 is also used to:
  • An embodiment of the present application further provides an apparatus, which has a function of implementing the virtual IP port configuration method described above.
  • This function can be implemented by hardware executing corresponding software.
  • the device includes: a processor, a transceiver, and a memory; the memory is used to store computer execution instructions, and the transceiver is used to implement the device to communicate with other Entity communicates, the processor and the memory are connected through the bus, and when the device is running, the processor executes the computer execution instructions stored in the memory to cause the device to perform the virtual IP port configuration method described above .
  • An embodiment of the present invention also provides a computer storage medium that stores a software program, which when read and executed by one or more processors implements the virtual described in various possible implementation manners described above IP port configuration method.
  • Embodiments of the present invention also provide a computer program product containing instructions that, when run on a computer, cause the computer to perform the virtual IP port configuration method described in the various possible implementation manners described above.
  • the embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer usable program code.
  • computer usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions may also be stored in a computer readable memory that can guide a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, the instructions The device implements the functions specified in one block or multiple blocks of the flowchart one flow or multiple flows and / or block diagrams.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operating steps are performed on the computer or other programmable device to produce computer-implemented processing, which is executed on the computer or other programmable device
  • the instructions provide steps for implementing the functions specified in one block or multiple blocks of the flowchart one flow or multiple flows and / or block diagrams.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Computer And Data Communications (AREA)

Abstract

本发明公开了一种虚拟IP的端口配置方法及装置。所述方法包括:管理平台接收管理员发送的端口配置信息后,可以根据端口配置信息和配置代码生成模板,生成配置代码,从而使得待配置服务器可以根据配置代码进行配置。采用上述方法,在整个虚拟IP的端口配置的过程中,只需要管理员对端口配置信息进行维护,管理平台可以自动生成配置代码,无需开发人员人为地修改代码,简化了端口配置的操作,大大提高了端口配置的效率;进一步地,在配置代码生成的过程中,可以结合配置代码生成模板来生成配置代码,从而能够确保生成的配置代码的准确度。

Description

一种虚拟IP的端口配置方法及装置 技术领域
本发明涉及互联网技术领域,尤其涉及一种虚拟IP的端口配置方法及装置。
背景技术
针对一个庞大的网络系统,比如Linux虚拟服务器(Linux Virtual Server,LVS)集群,针对该LVS集群中不同服务器的虚拟IP的端口的配置参数,需要根据该服务器的类型和应用服务类型来进行配置。现有技术在进行虚拟IP的端口配置,通常是由管理员人工维护端口的配置参数,再由开发人员根据配置参数调整虚拟IP的端口的配置代码,然后才可以将配置代码部署到对应的服务器上。可见,现有技术中的虚拟IP的端口配置过程较为复杂,且需要开发人员反复修改代码,对于开发人员而言工作量较大。
基于此,目前亟需一种虚拟IP的端口配置方法,用于解决现有技术中虚拟IP的端口配置过程较为复杂,且对开发人员而言工作量大的问题。
发明内容
本发明实施例提供一种虚拟IP的端口配置方法及装置,以解决现有技术 中虚拟IP的端口配置过程较为复杂,且对开发人员而言工作量大的技术问题。
本发明实施例提供一种虚拟IP的端口配置方法,所述方法包括:
接收端口配置信息,所述端口配置信息包括待配置服务器的属性信息和待配置的配置参数;所述端口配置信息的格式与预设的配置代码生成模板相符合;
根据所述端口配置信息和所述配置代码生成模板,生成配置代码;所述配置代码用于提供给所述待配置服务器,以使所述待配置服务器根据所述配置代码进行配置。
采用上述方法,在整个虚拟IP的端口配置的过程中,只需要管理员对端口配置信息进行维护,管理平台可以自动生成配置代码,无需开发人员人为地修改代码,简化了端口配置的操作,大大提高了端口配置的效率;进一步地,在配置代码生成的过程中,可以结合配置代码生成模板来生成配置代码,从而能够确保生成的配置代码的准确度。
在一种可能的实现方式中,所述配置代码包括用于代表所述属性信息的指示信息;
所述生成配置代码之后,还包括:
接收服务器发送的配置请求,所述配置请求包括所述服务器的属性信息;
根据所述服务器的属性信息,以及存储的多个配置代码各自的指示信息,确定目标配置代码;
向所述服务器发送所述目标配置代码,以使所述服务器根据所述目标配置 代码进行配置。
如此,服务器可以及时从管理平台中获取对应的配置代码并进行配置,从而提高了端口配置的及时性。
在一种可能的实现方式中,所述生成配置代码之前,还包括:
确定未存储有所述待配置服务器对应的历史配置代码;
所述属性信息包括优先级;确定所述历史配置代码的优先级与所述属性信息的优先级不一致。
本发明实施例中,管理平台可以对端口配置信息进行校验,能够有效避免出现端口配置信息中配置冲突或错误的情况,从而保证了生成的配置代码的准确性。进一步地,管理员可以有规则地在填写端口配置信息,提高了端口配置信息的规范性,使得本发明实施例提供的方法的适用范围更加广,同时也便于后期维护。
在一种可能的实现方式中,所述生成配置代码之后,还包括:
若确定所述待配置服务器为已上架的服务器,则向所述待配置服务器发送配置通知,所述配置通知用于通知所述待配置服务器获取所述配置代码。
如此,针对已上架的服务器,本发明实施例能够及时通知已上架的服务器进行端口配置的修改,提高了端口配置修改的及时性。
在一种可能的实现方式中,所述配置代码生成模板包括服务器的类型、服 务器的应用服务类型、服务器的应用服务类型组、网络协议、端口号、是否持久连接、持久连接的时间、客户端粒度、调度方式、探测方式、是否fallback、RS权重值、IP类型。
在一种可能的实现方式中,所述方法还包括:
获取服务器在当前配置代码下的运行数据;
根据所述运行数据,若确定所述服务器不满足预设服务要求,且存在所述服务器对应的候选配置代码,则通知所述服务器更换所述当前配置代码。
采用上述方法,实现了对服务器的服务质量进行监控的目的,保障了服务器的服务质量;进一步地,即便发现服务器的服务质量出现问题,管理平台也可以及时采取对应措施,优化服务器的服务质量。
在一种可能的实现方式中,所述运行数据包括在预设周期内接收到的请求数和接收到请求后的响应速度;
根据所述运行数据,确定所述服务器不满足预设服务要求,包括:
根据所述预设周期内接收到的请求数和所述服务器接收到请求后的响应速度,确定所述服务器的服务质量;
确定所述服务质量低于预设服务质量。
在一种可能的实现方式中,所述运行数据包括接收到的请求对应的协议、接收到的请求对应的端口、接收到的请求对应的连接状态;
根据所述运行数据,确定所述服务器不满足预设服务要求,包括:
若确定所述服务器接收到的请求对应的协议、所述服务器接收到的请求对应的端口、所述服务器接收到的请求对应的连接状态中任一项不符合所述服务器在所述当前配置代码下的配置要求。
在一种可能的实现方式中,还包括:
若确定不存在所述服务器对应的候选配置代码,则发送修改通知,所述修改通知用于通知对所述服务器所使用的所述当前配置代码进行修改。
本发明实施例提供一种虚拟IP的端口配置方法,应用于服务器,所述方法包括:
发送配置请求,所述配置请求包括所述服务器的属性信息;
接收至少一个配置代码,所述配置代码是根据所述服务器的属性信息以及存储的多个配置代码各自的指示信息确定的;所述指示信息用于代表所述配置代码适用的服务器的属性信息;
根据所述至少一个配置代码进行配置。
在一种可能的实现方式中,所述根据所述至少一个配置代码进行配置,包括:
分别解析每个配置代码,得到所述每个配置代码分别对应的优先级信息;
根据所述每个配置代码分别对应的优先级信息,确定优先级最高的配置代码;
根据所述优先级最高的配置代码进行配置。
在一种可能的实现方式中,所述发送配置请求之前,还包括:
接收配置通知,所述配置通知用于通知所述服务器获取所述配置代码,所述配置通知是在确定所述服务器为已上架的服务器后发送的。
在一种可能的实现方式中,所述方法还包括:
接收配置修改通知,所述配置修改通知用于通知所述服务器更换当前配置代码,所述配置修改通知是在确定所述服务器不满足预设服务要求,且存在所述服务器对应的候选配置代码后发送的;
更换所述当前配置代码。
本发明实施例提供一种虚拟IP的端口配置装置,所述装置包括:
接收单元,用于接收端口配置信息,所述端口配置信息包括待配置服务器的属性信息和待配置的配置参数;所述端口配置信息的格式与预设的配置代码生成模板相符合;
处理单元,用于根据所述端口配置信息和所述配置代码生成模板,生成配置代码;所述配置代码用于提供给所述待配置服务器,以使所述待配置服务器根据所述配置代码进行配置。
在一种可能的实现方式中,所述配置代码包括用于代表所述属性信息的指示信息;
在所述处理单元生成配置代码之后,所述接收单元还用于:
接收服务器发送的配置请求,所述配置请求包括所述服务器的属性信息;
所述处理单元还用于:
根据所述服务器的属性信息,以及存储的多个配置代码各自的指示信息,确定目标配置代码;
所述装置还包括:
发送单元,用于向所述服务器发送所述目标配置代码,以使所述服务器根据所述目标配置代码进行配置。
在一种可能的实现方式中,所述处理单元生成配置代码之前,还用于:
确定未存储有所述待配置服务器对应的历史配置代码;
所述属性信息包括优先级;确定所述历史配置代码的优先级与所述属性信息的优先级不一致。
在一种可能的实现方式中,所述处理单元生成配置代码之后,还用于:
若确定所述待配置服务器为已上架的服务器,则所述发送单元向所述待配置服务器发送配置通知,所述配置通知用于通知所述待配置服务器获取所述配置代码。
在一种可能的实现方式中,所述配置代码生成模板包括服务器的类型、服务器的应用服务类型、服务器的应用服务类型组、网络协议、端口号、是否持久连接、持久连接的时间、客户端粒度、调度方式、探测方式、是否fallback、RS权重值、IP类型。
在一种可能的实现方式中,所述接收单元还用于:
获取服务器在当前配置代码下的运行数据;
所述处理单元还用于:
根据所述运行数据,若确定所述服务器不满足预设服务要求,且存在所述服务器对应的候选配置代码,则通知所述服务器更换所述当前配置代码。
在一种可能的实现方式中,所述运行数据包括在预设周期内接收到的请求数和接收到请求后的响应速度;
所述处理单元具体用于:
根据所述预设周期内接收到的请求数和所述服务器接收到请求后的响应速度,确定所述服务器的服务质量;
确定所述服务质量低于预设服务质量。
在一种可能的实现方式中,所述运行数据包括接收到的请求对应的协议、接收到的请求对应的端口、接收到的请求对应的连接状态;
所述处理单元具体用于:
若确定所述服务器接收到的请求对应的协议、所述服务器接收到的请求对应的端口、所述服务器接收到的请求对应的连接状态中任一项不符合所述服务器在所述当前配置代码下的配置要求。
在一种可能的实现方式中,所述处理单元还用于:
若确定不存在所述服务器对应的候选配置代码,则所述发送单元员发送修 改通知,所述修改通知用于通知对所述服务器所使用的所述当前配置代码进行修改。
本发明实施例提供一种虚拟IP的端口配置装置,应用于服务器,所述方法装置:
发送单元,用于发送配置请求,所述配置请求包括所述服务器的属性信息;
接收单元,用于接收至少一个配置代码,所述配置代码是根据所述服务器的属性信息以及存储的多个配置代码各自的指示信息确定的;所述指示信息用于代表所述配置代码适用的服务器的属性信息;
处理单元,用于根据所述至少一个配置代码进行配置。
在一种可能的实现方式中,所述处理单元具体用于:
分别解析每个配置代码,得到所述每个配置代码分别对应的优先级信息;并根据所述每个配置代码分别对应的优先级信息,确定优先级最高的配置代码;以及根据所述优先级最高的配置代码进行配置。
在一种可能的实现方式中,所述发送单元发送配置请求之前,所述接收单元还用于:
接收配置通知,所述配置通知用于通知所述服务器获取所述配置代码,所述配置通知是在确定所述服务器为已上架的服务器后发送的。
在一种可能的实现方式中,所述接收单元还用于:
接收配置修改通知,所述配置修改通知用于通知所述服务器更换当前配置 代码,所述配置修改通知是在确定所述服务器不满足预设服务要求,且存在所述服务器对应的候选配置代码后发送的;
所述处理单元还用于:
更换所述当前配置代码。
本申请实施例的还提供一种装置,该装置具有实现上文所描述的虚拟IP的端口配置方法的功能。该功能可以通过硬件执行相应的软件实现,在一种可能的设计中,该装置包括:处理器、收发器、存储器;该存储器用于存储计算机执行指令,该收发器用于实现该装置与其他通信实体进行通信,该处理器与该存储器通过该总线连接,当该装置运行时,该处理器执行该存储器存储的该计算机执行指令,以使该装置执行上文所描述的虚拟IP的端口配置方法。
本发明实施例还提供一种计算机存储介质,所述存储介质中存储软件程序,该软件程序在被一个或多个处理器读取并执行时实现上述各种可能的实现方式中所描述的虚拟IP的端口配置方法。
本发明实施例还提供一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述各种可能的实现方式中所描述的虚拟IP的端口配置方法。
附图说明
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍。
图1为本发明实施例适用的系统架构图;
图2为本发明实施例提供的一种虚拟IP的端口配置方法所对应的流程示意图;
图3为本发明实施例中填写配置参数的示意图;
图4为本发明实施例中所涉及到的虚拟IP的端口配置方法的整体性流程示意图;
图5为本发明实施例还提供一种服务器端的虚拟IP的端口配置方法所对应的流程示意图;
图6为本发明实施例中所涉及到的服务器端的虚拟IP的端口配置方法的整体性流程示意图;
图7为本发明实施例提供的一种服务器配置后的质量监控方法所对应的流程示意图;
图8为本发明实施例中所涉及到的服务器配置后的质量监控方法的整体性流程示意图;
图9为本发明实施例提供的一种虚拟IP的端口配置装置的结构示意图;
图10为本发明实施例提供的另一种虚拟IP的端口配置装置的结构示意图。
具体实施方式
下面结合说明书附图对本申请进行具体说明,方法实施例中的具体操作方法也可以应用于装置实施例中。
图1示例性示出了本发明实施例适用的系统架构图。如图1所示,所述系统100包括管理平台101、至少一个服务器(例如图1中示出的服务器1021、服务器1022、服务器1023、服务器1024)以及调度设备103。其中,管理平台101可以通过网络与每个服务器连接,例如图1中示出的管理平台101可以通过网络与服务器1021连接,也可以通过网络与服务器1022连接,也可以通过网络与服务器1023连接,还可以通过网络与服务器1024连接。调度设备可以通过虚拟IP与每个服务器连接,从而实现负载均衡,例如图1中示出的调度设备103可以通过网络与服务器1021连接,也可以通过网络与服务器1022连接,也可以通过网络与服务器1023连接,还可以通过网络与服务器1024连接。
本发明实施例中,图1示出的系统可以应用于LVS集群中,一般,LVS集群可以采用IP负载均衡技术和基于内容请求分发技术。也就是说,图1中示出的调度设备103可以为LVS集群中的负载调度器。
基于图1所示的系统架构,图2示例性示出了本发明实施例提供的一种虚拟IP的端口配置方法所对应的流程示意图,包括以下步骤:
步骤201,管理平台接收管理员发送的端口配置信息。
步骤202,管理平台根据端口配置信息和配置代码生成模板,生成配置代码。
采用上述方法,在整个虚拟IP的端口配置的过程中,只需要管理员对端 口配置信息进行维护,管理平台可以自动生成配置代码,无需开发人员人为地修改代码,简化了端口配置的操作,大大提高了端口配置的效率;进一步地,在配置代码生成的过程中,可以结合配置代码生成模板来生成配置代码,从而能够确保生成的配置代码的准确度。
具体来说,步骤201中,端口配置信息可以包括多种形式的内容,比如端口配置信息可以包括待配置服务器的属性信息、待配置的配置参数等,具体不做限定。
其中,待配置服务器的属性信息可以包括待配置服务器的类型、待配置服务器的应用服务类型、待配置服务器的应用服务类型组等,进一步还可以包括被排除掉的待配置服务器的类型、被排除掉的待配置服务器的应用服务类型等,进一步还可以包括优先级,具体不做限定。
通过在属性信息中引入优先级的概念,能够避免同一服务器出现两种及两种以上的配置代码时,服务器无法做出选择的问题,进而能够避免服务器出现配置异常的情况。
进一步地,根据划分方式的不同,待配置服务器的类型可以有多种,比如,按照服务器的处理器架构(也就是服务器CPU所采用的指令系统)进行划分,待配置服务器的类型可以包括CISC架构服务器、RISC架构服务器和VLIW架构服务器等;又比如,按照外形结构进行划分,待配置服务器的类型可以包括塔式服务器、机架式服务器、刀片式服务器等,具体不做限定。根据服务器提 供的应用服务类型不同,待配置服务器的应用服务类型可以包括文件应用服务,数据库应用服务,应用程序应用服务,WEB应用服务等。
待配置的配置参数可以是指应用于虚拟IP的端口配置的配置参数。具体地,待配置的配置参数可以包括网络协议、端口号、是否持久连接、持久连接的时间、客户端粒度、调度方式、探测方式、是否fallback、RS权重值、IP类型等。
进一步地,端口配置信息的格式可以与管理平台的配置代码生成模板相符合,也就是说,配置代码生成模板可以包括服务器的类型、服务器的应用服务类型、服务器的应用服务类型组、网络协议、端口号、是否持久连接、持久连接的时间、客户端粒度、调度方式、探测方式、是否fallback、RS权重值、IP类型等。如此,便于管理平台生成配置代码。
为了便于管理员填写端口配置信息,本发明实施例中,端口配置信息可以以表格的形式来表现。如表1所示,为端口配置信息以表格的形式来表现的一种示例。具体可参见表1示出的内容,此处不再详细描述。
表1:端口配置信息以表格的形式来表现的一种示例
Figure PCTCN2018113735-appb-000001
Figure PCTCN2018113735-appb-000002
根据表1示出的内容,“应用服务类型”、“应用服务类型组”、“服务器的类型”、“被排除掉的服务器的类型”、“被排除掉的服务器的应用服务类型”中,同一行可以填写多个条件,多个条件之间的关系为逻辑上的“或”关系;不同行之间的关系为逻辑上的“且”关系。因不同的服务器端口配置信息不同,通过这些条件,能够精确定位待配置的服务器。
进一步地,表1中示出的空白单元格所需填写的内容,可以根据图3示出的内容进行填写。如图3所示,为本发明实施例中填写配置参数的示意图。其中,菱形选项框为可选项,可选项为对应延展出的为可填写内容;对于非菱形选择框,比如,端口号,需要管理员手动输入,比如,端口号可以在0-65535之间进行选择。若按照图3示出的内容进行填写,能够有效避免填写错误的情况,进而降低配置代码生成错误的概率,减少对服务器的不利影响。进一步地,管理员可以有规则地填写端口配置信息,提高了端口配置信息的规范性,使得本发明实施例提供的方法的适用范围更加广,同时也便于后期维护。
考虑到端口配置信息是管理员提供的,容易存在端口配置信息填写错误的可能性,因此,本发明实施例在执行上述步骤202之前,可以对管理员发生的端口配置信息进行校验。
具体地,对端口配置信息进行校验的方式有多种,一种可能的实现方式为, 管理平台可以根据属性信息判断是否存在待配置服务器,若存在,则可以执行上述步骤202;否则,可以告知管理员端口配置信息填写有误,从而使得管理员修改端口配置信息。
进一步地,以表1示出的端口配置信息为例,管理平台判断是否存在待配置服务器的方式时,可以通过判断待配置服务器的类型、待配置服务器的应用服务类型、待配置服务器的应用服务类型组、被排除掉的待配置服务器的类型、被排除掉的待配置服务器的应用服务类型是否矛盾,如果矛盾,则管理平台可以确定不存在待配置服务器,否则,管理平台可以确定存在待配置服务器。举个例子,若待配置服务器的类型为CISC架构服务器,被排除掉的待配置服务器的类型也为CISC架构服务器,则可以确定出现矛盾。再举个例子,若待配置服务器的类型为CISC架构服务器,待配置服务器的应用服务类型为WEB应用服务,而所有WEB应用服务对应的服务器都不是CISC架构服务器,则可以确定出现矛盾。
或者,以表1示出的端口配置信息为例,管理平台判断是否存在待配置服务器的方式时,可以通过判断待配置服务器的类型、待配置服务器的应用服务类型、待配置服务器的应用服务类型组、被排除掉的待配置服务器的类型、被排除掉的待配置服务器的应用服务类型中任一项是否与系统设定的服务器矛盾,如果矛盾,则管理平台可以确定不存在待配置服务器,否则,管理平台可以确定存在待配置服务器。举个例子,若待配置服务器的类型为CISC架构服 务器,而系统设定的服务器中不包括CISC架构服务器,则可以确定出现矛盾。再举个例子,若待配置服务器的应用服务类型为WEB应用服务,而系统设定的服务器中不包括WEB应用服务对应的服务器,则可以确定出现矛盾。
另一种可能的实现方式为,管理平台可以根据属性信息判断是否存储有待配置服务器对应的历史配置代码,若存储有待配置服务器对应的历史配置代码,则可以执行上述步骤202;否则,可以再判断历史配置代码的优先级与属性信息的优先级是否一致,如果不一致,则可以执行上述步骤202,如果一致,则可以告知管理员端口配置信息填写有误,从而使得管理员修改端口配置信息。
在其它可能的实现方式中,管理平台也可以先根据属性信息判断是否存在待配置服务器,再判断是否存储有待配置服务器对应的历史配置代码,进而在存储有历史配置代码的情况下判断历史配置代码的优先级与属性信息的优先级是否一致,具体不做限定。需要说明的是,管理平台在确定所述历史配置代码的优先级与属性信息的优先级不一致后,还可以将这一情况告知管理员,以便管理员进一步对此进行确认,从而确保管理员发生的端口配置信息无误。
本发明实施例中,管理平台可以对端口配置信息进行校验,能够有效避免出现端口配置信息中配置冲突或错误的情况,从而保证了生成的配置代码的准确性。
步骤202中,管理平台根据端口配置信息和配置代码生成模板生成配置代码的方式有多种,比如,如表1所示,管理平台可以根据表1中示出的“Begin” 和“End标识”来确定所要读取的端口配置信息,进而可以结合配置代码生成模板生成配置代码;或者,管理平台也可以根据其它方式(如代码自动生成工具)来生成配置代码,具体不做限定。
进一步地,管理平台生成的配置代码可以用于提供给待配置服务器,以使待配置服务器根据配置代码进行配置。如此,在虚拟IP的端口配置的过程中,只需要管理员提供端口配置信息,管理平台即可自动生成对应的配置代码,无需开发人员人工编写代码,大大减少了开发人员的工作量。
为了更清楚地介绍上述虚拟IP的端口配置方法,下面结合图4,对本发明实施例中所涉及到的流程进行整体性说明。如图4所示,可以包括以下步骤:
步骤401,管理平台接收管理员发送的端口配置信息。
步骤402,管理平台判断是否存在待配置服务器,若存在,则执行步骤403;否则,执行步骤407。
步骤403,管理平台判断是否存储有待配置服务器对应的历史配置代码,若存储有待配置服务器对应的历史配置代码,则执行步骤404;否则,执行步骤406。
步骤404,管理平台判断历史配置代码的优先级与属性信息的优先级是否一致,若不一致,则执行步骤405;否则,执行步骤407。
步骤405,管理平台通知管理员对端口配置信息进行确认,并在管理员确认无误后,执行步骤406。
步骤406,管理平台根据端口配置信息和配置代码生成模板,生成配置代码。
步骤407,管理平台通知管理员端口配置信息填写有误。
如此,管理平台可以保证生成的配置代码的准确性和可用性,避免出现同一服务出现两种及两种以上的配置代码且优先级一致造成服务器异常的情况。进一步地,可以对端口配置信息的填写规范性进行校验,从而能够提高端口配置信息的准确率,进而提高生成配置代码的准确率。
本发明实施例中,在执行上述步骤202之后,所生成的配置代码可以提供给服务器,基于此,图5示例性示出了本发明实施例还提供一种服务器端的虚拟IP的端口配置方法所对应的流程示意图,具体包括如下步骤:
步骤501,服务器向管理平台发送配置请求。
步骤502,管理平台接收服务器发送的配置请求。
步骤503,管理平台根据服务器的属性信息,以及存储的多个配置代码各自的指示信息,确定目标配置代码。
步骤504,管理平台向服务器发送目标配置代码。
步骤505,服务器接收管理平台发送的至少一个配置代码。
步骤506,服务器根据至少一个配置代码进行配置。
如此,服务器可以及时从管理平台中获取对应的配置代码并进行配置,从而提高了端口配置的及时性。
本发明实施例中,服务器可以分为已上架的服务器和未上架的服务器。针对已上架的服务器,在执行上述步骤501之前,管理平台若确定待配置服务器为已上架的服务器,则可以向待配置服务器发送配置通知,如此,服务器在接收到述管理平台发送的配置通知后,可以再执行上述步骤501。其中,配置通知可以用于通知服务器从管理平台中获取配置代码。
进一步地,考虑到对于已上架的服务器而言,可能存在配置代码部署失败的问题,本发明实施例中可以采用灰度部署的方式,管理平台先向部分已上架的服务器发送配置通知,若确定这部分服务器部署成功,再向其它已上架的服务器发送配置通知,从而实现全量部署;若确定这部分服务器部署失败,则可以告知管理员部署失败,以便管理员对此及时进行处理。
针对未上架的服务器,可以在上架时,直接执行上述步骤501。对于未上架的服务器而言,可以在上架时加挂LVS后根据配置代码进行配置,具体不再详细描述。
步骤501和步骤502中,配置请求可以包括服务器的属性信息。其中,服务器的属性信息如上文所述,可以包括待配置服务器的类型、待配置服务器的应用服务类型、待配置服务器的应用服务类型组等,进一步还可以包括被排除掉的待配置服务器的类型、被排除掉的待配置服务器的应用服务类型等,进一步还可以包括优先级,在此不再详细描述。
骤503和步骤504中,配置代码可以包括用于代表属性信息的指示信息。其 中,指示信息可以是文字的形式,或者也可以是字符串的形式,或者还可以是数字的形式,具体不做限定。
本发明实施例中,管理平台在确定目标配置代码时,可以根据服务器的属性信息,以及存储的多个配置代码各自的指示信息来确定。其中,指示信息可以用于代表所述配置代码适用的服务器的属性信息。
如表2所示,为存储的多个配置代码的一种示例。其中,配置代码1的指示信息为A,配置代码2的指示信息为B,配置代码3的指示信息为C,配置代码4的指示信息为C。
表2:存储的多个配置代码的一种示例
指示信息 配置代码
A 配置代码1
B 配置代码2
C 配置代码3
C 配置代码4
以表2示出的内容为例,若服务器的属性信息与指示代码A对应,则可以确定目标配置代码为表2中示出的配置代码1;若服务器的属性信息与指示代码C对应,则可以确定目标配置代码为表2中示出的配置代码3和配置代码4。
步骤505和步骤506中,服务器根据接收到的配置代码的个数,进行配置的方式是不同的。一个示例中,服务器若接收到一个配置代码,则可以根据该配置代码进行配置。另一个示例中,服务器若接收到多个配置代码,则可以先分别解析每个配置代码,得到每个配置代码分别对应的优先级信息,然后可以根 据每个配置代码分别对应的优先级信息,确定优先级最高的配置代码,进而可以根据优先级最高的配置代码进行配置。
为了更清楚地介绍上述服务器端的虚拟IP的端口配置方法,下面结合图6,对本发明实施例中所涉及到的流程进行整体性说明。如图6所示,可以包括以下步骤:
步骤601,管理平台判断待配置服务器是否为已上架的服务器,若为已上架的服务器,则执行步骤602;否则,执行步骤620。
步骤602,管理平台向第一部分的已上架的服务器发送配置通知。
步骤603,第一部分的已上架的服务器向管理平台发送配置请求。
步骤604,管理平台接收第一部分的已上架的服务器发送的配置请求。
步骤605,管理平台根据第一部分的已上架的服务器的属性信息,以及存储的多个配置代码各自的指示信息,确定目标配置代码。
步骤606,管理平台向第一部分的已上架的服务器发送目标配置代码。
步骤607,第一部分的已上架的服务器接收管理平台发送的至少一个配置代码。
步骤608,第一部分的已上架的服务器根据至少一个配置代码进行配置。
步骤609,第一部分的已上架的服务器判断是否配置成功,则配置成功,则执行步骤610;否则,执行步骤618。
步骤610,第一部分的已上架的服务器向管理平台返回配置成功。
步骤611,管理平台向第二部分的已上架的服务器发送配置通知。
步骤612,第二部分的已上架的服务器向管理平台发送配置请求。
步骤613,管理平台接收第二部分的已上架的服务器发送的配置请求。
步骤614,管理平台根据第二部分的已上架的服务器的属性信息,以及存储的多个配置代码各自的指示信息,确定目标配置代码。
步骤615,管理平台向第二部分的已上架的服务器发送目标配置代码。
步骤616,第二部分的已上架的服务器接收管理平台发送的至少一个配置代码。
步骤617,第二部分的已上架的服务器根据至少一个配置代码进行配置。
步骤618,第一部分的已上架的服务器向管理平台返回配置失败。
步骤619,管理平台通知管理员配置失败。
步骤620,管理平台向未上架的服务器发送配置通知。
步骤621,未上架的服务器向管理平台发送配置请求。
步骤622,管理平台接收未上架的服务器发送的配置请求。
步骤623,管理平台根据未上架的服务器的属性信息,以及存储的多个配置代码各自的指示信息,确定目标配置代码。
步骤624,管理平台向未上架的服务器发送目标配置代码。
步骤625,未上架的服务器接收管理平台发送的至少一个配置代码。
步骤626,未上架的服务器根据至少一个配置代码进行配置。
需要说明的是,上述步骤编号仅为一种执行流程的示例性表示,本申请对各个步骤的先后顺序不做具体限定,例如,上述步骤602和步骤620中,管理平台也可以先向未上架的服务器发送配置通知,然后向第一部分的已上架的服务器发送配置通知,具体不做限定。
考虑到服务器根据配置代码进行配置之后,可能因配置冲突导致服务质量不佳的情况,本发明实施例还提供一种服务器配置后的质量监控方法,如图7所示,具体包括如下步骤:
步骤701,管理平台获取服务器在当前配置代码下的运行数据。
步骤702,管理平台根据运行数据,若确定所务器不满足预设服务要求,且存在服务器对应的候选配置代码,则通知服务器更换当前配置代码。
步骤703,服务器接收管理平台发送的配置修改通知。
步骤704,服务器更换当前配置代码。
采用上述方法,实现了对服务器的服务质量进行监控的目的,保障了服务器的服务质量;进一步地,即便发现服务器的服务质量出现问题,管理平台也可以及时采取对应措施,优化服务器的服务质量。
具体来说,步骤701和步骤702中,运行数据可以包括多种形式的内容,比如可以包括如下内容:
(1)在预设周期内接收到的请求数;
(2)接收到请求后的响应速度;
(3)接收到的请求对应的协议;
(4)接收到的请求对应的端口;
(5)接收到的请求对应的连接状态。
需要说明的是,上述五种形式的内容仅为运行数据的示例性说明,本领域技术人员可以根据经验和实际情况对运行数据所包括的内容进行增删,具体不做限定。
进一步地,管理平台根据运行数据来确定服务器是否满足预设服务要求的方式有多种,一个示例中,运行数据可以包括在预设周期内接收到的请求数和接收到请求后的响应速度,进而,管理平台可以根据预设周期内接收到的请求数和服务器接收到请求后的响应速度,确定所述服务器的服务质量,进而可以判断服务质量是否低于预设服务质量,若低于,则可以确定服务器不满足预设服务要求;否则,可以确定服务器满足预设服务要求。
另一个示例中,运行数据可以包括接收到的请求对应的协议、接收到的请求对应的端口、接收到的请求对应的连接状态,进而,管理平台可以判断服务器接收到的请求对应的协议、服务器接收到的请求对应的端口、服务器接收到的请求对应的连接状态中任一项是否符合服务器在当前配置代码下的配置要求,若不符合,则可以确定服务器不满足预设服务要求;否则,可以确定服务器满足预设服务要求。
在其它可能的示例中,管理平台还可以通过其它方式来确定服务器是否满 足预设服务要求,比如根据运行数据中的故障信息来确定服务器是否满足预设服务要求,具体不做限定。
进一步地,管理平台在确定服务器不满足预设服务要求,且存在服务器对应的候选配置代码的情况下,可以向服务器发送配置修改通知,该配置修改通知可以用于通知服务器更换当前配置代码;管理平台在确定服务器不满足预设服务要求,且不存在服务器对应的候选配置代码的情况下,可以向管理员发送修改通知,该修改通知可以用于通知管理员对服务器所使用的当前配置代码进行修改。
为了更清楚地介绍上述服务器配置后的质量监控方法,下面结合图8,对本发明实施例中所涉及到的流程进行整体性说明。如图8所示,可以包括以下步骤:
步骤801,管理平台获取服务器在当前配置代码下的运行数据。
步骤802,管理平台根据所述运行数据,判断服务器是否满足预设服务要求,若满足,则结束操作;否则,执行步骤803。
步骤803,管理平台判断是否存在服务器对应的候选配置代码,若存在,则执行步骤804;否则,执行步骤807。
步骤804,管理平台向服务器发送配置修改通知。
步骤805,服务器接收管理平台发送的配置修改通知。
步骤806,服务器更换当前配置代码。
步骤807,管理平台向管理员发送修改通知,以使管理员对服务器所使用的当前配置代码进行修改。
基于同样的发明构思,图9示例性示出了本发明实施例提供的一种虚拟IP的端口配置装置结构示意图,如图9所示,该装置可以为管理平台,该装置包括接收单元901、处理单元902、发送单元903;其中,
接收单元901,用于接收管理员发送的端口配置信息,所述端口配置信息包括待配置服务器的属性信息和待配置的配置参数;所述端口配置信息的格式与所述管理平台的配置代码生成模板相符合;
处理单元902,用于根据所述端口配置信息和所述配置代码生成模板,生成配置代码;所述配置代码用于提供给所述待配置服务器,以使所述待配置服务器根据所述配置代码进行配置。
在一种可能的实现方式中,所述配置代码包括用于代表所述属性信息的指示信息;
在所述处理单元902生成配置代码之后,所述接收单元901还用于:
接收服务器发送的配置请求,所述配置请求包括所述服务器的属性信息;
所述处理单元902还用于:
根据所述服务器的属性信息,以及存储的多个配置代码各自的指示信息,确定目标配置代码;所述指示信息用于代表所述配置代码适用的服务器的属性信息;
所述装置还包括:
发送单元903,用于向所述服务器发送所述目标配置代码,以使所述服务器根据所述目标配置代码进行配置。
在一种可能的实现方式中,所述处理单元902生成配置代码之前,还用于:
根据所述属性信息确定存在所述待配置服务器。
在一种可能的实现方式中,所述处理单元902根据所述属性信息确定存在所述待配置服务器之后,还用于:
确定未存储有所述待配置服务器对应的历史配置代码;
确定所述历史配置代码的优先级与所述属性信息的优先级不一致;所述属性信息包括优先级。
在一种可能的实现方式中,所述处理单元902生成配置代码之后,还用于:
若确定所述待配置服务器为已上架的服务器,则所述发送单元向所述待配置服务器发送配置通知,所述配置通知用于通知所述待配置服务器从所述管理平台中获取所述配置代码。
在一种可能的实现方式中,所述接收单元901还用于:
获取服务器在当前配置代码下的运行数据;
所述处理单元902还用于:
根据所述运行数据,若确定所述服务器不满足预设服务要求,且存在所述 服务器对应的候选配置代码,则通知所述服务器更换所述当前配置代码。
在一种可能的实现方式中,所述运行数据包括在预设周期内接收到的请求数和接收到请求后的响应速度;
所述处理单元902具体用于:
根据所述预设周期内接收到的请求数和所述服务器接收到请求后的响应速度,确定所述服务器的服务质量;
确定所述服务质量低于预设服务质量。
在一种可能的实现方式中,所述运行数据包括接收到的请求对应的协议、接收到的请求对应的端口、接收到的请求对应的连接状态;
所述处理单元902具体用于:
若确定所述服务器接收到的请求对应的协议、所述服务器接收到的请求对应的端口、所述服务器接收到的请求对应的连接状态中任一项不符合所述服务器在所述当前配置代码下的配置要求。
在一种可能的实现方式中,所述处理单元902还用于:
若确定不存在所述服务器对应的候选配置代码,则所述发送单元向管理员发送修改通知,所述修改通知用于通知所述管理员对所述服务器所使用的所述当前配置代码进行修改。
基于同样的发明构思,图10示例性示出了本发明实施例提供的另一种虚拟IP的端口配置装置结构示意图,如图10所示,该装置可以为管理平台,该装置 包括发送单元1001、接收单元1002、处理单元1003;其中,
发送单元1001,用于向管理平台发送配置请求,所述配置请求包括所述服务器的属性信息;
接收单元1002,用于接收所述管理平台发送的至少一个配置代码,所述配置代码是所述管理平台根据所述服务器的属性信息,以及存储的多个配置代码各自的指示信息确定的;所述指示信息用于代表所述配置代码适用的服务器的属性信息;
处理单元1003,用于根据所述至少一个配置代码进行配置。
在一种可能的实现方式中,所述处理单元1003具体用于:
分别解析每个配置代码,得到所述每个配置代码分别对应的优先级信息;并根据所述每个配置代码分别对应的优先级信息,确定优先级最高的配置代码;以及根据所述优先级最高的配置代码进行配置。
在一种可能的实现方式中,所述发送单元1001向管理平台发送配置请求之前,所述接收单元1002还用于:
接收所述管理平台发送的配置通知,所述配置通知用于通知所述服务器从所述管理平台中获取所述配置代码,所述配置通知是所述管理平台在确定所述服务器为已上架的服务器后发送的。
在一种可能的实现方式中,所述接收单元1002还用于:
接收所述管理平台发送的配置修改通知,所述配置修改通知用于通知所述 服务器更换当前配置代码,所述配置修改通知是所述管理平台在确定所述服务器不满足预设服务要求,且存在所述服务器对应的候选配置代码后发送的;
所述处理单元1003还用于:
更换所述当前配置代码。
本申请实施例的还提供一种装置,该装置具有实现上文所描述的虚拟IP的端口配置方法的功能。该功能可以通过硬件执行相应的软件实现,在一种可能的设计中,该装置包括:处理器、收发器、存储器;该存储器用于存储计算机执行指令,该收发器用于实现该装置与其他通信实体进行通信,该处理器与该存储器通过该总线连接,当该装置运行时,该处理器执行该存储器存储的该计算机执行指令,以使该装置执行上文所描述的虚拟IP的端口配置方法。
本发明实施例还提供一种计算机存储介质,所述存储介质中存储软件程序,该软件程序在被一个或多个处理器读取并执行时实现上述各种可能的实现方式中所描述的虚拟IP的端口配置方法。
本发明实施例还提供一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述各种可能的实现方式中所描述的虚拟IP的端口配置方法。
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包 含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要 求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。

Claims (26)

  1. 一种虚拟IP的端口配置方法,其特征在于,所述方法包括:
    接收端口配置信息,所述端口配置信息包括待配置服务器的属性信息和待配置的配置参数;所述端口配置信息的格式与预设的配置代码生成模板相符合;
    根据所述端口配置信息和所述配置代码生成模板,生成配置代码;所述配置代码用于提供给所述待配置服务器,以使所述待配置服务器根据所述配置代码进行配置。
  2. 根据权利要求1所述的方法,其特征在于,所述配置代码包括用于代表所述属性信息的指示信息;所述生成配置代码之后,还包括:
    接收服务器发送的配置请求,所述配置请求包括所述服务器的属性信息;
    根据所述服务器的属性信息,以及存储的多个配置代码各自的指示信息,确定目标配置代码;
    向所述服务器发送所述目标配置代码,以使所述服务器根据所述目标配置代码进行配置。
  3. 根据权利要求1所述的方法,其特征在于,所述生成配置代码之前,还包括:
    确定未存储有所述待配置服务器对应的历史配置代码;
    所述属性信息包括优先级;确定所述历史配置代码的优先级与所述属性信 息的优先级不一致。
  4. 根据权利要求1所述的方法,其特征在于,所述生成配置代码之后,还包括:
    若确定所述待配置服务器为已上架的服务器,则向所述待配置服务器发送配置通知,所述配置通知用于通知所述待配置服务器获取所述配置代码。
  5. 根据权利要求1所述的方法,其特征在于,所述配置代码生成模板包括服务器的类型、服务器的应用服务类型、服务器的应用服务类型组、网络协议、端口号、是否持久连接、持久连接的时间、客户端粒度、调度方式、探测方式、是否fallback、RS权重值、IP类型。
  6. 根据权利要求1至5任一项所述的方法,其特征在于,所述方法还包括:
    获取服务器在当前配置代码下的运行数据;
    根据所述运行数据,若确定所述服务器不满足预设服务要求,且存在所述服务器对应的候选配置代码,则通知所述服务器更换所述当前配置代码。
  7. 根据权利要求6所述的方法,其特征在于,所述运行数据包括在预设周期内接收到的请求数和接收到请求后的响应速度;
    根据所述运行数据,确定所述服务器不满足预设服务要求,包括:
    根据所述预设周期内接收到的请求数和所述服务器接收到请求后的响应速度,确定所述服务器的服务质量;
    确定所述服务质量低于预设服务质量。
  8. 根据权利要求6所述的方法,其特征在于,所述运行数据包括接收到的请求对应的协议、接收到的请求对应的端口、接收到的请求对应的连接状态;
    根据所述运行数据,确定所述服务器不满足预设服务要求,包括:
    若确定所述服务器接收到的请求对应的协议、所述服务器接收到的请求对应的端口、所述服务器接收到的请求对应的连接状态中任一项不符合所述服务器在所述当前配置代码下的配置要求。
  9. 根据权利要求6所述的方法,其特征在于,还包括:
    若确定不存在所述服务器对应的候选配置代码,则发送修改通知,所述修改通知用于通知对所述服务器所使用的所述当前配置代码进行修改。
  10. 一种虚拟IP的端口配置方法,应用于服务器,其特征在于,所述方法包括:
    发送配置请求,所述配置请求包括所述服务器的属性信息;
    接收至少一个配置代码,所述配置代码是根据所述服务器的属性信息以及存储的多个配置代码各自的指示信息确定的;所述指示信息用于代表所述配置代码适用的服务器的属性信息;
    根据所述至少一个配置代码进行配置。
  11. 根据权利要求10所述的方法,其特征在于,所述根据所述至少一个配置代码进行配置,包括:
    分别解析每个配置代码,得到所述每个配置代码分别对应的优先级信息;
    根据所述每个配置代码分别对应的优先级信息,确定优先级最高的配置代码;
    根据所述优先级最高的配置代码进行配置。
  12. 根据权利要求10所述的方法,其特征在于,所述发送配置请求之前,还包括:
    接收配置通知,所述配置通知用于通知所述服务器获取所述配置代码,所述配置通知是在确定所述服务器为已上架的服务器后发送的。
  13. 根据权利要求10至12中任一项所述的方法,其特征在于,所述方法还包括:
    接收配置修改通知,所述配置修改通知用于通知所述服务器更换当前配置代码,所述配置修改通知是在确定所述服务器不满足预设服务要求,且存在所述服务器对应的候选配置代码后发送的;
    更换所述当前配置代码。
  14. 一种虚拟IP的端口配置装置,其特征在于,所述装置包括:
    接收单元,用于接收端口配置信息,所述端口配置信息包括待配置服务器的属性信息和待配置的配置参数;所述端口配置信息的格式与预设的配置代码生成模板相符合;
    处理单元,用于根据所述端口配置信息和所述配置代码生成模板,生成配置代码;所述配置代码用于提供给所述待配置服务器,以使所述待配置服务器 根据所述配置代码进行配置。
  15. 根据权利要求14所述的装置,其特征在于,所述配置代码包括用于代表所述属性信息的指示信息;
    在所述处理单元生成配置代码之后,所述接收单元还用于:
    接收服务器发送的配置请求,所述配置请求包括所述服务器的属性信息;
    所述处理单元还用于:
    根据所述服务器的属性信息,以及存储的多个配置代码各自的指示信息,确定目标配置代码;
    所述装置还包括:
    发送单元,用于向所述服务器发送所述目标配置代码,以使所述服务器根据所述目标配置代码进行配置。
  16. 根据权利要求14所述的装置,其特征在于,所述处理单元生成配置代码之前,还用于:
    确定未存储有所述待配置服务器对应的历史配置代码;
    所述属性信息包括优先级;确定所述历史配置代码的优先级与所述属性信息的优先级不一致。
  17. 根据权利要求14所述的装置,其特征在于,所述处理单元生成配置代码之后,还用于:
    若确定所述待配置服务器为已上架的服务器,则所述发送单元向所述待配置服务器发送配置通知,所述配置通知用于通知所述待配置服务器获取所述配置代码。
  18. 根据权利要求14所述的装置,其特征在于,所述配置代码生成模板包括服务器的类型、服务器的应用服务类型、服务器的应用服务类型组、网络协议、端口号、是否持久连接、持久连接的时间、客户端粒度、调度方式、探测方式、是否fallback、RS权重值、IP类型。
  19. 根据权利要求14至18任一项所述的装置,其特征在于,所述接收单元还用于:
    获取服务器在当前配置代码下的运行数据;
    所述处理单元还用于:
    根据所述运行数据,若确定所述服务器不满足预设服务要求,且存在所述服务器对应的候选配置代码,则通知所述服务器更换所述当前配置代码。
  20. 根据权利要求19所述的装置,其特征在于,所述运行数据包括在预设周期内接收到的请求数和接收到请求后的响应速度;
    所述处理单元具体用于:
    根据所述预设周期内接收到的请求数和所述服务器接收到请求后的响应速度,确定所述服务器的服务质量;
    确定所述服务质量低于预设服务质量。
  21. 根据权利要求19所述的装置,其特征在于,所述运行数据包括接收到的请求对应的协议、接收到的请求对应的端口、接收到的请求对应的连接状态;
    所述处理单元具体用于:
    若确定所述服务器接收到的请求对应的协议、所述服务器接收到的请求对应的端口、所述服务器接收到的请求对应的连接状态中任一项不符合所述服务器在所述当前配置代码下的配置要求。
  22. 根据权利要求19所述的装置,其特征在于,所述处理单元还用于:
    若确定不存在所述服务器对应的候选配置代码,则所述发送单元发送修改通知,所述修改通知用于通知对所述服务器所使用的所述当前配置代码进行修改。
  23. 一种虚拟IP的端口配置装置,应用于服务器,其特征在于,所述装置包括:
    发送单元,用于发送配置请求,所述配置请求包括所述服务器的属性信息;
    接收单元,用于接收至少一个配置代码,所述配置代码是根据所述服务器的属性信息以及存储的多个配置代码各自的指示信息确定的;所述指示信息用于代表所述配置代码适用的服务器的属性信息;
    处理单元,用于根据所述至少一个配置代码进行配置。
  24. 根据权利要求23所述的装置,其特征在于,所述处理单元具体用于:
    分别解析每个配置代码,得到所述每个配置代码分别对应的优先级信息; 并根据所述每个配置代码分别对应的优先级信息,确定优先级最高的配置代码;以及根据所述优先级最高的配置代码进行配置。
  25. 根据权利要求23所述的装置,其特征在于,所述发送单元发送配置请求之前,所述接收单元还用于:
    接收配置通知,所述配置通知用于通知所述服务器获取所述配置代码,所述配置通知是在确定所述服务器为已上架的服务器后发送的。
  26. 根据权利要求23至25中任一项所述的装置,其特征在于,所述接收单元还用于:
    接收配置修改通知,所述配置修改通知用于通知所述服务器更换当前配置代码,所述配置修改通知是在确定所述服务器不满足预设服务要求,且存在所述服务器对应的候选配置代码后发送的;
    所述处理单元还用于:
    更换所述当前配置代码。
PCT/CN2018/113735 2018-10-23 2018-11-02 一种虚拟ip的端口配置方法及装置 WO2020082416A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US17/042,856 US20210021468A1 (en) 2018-10-23 2018-11-02 Method and apparatus for configuring ports of virtual ip
EP18938098.3A EP3869735A4 (en) 2018-10-23 2018-11-02 METHOD AND DEVICE FOR CONFIGURATION OF A VIRTUAL IP PORT

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811237824.5 2018-10-23
CN201811237824.5A CN109257226B (zh) 2018-10-23 2018-10-23 一种虚拟ip的端口配置方法及装置

Publications (1)

Publication Number Publication Date
WO2020082416A1 true WO2020082416A1 (zh) 2020-04-30

Family

ID=65046616

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/113735 WO2020082416A1 (zh) 2018-10-23 2018-11-02 一种虚拟ip的端口配置方法及装置

Country Status (4)

Country Link
US (1) US20210021468A1 (zh)
EP (1) EP3869735A4 (zh)
CN (1) CN109257226B (zh)
WO (1) WO2020082416A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104636189A (zh) * 2015-02-25 2015-05-20 哈尔滨工业大学 基于Xen的虚拟机部署系统及方法
WO2017003328A1 (en) * 2015-06-30 2017-01-05 Telefonaktiebolaget Lm Ericsson (Publ) Commissioning of virtualized entities
CN107273178A (zh) * 2016-04-06 2017-10-20 阿里巴巴集团控股有限公司 配置虚拟化系统的方法和装置
CN107979497A (zh) * 2017-12-26 2018-05-01 北京搜狐新媒体信息技术有限公司 一种自动配置方法和装置

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6950931B2 (en) * 2002-05-30 2005-09-27 International Business Machines Corporation Server configuration using profile templates
US9124497B2 (en) * 2008-11-26 2015-09-01 Red Hat, Inc. Supporting multiple name servers in a software provisioning environment
CN111669362B (zh) * 2014-06-09 2022-04-08 华为技术有限公司 信息处理方法、网络节点、验证方法和服务器
CN106161096A (zh) * 2016-07-15 2016-11-23 北京奇虎科技有限公司 端口配置方法及装置
CN106301906B (zh) * 2016-08-10 2020-02-07 青岛海信传媒网络技术有限公司 基于分布式系统的对象配置方法及装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104636189A (zh) * 2015-02-25 2015-05-20 哈尔滨工业大学 基于Xen的虚拟机部署系统及方法
WO2017003328A1 (en) * 2015-06-30 2017-01-05 Telefonaktiebolaget Lm Ericsson (Publ) Commissioning of virtualized entities
CN107273178A (zh) * 2016-04-06 2017-10-20 阿里巴巴集团控股有限公司 配置虚拟化系统的方法和装置
CN107979497A (zh) * 2017-12-26 2018-05-01 北京搜狐新媒体信息技术有限公司 一种自动配置方法和装置

Also Published As

Publication number Publication date
EP3869735A1 (en) 2021-08-25
CN109257226B (zh) 2021-08-27
CN109257226A (zh) 2019-01-22
US20210021468A1 (en) 2021-01-21
EP3869735A4 (en) 2021-12-15

Similar Documents

Publication Publication Date Title
US9542404B2 (en) Subpartitioning of a namespace region
CN104503845B (zh) 一种任务分发方法和系统
US8381015B2 (en) Fault tolerance for map/reduce computing
US9483482B2 (en) Partitioning file system namespace
CN111314125A (zh) 用于容错通信的系统和方法
WO2021031889A1 (zh) 一种升级方法、通信设备以及计算机可读存储介质
CN103516777A (zh) 用于在云计算机环境中进行供应的方法和系统
US11381451B2 (en) Methods, systems, and computer readable mediums for selecting and configuring a computing system to support a replicated application
CN104850416B (zh) 一种升级系统、方法、装置及云计算节点
US9262494B2 (en) Importing data into dynamic distributed databases
CN111400041A (zh) 服务器配置文件的管理方法、装置及计算机可读存储介质
WO2020082416A1 (zh) 一种虚拟ip的端口配置方法及装置
US20170031972A1 (en) Providing consistent tenant experiences for multi-tenant databases
US20210011749A1 (en) Systems and methods to monitor a computing environment
US20230082903A1 (en) Autonomic application service framework
CN114760304A (zh) 算力信息的处理方法、处理系统及算力网关
CN105094947B (zh) 一种虚拟计算资源的配额管理方法及系统
CN113641498A (zh) 一种数据核对方法、系统、设备及存储介质
CN113535358A (zh) 任务处理方法及装置
CN108123821B (zh) 一种数据分析方法及装置
US11876682B2 (en) Consensus-based node retirement process in a mesh
CN110045930B (zh) 虚拟平台管理存储设备卷的方法、装置、设备及介质
US11637749B1 (en) Metadata synchronization for remote managed systems
CN115373943A (zh) 一种新增资源的检查方法及装置
CN118277333A (zh) 文件迁移方法、装置、计算机设备、存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18938098

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2018938098

Country of ref document: EP

Effective date: 20210521