WO2020181821A1 - 流量源配比调整方法、装置、计算机设备及存储介质 - Google Patents

流量源配比调整方法、装置、计算机设备及存储介质 Download PDF

Info

Publication number
WO2020181821A1
WO2020181821A1 PCT/CN2019/118439 CN2019118439W WO2020181821A1 WO 2020181821 A1 WO2020181821 A1 WO 2020181821A1 CN 2019118439 W CN2019118439 W CN 2019118439W WO 2020181821 A1 WO2020181821 A1 WO 2020181821A1
Authority
WO
WIPO (PCT)
Prior art keywords
flow source
source
ratio
cost
data flow
Prior art date
Application number
PCT/CN2019/118439
Other languages
English (en)
French (fr)
Inventor
刘劲柏
杨超
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2020181821A1 publication Critical patent/WO2020181821A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/76Admission control; Resource allocation using dynamic resource allocation, e.g. in-call renegotiation requested by the user or requested by the network in response to changing network conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/82Miscellaneous aspects
    • H04L47/822Collecting or measuring resource availability data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/54Store-and-forward switching systems 
    • H04L12/56Packet switching systems
    • H04L12/5691Access to open networks; Ingress point selection, e.g. ISP selection

Definitions

  • This application relates to the field of computer technology, and in particular to a method, device, computer equipment, and storage medium for adjusting the ratio of flow sources.
  • the embodiments of the present application provide a method, device, computer equipment and storage medium for adjusting the ratio of flow sources, aiming to solve the problem that the flow cost of the data flow source adjustment method in the prior art method is not equal to the actual obtained data information. .
  • an embodiment of the present application provides a method for adjusting a flow source ratio, which includes: configuring the allocation ratio of multiple data flow sources according to preset configuration parameters and calculating the flow source cost; if data call request information is received , Randomly select the target data traffic source according to the configured distribution ratio of each data traffic source; determine whether the target data traffic source is successfully invoked according to the data information fed back by the target data traffic source to obtain the target data traffic source Call the judgment result; if the preset statistical time point is reached, perform statistics on the call judgment results of each data flow source according to the preset statistical rules to obtain the statistical results; input the obtained statistical results and the configuration parameters into the preset ratio adjustment
  • the model calculates to obtain the ratio adjustment value; the adjustment cost is calculated according to the unit cost in the configuration parameter and the obtained ratio adjustment value; the obtained adjustment cost is compared with the cost judgment rule in the preset configuration parameter The difference between the cost of the flow source is judged and the allocated distribution ratio of each data flow source is adjusted according to the obtained judgment result.
  • an embodiment of the present application provides a flow source ratio adjustment device, which includes: a flow source cost calculation unit configured to configure the allocation ratio of multiple data flow sources according to preset configuration parameters and calculate the flow source cost
  • the target data flow source acquisition unit is used to randomly select and obtain the target data flow source according to the configured distribution ratio of each data flow source if the data call request information is received; the judgment result acquisition unit is called to be used according to the target data flow
  • the data information fed back by the source determines whether the target data traffic source is successfully invoked to obtain the invocation determination result of the target data traffic source; the statistical result obtaining unit is used to determine if the preset statistical time point is reached, according to the preset statistical rule The invocation judgment result of each data flow source is counted to obtain the statistical result;
  • the ratio adjustment value calculation unit is used to input the obtained statistical result and the configuration parameters into the preset ratio adjustment model for calculation to obtain the ratio adjustment value
  • the adjustment cost calculation unit is used to calculate the adjustment cost according to the unit cost in the configuration parameters and the obtained ratio adjustment value
  • an embodiment of the present application provides a computer device, which includes a memory, a processor, and a computer program stored on the memory and running on the processor, and the processor executes the computer
  • the program implements the flow source ratio adjustment method described in the first aspect.
  • the embodiments of the present application also provide a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the above-mentioned On the one hand, the flow source ratio adjustment method.
  • the embodiments of the present application provide a method, device, computer equipment, and storage medium for adjusting the ratio of traffic sources.
  • the cost of the flow source is calculated, and the ratio adjustment value is calculated according to the call judgment result of each data flow source, and the adjustment cost is calculated according to the ratio adjustment value.
  • the difference between the adjustment cost and the flow source cost is less than the judgment threshold
  • adjusting the configured distribution ratio of each data flow source according to the ratio adjustment value can greatly reduce the fluctuation of the received data flow caused by the quality of the data flow source and the flow cost, thereby enhancing the reliability of the enterprise data flow source And make the enterprise’s traffic cost match the actual data information obtained.
  • FIG. 1 is a schematic flowchart of a flow source ratio adjustment method provided by an embodiment of the application
  • FIG. 2 is a schematic diagram of a sub-process of a method for adjusting a flow source ratio provided by an embodiment of the application;
  • FIG. 3 is a schematic diagram of another flow of a method for adjusting a flow source ratio provided by an embodiment of the application;
  • FIG. 4 is a schematic diagram of another sub-process of the method for adjusting the flow source ratio provided by an embodiment of the application;
  • FIG. 5 is a schematic diagram of another sub-process of the method for adjusting the flow source ratio provided by an embodiment of the application;
  • FIG. 6 is a schematic diagram of another sub-process of the method for adjusting the flow source ratio provided by an embodiment of the application.
  • FIG. 7 is a schematic block diagram of a flow source ratio adjustment device provided by an embodiment of the application.
  • FIG. 8 is a schematic block diagram of subunits of a flow source ratio adjusting device provided by an embodiment of the application.
  • FIG. 9 is another schematic block diagram of a flow source ratio adjustment device provided by an embodiment of the application.
  • FIG. 10 is a schematic block diagram of another subunit of the flow source ratio adjustment device provided by an embodiment of the application.
  • FIG. 11 is a schematic block diagram of another subunit of the flow source ratio adjustment device provided by an embodiment of the application.
  • FIG. 12 is a schematic block diagram of another subunit of the flow source ratio adjustment device provided by an embodiment of the application.
  • FIG. 13 is a schematic block diagram of a computer device provided by an embodiment of the application.
  • FIG. 1 is a schematic flowchart of a flow source ratio adjustment method provided by an embodiment of the present application.
  • the flow source ratio adjustment method is applied to a management server, and the management server is an enterprise terminal used to implement the flow source ratio adjustment method to adjust the allocation ratio of the enterprise data flow source.
  • the method includes steps S110 to S170.
  • the preset configuration parameters include the names, allocation ratio values, and unit costs of all data flow sources.
  • the allocation ratio value is the numerical information used to configure the respective proportions of the data flow sources, and the unit cost is derived from the corresponding data flow.
  • the cost value of obtaining a piece of data information from the source, and the configuration parameters can be pre-configured by the user.
  • the preset configuration parameters are shown in Table 1.
  • step S110 includes sub-steps S111 and S112.
  • the allocation ratio of all data traffic sources can be configured according to the allocation ratio value in the preset configuration parameters.
  • the allocation ratio of data flow source A is configured to be 60%
  • the allocation ratio of data flow source B is configured to be 20%
  • the allocation ratio of data flow source C is configured to be 20%.
  • the distribution ratio of is multiplied by the corresponding unit cost in the preset configuration parameters and then accumulated to obtain the average cost of randomly acquiring a piece of data information from each data flow source, that is, the flow source cost.
  • the target data flow source is randomly selected according to the configured distribution ratio of each data flow source.
  • the call request information is the request information to call the data information in the data traffic source.
  • the call request information can be sent by a terminal device such as a desktop computer, a notebook computer, a tablet computer or a mobile phone connected to the management server. Calling the request information can call the data information in a certain data traffic source.
  • a data flow source is randomly selected according to the configured allocation ratio of each data source. The higher the allocation ratio of the data flow source, the greater the probability of being selected, and the lower the allocation ratio of the data flow source, the lower the probability of being selected.
  • the distribution ratio of data flow source A is 60%, and data flow source A is the first data flow source whose selection interval needs to be determined, then [1,60] is determined as the selection interval of data flow source A, a random number If 45 falls into the selection interval of data flow source A, the target quantity flow source is data flow source A.
  • S130 Determine whether the target data traffic source is successfully invoked according to the data information fed back by the target data traffic source, so as to obtain a determination result of the invocation of the target data traffic source.
  • the target data flow source Judging whether the target data flow source is successfully invoked according to the data information fed back by the target data flow source to obtain the judgment result of the invocation of the target data flow source. Specifically, if the target data traffic source does not return data information in this call, the call judgment result of the target traffic source this time is that the call is not successful. If the target data traffic source feeds back data information in this call, then The call judgment result of this call of the target traffic source is that the call is successful.
  • step S130a is further included after step S130.
  • the calling judgment result is that the target data flow source has not been called successfully, randomly select and obtain a new target data flow source according to the configured allocation ratio of the remaining data flow source. Specifically, according to the distribution ratio of the remaining data traffic source, the selection interval of the corresponding data traffic source is re-determined, and a new random number is generated to select and obtain the new target data traffic source, call the new target data traffic source and obtain its information. Feedback data information.
  • S140 If the preset statistical time point is reached, perform statistics on the invocation judgment result of each data flow source according to the preset statistical rule to obtain the statistical result.
  • the invocation judgment result of each data flow source is calculated according to the preset statistical rule to obtain the statistical result.
  • the preset statistical time point is the time node preset by the user for the statistics of the call judgment result
  • the preset statistical rule is the rule information used for the statistics of the call judgment result of each data traffic source.
  • the preset statistical rules include unit time and statistical frequency.
  • the preset statistical time point can be set to 12:00, and multiple statistical time points can be set, with an interval of 5 minutes between each statistical time point.
  • step S140 includes sub-steps S141 and S142.
  • the invocation judgment result that a certain data flow source has not been successfully invoked in the unit time is obtained to calculate the failure rate of the data flow source.
  • the corresponding failure rate can be calculated by dividing the judgment result of a certain data flow source that is not successfully invoked within a unit time by the number of judgments of the data flow source.
  • the failure rate of each data traffic source in multiple unit times is sequentially obtained to obtain the statistical result.
  • the statistical frequency is the number of times per unit of time that needs to be counted.
  • the obtained statistical results and the configuration parameters are input into a preset ratio adjustment model for calculation to obtain a ratio adjustment value.
  • the ratio adjustment model is the model information used to calculate the ratio adjustment value required to adjust the data flow source.
  • the ratio adjustment model includes the flow source classification rules, the first calculation formula, and the second calculation formula. And the third calculation formula.
  • step S150 includes sub-steps S151, S152, S153, S154, and S155.
  • the average failure rate of each data traffic source is calculated, and all data traffic sources are ranked according to the average failure rate.
  • the data traffic source information obtained after ranking is shown in Table 3.
  • the additional point traffic source and the subtracted traffic source are obtained from the traffic source ranking information.
  • the point-plus flow source is the data flow source that needs to be added
  • the point-cut flow source is the data flow source that needs to be subtracted.
  • the data traffic source A in Table 3 is the deduction traffic source, and the data traffic source B and The data flow source C is the additional point flow source.
  • X N Z N ⁇ T N1 ⁇ T N2 ⁇ ... ⁇ T Nn Calculate the ratio adjustment value X N of all subtracted flow sources, where Z N is the distribution ratio of the N-th deducted traffic source in the configuration parameters, and T Nn is the failure rate of the N-th deducted traffic source in the statistical result.
  • C N Z N +P ⁇ (1-V N /(V 1 +V 2 +...+V N )) Calculate the ratio adjustment value C N of all the additional flow sources, where V N is the calculated The average failure rate of the Nth bonus traffic source.
  • S160 Calculate the adjustment cost according to the unit cost in the configuration parameter and the obtained adjustment value of the ratio.
  • the adjustment cost is calculated according to the unit cost in the configuration parameters and the obtained ratio adjustment value. Specifically, the ratio adjustment value of each data flow source is multiplied by the corresponding unit cost in the preset configuration parameters and then accumulated , You can get the adjustment cost.
  • the obtained adjustment cost is judged to obtain the judgment result of whether to adjust the configured allocation ratio.
  • the cost judgment rule includes a judgment threshold, and the adjustment cost and the flow source cost Whether the difference between is less than the judgment threshold is judged, and then the judgment result of whether to adjust the configured allocation ratio can be obtained.
  • the judgment threshold in the cost judgment rule can be pre-configured by the user.
  • step S170 includes sub-steps S171 and S172.
  • the judgment result is that the configured allocation ratio is adjusted; if the difference between the adjustment cost and the flow source cost is not less than the judgment threshold, the judgment result is The configured distribution ratio is not adjusted.
  • the judgment result is that the configured allocation ratio is adjusted.
  • the allocated allocation ratio of each data flow source is adjusted to the corresponding allocation adjustment value.
  • the cost of the flow source is calculated, and the ratio adjustment value is calculated according to the call judgment result of each data flow source, and the adjustment cost is calculated according to the ratio adjustment value.
  • the difference between the adjustment cost and the flow source cost is less than the judgment threshold. In this case, adjust the configured distribution ratio of each data flow source according to the ratio adjustment value, which can greatly reduce the fluctuation of the received data flow caused by the quality of the data flow source and the flow cost, thereby enhancing the reliability of the enterprise data flow source And make the enterprise’s traffic cost match the actual data information obtained.
  • the embodiment of the present application also provides a flow source ratio adjustment device, which is used to execute any embodiment of the aforementioned flow source ratio adjustment method.
  • FIG. 7 is a schematic block diagram of a flow source ratio adjustment device provided in an embodiment of the present application.
  • the flow source ratio adjustment device can be configured in the management server.
  • the flow source ratio adjustment device 100 includes a flow source cost calculation unit 110, a target data flow source acquisition unit 120, a call judgment result acquisition unit 130, a statistical result acquisition unit 140, a ratio adjustment value calculation unit, and adjustment The cost calculation unit 160 and the allocation ratio adjustment unit 170.
  • the flow source cost calculation unit 110 is configured to configure the allocation ratio of multiple data flow sources according to preset configuration parameters and calculate the flow source cost.
  • the traffic source cost calculation unit 110 includes sub-units: an allocation ratio configuration unit 111 and a cost calculation unit 112.
  • the allocation ratio configuration unit 111 is used to configure the allocation ratio of multiple data traffic sources according to the allocation ratio value in the preset configuration parameter configuration;
  • the cost calculation unit 112 is used to configure the allocation ratio of multiple data traffic sources according to the unit cost and each data in the preset configuration parameters The configured distribution ratio of the traffic source is calculated to obtain the traffic source cost.
  • the target data flow source obtaining unit 120 is configured to randomly select and obtain the target data flow source according to the configured distribution ratio of each data flow source if the data call request information is received.
  • the calling judgment result obtaining unit 130 is configured to judge whether the target data flow source is successfully called according to the data information fed back by the target data flow source to obtain the calling judgment result of the target data flow source.
  • the flow source ratio adjustment device 100 further includes a subunit: a selection unit 130a.
  • the selecting unit 130a is configured to randomly select and obtain a new target data flow source according to the configured allocation ratio of the remaining data flow source if the calling judgment result is that the target data flow source is not successfully called.
  • the statistical result obtaining unit 140 is configured to, if the preset statistical time point is reached, perform statistics on the invocation judgment result of each data flow source according to the preset statistical rule to obtain the statistical result.
  • the statistical result obtaining unit 140 includes sub-units: a failure rate obtaining unit 141 and a failure rate statistics unit 142.
  • the failure rate obtaining unit 141 is configured to obtain, according to the unit time in the statistical rule, the number of times that a certain data flow source is called in the unit time and the judgment result is not called successfully, so as to count the failure rate of the data flow source;
  • the statistical unit 142 is configured to sequentially obtain the failure rate of each data traffic source in multiple unit times according to the statistical frequency in the statistical rule to obtain the statistical result.
  • the ratio adjustment value calculation unit 150 is configured to input the obtained statistical results and the configuration parameters into a preset ratio adjustment model for calculation to obtain a ratio adjustment value.
  • the ratio adjustment value calculation unit 150 includes sub-units: a traffic source ranking information acquisition unit 151, a traffic source classification unit 152, a first calculation unit 153, and a second calculation unit 154 And the third calculation unit 155.
  • the traffic source ranking information acquisition unit 151 is configured to calculate the average failure rate of multiple failure rates of each data traffic source to be adjusted and rank all the data traffic sources to be adjusted according to the average failure rate to obtain traffic source ranking information;
  • the source classification unit 152 is configured to obtain the additional and subtracted flow sources from the flow source ranking information according to the flow source classification rules in the preset ratio adjustment model;
  • the first calculation formula in the ratio adjustment model: X N Z N ⁇ T N1 ⁇ T N2 ⁇ ... ⁇ T Nn Calculate the ratio adjustment value X N of all the reduced flow sources, where Z N is the configuration parameter
  • the distribution ratio of the Nth subtracted flow source in the, T Nn is the failure rate of the subtracted flow source in the nth unit time in the statistical result;
  • the second calculation unit 154 is configured to adjust the ratio in the model according to the ratio
  • the second calculation formula: P (Z 1 -X 1 )+(Z 2 -X 2 )+...+(Z N -X N ) to calculate the ratio
  • the adjustment cost calculation unit 160 is configured to calculate the adjustment cost according to the unit cost in the configuration parameters and the obtained ratio adjustment value.
  • the allocation ratio adjustment unit 170 is configured to judge the difference between the obtained adjustment cost and the flow source cost according to the cost judgment rule in the preset configuration parameters, and configure each data flow source according to the obtained judgment result To adjust the distribution ratio.
  • the allocation ratio adjustment unit 170 includes sub-units: a cost judgment unit 171 and an adjustment unit 172.
  • the cost judgment unit 171 is used to judge whether the difference between the adjustment cost and the flow source cost is less than the judgment threshold in the cost judgment rule to obtain the judgment result; the adjustment unit 172 is used to judge whether the judgment result is the adjustment cost and the The difference between the flow source costs is less than the judgment threshold in the cost judgment rule, and the configured allocation ratio of each data flow source is adjusted to the corresponding ratio adjustment value.
  • the cost of the flow source is calculated, and the ratio adjustment value is calculated according to the call judgment result of each data flow source, and the adjustment cost is calculated according to the ratio adjustment value.
  • the difference between the adjustment cost and the flow source cost is less than the judgment threshold
  • the above-mentioned flow source ratio adjustment device can be implemented in the form of a computer program, and the computer program can be run on a computer device as shown in FIG. 13.
  • FIG. 13 is a schematic block diagram of a computer device according to an embodiment of the present application.
  • the computer device 500 includes a processor 502, a memory, and a network interface 505 connected through a system bus 501, where the memory may include a non-volatile storage medium 503 and an internal memory 504.
  • the non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032.
  • the processor 502 can execute the flow source ratio adjustment method.
  • the processor 502 is used to provide calculation and control capabilities, and support the operation of the entire computer device 500.
  • the internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503.
  • the processor 502 can execute the flow source ratio adjustment method.
  • the network interface 505 is used for network communication, such as providing data information transmission.
  • the structure shown in FIG. 13 is only a block diagram of part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device 500 to which the solution of the present application is applied.
  • the specific computer device 500 may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
  • the processor 502 is configured to run a computer program 5032 stored in a memory, so as to implement the flow source ratio adjustment method of this embodiment.
  • the embodiment of the computer device shown in FIG. 13 does not constitute a limitation on the specific configuration of the computer device.
  • the computer device may include more or less components than those shown in the figure. Or combine certain components, or different component arrangements.
  • the computer device may only include a memory and a processor. In such embodiments, the structures and functions of the memory and the processor are the same as those of the embodiment shown in FIG. 13 and will not be repeated here.
  • the processor 502 may be a central processing unit (Central Processing Unit, CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (Digital Signal Processors, DSPs), Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor.
  • a computer-readable storage medium may be a non-volatile computer-readable storage medium.
  • the computer-readable storage medium stores a computer program, where the computer program is executed by a processor to implement the video information chain storage method of the embodiment of the present application.
  • the storage medium may be an internal storage unit of the aforementioned device, such as a hard disk or memory of the device.
  • the storage medium may also be an external storage device of the device, such as a plug-in hard disk equipped on the device, a smart memory card (Smart Media Card, SMC), a Secure Digital (SD) card, and a flash memory card. (Flash Card) etc.
  • the storage medium may also include both an internal storage unit of the device and an external storage device.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Traffic Control Systems (AREA)

Abstract

本申请公开了流量源配比调整方法、装置、计算机设备及存储介质。方法包括:对多个数据流量源的分配比例进行配置并计算得到流量源成本;根据各数据流量源的分配比例选择得到目标数据流量源;对目标数据流量源所反馈的数据信息进行判断以得到调用判断结果;对各数据流量源的调用判断结果进行统计;将统计结果及配置参数输入配比调整模型计算得到配比调整值;根据配置参数中的单位成本及配比调整值计算得到调整成本;根据预设配置参数中的成本判断规则对调整成本与流量源成本之间的差值进行判断以对各数据流量源的分配比例进行调整。

Description

流量源配比调整方法、装置、计算机设备及存储介质
本申请要求于2019年03月13日提交中国专利局、申请号为201910189105.9、申请名称为“流量源配比调整方法、装置、计算机设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及计算机技术领域,尤其涉及一种流量源配比调整方法、装置、计算机设备及存储介质。
背景技术
为确保数据流量的稳定性,企业通常会采用接入多个数据流量源的方法,并预先设定多个数据流量源的分配比例,然而数据流量源会因其本身质量原因而受到波动,且企业需考虑数据流量源的成本因素,然而数据流量源的分配比例仍然采用预先设定的分配比例并未进行适当调整,从而导致企业所投入的流量成本与实际获取的数据信息不对等。因此,现有的数据流量源调整方法存在流量成本与实际获取的数据信息不对等的问题。
发明内容
本申请实施例提供了一种流量源配比调整方法、装置、计算机设备及存储介质,旨在解决现有技术方法中的数据流量源调整方法存在流量成本与实际获取的数据信息不对等的问题。
第一方面,本申请实施例提供了一种流量源配比调整方法,其包括:根据预设配置参数配置多个数据流量源的分配比例并计算得到流量源成本;若接收到数据调用请求信息,根据各数据流量源已配置的分配比例随机选择得到目标数据流量源;根据所述目标数据流量源所反馈的数据信息判断所述目标数据流量源是否被调用成功以得到该目标数据流量源的调用判断结果;若到达预设统计时间点,根据预设统计规则对各数据流量源的调用判断结果进行统计以得到统计结果;将所得到的统计结果及所述配置参数输入预设配比调整模型进行计算以得到配比调整值;根据所述配置参数中的单位成本及所得到的配比调整值 计算得到调整成本;根据所述预设配置参数中成本判断规则对所得到的调整成本与流量源成本之间的差值进行判断并根据所得到的判断结果对各数据流量源已配置的分配比例进行调整。
第二方面,本申请实施例提供了一种流量源配比调整装置,其包括:流量源成本计算单元,用于根据预设配置参数配置多个数据流量源的分配比例并计算得到流量源成本;目标数据流量源获取单元,用于若接收到数据调用请求信息,根据各数据流量源已配置的分配比例随机选择得到目标数据流量源;调用判断结果获取单元,用于根据所述目标数据流量源所反馈的数据信息判断所述目标数据流量源是否被调用成功以得到该目标数据流量源的调用判断结果;统计结果获取单元,用于若到达预设统计时间点,根据预设统计规则对各数据流量源的调用判断结果进行统计以得到统计结果;配比调整值计算单元,用于将所得到的统计结果及所述配置参数输入预设配比调整模型进行计算以得到配比调整值;调整成本计算单元,用于根据所述配置参数中的单位成本及所得到的配比调整值计算得到调整成本;分配比例调整单元,用于根据所述预设配置参数中成本判断规则对所得到的调整成本与流量源成本之间的差值进行判断并根据所得到的判断结果对各数据流量源已配置的分配比例进行调整。
第三方面,本申请实施例又提供了一种计算机设备,其包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述第一方面所述的流量源配比调整方法。
第四方面,本申请实施例还提供了一种计算机可读存储介质,其中所述计算机可读存储介质存储有计算机程序,所述计算机程序当被处理器执行时使所述处理器执行上述第一方面所述的流量源配比调整方法。
本申请实施例提供了一种流量源配比调整方法、装置、计算机设备及存储介质。通过计算得到流量源成本,并根据各数据流量源的调用判断结果计算得到配比调整值,根据配比调整值计算得到调整成本,在调整成本与流量源成本之间的差值小于判断阈值的情况下根据配比调整值对各数据流量源已配置的分配比例进行调整,能够大幅减小因数据流量源质量及流量成本的因素对接收数据流量造成的波动,从而增强企业数据流量源的可靠性并使企业的流量成本与实际获取的数据信息相匹配。
附图说明
为了更清楚地说明本申请实施例技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本申请实施例提供的流量源配比调整方法的流程示意图;
图2为本申请实施例提供的流量源配比调整方法的子流程示意图;
图3为本申请实施例提供的流量源配比调整方法的另一流程示意图;
图4为本申请实施例提供的流量源配比调整方法的另一子流程示意图;
图5为本申请实施例提供的流量源配比调整方法的另一子流程示意图;
图6为本申请实施例提供的流量源配比调整方法的另一子流程示意图;
图7为本申请实施例提供的流量源配比调整装置的示意性框图;
图8为本申请实施例提供的流量源配比调整装置的子单元示意性框图;
图9为本申请实施例提供的流量源配比调整装置的另一示意性框图;
图10为本申请实施例提供的流量源配比调整装置的另一子单元示意性框图;
图11为本申请实施例提供的流量源配比调整装置的另一子单元示意性框图;
图12为本申请实施例提供的流量源配比调整装置的另一子单元示意性框图;
图13为本申请实施例提供的计算机设备的示意性框图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
应当理解,当在本说明书和所附权利要求书中使用时,术语“包括”和“包含”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。
还应当理解,在此本申请说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本申请。如在本申请说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。
还应当进一步理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。
请参阅图1,图1是本申请实施例提供的流量源配比调整方法的流程示意图。该流量源配比调整方法应用于管理服务器中,管理服务器即是用于执行流量源配比调整方法以实现对企业数据流量源的分配比例进行调整的企业终端。
如图1所示,该方法包括步骤S110~S170。
S110、根据预设配置参数配置多个数据流量源的分配比例并计算得到流量源成本。
根据预设配置参数配置多个数据流量源的分配比例并计算得到流量源成本。具体的,预设配置参数中包括所有数据流量源的名称、分配比例值及单位成本,分配比例值即是用于对数据流量源分别比例进行配置的数值信息,单位成本即是从相应数据流量源中获取一条数据信息的成本值,配置参数可以由用户进行预先配置。
例如,预设配置参数如表1中所示。
名称 分配比例值 单位成本
A 60% 0.4
B 20% 0.7
C 20% 0.5
表1
在一实施例中,如图2所示,步骤S110包括子步骤S111和S112。
S111、根据预设配置参数配置中的分配比例值对多个数据流量源的分配比例进行配置。
根据预设配置参数中的分配比例值即可对所有数据流量源的分配比例进行配置。例如,根据表1中预设配置参数将数据流量源A的分配比例配置为60%,将数据流量源B的分配比例配置为20%,将数据流量源C的分配比例配置为20%。
S112、根据预设配置参数中的单位成本及各数据流量源已配置的分配比例计算得到流量源成本。
的分配比例与预设配置参数中对应的单位成本相乘之后进行累加,即可得到从各数据流量源中随机获取一条数据信息的平均成本,也即是流量源成本。
例如,根据表1中单位成本结合各数据流量源已配置的分配比例计算得到流量源成本为60%×0.4+20%×0.7+20%×0.5=0.48。
S120、若接收到数据调用请求信息,根据各数据流量源已配置的分配比例随机选择得到目标数据流量源。
若接收到数据调用请求信息,根据各数据流量源已配置的分配比例随机选择得到目标数据流量源。具体的,调用请求信息即是对数据流量源中的数据信息进行调用的请求信息,调用请求信息可由与管理服务器进行网络连接的台式电脑、笔记本电脑、平板电脑或手机等终端设备发出,一个数据调用请求信息即可对某一数据流量源中的数据信息进行调用。根据各数据源已配置的分配比例随机选择一个数据流量源,数据流量源的分配比例越高则被选择的概率越大,数据流量源的分配比例越低,则被选择的概率越小。
获取某一数据流量源的分配比例,并根据该分配比例确定此数据流量源的选择区间。生成随机数并根据该随机数落入的选择区间,选择得到相应的数量流量源作为目标数据流量源,随机数为计算机随机生成的正整数,随机数的范围为[1,100]。
例如,数据流量源A的分配比例为60%,且数据流量源A为第一个需确定选择区间的数据流量源,则将[1,60]确定为数据流量源A的选择区间,随机数为45,45落入数据流量源A的选择区间,则目标数量流量源为数据流量源A。
S130、根据所述目标数据流量源所反馈的数据信息判断所述目标数据流量源是否被调用成功以得到该目标数据流量源的调用判断结果。
根据所述目标数据流量源所反馈的数据信息判断所述目标数据流量源是否被调用成功以得到该目标数据流量源的调用判断结果。具体的,若本次调用中目标数据流量源未反馈数据信息,则该目标流量源本次调用的调用判断结果为未被调用成功,若本次调用中目标数据流量源反馈了数据信息,则该目标流量源本次调用的调用判断结果为调用成功。
在一实施例中,如图3所示,步骤S130之后还包括步骤S130a。
S130a、若调用判断结果为目标数据流量源未被调用成功,根据剩余数据流量源已配置的分配比例随机选择得到新的目标数据流量源。具体的,根据剩余数据流量源的分配比例重新确定相应数据流量源的选择区间,并生成新的随机数以选择得到新的目标数据流量源,对新的目标数据流量源进行调用并获取其所反馈的数据信息。
例如,数据流量源A的判断结果为未被调用成功,则根据数据流量源B的分配比例为20%、数据流量源C的分配比例为20%,将[1,50]确定为数据流量源B的选择区间,将[51-100]确定为数据流量源C的选择区间。
S140、若到达预设统计时间点,根据预设统计规则对各数据流量源的调用判断结果进行统计以得到统计结果。
若到达预设统计时间点,根据预设统计规则对各数据流量源的调用判断结果进行统计以得到统计结果。具体的,预设统计时间点即是用户所预先设置的用于对调用判断结果进行统计的时间节点,预设统计规则即是用于对各数据流量源的调用判断结果进行统计的规则信息,预设统计规则中包括单位时间及统计频次。
例如,预设统计时间点可以设置为12:00,还可设置多个统计时间点,每个统计时间点之间间隔5分钟。
在一实施例中,如图4所示,步骤S140包括子步骤S141和S142。
S141、根据所述统计规则中的单位时间获取某一数据流量源在该单位时间内调用判断结果为未被调用成功的次数以统计该数据流量源的失败率。
根据所述统计规则中的单位时间获取某一数据流量源在该单位时间内未被调用成功的调用判断结果以统计该数据流量源的失败率。具体的,根据某一数据流量源在单位时间内未被调用成功的调用判断结果除以该数据流量源的判断次数即可统计得到相应的失败率。
例如,某一数据流量源在单位时间内未被调用成功的调用判断结果为8个,该单位时间内此数据流量源的判断次数为20,则该数据流量源的失败率为8/20=40%。
S142、根据所述统计规则中的统计频次依次获取各数据流量源在多个单位时间内的失败率以得到统计结果。
根据所述统计规则中的统计频次依次获取各数据流量源在多个单位时间内的失败率以得到统计结果。具体的,统计频次即是所需统计的单位时间的次数信息。
例如,单位时间为3分钟,统计频次为3,则需统计各数据流量源在当前时间之前3个单位时间为3分钟的失败率,所获取的统计结果如表2中所示。
名称 第一单位时间 第二单位时间 第三单位时间
A 10% 40% 80%
B 7% 2% 6%
C 13% 11% 6%
表2
S150、将所得到的统计结果及所述配置参数输入预设配比调整模型进行计算以得到配比调整值。
将所得到的统计结果及所述配置参数输入预设配比调整模型进行计算以得到配比调整值。具体的,配比调整模型即是用于对数据流量源所需进行调整的配比调整值进行计算的模型信息,配比调整模型中包括流量源分类规则、第一计算公式、第二计算公式以及第三计算公式。
在一实施例中,如图5所示,步骤S150包括子步骤S151、S152、S153、S154和S155。
S151、计算各待调整数据流量源的多个失败率的失败率平均值并根据失败率平均值对所有待调整数据流量源进行排名以得到流量源排名信息。
计算各数据流量源多个失败率的失败率平均值并根据失败率平均值对所有据流量源进行排名以得到流量源排名信息。计算得到各数据流量源的失败率平均值,根据失败率平均值对所有数据流量源进行排名。
例如,排名后得到数据流量源的信息如表3中所示。
名称 失败率平均值
A 43.33%
B 5%
C 10%
表3
S152、根据所述预设配比调整模型中的流量源分类规则从流量源排名信息中获取得到加分流量源及减分流量源。
根据所述预设配比调整模型中的流量源分类规则从流量源排名信息中获取得到加分流量源及减分流量源。加分流量源即是需进行加分操作的数据流量源,减分流量源即是需进行减分操作的数据流量源。
例如,流量源分类规则为流量源排名信息中数据流量源总数前1/2的数据流量源为减分流量源,其余为加分流量源,则减分流量源的数量为3×1/2=1.5,由 于减分流量源的数量必须是整数,则取流量源排名信息中的第一个作为减分流量源,表3中的数据流量源A为减分流量源,数据流量源B和数据流量源C为加分流量源。
S153、根据所述配比调整模型中的第一计算公式:X N=Z N×T N1×T N2×…×T Nn计算得到所有减分流量源的配比调整值X N,其中,Z N为配置参数中第N个减分流量源的分配比例,T Nn为统计结果中该减分流量源第n个单位时间内的失败率。
例如,将数据流量源A的分配比例及失败率输入第一计算公式,X A=60%×10%×40%×80%=1.92%,则数据流量源A的配比调整值为1.92%。
S154、根据所述配比调整模型中的第二计算公式:P=(Z 1-X 1)+(Z 2-X 2)+…+(Z N-X N)计算得到配比调节值P,其中,X N为第N个减分流量源的配比调整值,Z N为配置参数中该减分流量源的分配比例。
例如,将数据流量源A的配比调整值及分配比例输入第二计算公式,P=60%-1.92%=58.08%。
S155、根据所述配比调整模型中的第三计算公式:
C N=Z N+P×(1-V N/(V 1+V 2+…+V N))计算得到所有加分流量源的配比调整值C N,其中,V N为所计算得到的第N个加分流量源的失败率平均值。
例如,将数据流量源B及数据流量源C的分配比例及失败率输入第三计算公式进行计算,其中数据流量源B:C B=20%+58.08%×(1-5%/(5%+10%))=58.72%,数据流量源C:C C=20%+58.08%×(1-10%/(5%+10%))=39.36%,则数据流量源B的配比调整值为58.72%,数据流量源C的配比调整值为39.36%。
S160、根据所述配置参数中的单位成本及所得到的配比调整值计算得到调整成本。
根据所述配置参数中的单位成本及所得到的配比调整值计算得到调整成本,具体的,将各数据流量源的配比调整值与预设配置参数中对应的单位成本相乘之后进行累加,即可得到调整成本。
例如,根据表1中单位成本结合所计算得到的配比调整值计算得到调整成本为:1.92%×0.4+58.72%×0.7+39.36%×0.5=0.61552。
S170、根据所述预设配置参数中成本判断规则对所得到的调整成本与流量源成本之间的差值进行判断并根据所得到的判断结果对各数据流量源已配置的分配比例进行调整。
根据预设配置参数中成本判断规则对所得到的调整成本进行判断以得到是否对已配置的分配比例进行调整的判断结果,具体的,成本判断规则中包括判断阈值,对调整成本与流量源成本之间的差值是否小于判断阈值进行判断,即可得到否对已配置的分配比例进行调整的判断结果,成本判断规则中的判断阈值可由用户进行预先配置。
在一实施例中,如图6所示,步骤S170包括子步骤S171和S172。
S171、对调整成本与流量源成本之间的差值是否小于所述成本判断规则中的判断阈值进行判断以得到判断结果。
对调整成本与流量源成本之间的差值是否小于所述成本判断规则中的判断阈值进行判断以得到判断结果。若调整成本与流量源成本之间的差值小于判断阈值,则判断结果为对已配置的分配比例进行调整;若调整成本与流量源成本之间的差值不小于判断阈值,则判断结果为不对已配置的分配比例进行调整。
例如,判断阈值为0.16,调整成本与流量源成本之间的差值为0.13552小于判断阈值,则判断结果为对已配置的分配比例进行调整。
S172、若判断结果为调整成本与流量源成本之间的差值小于所述成本判断规则中的判断阈值,将各数据流量源已配置的分配比例调整为对应的配比调整值。
若判断结果为调整成本与流量源成本之间的差值小于所述成本判断规则中的判断阈值,将各数据流量源已配置的分配比例调整为对应的配比调整值。依次获取多个数据流量源已配置的分配比例,并将数据流量源已配置的分配比例调整为该数据流量源对应的配比调整值,以实现根据所得到的配比调整值对各数据流量源已配置的分配比例进行调整。
通过计算得到流量源成本,并根据各数据流量源的调用判断结果计算得到配比调整值,根据配比调整值计算得到调整成本,在调整成本与流量源成本之间的差值小于判断阈值的情况下根据配比调整值对各数据流量源已配置的分配比例进行调整,能够大幅减小因数据流量源质量及流量成本的因素对接收数据流量造成的波动,从而增强企业数据流量源的可靠性并使企业的流量成本与实际获取的数据信息相匹配。
本申请实施例还提供一种流量源配比调整装置,该流量源配比调整装置用于执行前述流量源配比调整方法的任一实施例。具体地,请参阅图7,图7是本申请实施例提供的流量源配比调整装置的示意性框图。该流量源配比调整装置 可以配置于管理服务器中。
如图7所示,流量源配比调整装置100包括流量源成本计算单元110、目标数据流量源获取单元120、调用判断结果获取单元130、统计结果获取单元140、配比调整值计算单元、调整成本计算单元160和分配比例调整单元170。
流量源成本计算单元110,用于根据预设配置参数配置多个数据流量源的分配比例并计算得到流量源成本。
其他申请实施例中,如图8所示,所述流量源成本计算单元110包括子单元:分配比例配置单元111和成本计算单元112。
分配比例配置单元111,用于根据预设配置参数配置中的分配比例值对多个数据流量源的分配比例进行配置;成本计算单元112,用于根据预设配置参数中的单位成本及各数据流量源已配置的分配比例计算得到流量源成本。
目标数据流量源获取单元120,用于若接收到数据调用请求信息,根据各数据流量源已配置的分配比例随机选择得到目标数据流量源。
调用判断结果获取单元130,用于根据所述目标数据流量源所反馈的数据信息判断所述目标数据流量源是否被调用成功以得到该目标数据流量源的调用判断结果。
其他申请实施例中,如图9所示,所述流量源配比调整装置100还包括子单元:选择单元130a。
选择单元130a,用于若调用判断结果为目标数据流量源未被调用成功,根据剩余数据流量源已配置的分配比例随机选择得到新的目标数据流量源。
统计结果获取单元140,用于若到达预设统计时间点,根据预设统计规则对各数据流量源的调用判断结果进行统计以得到统计结果。
其他申请实施例中,如图10所示,所述统计结果获取单元140包括子单元:失败率获取单元141和失败率统计单元142。
失败率获取单元141,用于根据所述统计规则中的单位时间获取某一数据流量源在该单位时间内调用判断结果为未被调用成功的次数以统计该数据流量源的失败率;失败率统计单元142,用于根据所述统计规则中的统计频次依次获取各数据流量源在多个单位时间内的失败率以得到统计结果。
配比调整值计算单元150,用于将所得到的统计结果及所述配置参数输入预设配比调整模型进行计算以得到配比调整值。
其他申请实施例中,如图11所示,所述配比调整值计算单元150包括子单 元:流量源排名信息获取单元151、流量源分类单元152、第一计算单元153、第二计算单元154和第三计算单元155。
流量源排名信息获取单元151,用于计算各待调整数据流量源的多个失败率的失败率平均值并根据失败率平均值对所有待调整数据流量源进行排名以得到流量源排名信息;流量源分类单元152,用于根据所述预设配比调整模型中的流量源分类规则从流量源排名信息中获取得到加分流量源及减分流量源;第一计算单元153,用于根据所述配比调整模型中的第一计算公式:X N=Z N×T N1×T N2×…×T Nn计算得到所有减分流量源的配比调整值X N,其中,Z N为配置参数中第N个减分流量源的分配比例,T Nn为统计结果中该减分流量源第n个单位时间内的失败率;第二计算单元154,用于根据所述配比调整模型中的第二计算公式:P=(Z 1-X 1)+(Z 2-X 2)+…+(Z N-X N)计算得到配比调节值P,其中,X N为第N个减分流量源的配比调整值,Z N为配置参数中该减分流量源的分配比例;第三计算单元155,用于根据所述配比调整模型中的第三计算公式:C N=Z N+P×(1-V N/(V 1+V 2+…+V N))计算得到所有加分流量源的配比调整值C N,其中,V N为所计算得到的第N个加分流量源的失败率平均值。
调整成本计算单元160,用于根据所述配置参数中的单位成本及所得到的配比调整值计算得到调整成本。
分配比例调整单元170,用于根据所述预设配置参数中成本判断规则对所得到的调整成本与流量源成本之间的差值进行判断并根据所得到的判断结果对各数据流量源已配置的分配比例进行调整。
其他申请实施例中,如图12所示,所述分配比例调整单元170包括子单元:成本判断单元171和调整单元172。
成本判断单元171,用于对调整成本与流量源成本之间的差值是否小于所述成本判断规则中的判断阈值进行判断以得到判断结果;调整单元172,用于若判断结果为调整成本与流量源成本之间的差值小于所述成本判断规则中的判断阈值,将各数据流量源已配置的分配比例调整为对应的配比调整值。
通过计算得到流量源成本,并根据各数据流量源的调用判断结果计算得到配比调整值,根据配比调整值计算得到调整成本,在调整成本与流量源成本之间的差值小于判断阈值的情况下根据配比调整值对各数据流量源已配置的分配比例进行调整,能够大幅减小因数据流量源质量及流量成本的因素对接收数据流量造成的波动,从而增强企业数据流量源的可靠性并使企业的流量成本与实 际获取的数据信息相匹配。
上述流量源配比调整装置可以实现为计算机程序的形式,该计算机程序可以在如图13所示的计算机设备上运行。
请参阅图13,图13是本申请实施例提供的计算机设备的示意性框图。
参阅图13,该计算机设备500包括通过系统总线501连接的处理器502、存储器和网络接口505,其中,存储器可以包括非易失性存储介质503和内存储器504。该非易失性存储介质503可存储操作系统5031和计算机程序5032。该计算机程序5032被执行时,可使得处理器502执行流量源配比调整方法。该处理器502用于提供计算和控制能力,支撑整个计算机设备500的运行。该内存储器504为非易失性存储介质503中的计算机程序5032的运行提供环境,该计算机程序5032被处理器502执行时,可使得处理器502执行流量源配比调整方法。该网络接口505用于进行网络通信,如提供数据信息的传输等。本领域技术人员可以理解,图13中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备500的限定,具体的计算机设备500可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。
其中,所述处理器502用于运行存储在存储器中的计算机程序5032,以实现本实施例的流量源配比调整方法。
本领域技术人员可以理解,图13中示出的计算机设备的实施例并不构成对计算机设备具体构成的限定,在其他实施例中,计算机设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。例如,在一些实施例中,计算机设备可以仅包括存储器及处理器,在这样的实施例中,存储器及处理器的结构及功能与图13所示实施例一致,在此不再赘述。
应当理解,在本申请实施例中,处理器502可以是中央处理单元(Central Processing Unit,CPU),该处理器502还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。其中,通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
在本申请的另一实施例中提供计算机可读存储介质。该计算机可读存储介质可以为非易失性的计算机可读存储介质。该计算机可读存储介质存储有计算 机程序,其中计算机程序被处理器执行时实现本申请实施例的视频信息链式存储方法。
所述存储介质可以是前述设备的内部存储单元,例如设备的硬盘或内存。所述存储介质也可以是所述设备的外部存储设备,例如所述设备上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储介质还可以既包括所述设备的内部存储单元也包括外部存储设备。
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的设备、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。

Claims (20)

  1. 一种流量源配比调整方法,所述方法包括:
    根据预设配置参数配置多个数据流量源的分配比例并计算得到流量源成本;
    若接收到数据调用请求信息,根据各数据流量源已配置的分配比例随机选择得到目标数据流量源;
    根据所述目标数据流量源所反馈的数据信息判断所述目标数据流量源是否被调用成功以得到该目标数据流量源的调用判断结果;
    若到达预设统计时间点,根据预设统计规则对各数据流量源的调用判断结果进行统计以得到统计结果;
    将所得到的统计结果及所述配置参数输入预设配比调整模型进行计算以得到配比调整值;
    根据所述配置参数中的单位成本及所得到的配比调整值计算得到调整成本;
    根据所述预设配置参数中成本判断规则对所得到的调整成本与流量源成本之间的差值进行判断并根据所得到的判断结果对各数据流量源已配置的分配比例进行调整。
  2. 根据权利要求1所述的流量源配比调整方法,其中,所述根据预设配置参数配置多个数据流量源的分配比例并计算得到流量源成本,包括:
    根据预设配置参数配置中的分配比例值对多个数据流量源的分配比例进行配置;
    根据预设配置参数中的单位成本及各数据流量源已配置的分配比例计算得到流量源成本。
  3. 根据权利要求1所述的流量源配比调整方法,其中,所述根据所述目标数据流量源所反馈的数据信息判断所述目标数据流量源是否被调用成功以得到该目标数据流量源的调用判断结果之后,还包括:
    若调用判断结果为目标数据流量源未被调用成功,根据剩余数据流量源已配置的分配比例随机选择得到新的目标数据流量源。
  4. 根据权利要求1所述的流量源配比调整方法,其中,所述根据预设统计规则对各数据流量源的调用判断结果进行统计以得到统计结果,包括:
    根据所述统计规则中的单位时间获取某一数据流量源在该单位时间内调用 判断结果为未被调用成功的次数以统计该数据流量源的失败率;
    根据所述统计规则中的统计频次依次获取各数据流量源在多个单位时间内的失败率以得到统计结果。
  5. 根据权利要求4所述的流量源配比调整方法,其中,所述将所得到的统计结果及所述配置参数输入预设配比调整模型进行计算以得到配比调整值,包括:
    计算各待调整数据流量源的多个失败率的失败率平均值并根据失败率平均值对所有待调整数据流量源进行排名以得到流量源排名信息;
    根据所述预设配比调整模型中的流量源分类规则从流量源排名信息中获取得到加分流量源及减分流量源;
    根据所述配比调整模型中的第一计算公式:X N=Z N×T N1×T N2×…×T Nn计算得到所有减分流量源的配比调整值X N,其中,Z N为配置参数中第N个减分流量源的分配比例,T Nn为统计结果中该减分流量源第n个单位时间内的失败率;
    根据所述配比调整模型中的第二计算公式:P=(Z 1-X 1)+(Z 2-X 2)+…+(Z N-X N)计算得到配比调节值P,其中,X N为第N个减分流量源的配比调整值,Z N为配置参数中该减分流量源的分配比例;
    根据所述配比调整模型中的第三计算公式:C N=Z N+P×(1-V N/(V 1+V 2+…+V N))计算得到所有加分流量源的配比调整值C N,其中,V N为所计算得到的第N个加分流量源的失败率平均值。
  6. 根据权利要求1所述的流量源配比调整方法,其中,所述根据所述预设配置参数中成本判断规则对所得到的调整成本与流量源成本之间的差值进行判断并根据所得到的判断结果对各数据流量源已配置的分配比例进行调整,包括:
    对调整成本与流量源成本之间的差值是否小于所述成本判断规则中的判断阈值进行判断以得到判断结果;
    若判断结果为调整成本与流量源成本之间的差值小于所述成本判断规则中的判断阈值,将各数据流量源已配置的分配比例调整为对应的配比调整值。
  7. 根据权利要求1所述的流量源配比调整方法,其中,所述根据各数据流量源已配置的分配比例随机选择得到目标数据流量源,包括:
    根据所述数据流量源的分配比例确定与所述数据流量源对应的选择区间;
    生成随机数并根据所述随机数所落入的选择区间选择对应的数据流量源作为目标数据流量源。
  8. 一种流量源配比调整装置,包括:
    流量源成本计算单元,用于根据预设配置参数配置多个数据流量源的分配比例并计算得到流量源成本;
    目标数据流量源获取单元,用于若接收到数据调用请求信息,根据各数据流量源已配置的分配比例随机选择得到目标数据流量源;
    调用判断结果获取单元,用于根据所述目标数据流量源所反馈的数据信息判断所述目标数据流量源是否被调用成功以得到该目标数据流量源的调用判断结果;
    统计结果获取单元,用于若到达预设统计时间点,根据预设统计规则对各数据流量源的调用判断结果进行统计以得到统计结果;
    配比调整值计算单元,用于将所得到的统计结果及所述配置参数输入预设配比调整模型进行计算以得到配比调整值;
    调整成本计算单元,用于根据所述配置参数中的单位成本及所得到的配比调整值计算得到调整成本;
    分配比例调整单元,用于根据所述预设配置参数中成本判断规则对所得到的调整成本与流量源成本之间的差值进行判断并根据所得到的判断结果对各数据流量源已配置的分配比例进行调整。
  9. 根据权利要求8所述的流量源配比调整装置,其中,所述流量源成本计算单元,包括:
    分配比例配置单元,用于根据预设配置参数配置中的分配比例值对多个数据流量源的分配比例进行配置;
    成本计算单元,用于根据预设配置参数中的单位成本及各数据流量源已配置的分配比例计算得到流量源成本。
  10. 根据权利要求8所述的流量源配比调整装置,其中,还包括:
    选择单元,用于若调用判断结果为目标数据流量源未被调用成功,根据剩余数据流量源已配置的分配比例随机选择得到新的目标数据流量源。
  11. 一种计算机设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,其中,所述处理器执行所述计算机程序时实现以下步骤:
    根据预设配置参数配置多个数据流量源的分配比例并计算得到流量源成本;
    若接收到数据调用请求信息,根据各数据流量源已配置的分配比例随机选择得到目标数据流量源;
    根据所述目标数据流量源所反馈的数据信息判断所述目标数据流量源是否被调用成功以得到该目标数据流量源的调用判断结果;
    若到达预设统计时间点,根据预设统计规则对各数据流量源的调用判断结果进行统计以得到统计结果;
    将所得到的统计结果及所述配置参数输入预设配比调整模型进行计算以得到配比调整值;
    根据所述配置参数中的单位成本及所得到的配比调整值计算得到调整成本;
    根据所述预设配置参数中成本判断规则对所得到的调整成本与流量源成本之间的差值进行判断并根据所得到的判断结果对各数据流量源已配置的分配比例进行调整。
  12. 根据权利要求11所述的计算机设备,其中,所述根据预设配置参数配置多个数据流量源的分配比例并计算得到流量源成本,包括:
    根据预设配置参数配置中的分配比例值对多个数据流量源的分配比例进行配置;
    根据预设配置参数中的单位成本及各数据流量源已配置的分配比例计算得到流量源成本。
  13. 根据权利要求11所述的计算机设备,其中,所述根据所述目标数据流量源所反馈的数据信息判断所述目标数据流量源是否被调用成功以得到该目标数据流量源的调用判断结果之后,还包括:
    若调用判断结果为目标数据流量源未被调用成功,根据剩余数据流量源已配置的分配比例随机选择得到新的目标数据流量源。
  14. 根据权利要求11所述的计算机设备,其中,所述根据预设统计规则对各数据流量源的调用判断结果进行统计以得到统计结果,包括:
    根据所述统计规则中的单位时间获取某一数据流量源在该单位时间内调用判断结果为未被调用成功的次数以统计该数据流量源的失败率;
    根据所述统计规则中的统计频次依次获取各数据流量源在多个单位时间内的失败率以得到统计结果。
  15. 根据权利要求14所述的计算机设备,其中,所述将所得到的统计结果及所述配置参数输入预设配比调整模型进行计算以得到配比调整值,包括:
    计算各待调整数据流量源的多个失败率的失败率平均值并根据失败率平均值对所有待调整数据流量源进行排名以得到流量源排名信息;
    根据所述预设配比调整模型中的流量源分类规则从流量源排名信息中获取得到加分流量源及减分流量源;
    根据所述配比调整模型中的第一计算公式:X N=Z N×T N1×T N2×…×T Nn计算得到所有减分流量源的配比调整值X N,其中,Z N为配置参数中第N个减分流量源的分配比例,T Nn为统计结果中该减分流量源第n个单位时间内的失败率;
    根据所述配比调整模型中的第二计算公式:P=(Z 1-X 1)+(Z 2-X 2)+…+(Z N-X N)计算得到配比调节值P,其中,X N为第N个减分流量源的配比调整值,Z N为配置参数中该减分流量源的分配比例;
    根据所述配比调整模型中的第三计算公式:C N=Z N+P×(1-V N/(V 1+V 2+…+V N))计算得到所有加分流量源的配比调整值C N,其中,V N为所计算得到的第N个加分流量源的失败率平均值。
  16. 根据权利要求11所述的计算机设备,其中,所述根据所述预设配置参数中成本判断规则对所得到的调整成本与流量源成本之间的差值进行判断并根据所得到的判断结果对各数据流量源已配置的分配比例进行调整,包括:
    对调整成本与流量源成本之间的差值是否小于所述成本判断规则中的判断阈值进行判断以得到判断结果;
    若判断结果为调整成本与流量源成本之间的差值小于所述成本判断规则中的判断阈值,将各数据流量源已配置的分配比例调整为对应的配比调整值。
  17. 根据权利要求11所述的计算机设备,其中,所述根据各数据流量源已配置的分配比例随机选择得到目标数据流量源,包括:
    根据所述数据流量源的分配比例确定与所述数据流量源对应的选择区间;
    生成随机数并根据所述随机数所落入的选择区间选择对应的数据流量源作为目标数据流量源。
  18. 一种计算机可读存储介质,其中,所述计算机可读存储介质存储有计算机程序,所述计算机程序当被处理器执行时使所述处理器执行以下操作:
    根据预设配置参数配置多个数据流量源的分配比例并计算得到流量源成本;
    若接收到数据调用请求信息,根据各数据流量源已配置的分配比例随机选择得到目标数据流量源;
    根据所述目标数据流量源所反馈的数据信息判断所述目标数据流量源是否被调用成功以得到该目标数据流量源的调用判断结果;
    若到达预设统计时间点,根据预设统计规则对各数据流量源的调用判断结 果进行统计以得到统计结果;
    将所得到的统计结果及所述配置参数输入预设配比调整模型进行计算以得到配比调整值;
    根据所述配置参数中的单位成本及所得到的配比调整值计算得到调整成本;
    根据所述预设配置参数中成本判断规则对所得到的调整成本与流量源成本之间的差值进行判断并根据所得到的判断结果对各数据流量源已配置的分配比例进行调整。
  19. 根据权利要求18所述的计算机可读存储介质,其中,所述根据预设配置参数配置多个数据流量源的分配比例并计算得到流量源成本,包括:
    根据预设配置参数配置中的分配比例值对多个数据流量源的分配比例进行配置;
    根据预设配置参数中的单位成本及各数据流量源已配置的分配比例计算得到流量源成本。
  20. 根据权利要求18所述的计算机可读存储介质,其中,所述根据所述目标数据流量源所反馈的数据信息判断所述目标数据流量源是否被调用成功以得到该目标数据流量源的调用判断结果之后,还包括:
    若调用判断结果为目标数据流量源未被调用成功,根据剩余数据流量源已配置的分配比例随机选择得到新的目标数据流量源。
PCT/CN2019/118439 2019-03-13 2019-11-14 流量源配比调整方法、装置、计算机设备及存储介质 WO2020181821A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910189105.9A CN110061935B (zh) 2019-03-13 2019-03-13 流量源配比调整方法、装置、计算机设备及存储介质
CN201910189105.9 2019-03-13

Publications (1)

Publication Number Publication Date
WO2020181821A1 true WO2020181821A1 (zh) 2020-09-17

Family

ID=67316035

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/118439 WO2020181821A1 (zh) 2019-03-13 2019-11-14 流量源配比调整方法、装置、计算机设备及存储介质

Country Status (2)

Country Link
CN (1) CN110061935B (zh)
WO (1) WO2020181821A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115378806A (zh) * 2022-08-17 2022-11-22 平安科技(深圳)有限公司 流量分配方法、装置、计算机设备及存储介质

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110061935B (zh) * 2019-03-13 2022-02-18 平安科技(深圳)有限公司 流量源配比调整方法、装置、计算机设备及存储介质
CN114125932B (zh) * 2020-09-01 2023-08-15 中国移动通信集团湖南有限公司 数据分流的方法、装置及网络设备
CN116521247B (zh) * 2023-06-29 2024-02-23 深圳艾为电气技术股份有限公司 Ptc驱动器的同步装载控制方法、装置、设备及介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102523231A (zh) * 2011-12-27 2012-06-27 北京蓝汛通信技术有限责任公司 一种基于dns解析的流量调度方法、装置及服务器
JP2012209928A (ja) * 2011-03-28 2012-10-25 Nec (China) Co Ltd 動的フローレットスケジューリングシステムおよび方法
CN104954401A (zh) * 2014-03-27 2015-09-30 阿里巴巴集团控股有限公司 流量调度方法和装置
CN106487840A (zh) * 2015-08-27 2017-03-08 中国移动通信集团公司 一种内容服务器的确定方法、平台及调度服务器
CN106657367A (zh) * 2016-12-30 2017-05-10 北京三快在线科技有限公司 一种业务数据获取方法、装置及系统
CN110061935A (zh) * 2019-03-13 2019-07-26 平安科技(深圳)有限公司 流量源配比调整方法、装置、计算机设备及存储介质

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7990978B1 (en) * 2004-12-17 2011-08-02 Verizon Services Corp. Dynamic bandwidth queue allocation
CN101827017A (zh) * 2010-02-04 2010-09-08 蓝盾信息安全技术股份有限公司 一种动态分配网络流量的方法及系统
US9959152B2 (en) * 2015-02-27 2018-05-01 Matrixx Software, Inc. Adaptive quota management system
CN108023759B (zh) * 2016-10-28 2020-11-03 腾讯科技(深圳)有限公司 自适应的资源调度方法和装置
CN109067926A (zh) * 2018-10-11 2018-12-21 平安科技(深圳)有限公司 负载均衡方法、装置、计算机设备及存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012209928A (ja) * 2011-03-28 2012-10-25 Nec (China) Co Ltd 動的フローレットスケジューリングシステムおよび方法
CN102523231A (zh) * 2011-12-27 2012-06-27 北京蓝汛通信技术有限责任公司 一种基于dns解析的流量调度方法、装置及服务器
CN104954401A (zh) * 2014-03-27 2015-09-30 阿里巴巴集团控股有限公司 流量调度方法和装置
CN106487840A (zh) * 2015-08-27 2017-03-08 中国移动通信集团公司 一种内容服务器的确定方法、平台及调度服务器
CN106657367A (zh) * 2016-12-30 2017-05-10 北京三快在线科技有限公司 一种业务数据获取方法、装置及系统
CN110061935A (zh) * 2019-03-13 2019-07-26 平安科技(深圳)有限公司 流量源配比调整方法、装置、计算机设备及存储介质

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115378806A (zh) * 2022-08-17 2022-11-22 平安科技(深圳)有限公司 流量分配方法、装置、计算机设备及存储介质

Also Published As

Publication number Publication date
CN110061935A (zh) 2019-07-26
CN110061935B (zh) 2022-02-18

Similar Documents

Publication Publication Date Title
WO2020181821A1 (zh) 流量源配比调整方法、装置、计算机设备及存储介质
US8510374B2 (en) Polling protocol for automatic load limiting
US8621586B1 (en) Using baseline profiles in adaptive authentication
US10142252B2 (en) Server intelligence for network speed testing control
CN107819797B (zh) 访问请求处理方法和装置
US8069236B2 (en) Flow control of events based on threshold, grace period, and event signature
CN104283643A (zh) 报文限速方法和装置
CN111245732A (zh) 一种流量控制方法、装置及设备
CN111049756A (zh) 请求响应方法、装置、电子设备及计算机可读存储介质
US8725868B2 (en) Interactive service management
CN109885384B (zh) 任务并行度优化方法、装置、计算机设备及存储介质
CN112333246B (zh) 一种ABtest实验方法、装置、智能终端及存储介质
CN110086725B (zh) 流量源配比调整方法、装置、计算机设备及存储介质
CN108200185B (zh) 一种实现负载均衡的方法及装置
CN111464618A (zh) 一种消息推送方法、装置、设备和存储介质
CN112506896B (zh) 一种数据删除方法、装置及电子设备
CN113949741B (zh) 一种调度方法、调度装置、电子设备及存储介质
CN111555918B (zh) 一种回源优化方法、装置及电子设备
CN111542052B (zh) 一种物联网中基于群体信任度的数据转发方法及装置
US10979359B1 (en) Polling resource management system
CN109344049B (zh) 测试数据处理系统的方法和装置
US11924061B2 (en) Required communication quality estimation apparatus, required communication quality estimation method and program
WO2021072866A1 (zh) 信息验证方法、装置、计算机设备及存储介质
Unuvar et al. Cloud overbooking through stochastic admission controller
CN106921607B (zh) 一种密码服务器集群下的密码运算管理方法及系统

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19919018

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19919018

Country of ref document: EP

Kind code of ref document: A1