CN111770005A - Method and device for detecting availability of distributed system of Dubbo service framework - Google Patents
Method and device for detecting availability of distributed system of Dubbo service framework Download PDFInfo
- Publication number
- CN111770005A CN111770005A CN202010619188.3A CN202010619188A CN111770005A CN 111770005 A CN111770005 A CN 111770005A CN 202010619188 A CN202010619188 A CN 202010619188A CN 111770005 A CN111770005 A CN 111770005A
- Authority
- CN
- China
- Prior art keywords
- service
- dubbo
- distributed system
- status bit
- availability
- 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.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0811—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Debugging And Monitoring (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention discloses a method and a device for detecting the availability of a distributed system of a Dubbo service framework, wherein the method comprises the following steps: obtaining a Dubbo service list of a distributed system registration center; performing Dubbo service echo detection on each service in the Dubbo service list; determining a first state bit of each service according to the result of the echo detection of the Dubbo service; performing connectivity detection on a plurality of nodes of a distributed system access layer; determining a second status bit of each service according to the result of the connectivity detection; for each service, determining availability of the distributed system based on the Dubbo service framework in combination with the first status bit and the second status bit of the service. The invention can detect the availability of the distributed system based on the Dubbo service framework, save labor and time, save cost and improve the accuracy of operation.
Description
Technical Field
The invention relates to the technical field of bank platform transaction, in particular to a method and a device for detecting the availability of a distributed system of a Dubbo service framework.
Background
For a long time, the host platform has the dominant position in a large-scale bank system with high performance, but the host is high in selling price, complex in maintenance and global disk collapse due to a bit of failure. The X86 distributed platform is increasingly favored by bank systems due to its advantages of low price, high reusability, high expandability, high reliability, flexible deployment, etc. For this reason, each large bank makes an attempt to move down X86 for the host transaction, and the move down transaction is usually a distributed application deployment on an X86 platform to build a distributed system. The move down scheme generally rewrites the host transaction logic on the new platform and abstracts the transaction processing as a service registration to the distributed system registry, and then provides the service to the outside through a unified access layer (gateway).
However, there may be instances where a distributed application service on the X86 platform is unavailable, a gateway is down, etc.; or the rewritten transaction logic under the new platform is found to have errors after the online; or the accidental transaction pressure is too large, the response time is long, and the transaction needs to be shunted; in these scenarios, all or part of the transaction needs to be switched back to the host, or different channels need to be switched back to the host according to the transaction source channel requirement, so that the X86 terminal can continuously provide services to the outside during the problem solving period, or realize diversion to reduce the transaction pressure. It is therefore necessary to detect the availability of the distributed system under the X86 platform in order to switch back to the host platform in time when the X86 platform is not available.
In the prior art, the availability of the distributed system of the X86 platform is generally judged manually according to a transaction running log, but the method consumes a great deal of manpower and time, and has high input cost and high error rate during operation.
Disclosure of Invention
The embodiment of the invention provides a method for detecting the availability of a distributed system based on a Dubbo service frame, which is used for detecting the availability of the distributed system based on the Dubbo service frame under an X86 platform, saving labor and time, saving cost and improving the accuracy of operation, and comprises the following steps:
obtaining a Dubbo service list of a distributed system registration center;
performing Dubbo service echo detection on each service in the Dubbo service list;
determining a first state bit of each service according to the result of the echo detection of the Dubbo service;
performing connectivity detection on a plurality of nodes of a distributed system access layer;
determining a second status bit of each service according to the result of the connectivity detection;
for each service, determining availability of the distributed system based on the Dubbo service framework in combination with the first status bit and the second status bit of the service.
The embodiment of the invention provides a device for detecting the availability of a distributed system based on a Dubbo service frame under an X86 platform, which is used for detecting the availability of the distributed system based on the Dubbo service frame under the X86 platform, saving manpower and time, saving cost and improving the accuracy of operation, and comprises the following components:
the list obtaining module is used for obtaining a Dubbo service list of a registration center of the distributed system;
an echo detection module, configured to perform Dubbo service echo detection on each service in the Dubbo service list;
a first status bit determining module, configured to determine a first status bit of each service according to a result of echo detection of the Dubbo service;
the connectivity detection module is used for carrying out connectivity detection on a plurality of nodes of the access layer of the distributed system;
a second status bit determining module, configured to determine a second status bit of each service according to a result of the connectivity detection;
and the detection module is used for determining the availability of the distributed system based on the Dubbo service framework by combining the first status bit and the second status bit of each service.
The embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and when the processor executes the computer program, the method for detecting the availability of the distributed system based on the Dubbo service framework is implemented.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program for executing the method for detecting availability of a distributed system based on a Dubbo service framework is stored in the computer-readable storage medium.
Compared with the scheme of manually judging the availability of the distributed system of the X86 platform according to the transaction running log in the prior art, the Dubbo service list of the registration center of the distributed system is obtained; performing Dubbo service echo detection on each service in the Dubbo service list; determining a first state bit of each service according to the result of the echo detection of the Dubbo service; performing connectivity detection on a plurality of nodes of a distributed system access layer; determining a second status bit of each service according to the result of the connectivity detection; for each service, determining availability of the distributed system based on the Dubbo service framework in combination with the first status bit and the second status bit of the service. According to the embodiment of the invention, manual judgment on the availability of the distributed system based on the DUBBO service framework is not needed, firstly, Dubbo service echo detection is carried out on each service in the Dubbo service list to determine whether the service is available, and then connectivity detection is carried out on a plurality of nodes of the access layer of the distributed system to determine whether the access layer is down, so that the availability of the distributed system based on the Dubbo service framework is judged by combining the echo detection result and the connectivity detection result, thereby saving labor and time, saving cost and improving the accuracy of operation.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. In the drawings:
fig. 1 is a schematic diagram of a method for detecting availability of a distributed system of a Dubbo service framework according to an embodiment of the present invention;
FIG. 2 is a diagram of a distributed system under X86 platform according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a method for detecting availability of a distributed system of a Dubbo service framework according to an embodiment of the present invention;
fig. 4 is a structural diagram of a distributed system availability detection apparatus of a Dubbo service framework according to an embodiment of the present invention;
fig. 5 is a structural diagram of a distributed system availability detection apparatus of a Dubbo service framework according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings. The exemplary embodiments and descriptions of the present invention are provided to explain the present invention, but not to limit the present invention.
First, terms referred to in the embodiments of the present application are described:
RPC: remote procedure calls, which are a protocol that requests a service from a remote computer program over a network without knowledge of the underlying network technology. The protocol allows a program running on one computer to invoke a subroutine on another computer without the programmer having to additionally program for this interaction. The RPC protocol assumes the existence of some transport protocol, such as TCP or UDP, for carrying information data between communication procedures. In the OSI network communication model, RPC spans the transport and application layers. RPC makes it easier to develop applications including network distributed multiprogrammers.
Dubbo: dubbo is an RPC framework, an open source service framework with excellent performance from Alibarba corporation, so that applications can realize output and input functions of services through high-performance RPC, and can be seamlessly integrated with Spring framework.
Zookeeper: a service registry is a distributed open source distributed application program coordination service, which is software for providing a consistency service for distributed applications, and the provided functions comprise: configuration maintenance, domain name service, distributed synchronization, group service, etc. The ZooKeeper aims to package complex and error-prone key services and provide a simple and easy-to-use interface and a system with high performance and stable functions for users. ZooKeeper contains a simple set of primitives that provide interfaces for Java and C. In the ZooKeeper code version, an interface of distributed exclusive locks, elections and queues is provided, and the code is in ZooKeeper-3.4.3\ src \ recipes. Wherein, the distribution lock and the queue have two versions of Java and C, and only Java version is elected.
Distributed system: the resource sharing and the cooperative computing capability provided by a plurality of computers (all referred to as X86 computers) are utilized to solve the processing problem of large-scale data.
In order to detect the availability of a distributed system based on a Dubbo service framework, save labor and time, save cost, and improve the accuracy of operation, an embodiment of the present invention provides a detection method for detecting the availability of a distributed system based on a Dubbo service framework, as shown in fig. 1, where the method may include:
102, performing Dubbo service echo detection on each service in the Dubbo service list;
104, performing connectivity detection on a plurality of nodes of a distributed system access layer;
and step 106, for each service, determining the availability of the distributed system based on the Dubbo service framework by combining the first status bit and the second status bit of the service.
As shown in fig. 1, in the embodiment of the present invention, a list of Dubbo services of a distributed system registry is obtained; performing Dubbo service echo detection on each service in the Dubbo service list; determining a first state bit of each service according to the result of the echo detection of the Dubbo service; performing connectivity detection on a plurality of nodes of a distributed system access layer; determining a second status bit of each service according to the result of the connectivity detection; for each service, determining availability of the distributed system based on the Dubbo service framework in combination with the first status bit and the second status bit of the service. According to the embodiment of the invention, manual judgment on the availability of the distributed system based on the Dubbo service framework is not needed, firstly, Dubbo service echo detection is carried out on each service in the Dubbo service list to determine whether the service is available, and then connectivity detection is carried out on a plurality of nodes of the access layer of the distributed system to determine whether the access layer is down, so that the availability of the distributed system based on the Dubbo service framework is judged by combining the echo detection result and the connectivity detection result, thereby saving labor and time, saving cost and improving the accuracy of operation.
In specific implementation, a Dubbo service list of a distributed system registration center is obtained, Dubbo service echo detection is carried out on each service in the Dubbo service list, and a first state bit of each service is determined according to the result of the Dubbo service echo detection.
In an embodiment, a list of Dubbo services of a distributed system registry is first obtained. When transactions on hosts move down to the X86 distributed system, the processing logic of the transactions is abstracted into individual services, which are registered into the distributed system registry. A list of services may be obtained in a distributed system registry, where a transaction may correspond to one or more services. Then, performing Dubbo service echo detection on each service in the Dubbo service list, detecting the availability of a specific service, comprehensively detecting the availability of a plurality of services, and generating an availability status value by taking transaction as a dimension, namely determining a first status bit of each service, thereby obtaining a service status value list. The echo sounding mechanism of Dubbo can be used to detect whether the Dubbo service registered on Zookeeper is available. In order to enable each channel system to independently control service switching between systems, a list of service available status values must be generated for each channel separately. The downward moving service comes from different channel systems, and the downward moving service may be overlapped between the channel systems, for example, the A, B system has 10002 downward moving services, but the downward moving service is registered only in one of the registration centers of the distributed system, and is generally registered by a plurality of nodes to ensure high availability, and at this time, the generated service status value list may have redundancy.
During specific implementation, connectivity detection is performed on a plurality of nodes of the access layer of the distributed system, and the second state bit of each service is determined according to the result of the connectivity detection.
In an embodiment, determining the second status bit of each service according to the result of the connectivity check includes: and if the node connectivity detection result of a preset proportion of the plurality of nodes is normal connectivity, determining that the second state bit of each service is in an available state, otherwise, determining that the second state bit of each service is in an unavailable state.
In this embodiment, the access layer is a portal of the system, and if all the machine nodes of the access layer are down, the system cannot provide services to the outside any more. Therefore, the detection of the connectivity of the access layer nodes can ensure that the service has an entrance into the distributed system. Specifically, the method may further include detecting connectivity of the access layer cluster nodes by another thread, and if the detection result of connectivity of nodes in a preset proportion among the plurality of nodes is normal connectivity, determining that the second state bit of each service is an available state, otherwise, determining that the second state bit of each service is an unavailable state. For example, if more than half of the node connectivity checks result in normal connectivity, the second status bits of all the downward shifting services may be set to an available status, and then a list of downward shifting service status values may be generated for each channel. When the status bit is preset to be available, the status value is set to 1, that is, the transaction can provide service to the outside, and when the status bit is unavailable, the status value is set to 0.
In specific implementation, for each service, the availability of the distributed system based on the Dubbo service framework is determined by combining the first status bit and the second status bit of the service.
In an embodiment, for each service, determining availability of a distributed system based on a Dubbo service framework in combination with a first status bit and a second status bit of the service includes: for each service, if the first status bit and the second status bit of the service are both available, determining that the availability status of the distributed system based on the Dubbo service framework is available, otherwise, determining that the availability status of the distributed system based on the Dubbo service framework is unavailable.
In this embodiment, when the first status bit is set to be in the available status, the first status value is set to 1, and when the second status bit is in the available status, the second status value is set to 1, that is, the transaction can provide services to the outside, when the first status bit is in the unavailable status, the first status value is set to 0, and when the second status bit is in the unavailable status, the second status value is set to 0. Then, for each service, after obtaining the first status bit and the second status bit of the service, determining a first status value and a second status value, and then performing an and operation on the first status value and the second status value. If the first status bit and the second status bit of the service are both available statuses, that is, the first status value and the second status value are both 1, determining that the availability status of the distributed system based on the Dubbo service framework is an available status, otherwise determining that the availability status of the distributed system based on the Dubbo service framework is an unavailable status.
In an embodiment, the method for detecting the availability of the distributed system based on the Dubbo service framework further includes: obtaining a configuration file corresponding to the Dubbo service list; determining a third status bit of each service in the Dubbo service list according to the configuration file; for each service, detecting the availability of a distributed system adopting a Dubbo service framework by combining a first status bit and a second status bit of the service, wherein the detecting comprises the following steps: for each service, the availability of the distributed system adopting the Dubbo service framework is detected by combining the first status bit, the second status bit and the third status bit of the service.
The inventor finds that detection of service availability and access stratum connectivity can truly reflect the available states of the X86 service, but the service states are automatically generated according to the real-time running condition of the application, cannot be artificially controlled, and cannot perform service switching between systems according to some special scenes. Therefore, the embodiment of the invention loads the configuration files in the application program, the configuration files can represent service source channels, and the service state set manually in the configuration files and the service state generated by detection are used for carrying out AND operation, so that the aim of manual control of service switching between systems can be achieved. Firstly, combing a service list moved downwards by each channel system, generating a configuration file corresponding to each channel, and recording the service moved downwards by each channel and a state value corresponding to the service in the configuration file.
For example, the configuration file for system a is as follows:
10001=1
10002=1
10003=1
wherein 10001-10003 represent the Dubbo service list moved down by the a system.
In this embodiment, the configuration file corresponding to each channel system is loaded, and each service and the service state value in the configuration file are cached in the application. And reloading the configuration files after each time of timing detection initiation so as to feed back the modified value to the application cache in time. When the third status bit is set to be available, the third status value is set to 1, that is, the service can be provided to the outside, and when the third status bit is not available, the third status value is set to 0. And then for each service, determining a first state value, a second state value and a third state value after obtaining a first state bit, a second state bit and a third state bit of the service, and then performing an AND operation on the first state value, the second state value and the third state value. If the first state value, the second state value and the third state value of the service are both available states, that is, the first state value, the second state value and the third state value are both 1, determining that the availability state of the distributed system based on the Dubbo service framework is an available state, otherwise determining that the availability state of the distributed system based on the Dubbo service framework is an unavailable state. A final list of service state values is then generated, typically an 0/1 string such as "0101011100".
In this embodiment, automatic switching of services on the host platform/X86 platform is performed according to the final service availability status generated after detecting the availability of the distributed system based on the Dubbo service framework under the X86 platform. For example, if the final service state value of a certain service is 1, the service is switched to the X86 platform, and if the final service state value is 0, the service is switched to the host platform.
It should be noted that, what value of the provisioning service represents that the service is available or unavailable, and it is not necessary to input each time the system for combing the channels moves down the service list and generating the configuration file corresponding to each channel.
In an embodiment, if the service of the X86 side is unavailable due to excessive service traffic, the service should not be switched back to the host blindly. Because the downward moving service at the X86 end is only partial service on the original host, the unavailability of the X86 service caused by large flow can lead the service switching system to automatically switch back the service to the host, and further, the resource utilization rate of the host can be increased sharply in a short time, even crashed, the host is down, and all the services are unavailable. In order to guarantee the continuous supply of core services to the outside, some services are temporarily unavailable, so that the services should be routed to the X86 platform or the host platform without regard to the switching operation of the service switching system.
Under the condition that a host platform formed by the host downward shifting scheme of the current bank system and a distributed platform coexist, the platform switching is carried out by adopting the method for detecting the availability of the distributed system based on the Dubbo service framework, so that the overall resource utilization rate can be improved by shunting among systems, various fault scenes can be avoided, and the continuous service capability of the bank system is enhanced. The method and the system can realize automatic service switching when the distributed platform fails, reduce labor cost, improve efficiency, realize on-demand switching when no fault exists, and enhance flexibility.
A specific embodiment is given below to illustrate a specific application of the method for detecting the availability of the distributed system of the Dubbo service framework in the present invention. In this embodiment, fig. 2 is a diagram of a distributed system architecture under an X86 platform. As shown in fig. 3, timing probes are initiated, the availability of services is moved down one by one and then a first status bit for each service is generated; detecting the connectivity of the access layer nodes one by one to generate a third state bit, and if more than half of the machines pass the test, representing that all the services are available, generating an available state; combing the service list moved down by each channel system, generating corresponding configuration files, filling in service state values, loading the configuration files, caching the service states in the configuration files, and generating a third state bit. And carrying out AND operation on the states generated by the detection modules to generate a final service state, and carrying out service switching among the channels according to the service state.
Based on the same inventive concept, the embodiment of the present invention further provides a device for detecting the availability of a distributed system of a Dubbo service framework, as described in the following embodiments. Since the principles of these solutions are similar to the detection method of the distributed system availability based on the Dubbo service framework, the implementation of the apparatus can be referred to the implementation of the method, and the repeated details are not repeated.
Fig. 4 is a block diagram of an apparatus for detecting availability of a distributed system of a Dubbo service framework in an embodiment of the present invention, as shown in fig. 4, the apparatus includes:
a list obtaining module 401, configured to obtain a Dubbo service list of a distributed system registration center;
an echo detection module 402, configured to perform Dubbo service echo detection on each service in the Dubbo service list;
a first status bit determining module 403, configured to determine a first status bit of each service according to a result of echo detection of the Dubbo service;
a connectivity detection module 404, configured to perform connectivity detection on multiple nodes in an access stratum of the distributed system;
a second status bit determining module 405, configured to determine a second status bit of each service according to a result of the connectivity detection;
and a detection module 406, configured to determine, for each service, availability of the distributed system based on the Dubbo service framework in combination with the first status bit and the second status bit of the service.
In one embodiment, the second status bit determination module 405 is further configured to:
and if the node connectivity detection result of a preset proportion of the plurality of nodes is normal connectivity, determining that the second state bit of each service is in an available state, otherwise, determining that the second state bit of each service is in an unavailable state.
In one embodiment, the detection module 406 is further configured to:
for each service, if the first status bit and the second status bit of the service are both available, determining that the availability status of the distributed system based on the Dubbo service framework is available, otherwise, determining that the availability status of the distributed system based on the Dubbo service framework is unavailable.
In one embodiment, as shown in fig. 5, the apparatus for detecting availability of a distributed system based on a Dubbo service framework in fig. 4 further includes:
a configuration file obtaining module 407, configured to obtain a configuration file corresponding to the Dubbo service list;
a third status bit determining module 408, configured to determine a third status bit of each service in the Dubbo service list according to the configuration file;
the detection module 406 is further configured to: for each service, the availability of the distributed system based on the Dubbo service framework is determined in combination with the first status bit, the second status bit and the third status bit of the service.
In summary, the embodiment of the present invention obtains the Dubbo service list of the registration center of the distributed system; performing Dubbo service echo detection on each service in the Dubbo service list; determining a first state bit of each service according to the result of the echo detection of the Dubbo service; performing connectivity detection on a plurality of nodes of a distributed system access layer; determining a second status bit of each service according to the result of the connectivity detection; for each service, determining availability of the distributed system based on the Dubbo service framework in combination with the first status bit and the second status bit of the service. According to the embodiment of the invention, manual judgment on the availability of the distributed system based on the Dubbo service framework is not needed, firstly, Dubbo service echo detection is carried out on each service in the Dubbo service list to determine whether the service is available, and then connectivity detection is carried out on a plurality of nodes of the access layer of the distributed system to determine whether the access layer is down, so that the availability of the distributed system based on the Dubbo service framework is judged by combining the echo detection result and the connectivity detection result, thereby saving labor and time, saving cost and improving the accuracy of operation.
As will be appreciated by one skilled in the art, 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 flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams 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.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.
Claims (10)
1. A method for detecting availability of a distributed system of a Dubbo service framework is characterized by comprising the following steps:
obtaining a Dubbo service list of a distributed system registration center;
performing Dubbo service echo detection on each service in the Dubbo service list;
determining a first state bit of each service according to the result of the echo detection of the Dubbo service;
performing connectivity detection on a plurality of nodes of a distributed system access layer;
determining a second status bit of each service according to the result of the connectivity detection;
for each service, determining availability of the distributed system based on the Dubbo service framework in combination with the first status bit and the second status bit of the service.
2. The method for detecting availability of a distributed system of a Dubbo service framework as claimed in claim 1, wherein determining the second status bit of each service according to the result of connectivity detection comprises:
and if the node connectivity detection result of a preset proportion of the plurality of nodes is normal connectivity, determining that the second state bit of each service is in an available state, otherwise, determining that the second state bit of each service is in an unavailable state.
3. The method for detecting the availability of the distributed system based on the Dubbo service framework as claimed in claim 1, wherein for each service, the determining the availability of the distributed system based on the Dubbo service framework in combination with the first status bit and the second status bit of the service comprises:
for each service, if the first status bit and the second status bit of the service are both available, determining that the availability status of the distributed system based on the Dubbo service framework is available, otherwise, determining that the availability status of the distributed system based on the Dubbo service framework is unavailable.
4. The method for detecting availability of a distributed system of a Dubbo service framework as claimed in claim 1, further comprising:
obtaining a configuration file corresponding to the Dubbo service list;
determining a third status bit of each service in the Dubbo service list according to the configuration file;
for each service, determining availability of a distributed system based on a Dubbo service framework in combination with a first status bit and a second status bit of the service, comprising: for each service, the availability of the distributed system based on the Dubbo service framework is determined in combination with the first status bit, the second status bit and the third status bit of the service.
5. An apparatus for detecting availability of a distributed system of a Dubbo service framework, comprising:
the service list obtaining module is used for obtaining a Dubbo service list of a registration center of the distributed system;
an echo detection module, configured to perform Dubbo service echo detection on each service in the Dubbo service list;
a first status bit determining module, configured to determine a first status bit of each service according to a result of echo detection of the Dubbo service;
the connectivity detection module is used for carrying out connectivity detection on a plurality of nodes of the access layer of the distributed system;
a second status bit determining module, configured to determine a second status bit of each service according to a result of the connectivity detection;
and the detection module is used for determining the availability of the distributed system based on the Dubbo service framework by combining the first status bit and the second status bit of each service.
6. The apparatus for detecting availability of a distributed system for the Dubbo service framework of claim 5, wherein the second status bit determination module is further configured to:
and if the node connectivity detection result of a preset proportion of the plurality of nodes is normal connectivity, determining that the second state bit of each service is in an available state, otherwise, determining that the second state bit of each service is in an unavailable state.
7. The apparatus for detecting availability of a distributed system for the Dubbo service framework of claim 5, wherein the detection module is further configured to:
for each service, if the first status bit and the second status bit of the service are both available, determining that the availability status of the distributed system based on the Dubbo service framework is available, otherwise, determining that the availability status of the distributed system based on the Dubbo service framework is unavailable.
8. The apparatus for detecting availability of a distributed system of a Dubbo service framework as claimed in claim 5, further comprising:
a configuration file obtaining module, configured to obtain a configuration file corresponding to the Dubbo service list;
a third status bit determining module, configured to determine a third status bit of each service in the Dubbo service list according to the configuration file;
the detection module is further to: for each service, the availability of the distributed system based on the Dubbo service framework is determined in combination with the first status bit, the second status bit and the third status bit of the service.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any one of claims 1 to 4 when executing the computer program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for executing the method of any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010619188.3A CN111770005B (en) | 2020-07-01 | 2020-07-01 | Method and device for detecting availability of distributed system of Dubbo service framework |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010619188.3A CN111770005B (en) | 2020-07-01 | 2020-07-01 | Method and device for detecting availability of distributed system of Dubbo service framework |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111770005A true CN111770005A (en) | 2020-10-13 |
CN111770005B CN111770005B (en) | 2022-01-04 |
Family
ID=72724454
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010619188.3A Active CN111770005B (en) | 2020-07-01 | 2020-07-01 | Method and device for detecting availability of distributed system of Dubbo service framework |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111770005B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114119241A (en) * | 2022-01-27 | 2022-03-01 | 通联支付网络服务股份有限公司 | Channel transaction system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9197599B1 (en) * | 1997-09-26 | 2015-11-24 | Verizon Patent And Licensing Inc. | Integrated business system for web based telecommunications management |
CN105490879A (en) * | 2015-12-08 | 2016-04-13 | 重庆金美通信有限责任公司 | Automatic distributed performance test system of large-scale integrated level network |
CN110018962A (en) * | 2019-04-11 | 2019-07-16 | 重庆猪八戒知识产权服务有限公司 | Service adjustment method and system based on distributed service framework and registration center |
CN110334001A (en) * | 2019-05-09 | 2019-10-15 | 极智(上海)企业管理咨询有限公司 | A kind of method and apparatus that batch automatically generates echo test |
-
2020
- 2020-07-01 CN CN202010619188.3A patent/CN111770005B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9197599B1 (en) * | 1997-09-26 | 2015-11-24 | Verizon Patent And Licensing Inc. | Integrated business system for web based telecommunications management |
CN105490879A (en) * | 2015-12-08 | 2016-04-13 | 重庆金美通信有限责任公司 | Automatic distributed performance test system of large-scale integrated level network |
CN110018962A (en) * | 2019-04-11 | 2019-07-16 | 重庆猪八戒知识产权服务有限公司 | Service adjustment method and system based on distributed service framework and registration center |
CN110334001A (en) * | 2019-05-09 | 2019-10-15 | 极智(上海)企业管理咨询有限公司 | A kind of method and apparatus that batch automatically generates echo test |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114119241A (en) * | 2022-01-27 | 2022-03-01 | 通联支付网络服务股份有限公司 | Channel transaction system |
Also Published As
Publication number | Publication date |
---|---|
CN111770005B (en) | 2022-01-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3449618B1 (en) | Service graph based serverless cloud platform | |
US9893940B1 (en) | Topologically aware network device configuration | |
US9069730B2 (en) | Coordinated reliability management of virtual machines in a virtualized system | |
CN106663033B (en) | System and method for supporting a wraparound domain and proxy model and updating service information for cross-domain messaging in a transactional middleware machine environment | |
US20170249464A1 (en) | METHOD FOR ENABLING SIMULTANEOUS CONTROL OF A PLURALITY OF TPMs AND RELATED COMPONENTS | |
JP2015501109A (en) | Calculation of network transfer status and use of transactions for propagation | |
CN104317591A (en) | OSGi (open service gateway initiative)-based web interface frame system and web business processing method thereof | |
CN111143034B (en) | Method, device and system for controlling network data forwarding plane | |
CN114205342A (en) | Routing method, electronic device, medium, and program product for service debugging | |
CN110658794A (en) | Manufacturing execution system | |
US20060288085A1 (en) | Modular server architecture for multi-environment HTTP request processing | |
CN111064626A (en) | Configuration updating method, device, server and readable storage medium | |
CN111770005B (en) | Method and device for detecting availability of distributed system of Dubbo service framework | |
CN112882792A (en) | Information loading method, computer device and storage medium | |
CN113360386B (en) | Method and device for testing driving of switching chip, electronic equipment and storage medium | |
US20150365341A1 (en) | Cloud-based resource availability calculation of a network environment | |
CN117170822B (en) | System model and code joint simulation system using distributed network middleware | |
US11848820B1 (en) | Parallel execution of network services with overlapping device configuration | |
CN116755799A (en) | Service arrangement system and method | |
CN116149840A (en) | System and method for cloud-based hybrid service grid in micro-service architecture | |
US9628401B2 (en) | Software product instance placement | |
EP4445581A1 (en) | Parallel service invocation in a network | |
US20180324267A1 (en) | Passing data streams between remote cooperating systems | |
CN111030860B (en) | Network management device, method, terminal and medium based on OpenDayLight | |
US12086141B1 (en) | Coordination of services using PartiQL queries |
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 |