A service dialing test method and device based on RPC communication
Through the service dialing method based on RPC communication, the network environment tag of the dialing protocol and the actuator are used to solve the problem of real-time log analysis delay, realizing timely monitoring and handling of business exceptions, and improving service stability.
Patent Information
- Application Number
- CN202111629367.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-28
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2041-12-28
AI Technical Summary
In the prior art, real-time log analysis cannot promptly detect problems such as network exceptions, service downtime and queue backlog, resulting in delays in discovering problems.
Using the service dialing method based on RPC communication, by creating tasks according to the dialing protocol type, setting the network environment tag of the dialing executor, and selecting the appropriate dialing executor to execute tasks, obtain the execution results, transmit and process the results to achieve Real-time monitoring.
It realizes the discovery of business abnormalities at the first time, improves the timeliness and monitoring efficiency of problem discovery, and ensures the stability and reliability of services.
Smart Images

Figure CN114553941B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of service dialing and testing, and in particular to a service dialing and testing method based on RPC communication and a service dialing and testing device based on RPC communication. Background Art
[0002] As the business develops, more and more applications are deployed. How to uniformly monitor and manage the service operation survival, time consumption, and abnormal response of each business line has become a problem to be solved. In the existing technology, the business is generally monitored in real time based on logs. However, if the abnormality is caused by network abnormalities, service downtime, queue backlog, etc., the real-time log analysis will not be timely. Therefore, how to discover the problem in the first time has become a technical problem that must be solved at this stage. Summary of the invention
[0003] In view of the above problems, embodiments of the present invention are proposed to provide a service dialing method based on RPC communication and a corresponding service dialing device based on RPC communication that overcome the above problems or at least partially solve the above problems.
[0004] In order to solve the above problems, an embodiment of the present invention discloses a service dialing method based on remote procedure call protocol RPC communication, the method comprising:
[0005] Create a dial test task based on the type of dial test protocol;
[0006] Set the network environment label of the dial test executor according to the dial test environment;
[0007] Selecting a dial test executor according to the dial test task and the network environment label of the dial test executor;
[0008] Calling the dial test executor to execute the dial test task through RPC communication;
[0009] Obtain the execution result output by the dial test executor.
[0010] Optionally, the dial test protocol type includes: Internet Control Message Protocol ICMP, Transmission Control Protocol TCP and Hypertext Transfer Protocol HTTP;
[0011] The network environment labels of the dial test executor include: public network, intranet and hybrid network.
[0012] Optionally, the selecting a dial test executor according to the dial test task and the network environment label of the dial test executor includes:
[0013] Using the time wheel to set the execution time of the dial test task;
[0014] When the execution time of the dial test task arrives, a dial test executor is selected according to the dial test task and the network environment label of the dial test executor.
[0015] Optionally, before selecting a dial test executor according to the dial test task and the dial test executor network environment label, the method includes:
[0016] Register the dial test executor network environment tag in the executor management module;
[0017] Setting a corresponding label for the dial test executor;
[0018] The dial test executor is saved to a dial test executor group of a corresponding tag.
[0019] Optionally, the dial test executor includes at least one of a dial test executor for ICMP commands, a dial test executor for TCP commands, and a dial test executor for HTTP / HTTPS commands; and selecting the dial test executor according to the dial test task and the network environment label of the dial test executor includes:
[0020] Selecting a dial test executor group with a matching label according to the dial test executor network environment label;
[0021] The dial test executor corresponding to the command is selected from the dial test executor group according to the dial test task.
[0022] Optionally, it also includes:
[0023] The execution result is transmitted to a distributed message queue for storage, and the execution result is processed.
[0024] Optionally, transmitting the execution result to a distributed message queue for storage, and processing the execution result includes:
[0025] The result of the dialing test executor executing the dialing test task is verified.
[0026] If the execution result of the verification is failure, an alarm notification is issued according to the execution result;
[0027] If the execution result of the verification is successful, obtaining the last execution result stored in the distributed message queue and making a judgment;
[0028] If the last execution result is successful, no processing is performed;
[0029] If the last execution result is a failure, notification processing is performed according to the execution result of the verification.
[0030] Accordingly, an embodiment of the present invention discloses a service dialing device based on RPC communication, the device comprising:
[0031] The creation module is used to create dial test tasks according to different dial test protocol types;
[0032] The label module is used to set the network environment label of the dial test executor according to the dial test environment;
[0033] A selection module, configured to select a dial test executor according to the dial test task and the network environment label of the dial test executor;
[0034] A calling module, used for calling the dial test executor to execute the dial test task through RPC communication;
[0035] The output module is used to obtain the execution result output by the dial test executor.
[0036] Optionally, the dial test protocol type includes: Internet Control Message Protocol ICMP, Transmission Control Protocol TCP and Hypertext Transfer Protocol HTTP;
[0037] The network environment labels of the dial test executor include: public network, intranet and hybrid network.
[0038] Optionally, the selecting a dial test executor according to the dial test task and the network environment label of the dial test executor includes:
[0039] A time wheel module, used to set the execution time of the dialing task using the time wheel;
[0040] The time setting submodule is used to select a dial test executor according to the dial test task and the network environment label of the dial test executor when the execution time of the dial test task is reached.
[0041] Optionally, before selecting a dial test executor according to the dial test task and the dial test executor network environment label, the method includes:
[0042] A registration submodule, used for registering the dial test executor network environment tag in the executor management module;
[0043] A label submodule, used to set a corresponding label for the dial test executor;
[0044] The saving submodule is used to save the dial test executor to the dial test executor group of the corresponding label.
[0045] Optionally, the dial test executor includes at least one of a dial test executor for ICMP commands, a dial test executor for TCP commands, and a dial test executor for HTTP / HTTPS commands; and selecting the dial test executor according to the dial test task and the network environment label of the dial test executor includes:
[0046] A matching submodule, used for selecting a dial test executor group with a matching label according to the dial test executor network environment label;
[0047] The selection submodule is used to select the dial test executor corresponding to the command in the dial test executor group according to the dial test task.
[0048] Optionally, it also includes:
[0049] The storage submodule is used to transmit the execution result to the distributed message queue for storage and process the execution result.
[0050] Optionally, transmitting the execution result to a distributed message queue for storage, and processing the execution result includes:
[0051] The verification submodule is used to verify the result of the dialing test task performed by the dialing test executor.
[0052] If the execution result of the verification is failure, an alarm notification is issued according to the execution result;
[0053] If the execution result of the verification is successful, obtaining the last execution result stored in the distributed message queue and making a judgment;
[0054] If the last execution result is successful, no processing is performed;
[0055] If the last execution result is a failure, notification processing is performed according to the execution result of the verification.
[0056] The embodiment of the present invention includes the following advantages: by creating a dial test task according to different dial test protocol types, and then setting a dial test executor network environment label according to the dial test environment, then selecting a dial test executor according to the dial test task and the dial test executor network environment label, calling the dial test executor through RPC communication to execute the dial test task, and finally obtaining the execution result output by the dial test executor. The embodiment of the present invention establishes different dial test tasks according to the dial test protocol type, and then sets labels according to different dial test environments, so that tasks can be automatically executed and tested in multiple environments by simply deploying executors in different network environments and specifying labels, which is a better processing method. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] Figure 1 It is a flow chart of the steps of a service dialing method based on RPC communication provided by an embodiment of the present invention;
[0058] Figure 2 It is a structural block diagram of a service dialing device based on RPC communication provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0059] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0060] In the prior art, a log method is generally used to monitor services in real time. However, if an abnormality occurs, the real-time analysis of the log will not be timely, resulting in failure to discover the problem in time.
[0061] One of the core concepts of the embodiment of the present invention is to use the Remote Procedure Call Protocol (RPC) to call the dial test executor to monitor the data, so that when an abnormality occurs, the problem can be discovered immediately.
[0062] Reference Figure 1 , shows a flow chart of the steps of a service dialing method based on RPC communication provided by an embodiment of the present invention, and the method may specifically include the following steps:
[0063] Step 101: Create a dialing test task according to different dialing test protocol types.
[0064] Different dialing test tasks are created according to different dialing test protocol types. The dialing test is a means of testing the quality of a network link, which is used to detect the link status of users in various regions to various service access points. The dialing test protocol types include: Internet Control Message Protocol (ICMP), Transmission Control Protocol (TCP), and Hypertext Transfer Protocol (HTTP), which can respectively establish ICMP dialing test tasks, TCP dialing test tasks, and HTTP dialing test tasks. Among them, ICMP is a sub-protocol of the TCP / IP protocol suite, which is used to transmit control messages between IP hosts and routers. Control messages refer to network messages such as whether the network is connected, whether the host is reachable, and whether the route is available. Although these control messages do not transmit user data, they play an important role in the transmission of user data. TCP refers to a protocol suite that can realize information transmission between multiple different networks. HTTP is a simple request-response protocol, which usually runs on TCP. It specifies what kind of message the client may send to the server and what kind of response it will get. The headers of the request and response messages are given in ASCII form; while the message content has a format similar to MIME. This simple model was instrumental in the early success of the Web because it made development and deployment very straightforward.
[0065] Step 102, setting a network environment label of the dial test executor according to the dial test environment.
[0066] Set the network environment label of the dial test executor according to the dial test environment. The network environment labels of the dial test executor include: public network, intranet and hybrid network. The dial test environment is the current running network environment. The executor receives the control signal sent by the controller. Therefore, the network environment label of the dial test executor is a label for testing the network link quality of the control signal sent by the controller according to the current running network environment. The public network is the Internet, which is a collection of computer networks formed by connecting computer networks (including local area networks, metropolitan area networks, and wide area networks) in different locations and sizes around the world. Intranet refers to the internal local area network, that is, the intranet is generally used for mutual communication between computers within the local area network, and does not communicate with the external network. Hybrid network is a mixture of networks. A hybrid network is a network that contains network hardware and equipment from multiple suppliers, or network infrastructure (tracing back to the first session).
[0067] Step 103: Select a dial test executor according to the dial test task and the network environment label of the dial test executor.
[0068] Select the dial test executor based on the dial test task and the dial test executor network environment label.
[0069] In the embodiment of the present invention, the step of selecting a dial test executor according to the dial test task and the network environment label of the dial test executor may include the following sub-steps:
[0070] Sub-step S1031, using the time wheel to set the execution time of the dialing task;
[0071] Sub-step S1032, when the execution time of the dial test task arrives, selecting a dial test executor according to the dial test task and the network environment label of the dial test executor.
[0072] Use the time wheel to set the execution time of the dial test task. When the execution time of the dial test task is reached, select the dial test executor according to the set dial test task and the set dial test executor network environment label. The execution cycle set by the time wheel can be set to seconds at the minimum. For example, set the dial test task to be executed at 12:00 every day, and execute the dial test task 10 seconds after the execution.
[0073] In the embodiment of the present invention, the step before selecting the dial test executor according to the dial test task and the dial test executor network environment label may include the following sub-steps:
[0074] Sub-step S1033, registering the dial test executor network environment tag in the executor management module;
[0075] Sub-step S1034, setting a corresponding label for the dial test executor;
[0076] Sub-step S1035, saving the dial test executor to a dial test executor group corresponding to the tag.
[0077] Before selecting a dial test executor according to the set dial test task and the set dial test executor network environment label, it is necessary to register the dial test executor network environment label in the executor management module. After the registration is completed, set the corresponding label for the dial test executor and save the dial test executor to the dial test executor group of the corresponding label. For example, register the public network, intranet and hybrid network in the executor management module, and then set the dial test executor with labels corresponding to the public network, intranet and hybrid network. And save the dial test executor to the dial test executor group of the corresponding label according to the corresponding label set by the dial test executor. When registering in the executor management module, if it is detected that this label appears for the first time, the registration is successful. If this label already exists in the executor management module, the corresponding label is directly set for the dial test executor. The dial test executor is managed through the executor management module to achieve plug-and-play, and the occupation of resources can be controlled according to the business volume to reduce costs.
[0078] In an embodiment of the present invention, the dial test executor includes at least one of a dial test executor for ICMP commands, a dial test executor for TCP commands, and a dial test executor for HTTP / HTTPS commands; the step of selecting the dial test executor according to the dial test task and the network environment label of the dial test executor may include the following sub-steps:
[0079] Sub-step S1036, selecting a dial test executor group with a matching tag according to the dial test executor network environment tag;
[0080] Sub-step S1037 , selecting the dial test executor corresponding to the command in the dial test executor group according to the dial test task.
[0081] The dial test executor is classified into at least one of a dial test executor for ICMP commands, a dial test executor for TCP commands, and a dial test executor for HTTP / HTTPS commands.
[0082] The network environment label of the dial test executor is matched with the label of the dial test executor group to obtain the matched dial test executor group, and then the dial test executors in the dial test executor group are matched according to the dial test task to obtain the dial test executor of the command corresponding to the dial test task, wherein the available dial test executor is obtained. If the dial test executor is unavailable, even if it is matched, the unavailable dial test executor is not obtained. For example, if the current network environment is the intranet and the dial test task is ICMP, the dial test executor group with the intranet label is matched, and then the available ICMP command dial test executor is matched in the intranet dial test executor group.
[0083] Step 104: calling the dial test executor to execute the dial test task through RPC communication.
[0084] The dial test executor is called in the dial test executor group through RPC communication, and the dial test executor performs the dial test task. Among them, RPC is a remote procedure call protocol, which is a protocol that requests services from a remote computer program through the network without understanding the underlying network technology. For example, when the dial test task is ICMP, RPC carries ICMP data and calls the dial test executor.
[0085] Step 105, obtaining the execution result output by the dial test executor.
[0086] When the dial test executor is executed, the execution result output by the dial test executor is obtained.
[0087] In the embodiment of the present invention, the following sub-steps are also included:
[0088] Sub-step S1051, transmitting the execution result to a distributed message queue for storage, and processing the execution result.
[0089] After the execution result is obtained, it is stored in the distributed message queue and processed.
[0090] In an embodiment of the present invention, the sub-step of transmitting the execution result to a distributed message queue for storage and processing the execution result may include the following sub-steps:
[0091] From sub-step S10511, the result of the dialing test executor executing the dialing test task is verified.
[0092] If the execution result of the verification is failure, an alarm notification is issued according to the execution result;
[0093] If the execution result of the verification is successful, obtaining the last execution result stored in the distributed message queue and making a judgment;
[0094] If the last execution result is successful, no processing is performed;
[0095] If the last execution result is a failure, notification processing is performed according to the execution result of the verification.
[0096] The result of the dial test task executed by the dial test executor is verified. If the verification result is a failure, an alarm notification is issued according to the execution result. If the verification result is a success, the last execution result stored in the distributed message queue is obtained and judged. When the last execution result is a success, no processing is performed. When the last execution result is a failure, notification processing is performed according to the verification result. Among them, the content of the notification processing according to the verification result is repaired.
[0097] The embodiment of the present invention includes the following advantages: by creating a dial test task according to different dial test protocol types, and then setting a dial test executor network environment label according to the dial test environment, then selecting a dial test executor according to the dial test task and the dial test executor network environment label, calling the dial test executor through RPC communication to execute the dial test task, and finally obtaining the execution result output by the dial test executor. The embodiment of the present invention establishes different dial test tasks according to the dial test protocol type, and then sets labels according to different dial test environments, so that tasks can be automatically executed and tested in multiple environments by simply deploying executors in different network environments and specifying labels, which is a better processing method.
[0098] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0099] Reference Figure 2 , shows a structural block diagram of a service dialing device based on RPC communication provided by an embodiment of the present invention, which may specifically include the following modules:
[0100] A creation module 201 is used to create a dial test task according to different dial test protocol types;
[0101] The label module 202 is used to set the network environment label of the dial test executor according to the dial test environment;
[0102] A selection module 203, configured to select a dial test executor according to the dial test task and the network environment label of the dial test executor;
[0103] A calling module 204 is used to call the dial test executor to execute the dial test task through RPC communication;
[0104] The output module 205 is used to obtain the execution result output by the dial test executor.
[0105] Optionally, the dial test protocol type includes: Internet Control Message Protocol ICMP, Transmission Control Protocol TCP and Hypertext Transfer Protocol HTTP;
[0106] The network environment labels of the dial test executor include: public network, intranet and hybrid network.
[0107] Optionally, the selecting a dial test executor according to the dial test task and the network environment label of the dial test executor includes:
[0108] A time wheel module, used to set the execution time of the dialing task using the time wheel;
[0109] The time setting submodule is used to select a dial test executor according to the dial test task and the network environment label of the dial test executor when the execution time of the dial test task is reached.
[0110] Optionally, before selecting a dial test executor according to the dial test task and the dial test executor network environment label, the method includes:
[0111] A registration submodule, used for registering the dial test executor network environment tag in the executor management module;
[0112] A label submodule, used to set a corresponding label for the dial test executor;
[0113] The saving submodule is used to save the dial test executor to the dial test executor group of the corresponding label.
[0114] Optionally, the dial test executor includes at least one of a dial test executor for ICMP commands, a dial test executor for TCP commands, and a dial test executor for HTTP / HTTPS commands; and selecting the dial test executor according to the dial test task and the network environment label of the dial test executor includes:
[0115] A matching submodule, used for selecting a dial test executor group with a matching label according to the dial test executor network environment label;
[0116] The selection submodule is used to select the dial test executor corresponding to the command in the dial test executor group according to the dial test task.
[0117] Optionally, it also includes:
[0118] The storage submodule is used to transmit the execution result to the distributed message queue for storage and process the execution result.
[0119] Optionally, transmitting the execution result to a distributed message queue for storage, and processing the execution result includes:
[0120] The verification submodule is used to verify the result of the dialing test task performed by the dialing test executor.
[0121] If the execution result of the verification is failure, an alarm notification is issued according to the execution result;
[0122] If the execution result of the verification is successful, obtaining the last execution result stored in the distributed message queue and making a judgment;
[0123] If the last execution result is successful, no processing is performed;
[0124] If the last execution result is a failure, notification processing is performed according to the execution result of the verification.
[0125] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0126] An embodiment of the present invention further provides an electronic device, including:
[0127] It includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, the various processes of the above-mentioned service dialing method embodiment based on RPC communication are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0128] An embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, each process of the above-mentioned service dialing method embodiment based on RPC communication is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0129] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0130] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0131] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0132] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0133] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0134] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0135] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0136] The above is a detailed introduction to a service dialing method based on RPC communication and a service dialing device based on RPC communication provided by the present invention. Specific examples are used in this article to illustrate the principle and implementation mode of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for general technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation mode and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A service dialing method based on remote procedure call protocol RPC communication, characterized in that: The method comprises: Create a dial test task based on the type of dial test protocol; Set the network environment label of the dial test executor according to the dial test environment; Selecting a dial test executor according to the dial test task and the network environment label of the dial test executor; Calling the dial test executor to execute the dial test task through RPC communication; Obtaining the execution result output by the dial test executor; The dial-up test protocol types include: Internet Control Message Protocol ICMP, Transmission Control Protocol TCP and Hypertext Transfer Protocol HTTP; The network environment labels of the dial test executor include: public network, intranet and hybrid network; The selecting the dial test executor according to the dial test task and the network environment label of the dial test executor includes: Using the time wheel to set the execution time of the dial test task; When the execution time of the dial test task arrives, a dial test executor is selected according to the dial test task and the network environment label of the dial test executor.
2. The method according to claim 1, characterized in that Before selecting the dial test executor according to the dial test task and the dial test executor network environment label, the method includes: Register the dial test executor network environment tag in the executor management module; Setting a corresponding label for the dial test executor; The dial test executor is saved to a dial test executor group of a corresponding tag.
3. The method according to claim 2, characterized in that The dial test executor includes at least one of a dial test executor for ICMP commands, a dial test executor for TCP commands, and a dial test executor for HTTP / HTTPS commands; the selecting the dial test executor according to the dial test task and the network environment label of the dial test executor includes: Selecting a dial test executor group with a matching label according to the dial test executor network environment label; The dial test executor corresponding to the command is selected from the dial test executor group according to the dial test task.
4. The method according to claim 1, characterized in that Also includes: The execution result is transmitted to a distributed message queue for storage, and the execution result is processed.
5. The method according to claim 4, characterized in that The transmitting the execution result to a distributed message queue for storage, and processing the execution result, includes: Verifying the result of the dial test executor executing the dial test task; If the execution result of the verification is failure, an alarm notification is issued according to the execution result; If the execution result of the verification is successful, obtaining the last execution result stored in the distributed message queue and making a judgment; If the last execution result is successful, no processing is performed; If the last execution result is a failure, notification processing is performed according to the execution result of the verification.
6. A service dialing device based on RPC communication, characterized in that: The device comprises: The creation module is used to create dial test tasks according to different dial test protocol types; The label module is used to set the network environment label of the dial test executor according to the dial test environment; A selection module, configured to select a dial test executor according to the dial test task and the network environment label of the dial test executor; A calling module, used for calling the dial test executor to execute the dial test task through RPC communication; An output module, used to obtain the execution result output by the dial test executor; The dial-up test protocol types include: Internet Control Message Protocol ICMP, Transmission Control Protocol TCP and Hypertext Transfer Protocol HTTP; The network environment labels of the dial test executor include: public network, intranet and hybrid network; The selection module is specifically used for: Using the time wheel to set the execution time of the dial test task; When the execution time of the dial test task arrives, a dial test executor is selected according to the dial test task and the network environment label of the dial test executor.
7. An electronic device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the steps of the service dialing method based on RPC communication as described in any one of claims 1 to 5 are implemented.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the service dialing method based on RPC communication as described in any one of claims 1 to 5 are implemented.
