Business processing method of cluster system, cluster system, electronic equipment and product
By dynamically adjusting based on traffic parameters and functional status in the cluster system, the problem of insufficient stability of the cluster system is solved, traffic management and functional control of application nodes is realized, and the overall stability and reliability of the system are improved.
Patent Information
- Application Number
- CN202411288088.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-13
- Publication Date
- 2024-12-06
AI Technical Summary
The cluster system of modern enterprises is insufficient in stability due to software defects, hardware outdated or changes in the system operating environment, and cannot meet the requirements of high availability and reliability.
In the global WAN cluster and application cluster, the target application node and business functions are determined based on the node routing parameters and functional module parameters, and the current traffic parameter value and traffic parameter threshold, as well as the operating status of the business functions Current limit, speed limit and functional blocking processing improve the stability of the cluster system.
It effectively improves the stability of the cluster system, prevents application node traffic from overloading, and ensures the availability of business functions and high system availability.
Smart Images

Figure CN119094608A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to server cluster technology, and in particular to a service processing method of a cluster system, a cluster system, an electronic device and a product. Background Art
[0002] A cluster system refers to a dedicated dispatching system in which multiple departments share a group of wireless channels. The system uses channel sharing and dynamic allocation of idle channels. It has high channel utilization and short connection time. Multiple dispatching systems can share frequencies and equipment without interfering with each other.
[0003] In modern enterprise architecture, cluster systems are usually used, including outsourced systems (i.e. third-party systems) and endogenous systems (i.e. systems independently developed by the enterprise). However, with the continuous evolution of the business needs of enterprises and the rapid changes in the technical environment, such cluster systems may lack stability due to software defects, outdated hardware, or changes in the system operating environment, and cannot meet the enterprise's requirements for high availability and reliability. Summary of the invention
[0004] The embodiments of the present disclosure provide a service processing method of a cluster system, a cluster system, an electronic device and a product to solve the above problems.
[0005] In a first aspect of an embodiment of the present disclosure, a service processing method of a cluster system is provided, wherein the cluster system includes a global wide area network cluster group and an application cluster group, and the method is applied to the global wide area network cluster group, and the method includes:
[0006] In response to receiving a first service request for the application cluster group, obtaining a node routing parameter and a function module parameter corresponding to the first service request, wherein the function module parameter is a parameter of a service function module corresponding to an access address of the first access request;
[0007] Determine the target application node for requesting access based on the node routing parameters, and determine the target business function for requesting business processing based on the function module parameters;
[0008] Obtaining a current traffic parameter value of the target application node, and obtaining an operating state of the target service function, wherein the operating state includes one of an on state and a off state;
[0009] Based on the numerical relationship between the current traffic parameter value and the traffic parameter threshold, and the operating status of the target service function, service processing is performed on the first service request.
[0010] In some embodiments of the present disclosure, the performing service processing on the first service request based on the numerical relationship between the current traffic parameter value and the traffic intervention parameter threshold, and the running state of the service function, includes:
[0011] In response to the current traffic parameter value being greater than or equal to the traffic parameter threshold and the running state being an on state, sending the first service request to the target application node and performing at least one of flow limiting and speed limiting on the first service request;
[0012] In response to the running state being the closed state, rejecting the first service request and providing a web page prompt;
[0013] In response to the current traffic parameter value being less than the traffic parameter threshold and the running state being an on state, the first service request is sent to the target application node for service processing.
[0014] In some embodiments of the present disclosure, before the step of obtaining, in response to receiving a first service request for the application cluster group, node routing parameters and function module parameters corresponding to the first service request, further comprising:
[0015] Acquire a program added by the aspect-oriented programming method, wherein the program is used to perform flow intervention when a flow intervention condition is met after running, and the program code is also used to perform function blocking when a function blocking condition is met after running;
[0016] Among them, the traffic intervention includes intervening in the access traffic requesting access to the node, and the intervention includes limiting the flow and speed of the first business request; the function blocking includes blocking the business function of the application requesting access, and the blocking includes controlling the running status of the target business function.
[0017] In some embodiments of the present disclosure, after obtaining the program added by the aspect-oriented programming method, the method further includes:
[0018] Run the program in a sandbox environment.
[0019] In some embodiments of the present disclosure, before obtaining the program code including the traffic intervention processing content and the function blocking processing content added by the aspect-oriented programming method, the method further includes:
[0020] Acquire, in the sandbox environment, first node information of the at least one global wide area network node and second node information of the at least one application node;
[0021] Determine a routing relationship between the at least one global wide area network node and the at least one application node based on the first node information and the second node information, and determine service function information of the at least one application node;
[0022] The program code is determined based on the routing relationship and the business function information of the at least one application node.
[0023] In some embodiments of the present disclosure, before obtaining the program added by the aspect-oriented programming method, the method further includes:
[0024] Displaying a configuration page for the intervention process and the function blocking;
[0025] The intervention processing parameters and function blocking parameters configured by the user through the configuration page are obtained, so as to determine the content of the flow intervention and the content of the function blocking according to the intervention processing parameters and function blocking parameters.
[0026] In some embodiments of the present disclosure, it further includes:
[0027] Obtaining node type configuration information of each global wide area network node in the global wide area network cluster group and each application node in the application cluster group;
[0028] Determining the node type of each of the global wide area network nodes and each of the application nodes based on the node type configuration, wherein the node type includes a first node type and a second node type;
[0029] In response to receiving a second service request for the application cluster group, obtaining a node type of a requested access node of the second service request;
[0030] In response to the node type of the requested access node being the first node type, determining a first global wide area network node and a first application node from the global wide area network cluster group and the application cluster group, wherein the node type of the first global wide area network node and the node type of the first application node are both the first node type;
[0031] In response to the node type of the requested access node being the second node type, a second global wide area network node and a second application node are determined from the global wide area network cluster group and the application cluster group, wherein the node type of the second global wide area network node and the node type of the second application node are both the second node type.
[0032] According to a second aspect of an embodiment of the present disclosure, a service processing device of a cluster system is provided, including:
[0033] a first acquisition module, configured to, in response to receiving a first service request for the application cluster group, acquire node routing parameters and function module parameters corresponding to the first service request, wherein the function module parameters are parameters of a service function module corresponding to an access address of the first access request;
[0034] A determination module, used to determine a target application node for requesting access based on the node routing parameters, and to determine a target business function for requesting business processing based on the function module parameters;
[0035] A second acquisition module is used to acquire the current traffic parameter value of the target application node and acquire the running state of the target service function, wherein the running state includes one of an on state and a off state;
[0036] A processing module is used to perform business processing on the first business request based on the numerical relationship between the current traffic parameter value and the traffic parameter threshold, and the operating status of the target business function.
[0037] In some embodiments of the present disclosure, the processing module is used to send the first business request to the target application node and perform at least one of flow limiting and speed limiting on the first business request in response to the current traffic parameter value being greater than or equal to the traffic parameter threshold and the running state being the on state; the processing module is also used to reject the first business request and provide a web page prompt in response to the running state being the off state; the processing module is also used to send the first business request to the target application node for business processing in response to the current traffic parameter value being less than the traffic parameter threshold and the running state being the on state.
[0038] In some embodiments of the present disclosure, it further includes:
[0039] A program acquisition module, used to acquire a program added by the aspect-oriented programming method, wherein the program is used to perform flow intervention when a flow intervention condition is met after running, and the program code is also used to perform function blocking when a function blocking condition is met after running;
[0040] Among them, the traffic intervention includes intervening in the access traffic requesting access to the node, and the intervention includes limiting the flow and speed of the first business request; the function blocking includes blocking the business function of the application requesting access, and the blocking includes controlling the running status of the target business function.
[0041] In some embodiments of the present disclosure, the processing module is further configured to run the program in a sandbox environment.
[0042] In some embodiments of the present disclosure, the processing module is also used to obtain first node information of the at least one global wide area network node and second node information of the at least one application node in the sandbox environment; the processing module is also used to determine the routing relationship between the at least one global wide area network node and the at least one application node based on the first node information and the second node information, and determine the business function information of the at least one application node; the processing module is also used to determine the program based on the routing relationship and the business function information of the at least one application node.
[0043] In some embodiments of the present disclosure, it further includes:
[0044] A display module, used to display the configuration page of the intervention process and the function blocking;
[0045] The configuration parameter acquisition module is used to obtain the intervention processing parameters and function blocking parameters configured by the user through the configuration page, so as to determine the content of the flow intervention and the content of the function blocking according to the intervention processing parameters and function blocking parameters.
[0046] In some embodiments of the present disclosure, it further includes:
[0047] A node type configuration information acquisition module, used to acquire node type configuration information of each global wide area network node in the global wide area network cluster group and each application node in the application cluster group;
[0048] A node type determination module, configured to determine the node type of each of the global wide area network nodes and each of the application nodes based on the node type configuration, wherein the node type includes a first node type and a second node type;
[0049] The processing module is further used to, in response to receiving a second business request for the application cluster group, obtain the node type of the requested access node of the second business request; the processing module is further used to, in response to the node type of the requested access node being the first node type, determine a first global wide area network node and a first application node from the global wide area network cluster group and the application cluster group, wherein the node type of the first global wide area network node and the node type of the first application node are both the first node type; the processing module is further used to, in response to the node type of the requested access node being the second node type, determine a second global wide area network node and a second application node from the global wide area network cluster group and the application cluster group, wherein the node type of the second global wide area network node and the node type of the second application node are both the second node type.
[0050] According to a third aspect of an embodiment of the present disclosure, a cluster system is provided, including:
[0051] An application cluster group, comprising at least one application node, for providing business services through the at least one application node;
[0052] A global wide area network cluster group, comprising the above-mentioned device, is used for performing business processing through the device.
[0053] According to a fourth aspect of the embodiments of the present disclosure, an electronic device is provided, including:
[0054] A memory for storing a computer program product;
[0055] The processor is used to execute the computer program product stored in the memory, and when the computer program product is executed, the method described in the first aspect above is implemented.
[0056] According to a fifth aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the method described in the first aspect is implemented.
[0057] In a sixth aspect of an embodiment of the present disclosure, a computer program product is provided, including computer program instructions, which, when executed by a processor, implement the method described in the first aspect above.
[0058] The cluster system of the cluster system of the embodiment of the present disclosure has a cluster system service processing method, a cluster system, an electronic device and a product. When a global wide area network cluster group in the cluster system receives a service request, the target application node and the target service function requested for access are determined according to the node routing parameters and function module parameters corresponding to the service request. Since when the application node traffic is overloaded, it will affect the stability of the application node, and thus affect the stability of the cluster system, and the traffic can be reduced by prohibiting some service functions of the application. Therefore, the embodiment of the present disclosure performs service processing on the first access request according to the numerical relationship between the current traffic parameter value of the target application node and the traffic parameter threshold, and the operating status of the target service function, which can improve the stability of the cluster system.
[0059] The technical solution of the present disclosure is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] The accompanying drawings, which constitute a part of the specification, illustrate embodiments of the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0061] The present disclosure may be more clearly understood from the following detailed description with reference to the accompanying drawings, in which:
[0062] Figure 1 A flowchart of a service processing method of a cluster system in some embodiments of the present disclosure;
[0063] Figure 2 This is a system architecture diagram before the cluster system is set up with management nodes and running nodes in some examples of the present disclosure;
[0064] Figure 3 A system architecture diagram after setting management nodes and running nodes for a cluster system in some examples of the present disclosure;
[0065] Figure 4 This is a structural block diagram of a service processing device of a cluster system in one embodiment of the present disclosure;
[0066] Figure 5 The structure block diagram of an electronic device in one embodiment of the present disclosure is shown in FIG. DETAILED DESCRIPTION
[0067] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless otherwise specifically stated.
[0068] Those skilled in the art can understand that the terms "first" and "second" in the embodiments of the present disclosure are only used to distinguish different steps, devices or modules, etc., and neither represent any specific technical meaning nor indicate the necessary logical order between them.
[0069] It should also be understood that in the embodiments of the present disclosure, “plurality” may refer to two or more than two, and “at least one” may refer to one, two, or more than two.
[0070] It should also be understood that any component, data or structure mentioned in the embodiments of the present disclosure can generally be understood as one or more, unless explicitly limited or otherwise indicated in the context.
[0071] In addition, the term "and / or" in the present disclosure is only a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in the present disclosure generally indicates that the associated objects before and after are in an "or" relationship.
[0072] It should also be understood that the description of the various embodiments in the present disclosure focuses on the differences between the various embodiments, and the same or similar aspects thereof can be referenced to each other, and for the sake of brevity, they will not be described one by one.
[0073] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present disclosure, its application, or uses.
[0074] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.
[0075] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0076] The embodiments of the present disclosure can be applied to electronic devices such as terminal devices, computer systems, servers, etc., which can operate with many other general or special computing system environments or configurations. Examples of well-known terminal devices, computing systems, environments and / or configurations suitable for use with electronic devices such as terminal devices, computer systems, servers, etc. include, but are not limited to: personal computer systems, server computer systems, thin clients, thick clients, handheld or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, network personal computers, small computer systems, large computer systems, and distributed cloud computing technology environments including any of the above systems, etc.
[0077] Electronic devices such as terminal devices, computer systems, servers, etc. can be described in the general context of computer system executable instructions (such as program modules) executed by computer systems. Generally, program modules can include routines, programs, object programs, components, logic, data structures, etc., which perform specific tasks or implement specific abstract data types. Computer systems / servers can be implemented in a distributed cloud computing environment, where tasks are performed by remote processing devices linked through a communication network. In a distributed cloud computing environment, program modules can be located on local or remote computing system storage media including storage devices.
[0078] Figure 1 The present invention is a flowchart of a business processing method of a cluster system in some embodiments of the present invention. The cluster system includes a global wide area network (web) cluster group and an application (app) cluster group, and the method is applied to the web cluster group. The web cluster group includes at least one web node, and the app cluster group includes at least one app node. Each web node is used to receive business requests and route corresponding app nodes for business processing. Enterprise users can work through multiple apps provided by the app cluster group in the cluster system. Among them, the multiple apps provided by the app cluster group may include online forms, email systems, business processing approval systems, and the like.
[0079] like Figure 1 As shown, the service processing method of the cluster system includes the following steps:
[0080] S1: In response to receiving a first service request for an application cluster group, obtaining node routing parameters and function module parameters corresponding to the first service request, wherein the function module parameters are parameters of a service function module corresponding to an access address of the first access request.
[0081] After the web cluster group receives the first service request from the app cluster group, the target web node for processing the first service request can be determined by the load balancing strategy. The method of determining the target web node for processing the first service request by the load balancing strategy is: according to the current load of all web nodes in the web cluster group, the web node with the smallest current load is selected as the target web node.
[0082] The target web node extracts node routing parameters and function module parameters from the first service request. The node routing parameters include routing parameters from the target web node to the target app node requested for access. For example, if the target web node is web1 and the target application node is app1, the node routing parameters can be recorded as: web1->app1. The function module parameters are parameters of the service function module corresponding to the access address of the first access request, for example, path and parameter information such as employee / uc / find? id=123, which is used to request the target service function for service processing.
[0083] S2: Determine the target application node for the request to access based on the node routing parameters, and determine the target business function for the request to perform business processing based on the function module parameters.
[0084] The target web node can determine the target application node for the request to access according to the node routing parameters. For example, when the node routing parameters are web1->app1, app1 can be determined as the target app node.
[0085] The target web node can determine the target business function of the request for business processing according to the function module parameter. For example, if the function module parameter employee / uc / find?id=123 represents the scene 3D reconstruction function provided by app1, the scene 3D reconstruction function provided by app1 can be determined as the target business function.
[0086] S3: Obtain the current traffic parameter value of the target application node and obtain the operating state of the target business function, wherein the operating state includes one of an on state and a off state.
[0087] The target web node may send a traffic parameter acquisition request to the target app node, and after receiving the traffic parameter acquisition request, the target app node sends the current traffic parameter value of the target app node to the target web node. The current traffic parameter value of the target app node includes the total access traffic parameter value of the target app node, and may also include the access traffic parameter value of each functional module of the target app node.
[0088] The target web node detects the operating state of the target business function, that is, detects whether the target business function is available or unavailable, and determines whether the target business function is in an on state or a off state according to the detection result. The target web node may send a detection instruction to the target business function to obtain a return result indicating whether the target business function is available or unavailable. For example, when the return result of the detection instruction is 1, it indicates that the target business function is available, and when the return result of the detection instruction is 0, it indicates that the target business function is unavailable.
[0089] S4: Based on the numerical relationship between the current traffic parameter value and the traffic parameter threshold, and the operating status of the target service function, perform service processing on the first access request.
[0090] Since the stability of the application node will be affected when the traffic of the target app node is overloaded, and thus the stability of the cluster system will be affected, a traffic parameter threshold can be used to measure whether the traffic of the target app node is overloaded. When the current traffic parameter value of the target app node is greater than or equal to the traffic parameter threshold, it can be determined that the traffic of the target app node is overloaded.
[0091] In addition, since the traffic of various business functions of the target app node is different, some business functions of the target app node can be prohibited during the high traffic time period of the target app node, thereby controlling the traffic of the target app node during the high traffic time period, such as shutting down the target business function during the high traffic time period.
[0092] The target web node may determine whether to execute the first service request based on a numerical relationship between a current traffic parameter value of the target app node and a traffic parameter threshold value, and an operating status of a target service function.
[0093] In this embodiment, when the global wide area network cluster group in the cluster system receives a service request, the target application node and the target service function requested for access are determined according to the node routing parameters and function module parameters corresponding to the service request. Since when the application node traffic is overloaded, the stability of the application node will be affected, and thus the stability of the cluster system will be affected, and the traffic can be reduced by prohibiting some service functions of the application, the embodiment of the present disclosure performs service processing on the first access request according to the numerical relationship between the current traffic parameter value of the target application node and the traffic parameter threshold, and the operating status of the target service function, which can improve the stability of the cluster system.
[0094] In some embodiments of the present disclosure, step S4 may include:
[0095] S4-A: In response to the current traffic parameter value being greater than or equal to the traffic parameter threshold and the running state being on, sending the first service request to the target application node and performing at least one of flow limiting and speed limiting on the first service request.
[0096] If the target web node determines that the current traffic parameter value of the target app node is greater than or equal to the traffic parameter threshold and the target business function is in the turned-on state, it can be determined that the traffic of the target app node is overloaded but the target business function is available. At this time, the first business request is sent to the target app node, and the traffic of the target app node is reduced by limiting the flow and speed of the first business request.
[0097] S4-B: In response to the running state being the closed state, rejecting the first service request and providing a web page prompt.
[0098] If the target web node determines that the target business function is in a closed state, it rejects the first business request and provides a web page prompt, for example, displaying "the function requested to be accessed is not available" on the terminal web page that sends the first business request, or displaying digital information indicating that the function requested to be accessed is not available on the terminal web page that sends the first business request.
[0099] S4-C: In response to the current traffic parameter value being less than the traffic parameter threshold and the operation state being the on state, sending the first service request to the target application node for service processing.
[0100] If the target web node determines that the current traffic parameter value of the target app node is less than the traffic parameter threshold and the target business function is in the turned-on state, it can be determined that the traffic of the target app node is normal but the target business function is available. At this time, the first business request is sent to the target app node without limiting the flow and speed of the first business request.
[0101] In this embodiment, whether the traffic of the target app node is overloaded can be determined based on the numerical relationship between the current traffic parameter value of the target app node and the traffic parameter threshold, and whether the target business function is available can be determined based on the running status of the target business function. Furthermore, based on whether the traffic of the target app node is overloaded and whether the target business function is available, it is determined whether to execute the first business request and whether to limit the flow or speed of the first business request.
[0102] In some embodiments of the present disclosure, before step S1, the following steps may also be included:
[0103] S0: Get the program added by aspect-oriented programming method.
[0104] The program is used to perform traffic intervention when the traffic intervention conditions are met after running, and the program code is also used to perform functional blocking when the functional blocking conditions are met after running. Traffic intervention includes intervening in the access traffic of the requesting access node, and the intervention includes limiting the flow and speed of the first service request. Functional blocking includes blocking the service function of the requesting access application, and the blocking includes controlling the running state of the target service function.
[0105] Aspect Oriented Programming (AOP) method can be used to add a program for traffic intervention and functional risk control and blocking to at least one node of the app cluster group. Specifically, for a cluster system based on the Java language, mechanisms such as Java Agent and Instrument can be used to access the web node of the cluster system through an independent program using the Java Attach mechanism, and perform bytecode enhancement on the class files on the web node to achieve the intervention effect. In this embodiment, the traffic of the app node is mainly intervened, and the business functions of the app node are blocked. Among them, the Java Agent mechanism is implemented through the Instrumentation API in the Java Virtual Machine (JVM). The API allows developers to modify the bytecode before the application is loaded into the JVM, thereby enhancing and modifying the application. The Instrumentation mechanism is one of the key technologies for the implementation of Java Agent. It is an API provided by the Java platform that provides the ability to modify bytecode at runtime.
[0106] In this embodiment, the AOP method is used to add a program for traffic intervention and functional risk control and blocking to the web node. After the program is run, traffic intervention can be performed when the traffic intervention conditions are met, and functional blocking can be performed when the functional blocking conditions are met, thereby controlling the traffic of the app node, enhancing the stability of the app node, and further enhancing the stability of the cluster system.
[0107] In some embodiments of the present disclosure, after step S0, the process may further include: running a program for traffic intervention and functional risk control and blocking in a sandbox environment.
[0108] A sandbox program is installed in at least one web node of the web cluster group. The sandbox program can be started after obtaining the program for traffic intervention and functional risk control and blocking, or the sandbox program of the web node can be started according to the sandbox program startup instruction input by the user. After the sandbox program is started in at least one web node, the program for traffic intervention and functional risk control and blocking is run in the sandbox program. Sandbox is a technical means for isolating and managing a virtual environment of a network environment. In the disclosed embodiment, its function is to delete the program code in time when there is a problem with the program code or when traffic intervention or functional blocking is inappropriate without affecting the original data processing logic of the web node.
[0109] In this embodiment, a program for traffic intervention and functional risk control and blocking is run in a sandbox environment. When there is a problem with the program or traffic intervention or functional blocking is inappropriate, the program can be deleted without affecting the original data processing logic of the web node, thereby improving the stability of the web node and further improving the stability of the cluster system.
[0110] In some embodiments of the present disclosure, before step S0, the following steps may also be included:
[0111] A: Obtain first node information of at least one global wide area network node and second node information of at least one application node in a sandbox environment.
[0112] Each web node in the at least one web node of the web cluster group can communicate with other web nodes and at least one app node of the app cluster group in the sandbox environment, thereby obtaining node information of at least one web node and at least one app node. The node information of at least one web node is recorded as first node information, and the node information of at least one app node is recorded as second node information.
[0113] The first node information may include a web cluster group node list (which web node instances are there), web node address information (used to distribute requests), node identification (such as web1 / web2 / web3) and node attributes (whether it is a web type node or an app type node).
[0114] The second node information may include a list of app cluster group nodes (which app node instances are there), app node address information, node identification (for example, app1 / app2 / app3), node attributes (web type node or app type node), and business function information of each app node.
[0115] B: Based on the first node information and the second node information, determine a routing relationship between at least one global wide area network node and at least one application node, and determine service function information of at least one application node.
[0116] The identifier of each web node and app node can be extracted from the first node information and the second node information, so as to determine the routing parameters between each web node and each app node among the web nodes and app nodes that can communicate with each other. Exemplarily, web1 can be determined as the identifier of the first web node, app1 can be determined as the identifier of the first app node, and web1->app1 can be determined as the routing parameter between the first web node and the first app node.
[0117] The business function information of each app node, that is, the business functions that each app node can provide, can be extracted from the second node information. For example, app1 can provide the internal mail function of the enterprise, app2 can provide the scene 3D reconstruction function for the enterprise technicians, app3 can provide the financial settlement function for the internal financial personnel of the enterprise, and so on.
[0118] C: Determine a program based on the routing relationship and business function information of at least one application node.
[0119] The traffic intervention method and function blocking method of each app node can be determined based on the historical traffic of the app node and the process carrying capacity of the app node.
[0120] In this embodiment, based on the first node information of at least one web node and the second node information of at least one app node in the cluster system, the routing relationship between at least one web node and at least one app node and the business function information of at least one node can be determined, and then based on the routing relationship and business function information, a program for reasonable traffic intervention and function blocking can be generated, which helps to improve the operating stability of the cluster system.
[0121] In some embodiments of the present disclosure, before step S0, it may also include: displaying a configuration page for intervention processing and functional blocking; obtaining intervention processing parameters and functional blocking parameters configured by the user through the configuration page, so as to determine the content of traffic intervention and the content of functional blocking according to the intervention processing parameters and functional blocking parameters.
[0122] A configuration page for intervention processing and function blocking can be displayed on the web page of the administrator user of the cluster system, and the administrator user can select or input intervention processing parameters and function blocking parameters through the configuration page. After each web node in the web cluster group obtains the intervention processing parameters and function blocking parameters through the background server of the configuration page, the conditions and specific intervention contents of the traffic intervention, as well as the conditions and specific blocking contents of the function blocking can be determined according to the intervention processing parameters and function blocking parameters.
[0123] In this embodiment, the corresponding traffic intervention mode and function blocking mode can be determined according to the configuration information input by the user, so as to meet the user's personalized needs for cluster system stability.
[0124] In some embodiments of the present disclosure, the service processing method of the cluster system may further include the following steps:
[0125] Node type configuration information of each web node in the web cluster group and each app node in the app cluster group is obtained to indicate that the correspondingly configured nodes belong to the first node type and the second node type.
[0126] Based on the node type configuration, determine the node type of each web node and each app node. Among them, the first node type can be a management node, which is used to receive and process administrator user requests for the cluster system, such as system upgrade requests for the cluster system, module function adjustment requests, and other requests processed with administrator identity and authority. The first node type can be a running node, which is used to receive and process ordinary user requests for the cluster system, such as access requests to various business function pages, etc.
[0127] In response to receiving a second service request for the app cluster group, the node type of the requested access node of the second service request is obtained. For example, if the app node corresponding to the second service request is app1, and app1 is configured as the first node type, then the node type of the requested access node is the first node type.
[0128] In response to the node type of the access node being requested being the first node type, a first web node and a first app node are determined from the web cluster group and the app cluster group. The first app node is an app node corresponding to the second service request, and the first web node is a web node for receiving the second service request and routing it to the first app node. Both the first web node and the first app node are of the first node type.
[0129] In response to the node type of the access node being requested being the second node type, a second web node and a second app node are determined from the web cluster group and the app cluster group. The second app node is an app node corresponding to the second service request, and the second web node is a web node for receiving the second service request and routing it to the second app node. The second web node and the second app node are both of the second node type.
[0130] Figure 2 This is a system architecture diagram before the cluster system in some examples of this disclosure is set up with management nodes and running nodes. Figure 2 As shown, before the cluster system sets up the management node and the running node, no matter it is an administrator user request or a common user request, a web node is selected in the web cluster group, and then the selected web node connects to the corresponding app node to process the user request. Wherein, N and M are both integers greater than 0.
[0131] Figure 3 This is a structural block diagram of a cluster system after setting up management nodes and running nodes in one embodiment of the present disclosure. Figure 3 As shown, after the cluster system is not set up with management nodes and running nodes, the administrator user request is sent to the management node web1, which is connected to the management node app1, and the management node app1 processes the administrator user request. The ordinary user request is sent to the web node (for example, web2) in the running node, which is connected to the app node (for example, app2) in the running node, and the app node processes the ordinary user request. Wherein, K and L are both integers greater than 0.
[0132] Will Figure 2 and Figure 3 By comparing the cluster system shown in the figure, it can be seen that nodes of different node types process corresponding user requests, which can separate management user requests from ordinary user requests and ensure that management user operations (such as application upgrades, modeling, monitoring and operation and maintenance, etc.) do not affect the execution of ordinary user requests.
[0133] In some optional embodiments, the management function is assigned to a fixed web node via an independent domain name.
[0134]
[0135]
[0136] Management Menu
[0137] As shown in the management function table, when the target web node of the user access request is web3 (management node) and the target app node is app3 (management node), web3 routes the request to app3 to process the user access request; when the target web node of the user access request is web1 / web2 (running node) and the target app node is app1 / app2 (running node), web1 / web2 routes the request to app1 / app2 to process the user access request.
[0138] In this embodiment, by setting node type attributes for the nodes of the cluster system, corresponding user requests are processed by nodes of different node types, which can separate management user requests and ordinary user requests, ensure that management user operations do not affect the execution of ordinary user requests, and enhance the operating stability of the cluster system.
[0139] Figure 4 FIG. 1 is a structural block diagram of a service processing device of a cluster system in one embodiment of the present disclosure. Figure 4 As shown, the service processing device of the cluster system includes:
[0140] A first acquisition module 100 is used to, in response to receiving a first service request for an application cluster group, acquire a node routing parameter and a function module parameter corresponding to the first service request, wherein the function module parameter is a parameter of a service function module corresponding to an access address of the first access request;
[0141] A determination module 200, for determining a target application node for requesting access based on a node routing parameter, and determining a target business function for requesting business processing based on a function module parameter;
[0142] The second acquisition module 300 is used to acquire the current traffic parameter value of the target application node and acquire the operation state of the target service function, wherein the operation state includes one of an on state and a off state;
[0143] The processing module 400 is used to perform service processing on the first service request based on the numerical relationship between the current traffic parameter value and the traffic parameter threshold, and the operating status of the target service function.
[0144] In some embodiments of the present disclosure, the processing module 400 is used to send a first business request to a target application node and perform at least one of flow limiting and speed limiting on the first business request in response to a current traffic parameter value being greater than or equal to a traffic parameter threshold and the operating state being in an on state; the processing module 400 is also used to reject the first business request and provide a web page prompt in response to the operating state being in a off state; the processing module 400 is also used to send the first business request to the target application node for business processing in response to a current traffic parameter value being less than a traffic parameter threshold and the operating state being in an on state.
[0145] In some embodiments of the present disclosure, the service processing device of the cluster system further includes:
[0146] A program acquisition module, used to acquire a program added by the aspect-oriented programming method, wherein the program is used to perform flow intervention when a flow intervention condition is met after running, and the program code is also used to perform function blocking when a function blocking condition is met after running;
[0147] Among them, traffic intervention includes intervention processing on the access traffic requesting access to the node, and the intervention processing includes flow and speed limiting of the first business request; function blocking includes blocking processing on the business function of the application requesting access, and the blocking processing includes controlling the operating status of the target business function.
[0148] In some embodiments of the present disclosure, the processing module 400 is also used to run a program in a sandbox environment.
[0149] In some embodiments of the present disclosure, the processing module 400 is also used to obtain first node information of at least one global wide area network node and second node information of at least one application node in a sandbox environment; the processing module 400 is also used to determine the routing relationship between at least one global wide area network node and at least one application node based on the first node information and the second node information, and determine the business function information of at least one application node; the processing module 400 is also used to determine a program based on the routing relationship and the business function information of at least one application node.
[0150] In some embodiments of the present disclosure, the service processing device of the cluster system further includes:
[0151] A display module, used to display the configuration page of intervention processing and function blocking;
[0152] The configuration parameter acquisition module is used to obtain the intervention processing parameters and function blocking parameters configured by the user through the configuration page, so as to determine the content of traffic intervention and the content of function blocking according to the intervention processing parameters and function blocking parameters.
[0153] In some embodiments of the present disclosure, the service processing device of the cluster system further includes:
[0154] A node type configuration information acquisition module, used to acquire node type configuration information of each global wide area network node in the global wide area network cluster group and each application node in the application cluster group;
[0155] A node type determination module, configured to determine the node type of each global wide area network node and each application node based on the node type configuration, wherein the node type includes a first node type and a second node type;
[0156] Among them, the processing module 400 is also used to obtain the node type of the requested access node of the second business request in response to receiving a second business request for the application cluster group; the processing module 400 is also used to determine the first global wide area network node and the first application node from the global wide area network cluster group and the application cluster group in response to the node type of the requested access node being the first node type, wherein the node type of the first global wide area network node and the node type of the first application node are both the first node type; the processing module 400 is also used to determine the second global wide area network node and the second application node from the global wide area network cluster group and the application cluster group in response to the node type of the requested access node being the second node type, wherein the node type of the second global wide area network node and the node type of the second application node are both the second node type.
[0157] The present disclosure also provides a cluster system, including:
[0158] An application cluster group, including at least one application node, for providing business services through the at least one application node;
[0159] The global wide area network cluster group includes the service processing device of the cluster system, and is used for performing service processing through the service processing device of the cluster system.
[0160] It should be noted that the specific implementation of the business processing device of the cluster system in the embodiment of the present disclosure is similar to the specific implementation of the business processing method of the cluster system in the embodiment of the present disclosure. Please refer to the description of the business processing method of the cluster system for details. In order to reduce redundancy, it will not be repeated.
[0161] In addition, an embodiment of the present disclosure further provides an electronic device, including:
[0162] Memory for storing computer programs;
[0163] The processor is used to execute the computer program stored in the memory, and when the computer program is executed, the service processing method of the cluster system described in any one of the above embodiments of the present disclosure is implemented.
[0164] Below, reference Figure 5 To describe the electronic device according to the embodiment of the present disclosure. Figure 5 As shown, the electronic device includes one or more processors and memory.
[0165] The processor may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device to perform desired functions.
[0166] The memory may store one or more computer program products, and the memory may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, a random access memory (RAM) and / or a cache memory (cache), etc. The non-volatile memory may include, for example, a read-only memory (ROM), a hard disk, a flash memory, etc. One or more computer program products may be stored on the computer-readable storage medium, and the processor may run the computer program product to implement the service processing method of the cluster system of each embodiment of the present disclosure described above and / or other desired functions.
[0167] In one example, the electronic device may further include: an input device and an output device, and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).
[0168] In addition, the input device may also include, for example, a keyboard, a mouse, and the like.
[0169] The output device can output various information to the outside, including determined distance information, direction information, etc. The output device can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, and the like.
[0170] Of course, to simplify, Figure 5 Only some of the components related to the present disclosure in the electronic device are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application situations, the electronic device may further include any other appropriate components.
[0171] In addition, an embodiment of the present disclosure may also be a computer-readable storage medium on which computer program instructions are stored. When the computer program instructions are executed by a processor, the processor executes the steps in the business processing method of the cluster system according to various embodiments of the present disclosure described in the above part of this specification.
[0172] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0173] In addition to the above-mentioned methods and devices, an embodiment of the present disclosure may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps in the business processing method of the cluster system according to various embodiments of the present disclosure described in the above part of this specification.
[0174] The computer program product may be written in any combination of one or more programming languages to write program code for performing the operations of the disclosed embodiments, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0175] The basic principles of the present disclosure are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present disclosure are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present disclosure. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, and are not limitations. The above details do not limit the present disclosure to the necessity of adopting the above specific details to be implemented.
[0176] Each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system embodiment, since it basically corresponds to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0177] The block diagrams of the devices, apparatuses, equipment, and systems involved in this disclosure are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagrams. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including," "comprising," "having," and the like are open words, referring to "including but not limited to," and can be used interchangeably therewith. The words "or" and "and" used herein refer to the words "and / or," and can be used interchangeably therewith, unless the context clearly indicates otherwise. The word "such as" used herein refers to the phrase "such as but not limited to," and can be used interchangeably therewith.
[0178] The method and apparatus of the present disclosure may be implemented in many ways. For example, the method and apparatus of the present disclosure may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above order of steps for the method is for illustration only, and the steps of the method of the present disclosure are not limited to the order specifically described above, unless otherwise specifically stated. In addition, in some embodiments, the present disclosure may also be implemented as a program recorded in a recording medium, which includes machine-readable instructions for implementing the method according to the present disclosure. Therefore, the present disclosure also covers a recording medium storing a program for executing the method according to the present disclosure.
[0179] It should also be noted that in the apparatus, device and method of the present disclosure, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present disclosure.
[0180] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present disclosure. Therefore, the present disclosure is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
[0181] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present disclosure to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.
Claims
1. A service processing method of a cluster system, characterized in that: The method is applied to a global wide area network cluster group, and the method comprises: In response to receiving a first service request for the application cluster group, obtaining a node routing parameter and a function module parameter corresponding to the first service request, wherein the function module parameter is a parameter of a service function module corresponding to an access address of the first access request; Determine the target application node for requesting access based on the node routing parameters, and determine the target business function for requesting business processing based on the function module parameters; Obtaining a current traffic parameter value of the target application node, and obtaining an operating state of the target service function, wherein the operating state includes one of an on state and a off state; Based on the numerical relationship between the current traffic parameter value and the traffic parameter threshold, and the operating status of the target service function, service processing is performed on the first service request.
2. The method according to claim 1, characterized in that The performing service processing on the first service request based on the numerical relationship between the current traffic parameter value and the traffic intervention parameter threshold, and the running state of the service function, includes: In response to the current traffic parameter value being greater than or equal to the traffic parameter threshold and the running state being an on state, sending the first service request to the target application node and performing at least one of flow limiting and speed limiting on the first service request; In response to the running state being the closed state, rejecting the first service request and providing a web page prompt; In response to the current traffic parameter value being less than the traffic parameter threshold and the running state being an on state, the first service request is sent to the target application node for service processing.
3. The method according to claim 2, characterized in that Before the step of obtaining the node routing parameters and the function module parameters corresponding to the first service request in response to receiving the first service request for the application cluster group, the step further includes: Acquire a program added by the aspect-oriented programming method, wherein the program is used to perform flow intervention when a flow intervention condition is met after running, and the program code is also used to perform function blocking when a function blocking condition is met after running; Among them, the traffic intervention includes intervening in the access traffic requesting access to the node, and the intervention includes limiting the flow and speed of the first business request; the function blocking includes blocking the business function of the application requesting access, and the blocking includes controlling the running status of the target business function.
4. The method according to claim 3, characterized in that After acquiring the program added by the aspect-oriented programming method, the method further includes: Run the program in a sandbox environment.
5. The method according to claim 4, characterized in that Before obtaining the program added by the aspect-oriented programming method, the method further includes: Acquire, in the sandbox environment, first node information of the at least one global wide area network node and second node information of the at least one application node; Determine a routing relationship between the at least one global wide area network node and the at least one application node based on the first node information and the second node information, and determine service function information of the at least one application node; The program is determined based on the routing relationship and the business function information of the at least one application node.
6. The method according to any one of claims 3 to 5, characterized in that: Before obtaining the program added by the aspect-oriented programming method, the method further includes: Displaying a configuration page for the intervention process and the function blocking; The intervention processing parameters and function blocking parameters configured by the user through the configuration page are obtained, so as to determine the content of the flow intervention and the content of the function blocking according to the intervention processing parameters and function blocking parameters.
7. The method according to any one of claims 1 to 5, characterized in that: Also includes: Obtaining node type configuration information of each global wide area network node in the global wide area network cluster group and each application node in the application cluster group; Determining the node type of each of the global wide area network nodes and each of the application nodes based on the node type configuration, wherein the node type includes a first node type and a second node type; In response to receiving a second service request for the application cluster group, obtaining a node type of a requested access node of the second service request; In response to the node type of the requested access node being the first node type, determining a first global wide area network node and a first application node from the global wide area network cluster group and the application cluster group, wherein the node type of the first global wide area network node and the node type of the first application node are both the first node type; In response to the node type of the requested access node being the second node type, a second global wide area network node and a second application node are determined from the global wide area network cluster group and the application cluster group, wherein the node type of the second global wide area network node and the node type of the second application node are both the second node type.
8. A cluster system, characterized in that: include: An application cluster group, comprising at least one application node, configured to provide a business service through the at least one application node; A global wide area network cluster group, used for performing business processing by the method described in any one of claims 1-7.
9. An electronic device, characterized in that: include: A memory for storing a computer program product; A processor, configured to execute a computer program product stored in the memory, wherein when the computer program product is executed, the method according to any one of claims 1 to 7 is implemented.
10. A computer program product comprising computer program instructions, characterized in that When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 7 is implemented.
