A monitoring method and related device for functional modules in a distributed recommendation system
By simulating the faults of the functional modules of the distributed recommendation system in the sandbox, assessing their importance, and conducting key monitoring, the problem of poor system stability is solved and effective monitoring and protection of important functional modules is achieved.
Patent Information
- Application Number
- CN201911034565.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-10-28
- Publication Date
- 2025-01-21
- Estimated Expiration
- 2040-02-05
AI Technical Summary
The failure of functional modules in distributed recommendation systems may lead to poor system stability, and it is difficult for the existing technology to effectively monitor and prevent the failure of important functional modules.
By simulating the failure of the recommendation system functional module in the sandbox, the importance of the module is evaluated, and the information is sent to the server to achieve key monitoring of the online running functional module.
It improves the stability of the recommendation system, ensures the normal operation of important functional modules, and avoids the system becoming unavailable due to key module failures.
Smart Images

Figure CN112732952B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a monitoring method and related devices for functional modules in a distributed recommendation system. Background Art
[0002] The recommendation system recommends relevant articles, videos and other information to users based on their attributes and habits. For example, if a user often watches food videos, the recommendation system will recommend food-related videos to the user based on the video information and user habit information. Or, if a user often reads Zhang Ailing's articles and books, the recommendation system will recommend Zhang Ailing's articles and books to the user based on the author information and user habit information of the articles and books read by the user. Usually, the recommendation system contains multiple functional modules, such as video recommendation module and article recommendation module. However, when one of the functional modules fails, the recommendation system may not be able to be used normally, resulting in poor stability of the recommendation system. How to improve the stability of the recommendation system is a problem that people in this field are studying. Summary of the invention
[0003] The embodiment of the present application discloses a monitoring method and related device for functional modules in a distributed recommendation system, which can improve the stability of the recommendation system.
[0004] In a first aspect, an embodiment of the present application provides a method for monitoring a functional module in a distributed recommendation system, comprising:
[0005] Simulate in a sandbox that a first logical interface in a first functional module of a first recommendation system fails; wherein the first functional module is used to implement one or more functions of the first recommendation system, and the first logical interface is an interface that the first functional module needs to call when implementing one or more functions of the first recommendation system;
[0006] Inputting a first request to the first recommendation system, wherein the first request is used to request the first recommendation system to implement a first function, and the first function is one of the one or more functions;
[0007] Determining the importance of the first functional module according to first detailed information returned by the first recommendation system in response to the first request, the first detailed information being used to describe a situation in which the first recommendation system implements the first function when a failure occurs in the first logical interface;
[0008] Information on the importance of the first functional module is sent to the first server, so that the first server can monitor the first functional module in the second recommendation system running online according to the importance of the first functional module, wherein the first recommendation system is a test version of the second recommendation system.
[0009] By adopting the above method, the importance of each functional module in the first recommendation system can be pre-tested offline, and then the importance of each module can be sent to the first server. The first server monitors each functional module in the second recommendation system running online according to the importance of each functional module. If one of the functional modules is an important module, the first server focuses on monitoring the functional module. Through this focused monitoring method, it can ensure that important functional modules do not fail, and avoid the situation where the failure of important functional modules causes the unavailability of the entire recommendation system, thereby improving the stability of the entire recommendation system.
[0010] In an optional solution of the first aspect, determining the importance of the first functional module according to the first detailed information returned by the first recommendation system in response to the first request includes:
[0011] Comparing the first detailed information with second detailed information, the second detailed information being a situation of implementing the first function returned by the first recommendation system in response to the first request when the first logical interface in the first functional module in the first recommendation system is not faulty;
[0012] If the difference between the number of second processes and the number of first processes is greater than a preset threshold, it is determined that the first functional module belongs to a predefined important functional module; wherein, multiple processes need to be completed to realize the first function, the number of first processes is the number of processes that have been completed in the process of realizing the first function as indicated by the first detailed information, and the number of second processes is the number of processes that have been completed in the process of realizing the first function as indicated by the second detailed information.
[0013] In another optional scheme of the first aspect, the importance of the first functional module is determined based on the first detailed information returned by the first recommendation system in response to the first request, including: if the first detailed information indicates that the situation in which the first recommendation system implements the first function when the first logical interface fails is a first preset situation, then it is determined that the first functional module belongs to a predefined important functional module.
[0014] In yet another optional solution of the first aspect, inputting the first request to the first recommendation system includes: directing the input first request to the first recommendation system in the sandbox by routing.
[0015] In another optional scheme of the first aspect, after determining the importance of the first functional module based on the first detailed information returned by the first recommendation system in response to the first request, it also includes: outputting the information of the first functional module in the first recommendation system, the information of the first logical interface, the first detailed information, and the severity information.
[0016] In the above method, by outputting the information of the functional module, the information of the logical interface, the first detailed information, and the information of the severity, the developer can obtain this information more intuitively and optimize and debug the first recommendation model accordingly.
[0017] In yet another optional solution of the first aspect, before simulating in the sandbox that a failure occurs in the first logical interface in the first functional module in the first recommendation system, the method further includes:
[0018] Generate a topology map of each logical interface in the first recommendation system, wherein the topology map is used to describe the mutual calling relationship between each logical interface in the first recommendation system;
[0019] The method of simulating in a sandbox a failure of a first logical interface in a first functional module in a first recommendation system includes: simulating in a sandbox a failure of a first logical interface in a first functional module in the first recommendation system according to the topology diagram, wherein the first logical interface is any logical interface in the topology diagram.
[0020] In the above method, a topology diagram of each logical interface of the entire recommendation system is generated, and the failure of each logical interface is simulated in turn according to the topology diagram. In this way, repeated simulation of failure of the same logical interface or the occurrence of a failure of one of the logical interfaces that is not simulated can be avoided, which significantly reduces time consumption and saves operating costs.
[0021] In another optional solution of the first aspect, generating a topology map of each logical interface in the first recommendation system includes:
[0022] Generate multiple requests, wherein each of the multiple requests is a request to which a request identity ID is added in a sampling manner through a software development kit SDK;
[0023] Inputting a plurality of requests to the first recommendation system; each of the plurality of requests is used to request the first recommendation system to implement one of the one or more functions, wherein different requests in the plurality of requests are used to request different functions to be implemented;
[0024] When the collected request IDs reach a preset threshold, the topology generation system generates a topology map of each functional module in the first recommendation system according to the multiple functional modules and multiple logical interfaces in the first recommendation system, wherein any one of the multiple modules is a functional module that responds to any one of the multiple requests, and the any one module is used to respond to the received request when the request ID exists in the received request, and report the request ID to the topology generation system, and any one of the multiple logical interfaces is a logical interface that responds to any one of the multiple requests.
[0025] In a second aspect, an embodiment of the present application provides a method for monitoring a functional module in a distributed recommendation system, including:
[0026] receiving information on the importance of the first functional module in the second recommendation system sent by the second server;
[0027] If the first functional module in the second recommendation system is a predefined important functional module, monitoring the running state of the first functional module in the second recommendation system according to a first frequency;
[0028] If the first functional module in the second recommendation system does not belong to the predefined important functional module, the operating state of the first functional module in the second recommendation system is monitored according to a second frequency, wherein the first frequency is greater than the second frequency.
[0029] Using the above method, the first server monitors each functional module in the second recommendation system running online according to the importance of each functional module. If one of the functional modules is an important module, the first server focuses on monitoring the functional module. Through this focused monitoring method, it can ensure that important functional modules do not fail, and avoid the situation where the failure of important functional modules causes the entire recommendation system to be unavailable, thereby improving the stability of the entire recommendation system.
[0030] In a third aspect, an embodiment of the present application provides a server, the server comprising a processor, a memory, and a communication interface, the memory being used to store a computer program, the processor calling the computer program to perform the following operations:
[0031] Simulate in a sandbox that a first logical interface in a first functional module in a first recommendation system fails; wherein the first functional module is used to implement one or more functions of the first recommendation system, and the first logical interface is an interface that the first functional module needs to call when implementing one or more functions of the first recommendation system;
[0032] Inputting a first request to the first recommendation system, wherein the first request is used to request the first recommendation system to implement a first function, and the first function is one of the one or more functions;
[0033] determining the importance of the first functional module according to first detailed information returned by the first recommendation system in response to the first request, the first detailed information being used to describe a situation in which the first recommendation system implements the first function when a failure occurs in the first logical interface;
[0034] Information about the importance of the first functional module is sent to the first server through the communication interface, so that the first server can monitor the first functional module in the second recommendation system running online according to the importance of the first functional module, wherein the first recommendation system is a test version of the second recommendation system.
[0035] In the above-mentioned server, the importance of each functional module in the first recommendation system can be pre-tested offline, and then the importance of each module can be sent to the first server. The first server monitors each functional module in the second recommendation system running online according to the importance of each functional module. If one of the functional modules is an important module, the first server focuses on monitoring the functional module. Through this focused monitoring method, it can ensure that important functional modules do not fail, and avoid the occurrence of situations where the entire recommendation system is unavailable due to failure of important functional modules, thereby improving the stability of the entire recommendation system.
[0036] In an optional solution of the third aspect, the processor is configured to determine the importance of the first functional module according to the first detailed information returned by the first recommendation system in response to the first request, specifically:
[0037] Comparing the first detailed information with second detailed information, the second detailed information being a situation of implementing the first function returned by the first recommendation system in response to the first request when the first logical interface in the first functional module in the first recommendation system is not faulty;
[0038] If the difference between the number of second processes and the number of first processes is greater than a preset threshold, it is determined that the first functional module belongs to a predefined important functional module; wherein, multiple processes need to be completed to realize the first function, the number of first processes is the number of processes that have been completed in the process of realizing the first function as indicated by the first detailed information, and the number of second processes is the number of processes that have been completed in the process of realizing the first function as indicated by the second detailed information.
[0039] In yet another optional solution of the third aspect, the processor is configured to determine the importance of the first functional module according to the first detailed information returned by the first recommendation system in response to the first request, specifically:
[0040] If the first detailed information indicates that the situation in which the first recommendation system implements the first function when the first logical interface fails is a first preset situation, it is determined that the first functional module belongs to a predefined important functional module.
[0041] In yet another optional solution of the third aspect, the inputting the first request to the first recommendation system is specifically: directing the inputted first request to the first recommendation system in the sandbox by means of routing.
[0042] In another optional scheme of the third aspect, the processor is further used to output the information of the first functional module in the first recommendation system, the information of the first logical interface, the first detailed information, and the severity information after determining the importance of the first functional module based on the first detailed information returned by the first recommendation system in response to the first request.
[0043] In the above server, by outputting the information of the functional modules, the information of the logical interfaces, the first detailed information, and the information of the severity, the developers can obtain this information more intuitively and optimize and debug the first recommendation model accordingly.
[0044] In yet another optional solution of the third aspect, the processor is further configured to:
[0045] Before simulating in the sandbox that a first logical interface in a first functional module in a first recommendation system fails, a topology diagram of each logical interface in the first recommendation system is generated, wherein the topology diagram is used to describe the mutual calling relationship between each logical interface in the first recommendation system;
[0046] Simulating a failure of a first logical interface in a first functional module in a first recommendation system in a sandbox includes: simulating a failure of a first logical interface in a first functional module in the first recommendation system in a sandbox according to the topology diagram, wherein the first logical interface is any logical interface in the topology diagram.
[0047] In the above-mentioned server, a topology diagram of each logical interface of the entire recommendation system is generated, and the failure of each logical interface is simulated in turn according to the topology diagram. In this way, it is possible to avoid repeated simulation of failures of the same logical interface, or the occurrence of a situation where a logical interface is not simulated to fail, which significantly reduces time consumption and saves operating costs.
[0048] In yet another optional solution of the third aspect, generating a topology map of each logical interface in the first recommendation system is specifically:
[0049] Generate multiple requests, wherein each of the multiple requests is a request to which a request identity ID is added in a sampling manner through a software development kit SDK;
[0050] Inputting a plurality of requests to the first recommendation system; each of the plurality of requests is used to request the first recommendation system to implement one of the one or more functions, wherein different requests in the plurality of requests are used to request different functions to be implemented;
[0051] When the collected request IDs reach a preset threshold, the topology generation system generates a topology map of each functional module in the first recommendation system according to the multiple functional modules and multiple logical interfaces in the first recommendation system, wherein any one of the multiple modules is a functional module that responds to any one of the multiple requests, and the any one module is used to respond to the received request when the request ID exists in the received request, and report the request ID to the topology generation system, and any one of the multiple logical interfaces is a logical interface that responds to any one of the multiple requests.
[0052] In a fourth aspect, an embodiment of the present application provides a server, the server comprising a processor, a memory, and a communication interface, the memory being used to store a computer program, the processor calling the computer program to perform the following operations:
[0053] receiving, via the communication interface, information on the importance of a first functional module in a second recommendation system sent by a second server;
[0054] If the first functional module in the second recommendation system is a predefined important functional module, monitoring the running state of the first functional module in the second recommendation system according to a first frequency;
[0055] If the first functional module in the second recommendation system does not belong to the predefined important functional module, the operating state of the first functional module in the second recommendation system is monitored according to a second frequency, wherein the first frequency is greater than the second frequency.
[0056] In the above-mentioned servers, the first server monitors each functional module in the second recommendation system running online according to the importance of each functional module. If one of the functional modules is an important module, the first server focuses on monitoring the functional module. Through this focused monitoring method, it can ensure that important functional modules do not fail, and avoid the situation where the failure of important functional modules causes the entire recommendation system to be unavailable, thereby improving the stability of the entire recommendation system.
[0057] In a fifth aspect, an embodiment of the present application provides a monitoring system, which includes a first server and a second server, wherein: the second server is the server described in the first aspect, or any possible implementation of the first aspect, and the first server is the server described in the second aspect, or any possible implementation of the second aspect.
[0058] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program, which, when executed by a processor, enables the processor to implement a method for monitoring a functional module in a recommendation system of the first aspect, the second aspect, the optional solution of the first aspect, or the optional solution of the second aspect.
[0059] By implementing the embodiments of the present application, the importance of each functional module in the first recommendation system can be pre-tested offline, and then the importance of each module can be sent to the first server. The first server monitors each functional module in the second recommendation system running online according to the importance of each functional module. If one of the functional modules is an important module, the first server focuses on monitoring the functional module. Through this focused monitoring method, it can ensure that important functional modules do not fail, and avoid the situation where the failure of important functional modules causes the unavailability of the entire recommendation system, thereby improving the stability of the entire recommendation system. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments of the present application or the background technology are briefly introduced below.
[0061] Figure 1 It is a system architecture diagram of a monitoring method of functional modules in a distributed recommendation system provided by an embodiment of the present application;
[0062] Figure 2 It is a flow chart of a method for monitoring functional modules in a distributed recommendation system provided by an embodiment of the present application;
[0063] Figure 3 It is a topological diagram of some functional modules in a first recommendation system provided in an embodiment of the present application;
[0064] Figure 4 It is a topological diagram of each functional module in a first recommendation system provided in an embodiment of the present application;
[0065] Figure 5 This is a schematic diagram of an interface provided by an embodiment of the present application;
[0066] Figure 6 It is a structural diagram of a server provided in an embodiment of the present application;
[0067] Figure 7 It is a structural diagram of another server provided in an embodiment of the present application;
[0068] Figure 8 It is a structural diagram of another server provided in an embodiment of the present application;
[0069] Fig. 9 This is a structural diagram of another server provided in an embodiment of the present application. DETAILED DESCRIPTION
[0070] The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0071] See also Figure 1 , Figure 1It is a system architecture diagram of a monitoring method for functional modules in a distributed recommendation system provided by an embodiment of the present application. The system includes a sandbox environment 101, a first recommendation system 102, and a second recommendation system 103. The sandbox environment 101 and the first recommendation system 102 are deployed on a second server, and the second recommendation system 103 is deployed on a first server, wherein the first server can be a single server or a server cluster, and the second server can be a single server or a server cluster; the first server can be the same server (i.e., the first recommendation system 102 and the second recommendation system 103 are deployed on the same server), or different servers (i.e., the first recommendation system 102 and the second recommendation system 103 are deployed on different servers). The sandbox environment 101 and the first recommendation system 102 are deployed on the same server. The second recommendation system 103 is an online running version of the first recommendation system 102, and the first recommendation system 102 is a test version of the second recommendation system 103. The sandbox environment 101 is an independent operating environment similar to a sandbox, and the system, software or files can be tested in the sandbox environment. In the sandbox environment 101, running the first recommendation system 102 will not affect the online second recommendation system. The first recommendation system may have multiple functional modules, each of which has one or more logical interfaces. The second recommendation system is the same as the first recommendation system, so the configuration of its internal functional modules and logical interfaces is the same as that of the first recommendation system. In the sandbox environment 101, by simulating a failure of a certain logical interface of a certain functional module in the first recommendation system 102, the importance of the certain functional module is determined, and the importance information of the certain functional module is sent to the first server, so that the first server can monitor the certain functional module in the online second recommendation system according to the importance of the certain functional module.
[0072] The first recommendation system in the embodiment of the present application recommends relevant articles, videos, games, applications, songs, commodities and other information that the user may be interested in based on the user's attributes and habits. For example, when traveling, the first recommendation system can recommend air tickets and hotels to the user; when ordering food, the first recommendation system can recommend suitable restaurants to the user; when shopping, the first recommendation system can recommend commodities that the user may be interested in; when reading the news, the first recommendation system can recommend news that the user may be interested in; when watching videos, the first recommendation system can recommend videos that the user may be interested in.
[0073] See also Figure 2 , Figure 2 is a flow chart of a method for monitoring a functional module in a distributed recommendation system provided by an embodiment of the present application. The method can be based on Figure 1The method is implemented by the architecture shown in the figure, and includes but is not limited to the following steps.
[0074] Step S201: The second server simulates in a sandbox that a first logical interface in a first functional module in a first recommendation system fails.
[0075] There are multiple functional modules in the first recommendation system, each of which has one or more logical interfaces. The first functional module is any one of the multiple functional modules in the first recommendation system, and the first functional module is used to implement one or more functions of the first recommendation system. The first logical interface is an interface that the first functional module needs to call when implementing one or more functions of the first recommendation system. The specific logical interface is not limited and depends on the selection. For example, the first recommendation system has a video recommendation module, a news recommendation module, a novel recommendation module, and a music recommendation module. The corresponding video recommendation module has two logical interfaces, namely, a video publishing interface and a video deletion interface. The corresponding news recommendation module has two logical interfaces, namely, a news publishing interface and a news deletion interface. The corresponding novel recommendation module has three logical interfaces, namely, a novel reading interface, a novel publishing interface, and a novel deletion interface. The corresponding music recommendation module has three logical interfaces, namely, a music listening interface, a music publishing interface, and a music deletion interface.
[0076] A sandbox is an independent operating environment similar to a sandbox, in which systems, software, or files can be tested. At the same time, testing a system, software, or file in a sandbox will not affect the system, software, or file outside the sandbox, and at the same time, the system, software, or file outside the sandbox will not affect the system, software, or file inside the sandbox. The sandbox can be used to simulate a failure of the first logical interface in the first functional module of the first recommendation system. For example, a failure of the video publishing interface in the video recommendation module of the first recommendation system can be simulated in the sandbox; for example, a failure of the news deletion interface in the news recommendation module of the first recommendation system can be simulated in the sandbox; for example, a failure of the novel publishing interface in the novel recommendation module of the first recommendation system can be simulated in the sandbox. The sandbox simulation method can effectively isolate the first recommendation system from the second recommendation system running online, and prevent damage to the second recommendation system running online.
[0077] Optionally, before simulating in the sandbox that a first logical interface in the first functional module in the first recommendation system fails, a topology diagram of each logical interface in the first recommendation system may be generated, wherein the topology diagram is used to describe the mutual calling relationship between each logical interface in the first recommendation system. In this case, simulating in the sandbox that a first logical interface in the first functional module in the first recommendation system fails may specifically be as follows: simulating in the sandbox that a first logical interface in the first functional module in the first recommendation system fails according to the topology diagram.
[0078] In the above method, a topology diagram of each logical interface of the entire recommendation system is generated, and the failure of each logical interface is simulated in turn according to the topology diagram. In this way, repeated simulation of failure of the same logical interface or the occurrence of a failure of one of the logical interfaces that is not simulated can be avoided, which significantly reduces time consumption and saves operating costs.
[0079] In the embodiment of the present application, the topology of each logical interface in the first recommendation system is generated. Figure 1 The optional method may be as follows: generating multiple requests, wherein each of the multiple requests is a request to which a request identity ID is added by sampling through a software development kit (SDK); inputting multiple requests to the first recommendation system; each of the multiple requests is used to request the first recommendation system to implement one of the one or more functions, wherein different requests in the multiple requests are used to request different functions to be implemented. Then, when the collected request IDs reach a preset threshold, a topology map of each functional module in the first recommendation system is generated according to multiple functional modules and multiple logical interfaces in the first recommendation system by a topology generation system, wherein any one of the multiple modules is a functional module that responds to any one of the multiple requests, and the any one module is used to respond to the received request when there is a request ID in the received request, and report the request ID to the topology generation system, and any one of the multiple logical interfaces is a logical interface that responds to any one of the multiple requests.
[0080] For example, the first recommendation system has a video recommendation module, a news recommendation module, a novel recommendation module, and a music recommendation module. The corresponding video recommendation module has two logical interfaces, namely, a video publishing interface and a video deletion interface. The corresponding news recommendation module has two logical interfaces, namely, a news publishing interface and a news deletion interface. The corresponding novel recommendation module has three logical interfaces, namely, a novel reading interface, a novel publishing interface, and a novel deletion interface. The corresponding music recommendation module has three logical interfaces, namely, a music listening interface, a music publishing interface, and a music deletion interface. At the same time, the first recommendation system has a sensitive content module. The corresponding sensitive content module has two logical interfaces, namely, a sensitive interface and a non-sensitive interface, such as Figure 3 The figure shows a topology diagram of various logical interfaces called by some functional modules in a first recommendation system. Optionally, Figure 3 This is a possible situation in the topology diagram of each logical interface called by some functional modules, and may also include other situations. First, a request identity document (ID) is added to all requests in a sampling manner through the software development kit SDK to generate multiple requests, such as a request to publish a video and a request to delete a video; wherein the request ID of the request to publish a video is FBSPQQ, and the request ID of the request to delete a video is SCSPQQ; when a request to publish a video (i.e., the first request) is sent to the first recommendation system, the corresponding video publishing interface in the video recommendation module and the non-sensitive interface in the sensitive content module in the first recommendation system respond to the request to publish the video, and the video recommendation module and the sensitive content module report the request ID in the request to publish the video, i.e., FBSPQQ, to the topology generation system. When a request to delete a video (i.e., the first request) is sent to the first recommendation system, , the corresponding video deletion interface in the video recommendation module of the first recommendation system responds to the request to delete the video, and the video recommendation module reports the request ID in the request to delete the video, namely SCSPQQ, to the topology generation system. When the collected request IDs (FBSPQQ, SCSPQQ) reach the preset threshold 2, the topology generation system generates a topology diagram of each logical interface called by the video module based on the information of the video recommendation module, the information of the video publishing interface, the information of the sensitive content module, and the information of the non-sensitive interface. The same is true for other functional modules until a topology diagram of each logical interface called by each functional module in the first recommendation system is generated. Figure 4 The figure shows a topology diagram of various logical interfaces called by various functional modules in a first recommendation system. Figure 4 This is a possible situation of the topology diagram of each logical interface called by each functional module in the first recommendation system, and may also include other situations.
[0081] Step S202: the second server inputs a first request to the first recommendation system.
[0082] Specifically, the first request is used to request the first recommendation system to implement a first function, and the first function is one of the one or more functions.
[0083] For example, the first recommendation system has multiple functions, such as a function of video publishing, a function of deleting videos, a function of news publishing, a function of news deleting, a function of reading novels, a function of novel publishing, a function of novel deleting, a function of listening to music, a function of music publishing, and a function of music deleting. For example, the first function may be a function of video publishing, or the first function may be a function of novel publishing.
[0084] For example, the first request may be a request to publish a video; or the first request may be a request to listen to music; or the first request may be a request to publish news.
[0085] In the embodiment of the present application, inputting the first request to the first recommendation system includes: directing the input first request to the first recommendation system in the sandbox by routing.
[0086] Step S203: The second server determines the importance of the first functional module according to the first detailed information returned by the first recommendation system in response to the first request.
[0087] Specifically, the first detailed information is used to describe a situation in which the first recommendation system implements the first function when a failure occurs in the first logical interface.
[0088] Optional, such as Figure 5 As shown, for example, the second server inputs a first request to the first recommendation system, the first request is a request for publishing a video, and the first request is used to request the implementation of the video publishing function of the first recommendation system. The video publishing interface in the video recommendation module in the first recommendation system responds to the request for publishing the video (i.e., the first request), and the returned information is that the video cannot be published (i.e., the first detailed information). The second server determines that the video recommendation module (i.e., the first functional module) in the first recommendation system is a very important functional module based on the fact that the video cannot be published (i.e., the first detailed information).
[0089] In an embodiment of the present application, another optional method of determining the importance of the first functional module based on the first detailed information returned by the first recommendation system in response to the first request may be as follows: if the first detailed information indicates that the situation in which the first recommendation system implements the first function when a failure occurs in the first logical interface is a first preset situation, then it is determined that the first functional module belongs to a predefined important functional module.
[0090] For example, the first request is a request to publish a video, and the first detailed information is that when a video publishing interface under the video recommendation module fails, the video publishing interface under the video recommendation module in the first recommendation system responds to the request to publish a video, and the returned information is that the video cannot be published (i.e., the first detailed information). If the first preset situation is that the video cannot be published, then it is determined that the video recommendation module is an important functional module. If the first situation is that the video publishing is stuck, then it is determined that the video recommendation module is not an important functional module.
[0091] In the embodiment of the present application, an optional method for determining the importance of the first functional module according to the first detailed information returned by the first recommendation system in response to the first request may be as follows:
[0092] The first detailed information is compared with the second detailed information, where the second detailed information is the situation of implementing the first function returned by the first recommendation system in response to the first request when the first logical interface in the first functional module in the first recommendation system is not faulty.
[0093] If the difference between the number of second processes and the number of first processes is greater than a preset threshold, it is determined that the first functional module belongs to a predefined important functional module; wherein, multiple processes need to be completed to realize the first function, the number of first processes is the number of processes that have been completed in the process of realizing the first function as indicated by the first detailed information, and the number of second processes is the number of processes that have been completed in the process of realizing the first function as indicated by the second detailed information.
[0094] For example, the first request is a request to publish a video, and the first detailed information is that when the video publishing interface under the video recommendation module fails, the video publishing interface under the video recommendation module in the first recommendation system responds to the request to publish the video, and the returned information is that the video cannot be published (i.e., the first detailed information), and the number of completed processes in the video publishing function is 3, that is, the number of first processes is 3; the second detailed information is that when the video publishing interface under the video recommendation module does not fail, the video publishing interface under the video recommendation module in the first recommendation system responds to the request to publish the video, and the returned information is that the video is successfully published (i.e., the second detailed information), and the number of completed processes in the video publishing function is 8, that is, the number of second processes is 8. If the preset threshold is 3, then the difference between the number of second processes and the number of first processes is 5, and the difference between the number of second processes and the number of first processes, 5, is greater than the preset threshold 3, and it is determined that the video recommendation module is an important functional module.
[0095] It should be noted that the first recommendation system needs to complete several processes when implementing the first function in the first recommendation system according to the first request, wherein each process represents a phased task completed when implementing the first function.
[0096] In an embodiment of the present application, after determining the importance of the first functional module based on the first detailed information returned by the first recommendation system in response to the first request, the information of the first functional module in the first recommendation system, the information of the first logical interface, the first detailed information, and the severity information can also be output.
[0097] For example, if the first function module information in the first recommendation system is a video recommendation module, the first logical interface information in the first function module is a video publishing interface, the first detailed information is that the video cannot be published, and the severity information is very serious, then the output first function module information is a video module, the first logical interface information is a video publishing interface, the first detailed information is that the video cannot be published, and the severity information is very serious. For another example, if the first function module information in the first recommendation system is a novel recommendation module, the first logical interface information in the first function module is a novel deletion interface, the first detailed information is that the novel cannot be deleted, and the severity information is serious, then the output first function module information is a novel recommendation module, the first logical interface information is a novel deletion interface, the first detailed information is that the novel cannot be deleted, and the severity information is serious.
[0098] In the above method, by outputting the information of the functional modules, the information of the logical interfaces, the first detailed information, and the information of the severity, the developers can obtain the information more intuitively and optimize and debug the first recommendation system accordingly.
[0099] In an embodiment of the present application, after outputting the information of the first functional module in the first recommendation system, the information of the first logical interface, the first detailed information, and the severity information, the user focuses on monitoring the first functional module in the second recommendation system to prevent failure of the first functional module, which may result in poor stability of the second recommendation system.
[0100] Optionally, the information of the first functional module in the first recommendation system, the information of the first logical interface, the first detailed information, and the severity information are stored to facilitate developers to make analysis decisions when adding new functions or deleting old functions in the first recommendation system based on the above information.
[0101] Step S204: the second server sends the information about the importance of the first functional module to the first server.
[0102] The information on the importance of the first functional module is used by the first server to monitor the first functional module in the second recommendation system running online according to the importance of the first functional module, wherein the first recommendation system is a test version of the second recommendation system.
[0103] Specifically, the information on the importance of the first functional module may include that the first functional module belongs to an important module, or that the first functional module does not belong to an important functional module.
[0104] Step S205: The first server receives the information on the importance of the first functional module sent by the second server.
[0105] Step S206: the first server focuses on monitoring the first functional module in the second recommendation system running online according to the information about the importance of the first functional module.
[0106] In the embodiment of the present application, an optional method for monitoring the first functional module in the second recommendation system running online according to the information of the importance level may be as follows:
[0107] If the first function module in the first recommendation system is a predefined important function module, the operation status of the first function module in the second recommendation system in the online system is monitored according to the first frequency.
[0108] If the first function module in the first recommendation system does not belong to the predefined important function module, the operation status of the first function module in the second recommendation system in the online system is monitored according to a second frequency, wherein the first frequency is greater than the second frequency.
[0109] For example, if the video recommendation module in the first recommendation system is an important functional module, then the video recommendation module in the second recommendation system is an important functional module, and the running status of the video recommendation module in the second recommendation system is monitored every 10 minutes.
[0110] For example, if the novel recommendation module in the first recommendation system is not an important functional module, then the novel recommendation module in the second recommendation system is not an important functional module, and the running status of the video recommendation module in the second recommendation system is monitored every hour.
[0111] Supplementary explanation: when the first recommendation system and the second recommendation system are deployed on the same server, the second server does not need to send the information about the importance of the first functional module to the first server, and the first server does not need to receive the information about the importance of the first functional module sent by the second server. The first server can directly call the result of the information about the importance of the first functional module in the second server.
[0112] exist Figure 2In the described method, the importance of each functional module in the first recommendation system can be pre-tested offline, and then the importance of each module can be sent to the first server. The first server monitors each functional module in the second recommendation system running online according to the importance of each functional module. If one of the functional modules is an important module, the first server focuses on monitoring the functional module. Through this focused monitoring method, it can ensure that important functional modules do not fail, and avoid the situation where the failure of important functional modules causes the unavailability of the entire recommendation system, thereby improving the stability of the entire recommendation system.
[0113] The method of the embodiment of the present application is described in detail above, and the device of the embodiment of the present application is provided below.
[0114] See also Figure 6 , Figure 6 Schematic diagram of the structure of a server 600 provided in an embodiment of the present application. The server 600 may include a simulation unit 601, an input unit 602, a determination unit 603 and a sending unit 604, wherein each unit is described in detail as follows.
[0115] The simulation unit 601 is used to simulate in a sandbox a failure of a first logical interface in a first functional module in a first recommendation system; wherein the first functional module is used to implement one or more functions of the first recommendation system, and the first logical interface is an interface that needs to be called by the first functional module when implementing one or more functions of the first recommendation system.
[0116] The input unit 602 is used to input a first request to the first recommendation system, wherein the first request is used to request the first recommendation system to implement a first function, and the first function is one of the one or more functions.
[0117] The determination unit 603 is used to determine the importance of the first functional module according to the first detailed information returned by the first recommendation system in response to the first request, and the first detailed information is used to describe the situation in which the first recommendation system implements the first function when the first logical interface fails.
[0118] The sending unit 604 is used to send the information about the importance of the first functional module to the first server, so that the first server can monitor the first functional module in the second recommendation system running online according to the importance of the first functional module, wherein the first recommendation system is a test version of the second recommendation system.
[0119] In the above-mentioned server, the importance of each functional module in the first recommendation system can be pre-tested offline, and then the importance of each module can be sent to the first server. The first server monitors each functional module in the second recommendation system running online according to the importance of each functional module. If one of the functional modules is an important module, the first server focuses on monitoring the functional module. Through this focused monitoring method, it can ensure that important functional modules do not fail, and avoid the occurrence of situations where the entire recommendation system is unavailable due to failure of important functional modules, thereby improving the stability of the entire recommendation system.
[0120] In an optional solution, the determining unit 603 is configured to determine the importance of the first functional module according to the first detailed information returned by the first recommendation system in response to the first request, specifically:
[0121] The first detailed information is compared with the second detailed information, where the second detailed information is the situation of implementing the first function returned by the first recommendation system in response to the first request when the first logical interface in the first functional module in the first recommendation system is not faulty.
[0122] If the difference between the number of second processes and the number of first processes is greater than a preset threshold, it is determined that the first functional module belongs to a predefined important functional module; wherein, multiple processes need to be completed to realize the first function, the number of first processes is the number of processes that have been completed in the process of realizing the first function as indicated by the first detailed information, and the number of second processes is the number of processes that have been completed in the process of realizing the first function as indicated by the second detailed information.
[0123] In yet another optional solution, the determining unit 603 is configured to determine the importance of the first functional module according to the first detailed information returned by the first recommendation system in response to the first request, specifically:
[0124] If the first detailed information indicates that the situation in which the first recommendation system implements the first function when the first logical interface fails is a first preset situation, it is determined that the first functional module belongs to a predefined important functional module.
[0125] In yet another optional solution, the input unit 602, used to input a first request to the first recommendation system, includes:
[0126] The input first request is directed to the first recommendation system in the sandbox by routing.
[0127] In yet another optional solution, after the determining unit 603 is configured to determine the importance of the first functional module according to the first detailed information returned by the first recommendation system in response to the first request, a server further includes:
[0128] The output unit is used to output the information of the first functional module, the information of the first logical interface, the first detailed information, and the severity information in the first recommendation system.
[0129] In the above server, by outputting the information of the functional modules, the information of the logical interfaces, the first detailed information, and the information of the severity, the developers can obtain this information more intuitively and optimize and debug the first recommendation model accordingly.
[0130] In yet another optional solution, the simulation unit 601 is used to simulate in the sandbox that before the first logical interface in the first functional module in the first recommendation system fails, further comprising:
[0131] The generating unit is used to generate a topological map of each logical interface in the first recommendation system, wherein the topological map is used to describe the mutual calling relationship between each logical interface in the first recommendation system.
[0132] The method of simulating in a sandbox a failure of a first logical interface in a first functional module in a first recommendation system includes: simulating in a sandbox a failure of a first logical interface in a first functional module in the first recommendation system according to the topology diagram, wherein the first logical interface is any logical interface in the topology diagram.
[0133] In the above-mentioned server, a topology diagram of each logical interface of the entire recommendation system is generated, and the failure of each logical interface is simulated in turn according to the topology diagram. In this way, it is possible to avoid repeated simulation of failures of the same logical interface, or the occurrence of a situation where a logical interface is not simulated to fail, which significantly reduces time consumption and saves operating costs.
[0134] In yet another optional solution, the generating unit, used to generate a topology diagram of each logical interface in the first recommendation system, includes:
[0135] Generate multiple requests, wherein each of the multiple requests is a request to which a request identity ID is added in a sampling manner through a software development kit SDK;
[0136] A plurality of requests are input to the first recommendation system; each of the plurality of requests is used to request the first recommendation system to implement one of the one or more functions, wherein different requests in the plurality of requests are used to request different functions to be implemented.
[0137] When the collected request IDs reach a preset threshold, the topology generation system generates a topology map of each functional module in the first recommendation system according to the multiple functional modules and multiple logical interfaces in the first recommendation system, wherein any one of the multiple modules is a functional module that responds to any one of the multiple requests, and the any one module is used to respond to the received request when the request ID exists in the received request, and report the request ID to the topology generation system, and any one of the multiple logical interfaces is a logical interface that responds to any one of the multiple requests.
[0138] It should be noted that the implementation and beneficial effects of each unit can also refer to Figure 2 The corresponding description of the method embodiment shown.
[0139] See also Figure 7 , Figure 7 Detailed description of the structure of a server 700 provided in an embodiment of the present application is as follows. The server 700 may include a receiving unit 701, a first monitoring unit 702 and a second monitoring unit 703. The detailed description of each unit is as follows.
[0140] The receiving unit 701 is configured to receive information on the importance of a first functional module in a second recommendation system sent by a second server.
[0141] The first monitoring unit 702 is configured to monitor the operating state of the first functional module in the second recommendation system according to a first frequency when the first functional module in the second recommendation system is a predefined important functional module.
[0142] The second monitoring unit 703 is used to monitor the operating status of the first functional module in the second recommendation system according to a second frequency when the first functional module in the second recommendation system does not belong to the predefined important functional module, wherein the first frequency is greater than the second frequency.
[0143] In the above-mentioned servers, the first server monitors each functional module in the second recommendation system running online according to the importance of each functional module. If one of the functional modules is an important module, the first server focuses on monitoring the functional module. Through this focused monitoring method, it can ensure that important functional modules do not fail, and avoid the situation where the failure of important functional modules causes the entire recommendation system to be unavailable, thereby improving the stability of the entire recommendation system.
[0144] It should be noted that the implementation and beneficial effects of each unit can also refer to Figure 2 The corresponding description of the method embodiment shown.
[0145] See also Figure 8 , Figure 8 A server 800 is provided in an embodiment of the present application. The server 800 includes a processor 801, a memory 802, and a communication interface 803. The processor 801, the memory 802, and the communication interface 803 are interconnected via a bus.
[0146] The memory 802 includes, but is not limited to, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), or a portable read-only memory (CD-ROM), and is used for related instructions and data. The communication interface 803 is used to receive and send data.
[0147] The processor 801 may be one or more central processing units (CPUs) 801 . When the processor 801 is a CPU, the CPU may be a single-core CPU or a multi-core CPU.
[0148] The processor 801 in the server 800 calls the computer program stored in the memory 802 to perform the following operations:
[0149] A failure of the first logical interface in the first functional module of the first recommendation system is simulated in a sandbox; wherein the first functional module is used to implement one or more functions of the first recommendation system, and the first logical interface is an interface that the first functional module needs to call when implementing one or more functions of the first recommendation system.
[0150] A first request is input into the first recommendation system, wherein the first request is used to request the first recommendation system to implement a first function, and the first function is one of the one or more functions.
[0151] The importance of the first functional module is determined according to first detailed information returned by the first recommendation system in response to the first request, wherein the first detailed information is used to describe a situation in which the first recommendation system implements the first function when a failure occurs in the first logical interface.
[0152] Information on the importance of the first functional module is sent to the first server via the communication interface 803, so that the first server can monitor the first functional module in the second recommendation system running online according to the importance of the first functional module, wherein the first recommendation system is a test version of the second recommendation system.
[0153] In the above-mentioned server, the importance of each functional module in the first recommendation system can be pre-tested offline, and then the importance of each module can be sent to the first server. The first server monitors each functional module in the second recommendation system running online according to the importance of each functional module. If one of the functional modules is an important module, the first server focuses on monitoring the functional module. Through this focused monitoring method, it can ensure that important functional modules do not fail, and avoid the occurrence of situations where the entire recommendation system is unavailable due to failure of important functional modules, thereby improving the stability of the entire recommendation system.
[0154] In an optional solution, the processor 801 is configured to determine the importance of the first functional module according to the first detailed information returned by the first recommendation system in response to the first request, specifically:
[0155] The first detailed information is compared with the second detailed information, where the second detailed information is the situation of implementing the first function returned by the first recommendation system in response to the first request when the first logical interface in the first functional module in the first recommendation system is not faulty.
[0156] If the difference between the number of second processes and the number of first processes is greater than a preset threshold, it is determined that the first functional module belongs to a predefined important functional module; wherein, multiple processes need to be completed to realize the first function, the number of first processes is the number of processes that have been completed in the process of realizing the first function as indicated by the first detailed information, and the number of second processes is the number of processes that have been completed in the process of realizing the first function as indicated by the second detailed information.
[0157] In yet another optional solution, the processor 801 is configured to determine the importance of the first functional module according to the first detailed information returned by the first recommendation system in response to the first request, specifically:
[0158] If the first detailed information indicates that the situation in which the first recommendation system implements the first function when the first logical interface fails is a first preset situation, it is determined that the first functional module belongs to a predefined important functional module.
[0159] In yet another optional solution, the processor 801 is configured to input a first request to the first recommendation system by routing the input first request to the first recommendation system in the sandbox.
[0160] In another optional scheme, the processor 801 is also used to output the information of the first functional module in the first recommendation system, the information of the first logical interface, the first detailed information, and the severity information after determining the importance of the first functional module based on the first detailed information returned by the first recommendation system in response to the first request.
[0161] In the above server, by outputting the information of the functional modules, the information of the logical interfaces, the first detailed information, and the information of the severity, the developers can obtain this information more intuitively and optimize and debug the first recommendation model accordingly.
[0162] In another optional scheme, the processor 801 is also used to generate a topology map of each logical interface in the first recommendation system before simulating a failure of the first logical interface in the first functional module in the first recommendation system in a sandbox, wherein the topology map is used to describe the mutual calling relationship between each logical interface in the first recommendation system.
[0163] Simulating a failure of a first logical interface in a first functional module in a first recommendation system in a sandbox includes: simulating a failure of a first logical interface in a first functional module in the first recommendation system in a sandbox according to the topology diagram, wherein the first logical interface is any logical interface in the topology diagram.
[0164] In the above-mentioned server, a topology diagram of each logical interface of the entire recommendation system is generated, and the failure of each logical interface is simulated in turn according to the topology diagram. In this way, it is possible to avoid repeated simulation of failures of the same logical interface, or the occurrence of a situation where a logical interface is not simulated to fail, which significantly reduces time consumption and saves operating costs.
[0165] In yet another optional solution, the processor 801 is configured to generate a topology diagram of each logical interface in the first recommendation system, specifically:
[0166] Generate multiple requests, wherein each of the multiple requests is a request to which a request identity ID is added in a sampling manner through a software development kit SDK;
[0167] A plurality of requests are input to the first recommendation system; each of the plurality of requests is used to request the first recommendation system to implement one of the one or more functions, wherein different requests in the plurality of requests are used to request different functions to be implemented.
[0168] When the collected request IDs reach a preset threshold, the topology generation system generates a topology map of each functional module in the first recommendation system according to the multiple functional modules and multiple logical interfaces in the first recommendation system, wherein any one of the multiple modules is a functional module that responds to any one of the multiple requests, and the any one module is used to respond to the received request when the request ID exists in the received request, and report the request ID to the topology generation system, and any one of the multiple logical interfaces is a logical interface that responds to any one of the multiple requests.
[0169] It should be noted that the implementation and beneficial effects of each operation can also refer to Figure 2 The corresponding description of the method embodiment shown.
[0170] See also Fig. 9 , Fig. 9 A server 900 is provided in an embodiment of the present application. The server 900 includes a processor 901, a memory 902, and a communication interface 903. The processor 901, the memory 902, and the communication interface 903 are interconnected via a bus.
[0171] The memory 902 includes, but is not limited to, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), or a portable read-only memory (CD-ROM), and is used for related instructions and data. The communication interface 903 is used to receive and send data.
[0172] The processor 901 may be one or more central processing units (CPUs) 901 . When the processor 901 is a CPU, the CPU may be a single-core CPU or a multi-core CPU.
[0173] The processor 901 in the server 900 calls the computer program stored in the memory 902 to perform the following operations:
[0174] The information on the importance of the first functional module in the second recommendation system is received through the communication interface 903 and sent by the second server.
[0175] If the first functional module in the second recommendation system is a predefined important functional module, the operating state of the first functional module in the second recommendation system is monitored at a first frequency.
[0176] If the first functional module in the second recommendation system does not belong to the predefined important functional module, the operating state of the first functional module in the second recommendation system is monitored according to a second frequency, wherein the first frequency is greater than the second frequency.
[0177] Using the above method, the first server monitors each functional module in the second recommendation system running online according to the importance of each functional module. If one of the functional modules is an important module, the first server focuses on monitoring the functional module. Through this focused monitoring method, it can ensure that important functional modules do not fail, and avoid the situation where the failure of important functional modules causes the entire recommendation system to be unavailable, thereby improving the stability of the entire recommendation system.
[0178] It should be noted that the implementation and beneficial effects of each operation can also refer to Figure 2 The corresponding description of the method embodiment shown.
[0179] The present application also provides a computer-readable storage medium in which instructions are stored. When the instructions are executed on a processor, Figure 2 The operations performed in the method embodiment shown.
[0180] The present application also provides a computer program product, which, when executed on a processor, implements Figure 2 The operations performed in the method embodiment shown.
[0181] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes in the above-mentioned method embodiments. The aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store computer programs.
Claims
1. A method for monitoring functional modules in a distributed recommendation system, characterized in that: include: Generate a topology map of each logical interface in the first recommendation system, wherein the topology map is used to describe the mutual calling relationship between each logical interface in the first recommendation system; According to the topology diagram, a fault occurs in a first logical interface in a first functional module in a first recommendation system, simulating in a sandbox, wherein the first logical interface is any logical interface in the topology diagram; wherein the first functional module is used to implement one or more functions of the first recommendation system, and the first logical interface is an interface that the first functional module needs to call when implementing one or more functions of the first recommendation system; Inputting a first request to the first recommendation system, wherein the first request is used to request the first recommendation system to implement a first function, and the first function is one of the one or more functions; determining the importance of the first functional module according to first detailed information returned by the first recommendation system in response to the first request, the first detailed information being used to describe a situation in which the first recommendation system implements the first function when a failure occurs in the first logical interface; Information about the importance of the first functional module is sent to the first server, so that the first server can monitor the first functional module in the second recommendation system running online according to the importance of the first functional module, wherein the first recommendation system is a test version of the second recommendation system.
2. The method according to claim 1, characterized in that: The determining the importance of the first functional module according to the first detailed information returned by the first recommendation system in response to the first request includes: comparing the first detailed information with second detailed information, where the second detailed information is a situation of implementing the first function returned by the first recommendation system in response to the first request when the first logical interface in the first functional module in the first recommendation system is not faulty; If the difference between the number of second processes and the number of first processes is greater than a preset threshold, it is determined that the first functional module belongs to a predefined important functional module; wherein, multiple processes need to be completed to realize the first function, the first process number is the number of processes that have been completed in the process of realizing the first function as indicated by the first detailed information, and the second process number is the number of processes that have been completed in the process of realizing the first function as indicated by the second detailed information.
3. The method according to claim 1, characterized in that The determining the importance of the first functional module according to the first detailed information returned by the first recommendation system in response to the first request includes: If the first detailed information indicates that the situation in which the first recommendation system implements the first function when the first logical interface fails is a first preset situation, it is determined that the first functional module belongs to a predefined important functional module.
4. The method according to claim 1, characterized in that: The inputting the first request to the first recommendation system comprises: The input first request is directed to the first recommendation system in the sandbox by routing.
5. The method according to any one of claims 1 to 3, characterized in that: After determining the importance of the first functional module according to the first detailed information returned by the first recommendation system in response to the first request, the method further includes: Output information about the first functional module, information about the first logical interface, the first detailed information, and severity information in the first recommendation system.
6. The method according to claim 1, characterized in that The generating a topology diagram of each logical interface in the first recommendation system includes: Generate multiple requests, wherein each of the multiple requests is a request to which a request identity ID is added in a sampling manner through a software development kit SDK; Inputting the multiple requests to the first recommendation system; each of the multiple requests is used to request the first recommendation system to implement one of the one or more functions, wherein different requests in the multiple requests are used to request different functions to be implemented; When the collected request IDs reach a preset threshold, the topology generation system generates a topology map of each functional module in the first recommendation system according to the multiple functional modules and the multiple logical interfaces in the first recommendation system, wherein any one of the multiple functional modules is a functional module that responds to any one of the multiple requests, and the any one functional module is used to respond to the received request when the request ID exists in the received request, and report the request ID to the topology generation system, and any one of the multiple logical interfaces is a logical interface that responds to any one of the multiple requests.
7. A method for monitoring functional modules in a distributed recommendation system, characterized in that: include: receiving information on the importance of the first functional module in the second recommendation system sent by the second server; The importance is determined based on the first detailed information returned by the first recommendation system in response to the first request, wherein the first request is used to request the first recommendation system to implement a first function, the first function being one of one or more functions, and the first detailed information being used to describe the situation in which the first recommendation system implements the first function when a first logical interface fails; the second server is used to generate a topology diagram of each logical interface in the first recommendation system, wherein the topology diagram is used to describe the mutual calling relationship between each logical interface in the first recommendation system; the second server is also used to simulate in a sandbox a failure of a first logical interface in a first functional module in the first recommendation system according to the topology diagram, wherein the first logical interface is any one of the logical interfaces in the topology diagram; wherein the first functional module is used to implement the one or more functions of the first recommendation system, and the first logical interface is an interface that the first functional module needs to call when implementing the one or more functions of the first recommendation system; If the first functional module in the second recommendation system is a predefined important functional module, monitoring the running state of the first functional module in the second recommendation system according to a first frequency; If the first functional module in the second recommendation system does not belong to the predefined important functional module, the operating state of the first functional module in the second recommendation system is monitored according to a second frequency, wherein the first frequency is greater than the second frequency.
8. A server, characterized in that: The server includes a processor, a memory and a communication interface, the memory is used to store a computer program, and the processor calls the computer program to perform the following operations: Generate a topology map of each logical interface in the first recommendation system, wherein the topology map is used to describe the mutual calling relationship between each logical interface in the first recommendation system; According to the topology diagram, a fault occurs in a first logical interface in a first functional module in a first recommendation system, simulating in a sandbox, wherein the first logical interface is any logical interface in the topology diagram; wherein the first functional module is used to implement one or more functions of the first recommendation system, and the first logical interface is an interface that the first functional module needs to call when implementing one or more functions of the first recommendation system; Inputting a first request to the first recommendation system, wherein the first request is used to request the first recommendation system to implement a first function, and the first function is one of the one or more functions; determining the importance of the first functional module according to first detailed information returned by the first recommendation system in response to the first request, the first detailed information being used to describe a situation in which the first recommendation system implements the first function when a failure occurs in the first logical interface; Information about the importance of the first functional module is sent to the first server through the communication interface, so that the first server can monitor the first functional module in the second recommendation system running online according to the importance of the first functional module, wherein the first recommendation system is a test version of the second recommendation system.
9. The server according to claim 8, characterized in that: The determining the importance of the first functional module according to the first detailed information returned by the first recommendation system in response to the first request is specifically: comparing the first detailed information with second detailed information, where the second detailed information is a situation of implementing the first function returned by the first recommendation system in response to the first request when the first logical interface in the first functional module in the first recommendation system is not faulty; If the difference between the number of second processes and the number of first processes is greater than a preset threshold, it is determined that the first functional module belongs to a predefined important functional module; wherein, multiple processes need to be completed to realize the first function, the first process number is the number of processes that have been completed in the process of realizing the first function as indicated by the first detailed information, and the second process number is the number of processes that have been completed in the process of realizing the first function as indicated by the second detailed information.
10. The server according to claim 8, characterized in that: The determining the importance of the first functional module according to the first detailed information returned by the first recommendation system in response to the first request is specifically: If the first detailed information indicates that the situation in which the first recommendation system implements the first function when the first logical interface fails is a first preset situation, it is determined that the first functional module belongs to a predefined important functional module.
11. The server according to claim 8, characterized in that: The inputting the first request to the first recommendation system specifically includes: The input first request is directed to the first recommendation system in the sandbox by routing.
12. A server, characterized in that: The server includes a processor, a memory and a communication interface, the memory is used to store a computer program, and the processor calls the computer program to perform the following operations: receiving, via the communication interface, information on the importance of a first functional module in a second recommendation system sent by a second server; the importance is determined based on first detailed information returned by the first recommendation system in response to a first request, the first request being used to request the first recommendation system to implement a first function, the first function being one of one or more functions, the first detailed information being used to describe a situation in which the first recommendation system implements the first function when a first logical interface fails; the second server being used to generate a topology diagram of each logical interface in the first recommendation system, wherein the topology diagram is used to describe a mutual calling relationship between each logical interface in the first recommendation system; the second server being used to simulate in a sandbox a failure of a first logical interface in a first functional module in the first recommendation system according to the topology diagram, wherein the first logical interface is any one of the logical interfaces in the topology diagram; wherein the first functional module is used to implement the one or more functions of the first recommendation system, and the first logical interface is an interface that the first functional module needs to call when implementing the one or more functions of the first recommendation system; If the first functional module in the second recommendation system is a predefined important functional module, monitoring the running state of the first functional module in the second recommendation system according to a first frequency; If the first functional module in the second recommendation system does not belong to the predefined important functional module, the operating state of the first functional module in the second recommendation system is monitored according to a second frequency, wherein the first frequency is greater than the second frequency.
13. A monitoring system, characterized in that: The system comprises a first server and a second server, wherein: The first server is the server according to claim 12; The second server is the server described in any one of claims 8-11.
14. 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 processor implements the method for monitoring function modules in the distributed recommendation system according to any one of claims 1 to 7.
Citation Information
Patent Citations
Portable ground online flight simulation system
CN107942720A