Method and apparatus for performing failure checking on service of remote method invocation

A technology of remote method invocation and failure, applied in the field of distributed systems

Inactive Publication Date: 2014-04-16
FLYING FOX INFORMATION TECH TIANJIN CO LTD
View PDF6 Cites 27 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, when the service requested by the client cannot be invoked due to a fault, the server only returns a service exception response to the client

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and apparatus for performing failure checking on service of remote method invocation
  • Method and apparatus for performing failure checking on service of remote method invocation
  • Method and apparatus for performing failure checking on service of remote method invocation

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0056] see figure 1 , which is a flow chart of a method for diagnosing a service remote method call provided by an embodiment of the present invention, the method includes the following steps:

[0057] Step 101: the client connects to the Zookeeper service cluster, wherein the service provided by the server creates its own temporary node on the Zookeeper service cluster;

[0058] Each service provided by the server to the client will establish a temporary node on the Zookeeper service cluster during the initialization phase of operation, and name the temporary node with the service identifier. The identification name of each service is the IP address of the server providing the service + the port number of the service.

[0059] Step 102: The client initiates a request to the Zookeeper service cluster to monitor the temporary node of the service, and the request is used to trigger the Zookeeper service cluster to delete the temporary node of the service when deleting the tempo...

Embodiment 2

[0072] The difference between the second embodiment and the first embodiment is that after the client can determine whether the service is currently faulty according to whether it receives the event of deleting the temporary node of a certain service, for the service that is not currently faulty, if the If the server requests the service, and the request for the service fails, the client can further re-request the service until the request for the service succeeds, so as to realize the disaster recovery processing of the service through continuous retries. see figure 2 , which is a flow chart of a method for performing disaster recovery processing on a service called by a remote method provided by an embodiment of the present invention, and the method includes the following steps:

[0073] Step 201: the client connects to the Zookeeper service cluster, wherein the service provided by the server creates its own temporary node on the Zookeeper service cluster;

[0074] Step 20...

Embodiment 3

[0089] On the basis of the technical solution shown in Embodiment 2, in addition to implementing disaster recovery processing by retrying and jumping to other services, Embodiment 3 can further implement disaster recovery processing by shielding services. see image 3 , which is a flow chart of another method for performing disaster recovery processing on a service called by a remote method provided by an embodiment of the present invention, and the method includes the following steps:

[0090] Step 301: the client connects to the Zookeeper service cluster, wherein the service provided by the server creates its own temporary node on the Zookeeper service cluster;

[0091] Step 302: The client initiates a request to the Zookeeper service cluster to monitor the temporary node of the service, and the requesting user triggers the Zookeeper service cluster to delete the temporary node of the service when deleting the temporary node of the service Notify the client of the event;

...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The embodiment of the invention discloses a method and apparatus for performing failure checking on a service of remote method invocation. The method is follows: a client is connected with a Zookeeper service cluster, a service provided by a server creates a temporary node to which the service end belongs on the Zookeeper service cluster; the client initiates a request of the temporary node of monitoring the service to the Zookeeper service cluster, wherein the request is used for informing the client of a delete event when being used for triggering the Zookeeper service cluster to delete the temporary node of the service; when the client obtains the delete event, the client determines that the service fails currently, and when the client does not obtain the delete event, the client determines that the service does not fail currently. According to the embodiment of the invention, the client senses whether the service requested by the client fails or not, furthermore, when the client senses that the service requested by the client fails, a series of disaster recovery treatment measures are taken specific to a condition of request failure, and the stability and reliability of the service can be improved.

Description

technical field [0001] The invention relates to the field of distributed systems, in particular to a method and a device for checking faults of services invoked by remote methods. Background technique [0002] Java Remote Method Invocation (Java RMI, Java Remote Method Invocation) is an application programming interface for implementing remote method invocation in the Java programming language, which enables programs running on the client to call objects on the remote server ( or "Services"). The remote method invocation feature enables Java programmers to distribute operations in a network environment. [0003] When the client requests the service of the server through Java RMI, due to various uncertain factors, such as network interruption, machine failure on the server, unexpected crash of the process on the server, or excessive load pressure on the server, etc., it will cause The server cannot provide services to the client. For the client, when it cannot obtain a cer...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04L12/24H04L29/08
Inventor 吴光超贺晓亮谢刚
Owner FLYING FOX INFORMATION TECH TIANJIN CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products