CN111147600B - Service execution method and terminal under cluster environment - Google Patents
Service execution method and terminal under cluster environment Download PDFInfo
- Publication number
- CN111147600B CN111147600B CN201911410549.7A CN201911410549A CN111147600B CN 111147600 B CN111147600 B CN 111147600B CN 201911410549 A CN201911410549 A CN 201911410549A CN 111147600 B CN111147600 B CN 111147600B
- Authority
- CN
- China
- Prior art keywords
- service
- target
- cluster environment
- routing
- routing rule
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0893—Assignment of logical groups to network elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/12—Discovery or management of network topologies
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/14—Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic
- H04L63/1408—Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic by monitoring network traffic
- H04L63/1425—Traffic logging, e.g. anomaly detection
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/51—Discovery or management thereof, e.g. service location protocol [SLP] or web services
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a service execution method and a terminal under a cluster environment, wherein the method comprises the following steps: acquiring service request information aiming at target services in a cluster environment, wherein the cluster environment comprises a development function, a test function and a production function, and the target services are one or more of the development service, the test service and the production service; selecting a target strategy corresponding to the service request information from a strategy set of the cluster environment; and calling a plurality of functional nodes according to the routing rule indicated by the target policy to execute the target service. According to the technical scheme, the technical scheme of configuring various environments is replaced by configuring the integral cluster environment, so that repeated configuration of services is reduced, and labor cost and resource consumption are saved.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a service execution method and a terminal in a cluster environment.
Background
At present, a general environment management adopts a hardware isolation mode, specifically, services required in the environment are respectively deployed for different environment deployments, for example, a test environment is deployed for test work, and a development environment is deployed for development work.
However, due to the diversity of the environment and the uncertainty of the actual demand, if the same service is needed in different environments in the manner of hardware isolation, the same service needs to be deployed in different environments, which causes a serious waste of labor cost and environmental resources.
Therefore, how to avoid the waste of labor cost and environmental resources caused by the repeated deployment of the same service becomes a technical problem to be solved urgently at present.
Disclosure of Invention
The invention provides a service execution method and a terminal under a cluster environment, which solve the technical problems of serious labor cost and environmental resource waste caused by respectively deploying the same service in different environments in the related art.
The first aspect of the present invention provides a service execution method in a cluster environment, including: acquiring service request information aiming at target services in a cluster environment, wherein the cluster environment comprises a development function, a test function and a production function, and the target services are one or more of the development service, the test service and the production service; selecting a target policy corresponding to the service request information from a policy set of the cluster environment; calling a plurality of functional nodes according to the routing rule indicated by the target strategy so as to execute the target service; acquiring a newly added routing rule in the cluster environment; generating all feasible orderings for all routing rules used by the strategy set and the newly added routing rule according to a specified routing rule filtering mode; generating a plurality of new strategies with the same number as the total feasible sequences according to the total feasible sequences; storing the plurality of new policies to the set of policies.
In the foregoing embodiment of the present invention, optionally, the step of invoking the plurality of function nodes according to the routing rule indicated by the target policy includes: determining the working sequence of the plurality of functional nodes according to the routing rule indicated by the target strategy; and sequentially calling the plurality of functional nodes according to the working sequence.
In the foregoing embodiment of the present invention, optionally, the step of invoking the plurality of function nodes according to the routing rule indicated by the target policy includes: acquiring a routing sub-rule corresponding to each functional node from the routing rules indicated by the target strategy; sending the routing sub-rule to the corresponding functional node; and calling each functional node to interact with other functional nodes in the plurality of functional nodes according to the routing sub-rule of the functional node.
In the above embodiment of the present invention, optionally, the method further includes: detecting whether the service flow in the process of executing the target service is abnormal or not; and under the condition that the abnormal business flow in the target service executing process is detected to be abnormal, replacing the abnormal function node by using a standby node of the abnormal function node associated with the fault information.
A second aspect of the present invention provides a service execution apparatus in a cluster environment, including: the system comprises a service request information acquisition unit, a service request information acquisition unit and a service processing unit, wherein the service request information acquisition unit is used for acquiring service request information of a target service in a cluster environment, the cluster environment comprises a development function, a test function and a production function, and the target service is one or more of the development service, the test service and the production service; a target policy selecting unit, configured to select a target policy corresponding to the service request information from a policy set of the cluster environment; the target service execution unit calls a plurality of functional nodes according to the routing rule indicated by the target strategy so as to execute the target service; a routing rule adding unit, configured to obtain an additional routing rule in the cluster environment; a feasible sequence generating unit, configured to generate all feasible sequences for all routing rules used by the policy set and the newly added routing rule according to a specified routing rule filtering manner; a new strategy generating unit, configured to generate a plurality of new strategies that are equal in number to all the feasible orderings according to all the feasible orderings; and the strategy storage unit is used for storing the new strategies to the strategy set.
In the foregoing embodiment of the present invention, optionally, the target service execution unit is configured to: determining the working sequence of the plurality of functional nodes according to the routing rule indicated by the target strategy; and sequentially calling the plurality of functional nodes according to the working sequence.
In the foregoing embodiment of the present invention, optionally, the target service execution unit is configured to: acquiring a routing sub-rule corresponding to each functional node from the routing rules indicated by the target strategy; sending the routing sub-rule to the corresponding functional node; and calling each functional node to interact with other functional nodes in the plurality of functional nodes according to the routing sub-rule of the functional node.
A third aspect of the present invention provides a terminal, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being arranged to perform the method of any of the first aspects above.
A fourth aspect of the present invention provides a computer-readable storage medium storing computer-executable instructions that, when executed by a processor, implement the method flow of any one of the first aspects.
According to the technical scheme, aiming at the technical problem that serious labor cost and environmental resource waste are caused by respectively deploying the same service in different environments in the related technology, the invention provides that any functions needing environment deployment, such as development functions, test functions, production functions and the like, are integrated in the same cluster environment, and the development services, the test functions and the production services can be carried out in the cluster environment, so that the same configuration contents of service information, environmental information and the like are all configured in the cluster environment for one time, and the labor cost and the resource occupation amount are greatly saved.
Specifically, while in a clustered environment, service request information is obtained for a target service in the clustered environment, wherein the clustered environment includes, but is not limited to, development functionality, test functionality, and production functionality, and the target service is not limited to one or more of development services, test services, and production services.
The cluster environment has a policy set, and each service in the policy set is provided with a corresponding policy, so that the contents such as a service identifier or a policy identifier corresponding to the service can be obtained from the service request information, and the policy marked with the service identifier or the policy identifier is selected from the policy set as a target policy required by a target service requested by the service request information.
And for each policy in the policy set, the policy includes a routing rule required by the service corresponding to the policy, the routing rule represents a path required by running the service, and indicates a plurality of functional nodes required by running the service, an order in which the functional nodes operate, and the like. Therefore, different strategies correspond to different routing rules, and different strategies are used for executing different services, so that different services can realize logic isolation through different routing rules, and as long as multiple services are executed sequentially according to an effective execution sequence, negative influences such as resource preemption and the like cannot be generated among multiple services.
Thereby, the plurality of functional nodes may be invoked to execute the target service in accordance with the routing rules indicated by the target policy.
According to the technical scheme, the technical scheme of configuring various environments is replaced by configuring the integral cluster environment, repeated configuration of services is reduced, labor cost and resource consumption are saved, and various services in the cluster environment are logically isolated, so that smooth operation of each service is guaranteed.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 illustrates a flow diagram of a method for service execution in a cluster environment, according to one embodiment of the invention;
FIG. 2 illustrates a flow diagram for expanding a clustered environment in accordance with one embodiment of the present invention;
FIG. 3 is a functional node operational diagram in a cluster environment, according to an embodiment of the present invention;
FIG. 4 shows a schematic diagram of routing rule assignment according to one embodiment of the invention;
FIG. 5 illustrates a schematic diagram of routing rule assignment according to another embodiment of the present invention;
FIG. 6 illustrates a block diagram of a service execution apparatus in a cluster environment, according to an embodiment of the present invention;
fig. 7 shows a block diagram of a terminal according to an embodiment of the invention.
Detailed Description
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
FIG. 1 shows a flow diagram of a method of service execution in a cluster environment, according to one embodiment of the invention.
As shown in fig. 1, a service execution method in a cluster environment according to an embodiment of the present invention includes:
The method comprises the steps of acquiring service request information aiming at target services in a cluster environment when the cluster environment is in the cluster environment, wherein the cluster environment comprises but is not limited to development functions, test functions and production functions, and the target services are not limited to one or more of the development services, the test services and the production services.
And 104, selecting a target policy corresponding to the service request information from the policy set of the cluster environment.
The cluster environment has a policy set, and each service in the policy set is provided with a corresponding policy, so that the contents such as a service identifier or a policy identifier corresponding to the service can be obtained from the service request information, and the policy marked with the service identifier or the policy identifier is selected from the policy set as a target policy required by a target service requested by the service request information.
And 106, calling a plurality of functional nodes according to the routing rule indicated by the target policy to execute the target service.
And for each policy in the policy set, the policy includes a routing rule required by the service corresponding to the policy, the routing rule represents a path required by running the service, and indicates a plurality of functional nodes required by running the service, an order in which the functional nodes operate, and the like. Therefore, different strategies correspond to different routing rules, and different strategies are used for executing different services, so that different services can realize logic isolation through different routing rules, and as long as multiple services are executed sequentially according to an effective execution sequence, negative influences such as resource preemption and the like cannot be generated among multiple services.
Thereby, the plurality of functional nodes may be invoked to execute the target service in accordance with the routing rules indicated by the target policy.
In summary, the technical solution of the present invention provides a method for integrating any functions requiring environment deployment, such as development functions, test functions, and production functions, into a same cluster environment, aiming at the technical problem that serious human costs and environmental resource waste are caused by respectively deploying the same service in different environments in the related art, and since the development services, the test services, and the production services can be performed in the cluster environment, the same configuration content, such as service information, environmental information, and the like, is all configured in the cluster environment for one time, thereby greatly saving labor costs and resource occupation.
FIG. 2 illustrates a flow diagram for extending a cluster environment according to one embodiment of the invention.
As shown in fig. 2, the process of expanding the cluster environment according to an embodiment of the present invention includes:
The developer or the system can add new function nodes according to the actual requirement, and the connection between the added function nodes and the existing function nodes forms a new routing rule. Since the routing rule is equivalent to the network protocol between the functional nodes, a newly added routing rule can be directly set for the system, so that the system can obtain the function corresponding to the new network protocol.
And step 204, generating all feasible sequences for all routing rules and newly added routing rules used by the strategy set according to the specified routing rule filtering mode.
And step 206, generating a plurality of new strategies with the same quantity as all the feasible sequences according to all the feasible sequences.
All the functional nodes related to all the routing rules used by the newly added routing rule and the strategy set can be arranged and combined through the appointed rule filter to obtain all the feasible sequences, and then a plurality of new strategies with the same quantity of all the feasible sequences are generated according to all the feasible sequences.
According to the technical scheme, in the dimensionality extension environment deployment of the network protocol, when a new routing rule is obtained, the newly added routing rule and the existing routing rule are combined, sequenced and the like, so that all possible combined routing rules based on the newly added routing rule and the existing routing rule are obtained, finally, a corresponding strategy is generated according to all the possible combined routing rules, in the process, the newly added strategy can realize new service, and therefore the extension of the cluster environment function is completed.
FIG. 3 is a functional node operational diagram in a cluster environment, according to an embodiment of the invention.
As shown in fig. 3, a plurality of systems s1, s2, s3, s4, s5, and s6 in the cluster environment are respectively used as one functional node, and originally provided with routing rules s1 → s2 → s3 → s4, s1 → s2 → s3 → s5 → s6, and each performs a development service.
Then, s2 is newly added with version s2-tag2, s3 is newly added with versions s3-tag1 and s3-tag2, s4 is newly added with version s4-tag1, s5 is newly added with version s5-tag2, and the newly added versions need to execute test services respectively.
At this time, when the original routing rule s1 → s2 → s3 → s4 and s1 → s2 → s3 → s5 → s6 is executed, it is found that the functional node therein has a new version and needs to execute a corresponding test service. Because the development function and the test function are both deployed in the cluster environment, existing functional nodes do not need to be additionally deployed for the test service to be executed, and only a newly-added routing rule including a version to be tested needs to be set.
Further, the newly added routing rule includes: s1 → s2-tag2 → s3-tag2 → s4, s1 → s2 → s3-tag2 → s4-tag1 and s1 → s2-tag2 → s3-tag2 → s5-tag2 → s6, s1 → s2 → s3-tag1 → s5 → s 6.
Therefore, the newly added routing rule is added according to the newly added service required to be executed, and the deployment of the cluster environment is updated.
Fig. 4 shows a schematic diagram of routing rule assignment according to an embodiment of the present invention.
The routing rules may be transformed and distributed by a rule configuration management module, and as shown in fig. 4, a proxy layer may be provided for parsing the rules and executing the corresponding policies. In other words, the working order of the plurality of functional nodes may be determined according to the routing rule indicated by the target policy given by the proxy layer, and then the plurality of functional nodes may be sequentially invoked according to the working order.
In the process, the analysis of the rules and the determination of the corresponding strategies are executed in the agent layer, and a plurality of systems in the cluster environment only execute corresponding contents quickly according to instructions of the agent layer without analyzing the rules, so that the burden of each system in the cluster environment is reduced.
Fig. 5 shows a schematic diagram of routing rule assignment according to another embodiment of the present invention.
The routing rules can be directly converted and distributed to a plurality of functional nodes by a rule configuration management module, specifically, when any service is executed, a routing sub-rule corresponding to each functional node is obtained from the routing rules indicated by a target strategy corresponding to the service, and the routing sub-rules are sent to the corresponding functional nodes. In this way, each of the functional nodes may be invoked to interact with other ones of the plurality of functional nodes according to its own routing sub-rule.
Therefore, the network protocol (routing sub-rule) followed by each functional node is directly distributed to each functional node, an agent layer does not need to be additionally arranged, and the overall resource of the cluster environment is saved.
In addition, in the embodiment of fig. 1 to 5, the method further includes: detecting whether the service flow in the process of executing the target service is abnormal or not; and under the condition that the abnormal business flow in the target service executing process is detected to be abnormal, replacing the abnormal function node by using a standby node of the abnormal function node associated with the fault information.
Specifically, whether a fault occurs in the target service execution process can be determined by monitoring the traffic flow in the target service execution process, for example, if the traffic flow in the target service execution process suddenly jumps to 0, it indicates that a functional node required by the target service is down and the traffic flow cannot pass through the functional node. In this case, in order to reduce the effect of the failure to the maximum extent, the standby node of the functional node can be switched to quickly, so that the standby node can replace the failed node to execute the strategy of the target service.
FIG. 6 shows a block diagram of a service execution apparatus in a cluster environment according to an embodiment of the present invention.
As shown in fig. 6, a service execution apparatus 600 in a cluster environment according to an embodiment of the present invention includes: a service request information obtaining unit 602, configured to obtain service request information for a target service in a clustered environment, where the clustered environment includes a development function, a test function, and a production function, and the target service is one or more of the development service, the test service, and the production service; a target policy selecting unit 604, configured to select a target policy corresponding to the service request information from the policy set in the cluster environment; and the target service execution unit 606 invokes a plurality of functional nodes according to the routing rule indicated by the target policy to execute the target service.
In the above embodiment of the present invention, optionally, the method further includes: a routing rule adding unit, configured to obtain an additional routing rule in the cluster environment; a feasible sequence generating unit, configured to generate all feasible sequences for all routing rules used by the policy set and the newly added routing rule according to a specified routing rule filtering manner; a new strategy generating unit, configured to generate, according to the total feasible orderings, a plurality of new strategies that are equal in number to the total feasible orderings; and the strategy storage unit is used for storing the new strategies to the strategy set.
In the foregoing embodiment of the present invention, optionally, the target service execution unit 606 is configured to: determining the working sequence of the plurality of functional nodes according to the routing rule indicated by the target strategy; and sequentially calling the plurality of functional nodes according to the working sequence.
In the foregoing embodiment of the present invention, optionally, the target service execution unit 606 is configured to: acquiring a routing sub-rule corresponding to each functional node from the routing rules indicated by the target strategy; sending the routing sub-rule to the corresponding functional node; and calling each functional node to interact with other functional nodes in the plurality of functional nodes according to the routing sub-rule of the functional node.
The service execution apparatus 600 in the cluster environment uses the scheme described in any one of the embodiments shown in fig. 1 to fig. 5, and therefore, all the technical effects described above are achieved, and are not described again here.
Fig. 7 shows a block diagram of a terminal according to an embodiment of the invention.
As shown in fig. 7, a terminal 700 of one embodiment of the present invention includes at least one memory 702; and a processor 704 communicatively coupled to the at least one memory 702; wherein the memory stores instructions executable by the at least one processor 704, the instructions being arranged to perform the scheme of any of the embodiments of figures 1 to 5 described above. Therefore, the terminal 700 has the same technical effect as any one of the embodiments in fig. 1 to 5, and is not repeated herein.
The terminal of the embodiments of the present invention exists in various forms, including but not limited to:
(1) mobile communication devices, which are characterized by mobile communication capabilities and are primarily targeted at providing voice and data communications. Such terminals include smart phones (e.g., iphones), multimedia phones, functional phones, and low-end phones, among others.
(2) The ultra-mobile personal computer equipment belongs to the category of personal computers, has calculation and processing functions and generally has the characteristic of mobile internet access. Such terminals include PDA, MID, and UMPC devices, such as ipads.
(3) Portable entertainment devices such devices may display and play multimedia content. Such devices include audio and video players (e.g., ipods), handheld game consoles, electronic books, as well as smart toys and portable car navigation devices.
(4) The server is similar to a general computer architecture, but has higher requirements on processing capacity, stability, reliability, safety, expandability, manageability and the like because of the need of providing high-reliability service.
(5) And other electronic devices with data interaction functions.
In addition, an embodiment of the present invention provides a computer-readable storage medium, which stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the computer-executable instructions implement the method flow described in any one of the embodiments of fig. 1 to 5.
The technical scheme of the invention is explained in detail by combining the attached drawings, and the technical scheme of configuring various environments is replaced by configuring the integral cluster environment, so that the repeated configuration of the services is reduced, the labor cost and the resource consumption are saved, and the various services in the cluster environment are logically isolated, so that the smooth operation of each service is ensured.
In the description of the specification, reference to the description of "one embodiment," "some embodiments," "an example," "a specific example," or "some examples" or the like means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Moreover, various embodiments or examples and features of various embodiments or examples described in this specification can be combined and combined by one skilled in the art without being mutually inconsistent.
It should be understood that the term "and/or" as used herein is merely one type of association that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions in actual implementation, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a Processor (Processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (8)
1. A method for executing a service in a cluster environment, comprising:
acquiring service request information aiming at target services in a cluster environment, wherein the cluster environment comprises a development function, a test function and a production function, and the target services are one or more of the development service, the test service and the production service;
selecting a target policy corresponding to the service request information from a policy set of the cluster environment;
calling a plurality of functional nodes according to the routing rule indicated by the target strategy so as to execute the target service;
acquiring a newly added routing rule in the cluster environment;
generating all feasible orderings for all routing rules used by the strategy set and the newly added routing rule according to a specified routing rule filtering mode;
generating a plurality of new strategies with the same number as the total feasible sequences according to the total feasible sequences;
storing the plurality of new policies to the set of policies.
2. The method of claim 1, wherein the step of invoking the plurality of functional nodes according to the routing rule indicated by the target policy comprises:
determining the working sequence of the plurality of functional nodes according to the routing rule indicated by the target strategy;
and sequentially calling the plurality of functional nodes according to the working sequence.
3. The method of claim 1, wherein the step of invoking the plurality of functional nodes according to the routing rule indicated by the target policy comprises:
acquiring a routing sub-rule corresponding to each functional node from the routing rules indicated by the target strategy;
sending the routing sub-rule to the corresponding functional node;
and calling each functional node to interact with other functional nodes in the plurality of functional nodes according to the routing sub-rule of the functional node.
4. The method for service execution in a cluster environment of any one of claims 1 to 3, further comprising:
detecting whether the service flow in the process of executing the target service is abnormal or not;
and under the condition that the abnormal business flow in the target service executing process is detected to be abnormal, replacing the abnormal function node by using a standby node of the abnormal function node associated with the fault information.
5. A service execution apparatus in a cluster environment, comprising:
the system comprises a service request information acquisition unit, a service request information acquisition unit and a service processing unit, wherein the service request information acquisition unit is used for acquiring service request information of a target service in a cluster environment, the cluster environment comprises a development function, a test function and a production function, and the target service is one or more of the development service, the test service and the production service;
a target policy selecting unit, configured to select a target policy corresponding to the service request information from a policy set of the cluster environment;
the target service execution unit calls a plurality of functional nodes according to the routing rule indicated by the target strategy so as to execute the target service;
a routing rule adding unit, configured to obtain an additional routing rule in the cluster environment;
a feasible sequence generating unit, configured to generate all feasible sequences for all routing rules used by the policy set and the newly added routing rule according to a specified routing rule filtering manner;
a new strategy generating unit, configured to generate a plurality of new strategies that are equal in number to all the feasible orderings according to all the feasible orderings;
and the strategy storage unit is used for storing the new strategies to the strategy set.
6. The service execution apparatus in cluster environment according to claim 5, wherein the target service execution unit is configured to:
determining the working sequence of the plurality of functional nodes according to the routing rule indicated by the target strategy; and sequentially calling the plurality of functional nodes according to the working sequence.
7. A terminal, comprising: at least one processor; and a memory communicatively coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor, the instructions being arranged to perform the method of any of the preceding claims 1 to 4.
8. A computer-readable storage medium having stored thereon computer-executable instructions that, when executed by a processor, perform the method flow of any of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911410549.7A CN111147600B (en) | 2019-12-31 | 2019-12-31 | Service execution method and terminal under cluster environment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911410549.7A CN111147600B (en) | 2019-12-31 | 2019-12-31 | Service execution method and terminal under cluster environment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111147600A CN111147600A (en) | 2020-05-12 |
CN111147600B true CN111147600B (en) | 2022-07-05 |
Family
ID=70522475
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911410549.7A Active CN111147600B (en) | 2019-12-31 | 2019-12-31 | Service execution method and terminal under cluster environment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111147600B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113448837B (en) * | 2020-11-03 | 2024-03-19 | 北京新氧科技有限公司 | Development and test environment deployment method, system, electronic equipment and medium |
CN112714012B (en) * | 2020-12-16 | 2023-08-29 | 平安国际融资租赁有限公司 | Service instance determining method, device, computer equipment and medium |
CN115022389A (en) * | 2022-05-26 | 2022-09-06 | 携程旅游网络技术(上海)有限公司 | Method and system for processing full link information, electronic equipment and storage medium |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108737270A (en) * | 2018-05-07 | 2018-11-02 | 北京京东尚科信息技术有限公司 | A kind of method for managing resource and device of server cluster |
-
2019
- 2019-12-31 CN CN201911410549.7A patent/CN111147600B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108737270A (en) * | 2018-05-07 | 2018-11-02 | 北京京东尚科信息技术有限公司 | A kind of method for managing resource and device of server cluster |
Also Published As
Publication number | Publication date |
---|---|
CN111147600A (en) | 2020-05-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111147600B (en) | Service execution method and terminal under cluster environment | |
CN108370341B (en) | Resource allocation method, virtual network function manager and network element management system | |
CN110048879B (en) | Microservice registration method, microservice registration device, electronic equipment and computer-readable storage medium | |
CN106034138A (en) | Remote service calling method and remote service calling device | |
CN107769932B (en) | Charging method, device and system | |
CN111694756B (en) | Application program testing method and device | |
CN115328752B (en) | Cluster simulation method and system for Kubernetes control plane test | |
CN111030980A (en) | Linux transparent network equipment platform implementation method, device and storage medium | |
US11057242B2 (en) | Address system | |
CN110083433A (en) | Embedded software running method and device, terminal and computer readable storage medium | |
US9038197B2 (en) | Method and apparatus for providing backend support for device control in risk conditions | |
CN103150159A (en) | Identifier generation using named objects | |
CN112988062B (en) | Metadata reading limiting method and device, electronic equipment and medium | |
CN112698930B (en) | Method, device, equipment and medium for obtaining server identification | |
CN114064343B (en) | Abnormal handling method and device for block chain | |
CN106357704A (en) | Method and device for invoking service on basis of development environments | |
CN112242951B (en) | Virtual network mapping method and device | |
CN110781001B (en) | Kubernetes-based container environment variable checking method | |
CN112350856A (en) | Distributed service sign-off method and equipment | |
CN113126884A (en) | Data migration method and device, electronic equipment and computer storage medium | |
CN113886215A (en) | Interface test method, device and storage medium | |
CN111770179A (en) | High-performance high-availability cloud networking gateway implementation method, medium and terminal | |
CN107925585B (en) | Network service fault processing method and device | |
CN113067720B (en) | Service chain remapping method, electronic equipment and storage medium | |
CN115277408B (en) | Agent configuration information updating method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 215024 building 14, Tengfei Innovation Park, 388 Xinping street, Suzhou Industrial Park, Jiangsu Province Applicant after: Sipic Technology Co.,Ltd. Address before: 215024 building 14, Tengfei Innovation Park, 388 Xinping street, Suzhou Industrial Park, Jiangsu Province Applicant before: AI SPEECH Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |