Synchronous acceleration method based on flink technology api

By identifying and processing the aborted data segments in the file and selecting an appropriate transmission strategy, the problem of file missing or delay caused by a single transmission path in the existing technology is solved, and efficient and accurate data transmission is achieved.

CN118573673BActive Publication Date: 2024-10-01北京科杰科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411034605.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-31
Publication Date
2024-10-01
Estimated Expiration
2044-07-31

AI Technical Summary

Technical Problem

Due to the single transmission path and sequential processing mechanism, existing dynamic resource access acceleration methods based on API requests are prone to file loss or synchronization delays when encountering blank pages or abnormal data segments.

Method used

By obtaining the target transfer file and path information, identifying and marking the aborted data segments in the file, calculating the abort fluctuation parameters to determine the transfer type, dividing the file according to the file length and the minimum number of fragments, and selecting a direct or indirect transfer strategy in real time. Monitor transmission rate and integrity parameters to ensure the accuracy and integrity of data transmission.

Benefits of technology

It effectively reduces the data synchronization time, increases the transmission rate, enhances the adaptability and processing capabilities to abnormal situations, and ensures the accuracy and integrity of file transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118573673B_ABST
    Figure CN118573673B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of data transmission, and in particular to a synchronous acceleration method based on the flink technology api, comprising: step S1, obtaining information of each target transmission file and transmission path information; step S2, identifying all the terminated data segments of each transmission file and adding a timestamp to each terminated data segment; step S3, determining the termination fluctuation parameter of this file transmission to determine the transmission type of the file transmission; step S4, identifying the file length of each transmission file, determining the minimum number of fragments of the file transmission to divide each transmission file into a plurality of data segments, and adding a timestamp to the end of the data segment; step S5, adding a mark to each transmission file data segment, and determining the accelerated transmission mode of this file transmission type according to the transmission type of this file transmission; the present invention effectively reduces the data synchronization time and improves the transmission rate by using the distributed processing capability of Flink, while enhancing the adaptability and processing capability to abnormal situations.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data transmission, and in particular to a synchronous acceleration method based on a flink technology api. Background Art

[0002] Flink is an open source framework for large-scale data stream processing and event-driven applications. Flink's API synchronization acceleration technology can significantly improve the efficiency of real-time data processing by optimizing the parallelism and state management of data stream processing. This technology uses Flink's event time semantics and exactly-once processing capabilities to ensure data consistency and accuracy. At the same time, through efficient API calls, it reduces data processing delays and speeds up data synchronization. In the field of big data processing, Flink's API synchronization acceleration technology provides strong support for real-time analysis and response.

[0003] Chinese Patent Publication No.: CN107707373A, discloses a method for accelerating dynamic resource access based on API requests, including: step 1, receiving an application programming interface API request; step 2, extracting a request target for a target website from the API request, and when it is determined that a request result corresponding to the request target has been stored and the storage duration of the request result is less than or equal to a preset duration, extracting the stored request result and sending it to the sender of the API request; wherein the preset duration is a value between 1 and 1000 milliseconds; it can be seen that the method for accelerating dynamic resource access based on API requests has the following problems: due to a single transmission path and a sequential processing mechanism, files are easily interrupted when encountering blank pages or abnormal data segments, resulting in file loss or synchronization delay. Summary of the invention

[0004] To this end, the present invention provides a synchronization acceleration method based on the Flink technology API to overcome the problem in the prior art that due to the single transmission path and sequential processing mechanism, the file is easily interrupted when encountering a blank page or an abnormal data segment, resulting in file loss or synchronization delay.

[0005] To achieve the above object, the present invention provides a synchronous acceleration method based on the Flink technology API, comprising:

[0006] Step S1, obtaining information of each target transmission file and transmission path information, wherein the target transmission file information includes transmission file category and transmission file data, and the transmission path information includes the number of transmission paths and the transmission rate of each transmission path;

[0007] Step S2, identifying all the terminated data segments of each transmission file and adding a timestamp to each terminated data segment;

[0008] Step S3, determining the termination fluctuation parameter of this file transmission according to the termination data segment in each transmission file, so as to determine the transmission type of this file transmission;

[0009] Step S4, identifying the file length of each transmission file, determining the minimum number of fragments for file transmission, dividing each transmission file into a number of data segments according to the minimum number of fragments, and adding a timestamp at the end of each data segment;

[0010] Step S5, adding a mark to each transmission file data segment of each transmission file, and determining the accelerated transmission mode of this file transmission type according to the transmission type of this file transmission, including:

[0011] Transmitting each of the transmission files through a plurality of transmission paths, recording the time from identification to timestamp of each transmission path, and determining a transmission rate fluctuation parameter to determine whether there is an abnormality in the synchronous transmission process;

[0012] Or, reduce the minimum number of fragments for file transfer and increase the transmission path used for file transfer, detect the mark after the file transfer is completed, and calculate the complete parameters of the file transfer to determine whether there is an abnormality in the synchronous transmission process.

[0013] The mark added to the data segment of the transmitted file is an identifiable mark that does not affect the file content. The type of mark is not specifically limited. It can be understood that the types of marks added to documents and data segments are different, and the purpose of the marks is for identification, which will not be repeated here.

[0014] Furthermore, it is characterized in that, in the step S2, the termination data segment and the timestamp in each transmission file are in a one-to-one correspondence.

[0015] Furthermore, in step S3, the termination fluctuation parameter of the file transmission is determined according to formula (1):

[0016]

[0017] In formula (1), G is the termination fluctuation parameter, n is the total number of transmitted files, Ni is the number of termination data segments contained in the i-th file, and i is an integer greater than 0.

[0018] Further, in step S3, the transmission type of the current file transmission is determined according to the termination fluctuation parameter, including:

[0019] If the termination fluctuation parameter is greater than or equal to the standard termination fluctuation parameter, determining that the transmission type of this file transmission is an indirect transmission type;

[0020] If the termination fluctuation parameter is smaller than the standard termination fluctuation parameter, it is determined that the transmission type of this file transmission is a direct transmission type.

[0021] Further, determining the minimum number of fragments for the file transfer includes:

[0022] Arrange all the transferred files in order from small to large data volume;

[0023] Calculating the data volume difference between the first transmission file and the second transmission file in the arrangement order;

[0024] The data volume difference is recorded as the minimum number of fragments.

[0025] Furthermore, in the step S5, the accelerated transmission mode of the file transmission type is determined according to the transmission type of the file transmission, including:

[0026] If it is determined that the transmission type of this file transmission is a direct transmission type, all the transmission files are transmitted through several transmission paths, the time from identification to timestamp of each transmission path is recorded, and the transmission rate fluctuation parameter is determined to determine whether there is an abnormality in the synchronous transmission process;

[0027] If it is determined that the transmission type of this file transfer is an indirect transmission type, the minimum number of fragments for file transfer is reduced and the transmission path used for the transmitted file is increased. The mark after the transmission of the transmitted file is detected, and the complete parameters of the file transfer are calculated to determine whether there are any abnormalities in the synchronous transmission process.

[0028] Furthermore, the transmission rate fluctuation parameter is determined according to formula (2):

[0029]

[0030] In formula (2), K is the transmission rate fluctuation parameter, m is the total number of data segments in the file transmission, tj is the time from the jth data segment identification to the timestamp, t0 is the average time from the file transmission identification to the timestamp, and j is an integer greater than 0.

[0031] Further, determining whether there is an abnormality in the synchronous transmission process according to the transmission rate fluctuation parameter includes:

[0032] If the transmission rate fluctuation parameter is greater than or equal to the standard transmission rate fluctuation parameter, it is determined that there is an abnormality in the synchronous transmission process;

[0033] If the transmission rate fluctuation parameter is smaller than the standard transmission rate fluctuation parameter, it is determined that there is no abnormality in the synchronous transmission process.

[0034] Further, the reducing the minimum number of fragments for file transmission includes:

[0035] Calculating a termination fluctuation parameter difference between the termination fluctuation parameter and the standard termination fluctuation parameter;

[0036] Determining a reduction amount of the minimum number of shards according to the termination fluctuation parameter difference;

[0037] Among them, the reduction amount of the minimum number of fragments is positively correlated with the difference of the termination fluctuation parameter.

[0038] Further, determining whether there is an abnormality in the synchronous transmission process according to the transmission complete parameter includes:

[0039] If the transmission complete parameter is greater than or equal to the standard transmission complete parameter, it is determined that there is no abnormality in the synchronous transmission process;

[0040] If the transmission complete parameter is less than the standard transmission complete parameter, it is determined that an abnormality exists in the synchronous transmission process.

[0041] Compared with the prior art, the beneficial effect of the present invention is that the present invention determines the transmission type by obtaining the target transmission file and path information, identifying and marking the terminated data segments in the file, and calculating the termination fluctuation parameter. According to the file length and the minimum number of fragments, the file is divided and a timestamp is added to the end of each segment. In the accelerated transmission stage, a direct transmission or indirect transmission strategy is selected according to the transmission type. For direct transmission, the timestamp is recorded and the transmission rate fluctuation is determined. For indirect transmission, the number of fragments is reduced and the transmission path is increased. In addition, by calculating the transmission rate fluctuation parameter and the transmission completeness parameter, the method can monitor and determine in real time whether there are abnormalities in the synchronous transmission process, thereby ensuring the accuracy and integrity of data transmission. The present invention makes full use of Flink's distributed processing capabilities, effectively reduces data synchronization time, improves the transmission rate, and enhances the adaptability and processing capabilities to abnormal situations.

[0042] Furthermore, in the present invention, different files contain different blank pages or termination data segments. For example, some documents contain more blank pages. When encountering blank pages during file transfer through a single path, the file transfer will be directly interrupted, causing the file transfer to be terminated and resulting in file loss. Therefore, the termination fluctuation parameter corresponding to this document is calculated to characterize the tendency of the document transmission to be easily interrupted directly, thereby providing data support for dividing the transmission type of this document, facilitating the subsequent adaptive selection of the transmission abnormality judgment method and adjustment of the data transmission process, thereby improving the accuracy of data transmission while ensuring synchronous and rapid data transmission.

[0043] Furthermore, in the present invention, the file transmission is judged according to the transmission type of this file transmission, and different judgment methods are used for different file transmission types, thereby improving the accuracy of file transmission while ensuring synchronous multi-channel transmission of files to improve the transmission rate.

[0044] Furthermore, in the present invention, the situation where segmentation is required in the transmission file with a smaller termination fluctuation parameter is simple, and the file is not easily lost. It is only necessary to determine whether the synchronization of the file transmission is sufficient. When the synchronization is high enough, it can be determined that there is no abnormality in the synchronous transmission process, and the file can be quickly transmitted through multiple identical channels, thereby realizing accelerated file transmission.

[0045] Furthermore, in the present invention, the situation in which the transmission file with a large termination fluctuation parameter needs to be segmented is complicated, and the file segments need to be divided more finely to avoid direct transmission and recognition of the termination segment, which causes the file transmission to be directly terminated, resulting in subsequent file loss. Therefore, for the above situation, reducing the minimum number of fragments corresponds to increasing the transmission path, adaptively increasing the number of file splits and transmitting through more paths, and determining whether the file transmission is abnormal based on the number of marks before and after the file transmission, thereby improving the file synchronization transmission rate while ensuring the transmission integrity of the file. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 This is a flow chart of a synchronous acceleration method based on the flink technology api according to an embodiment of the present invention;

[0047] Figure 2 A logic diagram for determining the transmission type of this file transmission according to an embodiment of the present invention;

[0048] Figure 3 A logic diagram for determining whether transmission is abnormal according to a transmission rate fluctuation parameter in an embodiment of the present invention;

[0049] Figure 4 This is a logic diagram for determining whether there is any abnormality in transmission according to transmission integrity parameters in an embodiment of the present invention. DETAILED DESCRIPTION

[0050] In order to make the objects and advantages of the present invention more clearly understood, the present invention is further described below in conjunction with embodiments; it should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0051] The preferred embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only used to explain the technical principles of the present invention and are not intended to limit the protection scope of the present invention.

[0052] It should be noted that, in the description of the present invention, terms such as "up", "down", "left", "right", "inside" and "outside" indicating directions or positional relationships are based on the directions or positional relationships shown in the drawings. This is merely for the convenience of description and does not indicate or imply that the device or element must have a specific orientation, be constructed and operated in a specific orientation. Therefore, it cannot be understood as a limitation on the present invention.

[0053] See also Figure 1 As shown, it is a flow chart of a synchronous acceleration method based on the flink technology api according to an embodiment of the present invention; the present invention provides a synchronous acceleration method based on the flink technology api, including:

[0054] Step S1, obtaining information of each target transmission file and transmission path information, wherein the target transmission file information includes transmission file category and transmission file data, and the transmission path information includes the number of transmission paths and the transmission rate of each transmission path;

[0055] Step S2, identifying all the terminated data segments of each transmission file and adding a timestamp to each terminated data segment;

[0056] Step S3, determining the termination fluctuation parameter of this file transmission according to the termination data segment in each transmission file, so as to determine the transmission type of this file transmission;

[0057] Step S4, identifying the file length of each transmission file, determining the minimum number of fragments for file transmission, dividing each transmission file into a number of data segments according to the minimum number of fragments, and adding a timestamp at the end of each data segment;

[0058] Step S5, adding a mark to each transmission file data segment of each transmission file, and determining the accelerated transmission mode of this file transmission type according to the transmission type of this file transmission, including:

[0059] Transmitting each of the transmission files through a plurality of transmission paths, recording the time from identification to timestamp of each transmission path, and determining a transmission rate fluctuation parameter to determine whether there is an abnormality in the synchronous transmission process;

[0060] Or, reduce the minimum number of fragments for file transfer and increase the transmission path used for file transfer, detect the mark after the file transfer is completed, and calculate the complete parameters of the file transfer to determine whether there is an abnormality in the synchronous transmission process.

[0061] In implementation, the transmission file categories include documents and data segments, the document includes multiple pages, preferably the document pages are greater than 100, the data segment is a large amount of data, preferably the number of data segments is greater than 10,000;

[0062] It is understandable that for big data files, the distributed capabilities of Flink can be used to transform the API interface data synchronization sequence into distributed parallel requests in the form of page requests to reduce data synchronization time, thereby improving the performance of API interface data synchronization and thus increasing the file transmission rate.

[0063] The file length of the transferred file is determined according to the transferred file data.

[0064] The mark added to the data segment of the transmitted file is an identifiable mark that does not affect the file content. The type of mark is not specifically limited. It can be understood that the types of marks added to documents and data segments are different, and the purpose of the marks is for identification, which will not be repeated here.

[0065] The present invention determines the transmission type by obtaining the target transmission file and path information, identifying and marking the terminated data segments in the file, and calculating the termination fluctuation parameter. According to the file length and the minimum number of fragments, the file is divided and a timestamp is added to the end of each segment. In the accelerated transmission stage, a direct transmission or indirect transmission strategy is selected according to the transmission type. For direct transmission, the timestamp is recorded and the transmission rate fluctuation is determined. For indirect transmission, the number of fragments is reduced and the transmission path is increased. In addition, by calculating the transmission rate fluctuation parameter and the transmission completeness parameter, the method can monitor and determine in real time whether there are abnormalities in the synchronous transmission process, thereby ensuring the accuracy and integrity of data transmission. The present invention makes full use of Flink's distributed processing capabilities, effectively reduces data synchronization time, improves the transmission rate, and enhances the adaptability and processing capabilities to abnormal situations.

[0066] Specifically, in step S2, the termination data segment and the timestamp in each transmission file are in a one-to-one correspondence.

[0067] It is understandable that there may be multiple blank pages or termination data segments in a transmission file, and the number of timestamps corresponding to the same transmission file is not 1.

[0068] See also Figure 2 As shown, it is a logic diagram for determining the transmission type of this file transmission according to an embodiment of the present invention. In step S3, the termination fluctuation parameter of the file transmission is determined according to formula (1):

[0069]

[0070] In formula (1), G is the termination fluctuation parameter, n is the total number of transmitted files, Ni is the number of termination data segments contained in the i-th file, and i is an integer greater than 0.

[0071] Specifically, in step S3, the transmission type of the current file transmission is determined according to the termination fluctuation parameter, including:

[0072] If the termination fluctuation parameter is greater than or equal to the standard termination fluctuation parameter, determining that the transmission type of this file transmission is an indirect transmission type;

[0073] If the termination fluctuation parameter is smaller than the standard termination fluctuation parameter, it is determined that the transmission type of this file transmission is a direct transmission type.

[0074] In practice, the standard termination fluctuation parameters are selected in the interval [1.1,1.8].

[0075] In the present invention, different files contain different blank pages or termination data segments. For example, some documents contain more blank pages. When encountering blank pages during file transfer through a single path, the file transfer will be directly interrupted, causing the file transfer to be terminated and resulting in file loss. Therefore, the termination fluctuation parameter corresponding to this document is calculated to characterize the tendency of the document transmission to be easily interrupted directly, thereby providing data support for dividing the transmission type of this document, facilitating the subsequent adaptive selection of the transmission abnormality judgment method and adjustment of the data transmission process, thereby improving the accuracy of data transmission while ensuring synchronous and rapid data transmission.

[0076] Specifically, determining the minimum number of fragments for the file transfer includes:

[0077] Arrange all the transferred files in order from small to large data volume;

[0078] Calculating the data volume difference between the first transmission file and the second transmission file in the arrangement order;

[0079] The data volume difference is recorded as the minimum number of fragments.

[0080] In implementation, the minimum number of fragments satisfies the requirement of being less than or equal to the minimum value of adjacent termination data segments in the transmission file;

[0081] The process of determining the minimum number of fragments is as follows: for example, all the files to be transferred include A1, A2, A3, and A4. The order of the files from the smallest to the largest is A4, A3, A2, and A1. Then the minimum number of fragments N0=N A3 -N A4 , N A3 is the data volume of file A3, N A4 is the data amount of file A4; if the minimum number of fragments is greater than the minimum value of adjacent termination data segments, the minimum value of adjacent termination data segments is determined as the minimum number of fragments.

[0082] Specifically, in step S5, the accelerated transmission mode of the file transmission type is determined according to the transmission type of the file transmission, including:

[0083] If it is determined that the transmission type of this file transmission is a direct transmission type, all the transmission files are transmitted through several transmission paths, the time from identification to timestamp of each transmission path is recorded, and the transmission rate fluctuation parameter is determined to determine whether there is an abnormality in the synchronous transmission process;

[0084] If it is determined that the transmission type of this file transfer is an indirect transmission type, the minimum number of fragments for file transfer is reduced and the transmission path used for the transmitted file is increased. The mark after the transmission of the transmitted file is detected, and the complete parameters of the file transfer are calculated to determine whether there are any abnormalities in the synchronous transmission process.

[0085] In implementation, the number of transmission paths corresponding to the direct transmission type is determined based on the number of files corresponding to the minimum data volume divided by the minimum number of fragments. For the indirect transmission type, after the minimum number of fragments is reduced, the corresponding number of transmission paths used is increased after the transmission path is determined using the adjusted minimum number of fragments for the same data volume.

[0086] In the present invention, the file transmission is judged according to the transmission type of this file transmission, and different judgment methods are used for different file transmission types. Under the premise of ensuring synchronous multi-channel transmission of files to improve the transmission rate, the accuracy of file transmission is improved.

[0087] See also Figure 3 As shown, it is a logic diagram of determining whether there is an abnormality in transmission according to the transmission rate fluctuation parameter according to an embodiment of the present invention. The transmission rate fluctuation parameter is determined according to formula (2):

[0088]

[0089] In formula (2), K is the transmission rate fluctuation parameter, m is the total number of data segments in the file transmission, tj is the time from the jth data segment identification to the timestamp, t0 is the average time from the file transmission identification to the timestamp, and j is an integer greater than 0.

[0090] Specifically, determining whether there is an abnormality in the synchronous transmission process according to the transmission rate fluctuation parameter includes:

[0091] If the transmission rate fluctuation parameter is greater than or equal to the standard transmission rate fluctuation parameter, it is determined that there is an abnormality in the synchronous transmission process;

[0092] If the transmission rate fluctuation parameter is smaller than the standard transmission rate fluctuation parameter, it is determined that there is no abnormality in the synchronous transmission process.

[0093] In the implementation, the standard transmission rate fluctuation parameter is selected in the interval [0.15, 0.25];

[0094] When an exception occurs during the transmission process, the minimum number of fragments can be reduced to 0.9 times the original number and then transmitted again.

[0095] Specifically, the method of reducing the minimum number of fragments for file transmission includes:

[0096] Calculating a termination fluctuation parameter difference between the termination fluctuation parameter and the standard termination fluctuation parameter;

[0097] Determining a reduction amount of the minimum number of shards according to the termination fluctuation parameter difference;

[0098] Among them, the reduction amount of the minimum number of fragments is positively correlated with the difference of the termination fluctuation parameter.

[0099] In implementation, the reduction in the minimum number of shards △N=(G1-G0) / G0×N0, G1 is the termination fluctuation parameter, G0 is the standard termination fluctuation parameter, and N0 is the minimum number of shards; the adjusted minimum number of shards N'=N0-△N.

[0100] In the present invention, the situation where segmentation is required in the transmission file with a smaller termination fluctuation parameter is simple, and the file is not easily lost. It is only necessary to determine whether the synchronization of the file transmission is sufficient. When the synchronization is high enough, it can be determined that there is no abnormality in the synchronous transmission process, and the file can be quickly transmitted through multiple identical channels, thereby realizing accelerated file transmission.

[0101] See also Figure 4 As shown, it is a logic diagram of determining whether there is an abnormality in transmission according to the complete transmission parameters according to an embodiment of the present invention. Determining whether there is an abnormality in the synchronous transmission process according to the complete transmission parameters includes:

[0102] If the transmission complete parameter is greater than or equal to the standard transmission complete parameter, it is determined that there is no abnormality in the synchronous transmission process;

[0103] If the transmission complete parameter is less than the standard transmission complete parameter, it is determined that an abnormality exists in the synchronous transmission process.

[0104] In practice, the transmission integrity parameters are determined according to formula (3):

[0105]

[0106] In formula (3), H is the transmission completeness parameter, n is the total number of transmitted files, Yi is the completeness of the i-th file transmission, α is the transmission accuracy parameter, and i is an integer greater than 0;

[0107] Yi = y1 / y0, y1 is the number of tags detected after the transfer is completed, y0 is the total number of tags transferred in this file, and the transmission accuracy parameter α is selected in the interval [0.8, 0.12];

[0108] The standard transmission integrity parameter is selected in the interval [0.85, 0.95]. Generally, the smaller the termination fluctuation parameter is, the larger the standard transmission integrity parameter is.

[0109] In the present invention, the situation in which the transmission file with a large termination fluctuation parameter needs to be segmented is complicated, and the file segments need to be divided more finely to avoid direct transmission and identification of the termination segment, which causes the file transmission to be directly terminated, resulting in subsequent file loss. Therefore, for the above situation, reducing the minimum number of fragments corresponds to increasing the transmission path, adaptively increasing the number of file segmentations and transmitting through more paths, and determining whether the file transmission is abnormal based on the number of marks before and after the file transmission, while improving the file synchronization transmission rate, ensuring the transmission integrity of the file.

[0110] During implementation, if there is an abnormality in file transmission, the transmission rate of the transmission path is obtained, and the transmission path with a lower than average transmission rate is replaced.

[0111] If the synchronous acceleration method based on the flink technology api of the present invention is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or part of the contribution to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.

[0112] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.

[0113] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A synchronous acceleration method based on the flink technology api, characterized in that: include: Step S1, obtaining information of each target transmission file and transmission path information, wherein the target transmission file information includes transmission file category and transmission file data, and the transmission path information includes the number of transmission paths and the transmission rate of each transmission path; Step S2, identifying all the terminated data segments of each transmission file and adding a timestamp to each terminated data segment; Step S3, determining the termination fluctuation parameter of this file transmission according to the termination data segment in each transmission file, so as to determine the transmission type of this file transmission; Step S4, identifying the file length of each transmission file, determining the minimum number of fragments for file transmission, dividing each transmission file into a number of data segments according to the minimum number of fragments, and adding a timestamp at the end of each data segment; Step S5, adding a mark to each transmission file data segment of each transmission file, and determining the accelerated transmission mode of this file transmission type according to the transmission type of this file transmission, including: Transmitting each of the transmission files through a plurality of transmission paths, recording the time from identification to timestamp of each transmission path, and determining a transmission rate fluctuation parameter to determine whether there is an abnormality in the synchronous transmission process; Or, reduce the minimum number of fragments for file transfer and increase the transmission path used for file transfer, detect the mark after the file transfer is completed, and calculate the complete parameters of the file transfer to determine whether there is an abnormality in the synchronous transmission process; In step S3, the termination fluctuation parameter of the file transmission is determined according to formula (1): (1) In formula (1), G is the termination fluctuation parameter, n is the total number of files to be transferred, Ni is the number of termination data segments contained in the i-th file, and i is an integer greater than 0; In step S3, the transmission type of the current file transmission is determined according to the termination fluctuation parameter, including: If the termination fluctuation parameter is greater than or equal to the standard termination fluctuation parameter, determining that the transmission type of this file transmission is an indirect transmission type; If the termination fluctuation parameter is less than the standard termination fluctuation parameter, determining that the transmission type of this file transmission is a direct transmission type; In the step S5, the accelerated transmission mode of the file transmission type is determined according to the transmission type of the file transmission, including: If it is determined that the transmission type of this file transmission is a direct transmission type, all the transmission files are transmitted through several transmission paths, the time from identification to timestamp of each transmission path is recorded, and the transmission rate fluctuation parameter is determined to determine whether there is an abnormality in the synchronous transmission process; If it is determined that the transmission type of this file transfer is an indirect transmission type, the minimum number of fragments for file transfer is reduced and the transmission path used for the file transfer is increased. The mark after the file transfer is completed is detected, and the complete parameters of the file transfer are calculated to determine whether there is an abnormality in the synchronous transmission process. The transmission rate fluctuation parameter is determined according to formula (2): (2) In formula (2), K is the transmission rate fluctuation parameter, m is the total number of data segments of the file transmission, tj is the time from the jth data segment identification to the timestamp, t0 is the average time from the file transmission identification to the timestamp, and j is an integer greater than 0; Determining whether there is an abnormality in the synchronous transmission process according to the transmission rate fluctuation parameter includes: If the transmission rate fluctuation parameter is greater than or equal to the standard transmission rate fluctuation parameter, it is determined that there is an abnormality in the synchronous transmission process; If the transmission rate fluctuation parameter is smaller than the standard transmission rate fluctuation parameter, it is determined that there is no abnormality in the synchronous transmission process.

2. The synchronous acceleration method based on the flink technology api according to claim 1 is characterized in that: In the step S2, the termination data segment and the timestamp in each transmission file are in a one-to-one correspondence.

3. The synchronous acceleration method based on the flink technology api according to claim 2 is characterized in that: Determining the minimum number of fragments for the file transfer includes: Arrange all the transferred files in order from small to large data volume; Calculating the data volume difference between the first transmission file and the second transmission file in the arrangement order; The data volume difference is recorded as the minimum number of fragments.

4. The synchronous acceleration method based on the flink technology api according to claim 3 is characterized in that: The method of reducing the minimum number of fragments for file transmission includes: Calculating a termination fluctuation parameter difference between the termination fluctuation parameter and the standard termination fluctuation parameter; Determining a reduction amount of the minimum number of shards according to the termination fluctuation parameter difference; Among them, the reduction amount of the minimum number of fragments is positively correlated with the difference of the termination fluctuation parameter.

5. The synchronous acceleration method based on the flink technology api according to claim 4 is characterized in that: Determining whether there is an abnormality in the synchronous transmission process according to the transmission complete parameter includes: If the transmission complete parameter is greater than or equal to the standard transmission complete parameter, it is determined that there is no abnormality in the synchronous transmission process; If the transmission complete parameter is less than the standard transmission complete parameter, it is determined that an abnormality exists in the synchronous transmission process.