A method for realizing dynamic expansion of backend service monitoring
By expanding server-side monitoring, the problems of authenticity and validity of monitoring data and upload anomalies in the logistics industry have been solved, and efficient and secure transmission of monitoring data has been achieved.
Patent Information
- Application Number
- CN202211518833.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-30
- Publication Date
- 2025-09-23
- Estimated Expiration
- 2042-11-30
AI Technical Summary
The existing logistics industry monitoring data is collected by the collection end, which cannot guarantee the authenticity and validity of the data. In addition, when uploading anomalies, it takes a long time to reconnect, affecting the efficiency and security of the monitoring data.
By expanding server-side monitoring, using a data sampling service cluster to obtain registration requests from the backend service cluster, setting a service number, and uploading monitoring data on the server, we can ensure that the data is authentic and valid, avoid reconnecting to the service when an upload exception occurs, and improve the efficiency and security of data upload.
It ensures the authenticity, validity and security of monitoring data, avoids reconnection service due to upload anomalies, and improves the efficiency and security of data upload.
Smart Images

Figure CN115883576B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication transmission technology, and in particular to a method for realizing dynamic expansion of back-end service monitoring. Background Art
[0002] With the rapid development of the logistics industry, people are paying more and more attention to the stable operation of the logistics industry. At present, the monitoring data of the existing logistics industry is mainly collected by the collection end. Compared with the server, the collection end as the main load cannot guarantee the authenticity and validity of the monitoring data in actual use; in addition, when uploading monitoring data, if there is an upload abnormality, it takes a long time to upload and reconnect, and the efficiency and security of uploading monitoring data cannot be guaranteed, nor can the security of monitoring data be guaranteed. Based on this, we provide a method to achieve server-side expansion. By expanding the server, we solve the problem that the collection end as the main load cannot guarantee the authenticity and validity of monitoring data in actual use, and expand the corresponding solution for upload failure, without the need for reconnection service, which improves the efficiency and security of uploading monitoring data. Summary of the Invention
[0003] The purpose of the present invention is to provide a method for realizing dynamic expansion of back-end service monitoring, and to solve the problem that the acquisition end as the main load cannot guarantee the authenticity and validity of monitoring data in actual application through the expanded service end, and to expand the corresponding solution method for upload failure, without the need for reconnection service, thereby improving the efficiency and security of monitoring data uploading.
[0004] The embodiments of the present invention are achieved through the following technical solutions:
[0005] A method for implementing dynamic expansion of backend service monitoring, the method comprising the steps of:
[0006] Correct the backend service cluster, obtain the registration request of the backend service cluster through the data sampling service cluster, formulate a service number based on the registration request of the backend service cluster, confirm the service number, and then send the confirmed number to the backend service cluster;
[0007] The backend service cluster verifies the information sent and feeds it back to the data sampling service cluster. Based on the information collection extension package sent by the data sampling service cluster, it determines whether the service status of the backend service cluster is normal. If so, the data sampling service cluster sends a channel instruction to the backend service cluster.
[0008] The backend service cluster uploads the monitoring data to the data sampling service cluster according to the channel instructions, and confirms whether there is any abnormality in the upload. If so, it performs exception handling until there is no abnormality in the upload. If not, the data sampling service processes the monitoring data and synchronizes it to other sampling service clusters. It then returns to the backend service cluster to verify the information sent and conduct the next collection, completing the secure transmission of the backend service cluster monitoring data.
[0009] Optionally, the modification of the backend service cluster is specifically: importing the basic configuration parameters of the data sampling service cluster to the backend service cluster, wherein the basic configuration parameters of the data sampling service cluster include: data sampling service cluster IP address, service name, registration port, and collection directory.
[0010] Optionally, the data sampling service cluster includes: sampling service cluster one and sampling service cluster two.
[0011] Optionally, after the backend service cluster completes the correction, the specific steps are: obtain the registration request of the backend service cluster through sampling service cluster one, and formulate a service number based on the registration request of the backend service cluster, sampling service cluster one sends the service number to sampling service cluster two for number confirmation, and feeds back the confirmation result to sampling service cluster one for number update, and then sends the updated service number to the backend service cluster.
[0012] Optionally, the specific steps for confirming the number are as follows: sampling service cluster 2 determines whether the current host has a number. If not, it uses the service number sent by sampling service cluster 1 and feeds back the confirmation result to sampling service cluster 1. If so, it determines whether there is monitoring data within the preset time. If not, it uses the service number sent by sampling service cluster 1 and feeds back the confirmation result to sampling service cluster 1. If so, it feeds back the number of the current host to sampling service cluster 1 for number update and confirmation, and then sends the confirmed number to the back-end service cluster.
[0013] Optionally, the service ID is specifically composed of a random string containing alphanumeric characters and is not repeated with a registered service ID, and is used to request the IP and port of the backend service cluster.
[0014] Optionally, the backend service cluster verifies the sent information, and the specific steps are: verify whether the sent information of the service number is the information of the current service based on the IP and port of the backend service cluster. If the verification result is yes, the service number is stored and fed back to the data sampling service cluster.
[0015] Optionally, the confirmation of whether an abnormality occurs in the upload is performed. If so, it is determined that the time for uploading the monitoring data to the data sampling service cluster exceeds a threshold or the time for confirming whether abnormal information occurs in the upload exceeds a threshold. If the time for uploading the monitoring data to the data sampling service cluster exceeds the threshold, the information collection extension package is returned to the data sampling service cluster for resending; if the time for confirming whether abnormal information occurs in the upload exceeds the threshold, the service number is deleted and returned to the correction backend service cluster.
[0016] The technical solutions of the embodiments of the present invention have at least the following advantages and beneficial effects:
[0017] This embodiment solves the problem that the acquisition end as the main load cannot guarantee the authenticity and validity of monitoring data in actual use through an extended server end, and expands the corresponding solution to upload failures, eliminating the need for reconnection services, thereby improving the efficiency and security of monitoring data upload. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 A schematic diagram of the overall process of a method for implementing dynamic expansion of backend service monitoring provided by the present invention;
[0019] Figure 2 This is a schematic diagram of the specific steps of number confirmation provided by the present invention. DETAILED DESCRIPTION
[0020] To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions of the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings herein can be arranged and designed in various different configurations.
[0021] like Figure 1 As shown, the present invention provides one embodiment: a method for implementing dynamic expansion of backend service monitoring, the method comprising the steps of:
[0022] Correct the backend service cluster, obtain the registration request of the backend service cluster through the data sampling service cluster, formulate a service number based on the registration request of the backend service cluster, confirm the service number, and then send the confirmed number to the backend service cluster;
[0023] The backend service cluster verifies the information sent and feeds it back to the data sampling service cluster. Based on the information collection extension package sent by the data sampling service cluster, it determines whether the service status of the backend service cluster is normal. If so, the data sampling service cluster sends a channel instruction to the backend service cluster.
[0024] The backend service cluster uploads the monitoring data to the data sampling service cluster according to the channel instructions, and confirms whether there is any abnormality in the upload. If so, it performs exception handling until there is no abnormality in the upload. If not, the data sampling service processes the monitoring data and synchronizes it to other sampling service clusters. It then returns to the backend service cluster to verify the information sent and conduct the next collection, completing the secure transmission of the backend service cluster monitoring data.
[0025] In the specific application of this embodiment, the back-end service cluster adds basic configuration parameters for the data sampling service, and then the back-end service cluster initiates a registration request to the data sampling service cluster. After receiving the registration request from the back-end service cluster, the data sampling service cluster starts to formulate a service number for the back-end service cluster. The formulated service number will be used to distinguish and monitor the back-end service cluster. After the number is formulated, the data acquisition service cluster sends the number to sampling service cluster 2. Sampling service cluster 2 makes a judgment based on the IP and port, and finally decides to use the number and feeds it back to sampling service cluster 1. After receiving the number, sampling service cluster 1 updates the local number and sends it to the back-end service cluster. After receiving the number issuance information from the data sampling service cluster, the back-end service cluster first verifies whether the issued information is the information of this service (verified based on the service IP and port). After confirming the completion of the service number information, the number will be stored for subsequent transmission. After the back-end service cluster confirms the success, it will send feedback information to the data acquisition cluster again. After the data sampling service cluster receives the successful confirmation feedback message from the backend service cluster, the data collection service cluster will send service status confirmation information and the information collection extension package (including the basic collection command set and log parsing components) to obtain the address; after the backend service cluster receives the confirmation message from the data collection service, the backend service cluster will read the acquisition address of the information collection extension package and compare it with the collection directory in the configuration under normal service conditions. If there is a difference, the extension package will be obtained and stored in the collection directory in the configuration information. After completion, it will be fed back to the data collection service cluster; after the data sampling service cluster receives the feedback confirmation information, the data collection service cluster will allocate and issue the upload instruction and information channel information (i.e. channel instruction). After receiving the information, the backend service will upload the instruction information and log information executed by the last extension package according to the channel information to the data sampling service cluster. After receiving the information, the data sampling service cluster will synchronize the information to the other sampling service clusters after completing the information processing.
[0026] In this embodiment, the modification of the backend service cluster is specifically: importing the basic configuration parameters of the data sampling service cluster to the backend service cluster, wherein the basic configuration parameters of the data sampling service cluster include: data sampling service cluster IP address, service name, registration port, and collection directory.
[0027] In the specific application of this embodiment, the backend service cluster adds the basic configuration parameters of the data sampling service cluster (including the IP address, service name, registration port, and collection directory of the data sampling service cluster), and then the backend service cluster initiates a registration request to the data sampling service cluster.
[0028] In this embodiment, the data sampling service cluster includes: sampling service cluster 1 and sampling service cluster 2.
[0029] In this embodiment, after the backend service cluster completes the correction, the specific steps are: obtain the registration request of the backend service cluster through sampling service cluster one, and formulate a service number based on the registration request of the backend service cluster, sampling service cluster one sends the service number to sampling service cluster two for number confirmation, and feeds back the confirmation result to sampling service cluster one for number update, and then sends the updated service number to the backend service cluster.
[0030] like Figure 2 As shown, the specific steps of the number confirmation are: sampling service cluster 2 determines whether the current host has a number. If not, the service number sent by sampling service cluster 1 is used, and the confirmation result is fed back to sampling service cluster 1. If so, it is determined whether there is monitoring data within the preset time. If not, the service number sent by sampling service cluster 1 is used, and the confirmation result is fed back to sampling service cluster 1. If so, the number of the current host is fed back to sampling service cluster 1 for number update and confirmation, and then the confirmed number is sent to the back-end service cluster.
[0031] In this embodiment, the service ID is specifically composed of a random string including letters and numbers and is not repeated with a registered service ID, and is used to request the IP and port of the backend service cluster.
[0032] In the specific application of this embodiment, the number is composed of two parts. The first part is: a random string containing letters and numbers, which is guaranteed not to be repeated with registered services and registration information within a certain time; the second part is: the IP and port of the requested backend service cluster. The formulated service number is used to distinguish and monitor the backend service cluster.
[0033] In this embodiment, the backend service cluster verifies the sent information, and the specific steps are: verify whether the sent information of the service number is the information of the current service based on the IP and port of the backend service cluster. If the verification result is yes, the service number is stored and fed back to the data sampling service cluster.
[0034] In the specific application of this embodiment, after the back-end service cluster receives the number issuance information from the data acquisition service cluster, it first verifies whether the issued information is the information of this service (verified according to the IP and port of the back-end service cluster). After confirming the completion of the service number information, it will store this number for subsequent transmission.
[0035] In this embodiment, the confirmation of whether an abnormality occurs in the upload is performed. If so, it is determined that the time for uploading the monitoring data to the data sampling service cluster exceeds a threshold or the time for confirming whether abnormal information occurs in the upload exceeds a threshold. If the time for uploading the monitoring data to the data sampling service cluster exceeds the threshold, the information collection extension package is returned to the data sampling service cluster for resending; if the time for confirming whether abnormal information occurs in the upload exceeds the threshold, the service number is deleted and returned to the correction backend service cluster.
[0036] In the specific application of this embodiment, if the upload time exceeds the preset timeout period, the data sampling service cluster will re-send the service status confirmation information, that is, the service status confirmation information and the information collection extension package (including the basic collection command set and log parsing component) to obtain the address. If the confirmation information is not received after the timeout, the service number will be deleted, and the back-end service cluster will be returned to the new step of adding the basic configuration parameters of the new data sampling service and restart the step; if the upload is completed, the data sampling service will process the monitoring data and synchronize it to other sampling service clusters, and then return to the back-end service cluster to verify the issued information for the next collection.
[0037] To sum up, this embodiment abandons the method of using the collection end as the main load, and uses the server-side upload method to collect monitoring information, making the monitoring data more real and effective; the monitoring data transmission of this embodiment uses a multi-channel method to avoid the single channel of the service and enhance the security of the data; the sampling service number of this embodiment effectively solves the cluster service scalability solution; the data sampling service cluster expansion of this embodiment does not require operations such as reconnecting to the service, and can be connected immediately.
[0038] The above are merely preferred embodiments of the present invention and are not intended to limit the present invention. Those skilled in the art will readily appreciate that various modifications and variations of the present invention are possible. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present invention shall be included within the scope of protection of the present invention.
Claims
1. A method for realizing dynamic expansion of backend service monitoring, characterized in that: The steps of the method include: Correct the backend service cluster, obtain the registration request of the backend service cluster through the data sampling service cluster, formulate a service number based on the registration request of the backend service cluster, confirm the service number, and then send the confirmed number to the backend service cluster; The backend service cluster verifies the information sent and feeds it back to the data sampling service cluster. Based on the information collection extension package sent by the data sampling service cluster, it determines whether the service status of the backend service cluster is normal. If so, the data sampling service cluster sends a channel instruction to the backend service cluster. The backend service cluster uploads the monitoring data to the data sampling service cluster according to the channel instructions, and confirms whether there are any exceptions in the upload. If so, it performs exception handling until there are no exceptions in the upload. If not, the data sampling service processes the monitoring data and synchronizes it to other sampling service clusters. It then returns to the backend service cluster to verify the information sent and conduct the next collection, completing the secure transmission of the backend service cluster monitoring data. The data sampling service cluster includes: sampling service cluster 1 and sampling service cluster 2; After the backend service cluster completes the correction, the specific steps are as follows: obtain the registration request of the backend service cluster through sampling service cluster 1, and formulate a service number according to the registration request of the backend service cluster. Sampling service cluster 1 sends the service number to sampling service cluster 2 for number confirmation, and feeds back the confirmation result to sampling service cluster 1 for number update. After that, the updated service number is sent to the backend service cluster. The specific steps of the number confirmation are: sampling service cluster 2 determines whether the current host has a number. If not, the service number sent by sampling service cluster 1 is used, and the confirmation result is fed back to sampling service cluster 1. If so, it is determined whether there is monitoring data within the preset time. If not, the service number sent by sampling service cluster 1 is used, and the confirmation result is fed back to sampling service cluster 1. If so, the number of the current host is fed back to sampling service cluster 1 for number update and confirmation, and then the confirmed number is sent to the back-end service cluster; The backend service cluster verifies the issued information, and the specific steps are: verifying whether the issued information of the service number is the information of the current service according to the IP and port of the backend service cluster; if the verification result is yes, storing the service number and feeding it back to the data sampling service cluster; The confirmation of whether an abnormality occurs in the upload, and if so, determines whether the time for uploading the monitoring data to the data sampling service cluster exceeds a threshold or the time for confirming whether abnormal information occurs in the upload exceeds a threshold. If the time for uploading the monitoring data to the data sampling service cluster exceeds the threshold, the information collection extension package is returned to the data sampling service cluster for resending; if the time for confirming whether abnormal information occurs in the upload exceeds the threshold, the service number is deleted and returned to the correction backend service cluster.
2. The method for realizing dynamic expansion of backend service monitoring according to claim 1, characterized in that: The modification of the backend service cluster is specifically as follows: importing the basic configuration parameters of the data sampling service cluster into the backend service cluster, wherein the basic configuration parameters of the data sampling service cluster include: data sampling service cluster IP address, service name, registration port and collection directory.
3. The method for realizing dynamic expansion of backend service monitoring according to claim 1, characterized in that: The service number is specifically composed of a random string containing alphanumeric characters and is not repeated with a registered service number, and is used to request the IP and port of the backend service cluster.
Citation Information
Patent Citations
Method for remotely monitoring switches, sockets and cameras by using mobile phone
CN102591281A
Internet of Things monitoring method and system based on distributed edge computing
CN112073265A