CN114679406B - Data processing method and device based on routing strategy - Google Patents

Data processing method and device based on routing strategy Download PDF

Info

Publication number
CN114679406B
CN114679406B CN202210492038.XA CN202210492038A CN114679406B CN 114679406 B CN114679406 B CN 114679406B CN 202210492038 A CN202210492038 A CN 202210492038A CN 114679406 B CN114679406 B CN 114679406B
Authority
CN
China
Prior art keywords
routing
monitoring
routing policy
strategy
routing strategy
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210492038.XA
Other languages
Chinese (zh)
Other versions
CN114679406A (en
Inventor
谢伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202210492038.XA priority Critical patent/CN114679406B/en
Publication of CN114679406A publication Critical patent/CN114679406A/en
Application granted granted Critical
Publication of CN114679406B publication Critical patent/CN114679406B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/14Routing performance; Theoretical aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/30Routing of multiclass traffic

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a data processing method and device based on a routing strategy, relates to the technical field of data processing, and can be used in the financial field or other technical fields. The method comprises the following steps: if the routing strategy is monitored to change, determining the type of the changed routing strategy; the routing policy type comprises a global routing policy or a local routing policy; and determining an update data range corresponding to the routing policy type, updating local data in the update data range, and issuing an update message carrying the routing policy type. The apparatus performs the above method. The data processing method and the data processing device based on the routing strategy, provided by the embodiment of the invention, can update data in a certain data range based on the global routing strategy or the local routing strategy, reduce the data processing amount and improve the system stability.

Description

Data processing method and device based on routing strategy
Technical Field
The invention relates to the technical field of data processing, in particular to a data processing method and device based on a routing strategy.
Background
The unitized architecture is an enterprise-level application deployment architecture, the architecture deploys main service and data required by the architecture in a group of independent physical resources, the data are fragmented according to unified fields (such as client IDs), and service traffic is routed from an application layer to a data layer according to the fragmenting rules, so that relevant traffic of client transactions can complete closed loop at the maximum limit in units, unnecessary cross-unit access is greatly reduced, the fault explosion radius can be effectively controlled under regional fault scenes, and traffic takeover among the units can be realized through active traffic control.
The routing policy is related to the operation of the whole unitized architecture, configuration adjustment affects all nodes in the architecture, and because the routing policy is set for the sharding attribution of the service provider, and the trend of traffic needs to be controlled at the service consumer, the routing policy is generally set to be global public configuration, once modified, the service consumer of all units can be updated, which can lead to the need of synchronously updating all global range data when the routing policy is sent and changed, and the stability of each system brings great risks.
Disclosure of Invention
Aiming at the problems in the prior art, the embodiment of the invention provides a data processing method and device based on a routing strategy, which can at least partially solve the problems in the prior art.
In one aspect, the present invention provides a data processing method based on a routing policy, including:
if the routing strategy is monitored to change, determining the type of the changed routing strategy; the routing policy type comprises a global routing policy or a local routing policy;
and determining an update data range corresponding to the routing policy type, updating local data in the update data range, and issuing an update message carrying the routing policy type.
Wherein, monitoring nodes are built in each unit in advance, and the monitoring nodes among the units form a monitoring cluster; correspondingly, the issuing the update message carrying the routing policy type comprises the following steps:
and issuing an update message carrying the routing strategy type to each monitoring node in the monitoring cluster through a local monitoring node.
Wherein, the monitoring nodes are built in each unit in advance, the monitoring nodes between each unit form a monitoring cluster, and the method comprises the following steps:
two monitoring nodes are respectively built in each unit in advance, the monitoring nodes among the units respectively correspond to form monitoring clusters, and two groups of mutually independent monitoring clusters are obtained.
Wherein the monitoring cluster is a distributed coordination service cluster.
The local routing policies comprise a service line level routing policy, an application level routing policy and a group level routing policy; correspondingly, the data processing method based on the routing strategy further comprises the following steps:
and sequentially storing the global routing strategy, the service line level routing strategy, the application level routing strategy and the group level routing strategy based on a hierarchical deployment mode of the decision tree.
Wherein, the monitoring routing policy changes, including:
monitoring the change of the routing strategy issued by the routing management and control platform;
or after the local service consumer node starts, monitoring the local service subscription message, and determining the routing policy change corresponding to the service provided by the local service provider node.
Before the step of determining the type of the changed routing policy if the routing policy is monitored to change, the data processing method based on the routing policy further includes:
and receiving the routing strategy sent by the configuration center server.
In one aspect, the present invention proposes a data processing apparatus based on a routing policy, including:
the monitoring unit is used for determining the type of the changed routing strategy if the routing strategy is monitored to change; the routing policy type comprises a global routing policy or a local routing policy;
and the processing unit is used for determining an update data range corresponding to the routing policy type, updating local data in the update data range and issuing an update message carrying the routing policy type.
In still another aspect, an embodiment of the present invention provides an electronic device, including: a processor, a memory, and a bus, wherein,
the processor and the memory complete communication with each other through the bus;
the memory stores program instructions executable by the processor, the processor invoking the program instructions capable of performing the method of:
if the routing strategy is monitored to change, determining the type of the changed routing strategy; the routing policy type comprises a global routing policy or a local routing policy;
and determining an update data range corresponding to the routing policy type, updating local data in the update data range, and issuing an update message carrying the routing policy type.
Embodiments of the present invention provide a non-transitory computer readable storage medium comprising:
the non-transitory computer readable storage medium stores computer instructions that cause the computer to perform the method of:
if the routing strategy is monitored to change, determining the type of the changed routing strategy; the routing policy type comprises a global routing policy or a local routing policy;
and determining an update data range corresponding to the routing policy type, updating local data in the update data range, and issuing an update message carrying the routing policy type.
The data processing method and the device based on the routing strategy, provided by the embodiment of the invention, determine the type of the routing strategy after the change if the change of the routing strategy is monitored; the routing policy type comprises a global routing policy or a local routing policy; and determining an update data range corresponding to the routing strategy type, updating local data in the update data range, and distributing an update message carrying the routing strategy type, so that data can be updated in a certain data range based on a global routing strategy or a local routing strategy, the data processing amount is reduced, and the system stability is improved.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art. In the drawings:
fig. 1 is a flow chart of a data processing method based on a routing policy according to an embodiment of the present invention.
Fig. 2 is a flow chart of a data processing method based on a routing policy according to another embodiment of the present invention.
Fig. 3 is a flow chart of a data processing method based on a routing policy according to another embodiment of the present invention.
Fig. 4 is a flow chart of a data processing method based on a routing policy according to another embodiment of the present invention.
Fig. 5 is a schematic structural diagram of a data processing apparatus based on a routing policy according to an embodiment of the present invention.
Fig. 6 is a schematic diagram of an entity structure of an electronic device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention will be described in further detail with reference to the accompanying drawings. The exemplary embodiments of the present invention and their descriptions herein are for the purpose of explaining the present invention, but are not to be construed as limiting the invention. It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be arbitrarily combined with each other.
Fig. 1 is a flow chart of a data processing method based on a routing policy according to an embodiment of the present invention, as shown in fig. 1, where the data processing method based on a routing policy according to an embodiment of the present invention includes:
step S1: if the routing strategy is monitored to change, determining the type of the changed routing strategy; the routing policy type includes a global routing policy or a local routing policy.
Step S2: and determining an update data range corresponding to the routing policy type, updating local data in the update data range, and issuing an update message carrying the routing policy type.
In the step S1, if the device monitors that the routing policy changes, determining the type of the changed routing policy; the routing policy type includes a global routing policy or a local routing policy. The apparatus may be a computer device performing the method, for example may comprise a server, in particular a cell server. The local routing policies may include a traffic line level routing policy, an application level routing policy, and a group level routing policy, as shown in fig. 2, and the routing policies generally include a global routing policy, a traffic line level routing policy, an application level routing policy, and a group level routing policy; wherein:
the global routing policy corresponds to all service consumer nodes, i.e. all service consumer nodes of the traffic line.
The service line level routing policy corresponds to the service consumer node for the one service line.
The application level routing policy corresponds to a service consumer node of the application service.
The group level routing policy corresponds to the service consumer node of the group service.
It will be appreciated that the number of service consumer nodes of the traffic line is greater than the number of service consumer nodes of the application service, and that the number of service consumer nodes of the application service is greater than the number of service consumer nodes of the group service.
The local routing policy can be set in a self-defined manner according to actual needs.
The global routing policy and the local routing policy may be set according to a level hierarchy of "global-traffic-application-group", as shown in fig. 2, and stored as a separate policy tree in a registry (the "Zookeeper" in fig. 2). And sequentially storing the global routing strategy, the service line level routing strategy, the application level routing strategy and the group level routing strategy based on a hierarchical deployment mode of a decision tree.
Before this step, the data processing method based on the routing policy further includes:
and receiving the routing strategy sent by the configuration center server. The configuration center server corresponds to the configuration center of fig. 2, and the user can implement the configuration routing policy in the configuration center, and send the routing policy to the registration center after the configuration is completed.
In the process of implementing the unitized architecture of each large enterprise, the routing strategy is configured in a globally unified configuration center, and the routing strategy is issued to all service nodes under the unitized architecture through the configuration center, so that unified control of the flow is realized.
The routing policy specifies which fragmentation fields of traffic should be allocated to which units. Before the service flow enters the unit, the service flow calculates the belonging fragment according to the fragment field in the request, confirms the unit to which the request belongs according to the corresponding relation of the fragment-unit in the routing strategy, and then routes the request to the unit. The data layer also carries out the segmentation calculation according to the field, and the database corresponding to the segmentation is deployed in the unit, so that the processing of all key links is enclosed in the unit from the whole transaction flow, whether the application layer or the data layer. When a unit level fault occurs, only the active-standby switching is needed for the fragments of the unit, the routing strategy is adjusted in the configuration center, and the service flow of the unit is routed to other units.
As shown in fig. 3, since the control object of the routing policy is mainly a cross-cell, intra-cell service call link, the routing policy can be generally stored in a registry in each cell, and synchronization between cells can be achieved.
It should be noted that, each of units 1 to 5 in fig. 3 includes a registry, and the connection relationship between the registry and the listening node 1 and the listening node 2 is shown as unit 5.
The monitoring routing policy changes, including:
monitoring the change of the routing strategy issued by the routing management and control platform;
or after the local service consumer node starts, monitoring the local service subscription message, and determining the routing policy change corresponding to the service provided by the local service provider node. As shown in fig. 4, the global routing policy may be uniformly maintained by the routing management and control platform, and the service line level routing policy and the like in each unit may be displayed in a hierarchical manner, and the service line level routing policy, the application level routing policy and the group level routing policy may be updated in an emergency scenario.
The routing policy type can be written into the registry of any unit through the registry interface, and the registries of different units can be automatically synchronized.
After the service consumer node is started, the service subscription message is used for counting the service called by the service consumer node by scanning the annotation or configuration file of the application program of the service consumer node, and determining the service line level routing strategy, the application level routing strategy or the group level routing strategy of the service provider node, wherein if the service line level routing strategy, the application level routing strategy or the group level routing strategy are different from the original routing strategy, the routing strategy is indicated to be changed.
In the step S2, the device determines an update data range corresponding to the routing policy type, updates local data in the update data range, and issues an update message carrying the routing policy type. And actively subscribing the global routing strategy in the Zookeeper, and the service line level routing strategy, the application level routing strategy and the group level routing strategy of each service provider according to the information, integrating and calculating according to the priority from bottom to top (the priority of the group level strategy is highest and the priority of the global strategy is lowest), forming the routing strategy with the group to which the service provider belongs as granularity, and storing the routing strategy in a cache. Other content at the application level and the group level, such as gray identification and service identification, can also be saved in the cache after being resolved.
The subsequent updating of routing strategy adjustment, gray scale identification or service identification of any level can only be directionally issued to the service consumer node subscribed to the level routing strategy in each unit, and other nodes do not call the service and do not need to update the routing strategy naturally.
As shown in fig. 3, monitoring nodes are built in each unit in advance, and the monitoring nodes among the units form a monitoring cluster; correspondingly, the issuing the update message carrying the routing policy type comprises the following steps:
and issuing an update message carrying the routing strategy type to each monitoring node in the monitoring cluster through a local monitoring node. If unit 5 is a local unit, for the case where there is only one listening node in the unit, and for the case where a message is sent: for example, the monitoring node 2 monitors that the routing policy changes through the registry (the routing management platform or the service provider node in the unit 5 updates the routing policy to the registry of the unit 5), determines the type of the changed routing policy, for example, the service line level routing policy, and issues an update message carrying the service line level routing policy through the monitoring node 2, so that the units 1 to 4 receive the update message through the monitoring node 2 in the global Zookeeper cluster 2 and synchronize the update message to the registry of the unit, and the registry updates the local routing policy according to the service line level routing policy.
For the case where there is only one listening node in the cell, and for the case of receiving a message: if the monitoring node 2 in the unit 5 receives the update message sent by the monitoring node 2 of the unit 4, the routing policy type carried by the update message is an application level routing policy. The listening node 2 in the unit 5 sends the update message to a local registry, and the registry obtains the application level routing policy according to the update message, thereby realizing the update of the routing policy in the unit 5.
For the case that there are two listening nodes in a unit, for example, listening node 1 and listening node 2 in unit 5, listening node 1 of all units forms listening cluster 1, listening node 2 of all units forms listening cluster 2, as shown in fig. 3, listening cluster 1 and listening cluster 2 are independent from each other, the listening cluster may include a distributed coordination service cluster, and the distributed coordination service cluster may include Zookeeper, eureka.
A group of two monitoring nodes are established in each unit, the change condition of the global strategy in the registry of the unit and the routing strategy of all subdirectories below the global strategy is monitored, and once the change occurs, the updated content is synchronized to the registries of other units.
The synchronization mode is to establish 2 Zookeeper clusters of the cross units, the clusters are independent from each other, the nodes in the clusters are deployed in each unit, so that one node in two clusters is deployed in each unit, policy change of any one unit can be updated to all units finally, single-point faults occur in any one cluster, synchronization can be achieved through single points in the other cluster, and data synchronization of the units where the fault nodes are located is not affected.
By changing the configuration and updating mechanism of the routing strategy, the issuing scope of the strategy is reasonably controlled, the problems that the performance pressure of a configuration center is overlarge, the issuing reliability is insufficient, the failure risk is difficult to effectively control are solved, frequent updating is allowed for the configuration with smaller issuing scope, and the application scope is enlarged.
The embodiment of the invention has the following beneficial effects:
by changing the configuration and updating mechanism of the global routing strategy, the strategy is hierarchically managed and controlled, so that 'who is updated with' is realized;
the distribution range is effectively controlled, the performance pressure of a configuration center is reduced, the distribution reliability is improved, and the fault risk is controlled;
for the configuration with smaller issuing range, frequent updating is allowed, and the application range is enlarged. A new approach is provided for synchronization and updating of the common configuration at the inter-element service line level, application level or service group level.
According to the data processing method based on the routing strategy, if the routing strategy is monitored to change, the type of the changed routing strategy is determined; the routing policy type comprises a global routing policy or a local routing policy; and determining an update data range corresponding to the routing strategy type, updating local data in the update data range, and distributing an update message carrying the routing strategy type, so that data can be updated in a certain data range based on a global routing strategy or a local routing strategy, the data processing amount is reduced, and the system stability is improved.
Further, monitoring nodes are built in each unit in advance, and the monitoring nodes among the units form a monitoring cluster; correspondingly, the issuing the update message carrying the routing policy type comprises the following steps:
and issuing an update message carrying the routing strategy type to each monitoring node in the monitoring cluster through a local monitoring node. Reference is made to the above description and will not be repeated.
The data processing method based on the routing strategy provided by the embodiment of the invention can realize synchronous transmission of the update message.
Further, the monitoring nodes are respectively built in each unit in advance, the monitoring nodes between the units form a monitoring cluster, and the method comprises the following steps:
two monitoring nodes are respectively built in each unit in advance, the monitoring nodes among the units respectively correspond to form monitoring clusters, and two groups of mutually independent monitoring clusters are obtained. Reference is made to the above description and will not be repeated.
The data processing method based on the routing strategy provided by the embodiment of the invention not only can realize synchronous transmission of the update message, but also can improve the fault tolerance of the synchronous message.
Further, the listening cluster is a distributed coordination service cluster. Reference is made to the above description and will not be repeated.
The data processing method based on the routing strategy provided by the embodiment of the invention can further improve the stability of synchronously transmitting data.
Further, the local routing policies include a traffic line level routing policy, an application level routing policy, and a group level routing policy; correspondingly, the data processing method based on the routing strategy further comprises the following steps:
and sequentially storing the global routing strategy, the service line level routing strategy, the application level routing strategy and the group level routing strategy based on a hierarchical deployment mode of the decision tree. Reference is made to the above description and will not be repeated.
According to the data processing method based on the routing strategy, which is provided by the embodiment of the invention, the data are sequentially stored in a hierarchical deployment mode of the decision tree, so that the processing efficiency of data reading and writing is improved.
Further, the monitoring routing policy changes, including:
monitoring the change of the routing strategy issued by the routing management and control platform; reference is made to the above description and will not be repeated.
Or after the local service consumer node starts, monitoring the local service subscription message, and determining the routing policy change corresponding to the service provided by the local service provider node. Reference is made to the above description and will not be repeated.
The data processing method based on the routing strategy provided by the embodiment of the invention realizes the change of the multi-channel monitoring routing strategy.
Further, before the step of determining the type of the changed routing policy if the routing policy is monitored to change, the routing policy-based data processing method further includes:
and receiving the routing strategy sent by the configuration center server. Reference is made to the above description and will not be repeated.
The data processing method based on the routing strategy provided by the embodiment of the invention directly and conveniently realizes the configuration of the routing strategy.
It should be noted that, the data processing method based on the routing policy provided by the embodiment of the invention can be used in the financial field and also can be used in any technical field except the financial field, and the application field of the data processing method based on the routing policy is not limited by the embodiment of the invention.
Fig. 5 is a schematic structural diagram of a data processing device based on a routing policy according to an embodiment of the present invention, and as shown in fig. 5, the data processing device based on a routing policy according to an embodiment of the present invention includes a listening unit 501 and a processing unit 502, where:
the monitoring unit 501 is configured to determine a changed routing policy type if it is monitored that the routing policy changes; the routing policy type comprises a global routing policy or a local routing policy; the processing unit 502 is configured to determine an update data range corresponding to the routing policy type, update local data in the update data range, and issue an update message carrying the routing policy type.
Specifically, the monitoring unit 501 in the device is configured to determine a changed routing policy type if it is monitored that the routing policy changes; the routing policy type comprises a global routing policy or a local routing policy; the processing unit 502 is configured to determine an update data range corresponding to the routing policy type, update local data in the update data range, and issue an update message carrying the routing policy type.
The data processing device based on the routing strategy provided by the embodiment of the invention determines the type of the routing strategy after the change if the change of the routing strategy is monitored; the routing policy type comprises a global routing policy or a local routing policy; and determining an update data range corresponding to the routing strategy type, updating local data in the update data range, and distributing an update message carrying the routing strategy type, so that data can be updated in a certain data range based on a global routing strategy or a local routing strategy, the data processing amount is reduced, and the system stability is improved.
Further, monitoring nodes are built in each unit in advance, and the monitoring nodes among the units form a monitoring cluster; accordingly, the processing unit 502 is specifically configured to:
and issuing an update message carrying the routing strategy type to each monitoring node in the monitoring cluster through a local monitoring node.
The data processing device based on the routing strategy provided by the embodiment of the invention can realize synchronous transmission of the update message.
Further, the data processing device based on the routing policy is further configured to:
two monitoring nodes are respectively built in each unit in advance, the monitoring nodes among the units respectively correspond to form monitoring clusters, and two groups of mutually independent monitoring clusters are obtained.
The data processing device based on the routing strategy provided by the embodiment of the invention not only can realize synchronous sending of the update message, but also can improve the fault tolerance of synchronous messages.
Further, the monitoring cluster in the data processing device based on the routing strategy is a distributed coordination service cluster.
The data processing device based on the routing strategy provided by the embodiment of the invention can further improve the stability of synchronously transmitting data.
Further, the local routing policies include a traffic line level routing policy, an application level routing policy, and a group level routing policy; correspondingly, the data processing device based on the routing policy is further used for:
and sequentially storing the global routing strategy, the service line level routing strategy, the application level routing strategy and the group level routing strategy based on a hierarchical deployment mode of the decision tree.
According to the data processing device based on the routing strategy, which is provided by the embodiment of the invention, the data are sequentially stored in a hierarchical deployment mode of the decision tree, so that the processing efficiency of data reading and writing is improved.
Further, the listening unit 501 is specifically configured to:
monitoring the change of the routing strategy issued by the routing management and control platform;
or after the local service consumer node starts, monitoring the local service subscription message, and determining the routing policy change corresponding to the service provided by the local service provider node.
The data processing device based on the routing strategy provided by the embodiment of the invention realizes the change of the multi-channel monitoring routing strategy.
Further, the data processing device based on the routing policy is further configured to:
and receiving the routing strategy sent by the configuration center server.
The data processing device based on the routing strategy provided by the embodiment of the invention directly and conveniently realizes the configuration of the routing strategy.
The embodiment of the data processing device based on the routing policy provided in the embodiment of the present invention may be specifically used to execute the processing flow of each method embodiment, and the functions thereof are not described herein in detail, and reference may be made to the detailed description of the method embodiments.
Fig. 6 is a schematic diagram of an entity structure of an electronic device according to an embodiment of the present invention, as shown in fig. 6, where the electronic device includes: a processor (processor) 601, a memory (memory) 602, and a bus 603;
wherein, the processor 601 and the memory 602 complete communication with each other through the bus 603;
the processor 601 is configured to invoke program instructions in the memory 602 to perform the methods provided in the above method embodiments, for example, including:
if the routing strategy is monitored to change, determining the type of the changed routing strategy; the routing policy type comprises a global routing policy or a local routing policy;
and determining an update data range corresponding to the routing policy type, updating local data in the update data range, and issuing an update message carrying the routing policy type.
The present embodiment discloses a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, are capable of performing the methods provided by the above-described method embodiments, for example comprising:
if the routing strategy is monitored to change, determining the type of the changed routing strategy; the routing policy type comprises a global routing policy or a local routing policy;
and determining an update data range corresponding to the routing policy type, updating local data in the update data range, and issuing an update message carrying the routing policy type.
The present embodiment provides a computer-readable storage medium storing a computer program that causes the computer to execute the methods provided by the above-described method embodiments, for example, including:
if the routing strategy is monitored to change, determining the type of the changed routing strategy; the routing policy type comprises a global routing policy or a local routing policy;
and determining an update data range corresponding to the routing policy type, updating local data in the update data range, and issuing an update message carrying the routing policy type.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In the description of the present specification, reference to the terms "one embodiment," "one particular embodiment," "some embodiments," "for example," "an example," "a particular example," or "some examples," etc., 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. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The foregoing description of the embodiments has been provided for the purpose of illustrating the general principles of the invention, and is not meant to limit the scope of the invention, but to limit the invention to the particular embodiments, and any modifications, equivalents, improvements, etc. that fall within the spirit and principles of the invention are intended to be included within the scope of the invention.

Claims (8)

1. A data processing method based on a routing policy, comprising:
if the routing strategy is monitored to change, determining the type of the changed routing strategy; the routing policy type comprises a global routing policy or a local routing policy;
determining an update data range corresponding to the routing strategy type, updating local data in the update data range, and distributing an update message carrying the routing strategy type;
monitoring nodes are built in each unit in advance, and the monitoring nodes among the units form a monitoring cluster; correspondingly, the issuing the update message carrying the routing policy type comprises the following steps:
issuing an update message carrying the routing strategy type to each monitoring node in the monitoring cluster through a local monitoring node;
and the monitoring nodes are respectively built in each unit in advance, the monitoring nodes among the units form a monitoring cluster, and the monitoring cluster comprises:
two monitoring nodes are respectively built in each unit in advance, the monitoring nodes among the units respectively correspond to form monitoring clusters, and two groups of mutually independent monitoring clusters are obtained.
2. The routing policy based data processing method of claim 1, wherein the listening cluster is a distributed coordination service cluster.
3. The routing policy based data processing method according to claim 1 or 2, wherein said local routing policies include a traffic line level routing policy, an application level routing policy and a group level routing policy; correspondingly, the data processing method based on the routing strategy further comprises the following steps:
and sequentially storing the global routing strategy, the service line level routing strategy, the application level routing strategy and the group level routing strategy based on a hierarchical deployment mode of the decision tree.
4. A data processing method based on a routing policy according to claim 1 or 2, wherein the listening for a change in the routing policy comprises:
monitoring the change of the routing strategy issued by the routing management and control platform;
or after the local service consumer node starts, monitoring the local service subscription message, and determining the routing policy change corresponding to the service provided by the local service provider node.
5. The routing policy based data processing method according to claim 1 or 2, wherein before said step of determining a changed routing policy type if a change in the routing policy is detected, said routing policy based data processing method further comprises:
and receiving the routing strategy sent by the configuration center server.
6. A data processing apparatus based on a routing policy, comprising:
the monitoring unit is used for determining the type of the changed routing strategy if the routing strategy is monitored to change; the routing policy type comprises a global routing policy or a local routing policy;
the processing unit is used for determining an update data range corresponding to the routing strategy type, updating local data in the update data range and issuing an update message carrying the routing strategy type;
monitoring nodes are built in each unit in advance, and the monitoring nodes among the units form a monitoring cluster; correspondingly, the processing unit is specifically configured to:
issuing an update message carrying the routing strategy type to each monitoring node in the monitoring cluster through a local monitoring node;
the processing unit is also specifically configured to:
two monitoring nodes are respectively built in each unit in advance, the monitoring nodes among the units respectively correspond to form monitoring clusters, and two groups of mutually independent monitoring clusters are obtained.
7. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method of any one of claims 1 to 5 when the computer program is executed by the processor.
8. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method according to any one of claims 1 to 5.
CN202210492038.XA 2022-05-07 2022-05-07 Data processing method and device based on routing strategy Active CN114679406B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210492038.XA CN114679406B (en) 2022-05-07 2022-05-07 Data processing method and device based on routing strategy

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210492038.XA CN114679406B (en) 2022-05-07 2022-05-07 Data processing method and device based on routing strategy

Publications (2)

Publication Number Publication Date
CN114679406A CN114679406A (en) 2022-06-28
CN114679406B true CN114679406B (en) 2023-12-29

Family

ID=82080926

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210492038.XA Active CN114679406B (en) 2022-05-07 2022-05-07 Data processing method and device based on routing strategy

Country Status (1)

Country Link
CN (1) CN114679406B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109756423A (en) * 2017-11-03 2019-05-14 华为技术有限公司 The method and apparatus of policy update
CN113328949A (en) * 2020-02-28 2021-08-31 华为技术有限公司 Method, network device and system for updating routing attribute

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109756423A (en) * 2017-11-03 2019-05-14 华为技术有限公司 The method and apparatus of policy update
CN113328949A (en) * 2020-02-28 2021-08-31 华为技术有限公司 Method, network device and system for updating routing attribute

Also Published As

Publication number Publication date
CN114679406A (en) 2022-06-28

Similar Documents

Publication Publication Date Title
CN108234306B (en) Network device, network method, and computer-readable storage medium
CN108234302A (en) Keep the consistency in the distributed operating system of network equipment
CN112804722A (en) Method for realizing micro-service gateway dynamic routing
CN105930498A (en) Distributed database management method and system
CN111736872A (en) Gray scale release upgrading method and device, computer system and readable storage medium
CN114301972B (en) Hierarchical deployment method and system for blockchain nodes based on cloud edge cooperation
CN109739640A (en) A kind of container resource management system based on Shen prestige framework
CN102938705A (en) Method for managing and switching high availability multi-machine backup routing table
US20230367749A1 (en) Data migration method and apparatus, device, medium, and computer product
CN110597918A (en) Account management method and device and computer readable storage medium
CN111143382A (en) Data processing method, system and computer readable storage medium
CN110008206A (en) A kind of data processing method and device based on block catenary system
CN113778623A (en) Resource processing method and device, electronic equipment and storage medium
CN112199427A (en) Data processing method and system
CN112671928A (en) Equipment centralized management architecture, load balancing method, electronic equipment and storage medium
CN110348826A (en) Strange land disaster recovery method, system, equipment and readable storage medium storing program for executing mostly living
CN113873005A (en) Node master selection method, system, equipment and medium for micro-service cluster
CN113778615A (en) Rapid and stable network shooting range virtual machine construction system
CN106385330A (en) Network function virtualization composer realization method and device
CN114422331A (en) Disaster tolerance switching method, device and system
CN114900449A (en) Resource information management method, system and device
CN114679406B (en) Data processing method and device based on routing strategy
CN103051478A (en) Large-capacity telecommunication network management system as well as setting and application methods thereof
CN111897643A (en) Thread pool configuration system, method, device and storage medium
CN110298031B (en) Dictionary service system and model version consistency distribution method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant