Specific embodiment
To keep the purposes, technical schemes and advantages of the application clearer, below in conjunction with the application specific embodiment and
Technical scheme is clearly and completely described in corresponding attached drawing.Obviously, described embodiment is only the application one
Section Example, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not doing
Every other embodiment obtained under the premise of creative work out, shall fall in the protection scope of this application.
Below in conjunction with attached drawing, the technical scheme provided by various embodiments of the present application will be described in detail.
Fig. 1 shows the flow diagram of the decision-making technique of business special line according to the embodiment.For program angle, stream
The executing subject of journey can be to be equipped on the program or application client of application server.
As shown in Figure 1, the process may comprise steps of:
S110: with predetermined time interval, the business statistics of business special line within a predetermined period of time is obtained based on message center
Information, the predetermined time interval are used for less than the first duration, the predetermined amount of time less than the second duration, the message center
The business information of cache business special line.
Wherein, business special line refers to the dedicated link for carrying out data network transmission, so that the transmission of user data
Securely and reliably, multiple business special lines can be set between terminal and/or server at two.In general, in order to enhance the negative of business
A plurality of business special line can be arranged in loading capability and stability between specified two or more nodes, for example, banking institution with
A plurality of business special line can be set between Third-party payment mechanism, for all kinds of between banking institution and Third-party payment mechanism
The transmitting of information, such as paid, reimbursement, the business processings such as inquiry etc..
Wherein, the statistical information for the service conditions that business statistics message reflection carries out on business special line.For example, business
Statistical information include service request quantity information on business special line within a predetermined period of time, system success/failure quantity information,
Successfully/failure quantity information etc. is communicated, but not limited to this.
Wherein, the equipment that message center can be the business information for cache business special line, specifically, based in message
Acquisition business statistics information, which can specifically refer to based on real-time data acquisition data source, in the heart obtains business statistics information.According to reality
Example is applied, can be such that periodically collecting makes to Mr. Yu's business special line based on the implementation that message center obtains business statistics information
It is applied separate unit business statistics information within a predetermined period of time with every that the business special line carries out data transmission and is sent to and disappeared
Breath center, then summarize to obtain the business special line within a predetermined period of time based on each separate unit business statistics information in message center
Total business statistics information, then the business statistics information of the predetermined amount of time of aforesaid statistical is carried out with predetermined time interval
Inquiry.
Wherein, the prefixed time interval can refer to certain frequency to obtain business statistics information, when described default
Between interval can be less than the first duration, first duration can be not more than 60 seconds, more preferably, can be not more than 20s, more excellent
Ground can be not more than 10s.For example, the business statistics information of a business special line can be inquired with every 3s.Wherein, the pre- timing
Between section can be current time before nearest a period of time, the predetermined amount of time can less than the second duration, described second
Duration can be not more than 60 seconds, more preferably, more preferably can be not more than 10s no more than 20s.For example, count every time
Business statistics information can be the statistical information of the business datum in the preceding 5s based on current time.Wherein, the first duration and
Two durations can be identical or different.The duration of prefixed time interval and the duration of predetermined amount of time can be identical or different.For example,
Prefixed time interval can be 2s-3s, and the duration of preset time period can be 5s-10s.
It is provided herein with the scheme based on daily record data as preliminary data source, it is ensured that can not be from single data source just
In the case where often obtaining data, the availability of entire business special line decision system improves the stability of system.
S120: according to the business statistics information, operational indicator information is calculated.
Wherein, operational indicator information can indicate the index calculated based on business statistics information, can be used to indicate that business
The state of special line.According to embodiment, operational indicator information may include service request quantity information, unit time in the unit time
Interior system success rate/failure rate communicates success rate/failure rate etc. in the unit time, but not limited to this.Wherein, the unit time
It can refer to the time per second, i.e. operational indicator can be second grade index.
It can also include: school before the calculating operational indicator information according to the business statistics information according to embodiment
It tests whether the business statistics information meets operational indicator information design conditions, obtains the first check results;If first school
Test result be it is no, then exit this decision process;It is described that operational indicator information is calculated according to the business statistics information, it is specific to wrap
Include, if first check results be it is yes, according to the business statistics information calculate operational indicator information.
According to embodiment, whether the verification business statistics information meets operational indicator information design conditions, specifically
It may include: whether verification gets required whole business statistics information.For example, working as on business special line within a predetermined period of time
Service request quantity information, system success/failure quantity information, communicate successfully/this three of quantity information that fails all obtains
Then, it is believed that completeness check passes through, the first check results be it is yes, the above-mentioned business statistics information of acquisition can be used to calculate
Operational indicator information.For example, when at least one of aforementioned three classes data can not be got, or the business wherein got
When number of requests information is zero, then it is assumed that completeness check does not pass through, the first check results be it is no, then do not continue to carry out index
It calculates, directly exits this decision process.
S130: it is based on the operational indicator information and preset operational indicator threshold value, determines the state of the business special line
Information.
Wherein, the preset operational indicator threshold value can be used to compare with the operational indicator information, according to right
Than as a result, to obtain the status information of corresponding business special line.Operational indicator threshold value can indicate that the business special line normally makes
With the operating parameter under state.
According to embodiment, the operational indicator threshold value can be to be counted according to the history service statistical information of business special line
It obtains, is also possible to rule of thumb to set.It should be noted that in either case, this is used to carry out exception
The operational indicator threshold value of judgement is preset.Even if when operational indicator threshold value is the case where being calculated according to historical data
Under, which carries out off-line calculation in advance and obtains and store, rather than during Real-time Decision in real time
It calculates.It is such setting so that, can to avoid decision link caused by the calculating as metrics-thresholds unnecessary delay,
Improve the timeliness of decision link.
S140: according to the status information of the business special line, decision is carried out to the business special line.
Wherein, the status information can indicate that the business special line is normal condition or abnormality.Wherein, to described
It may include not executing any operation to the business special line when business special line is normal condition that business special line, which carries out decision,;
When the business special line is abnormality, the business special line is executed and rejects operation and/or executes special for the business
The alarm notification of line.
Wherein, the special line reject and refer to that transaction no longer reaches opponent mechanism by this special line.For example, if third
There is N business special line between square payment mechanism and net connection, in the case where the distribution of data equity, the industry of every special line carrying 1/N
Business amount carries all business by remaining N-1 business special line if eliminating a business special line therein,
In the case that data equity is distributed, every special line carries the portfolio of 1/ (N-1).
According to optional embodiment, the status information according to the business special line determines to the business special line
Plan specifically includes: if the status information of the business special line indicates that the business special line is abnormality, judging the business
Whether special line meets special line kick-out condition;If meeting the special line kick-out condition, rejecting operation is carried out to the business special line.
According to embodiment, the special line kick-out condition may include for example, the special line of at least predetermined number can be used, extremely
The special line of few predetermined ratio can be used, the special line of at least predetermined quantity can be used, in same area within the scope of the same area
The special line of at least predetermined ratio such as can be used at the conditions within the scope of domain, and but not limited to this.
In this embodiment, when the business special line exception, rejecting operation is not carried out not instead of directly, is only being met in advance
It is just executed in the case where fixed special line kick-out condition and rejects operation, that is, the configuring condition based on all special lines of current facility carries out
Risk prevention system, be guaranteed at serviceable condition special line it is minimum, to ensure the monolithic stability availability of operation system.
In addition, according to embodiment, it can be for abnormal business special line be judged as, the transmissions such as Xiang Kaifa maintenance personnel alert
Notice, so that maintenance personnel carries out manual intervention to abnormal traffic special line.
According to said one or more embodiment, a kind of decision-making technique of business special line is provided.Existing scheme is main
It using minute grade monitoring/decision-making capability, takes a long time, in scheme provided by the present application, by being based on message center real time data
It acquires data source and is not based on daily record data and summarizes data source to obtain the indication information of business special line, data delay is low, improves
The timeliness of second grade decision.In addition, carrying out kick-out condition judgement before executing rejecting to abnormal special line, ensure that minimum
The business special line amount of amount avoids related service information caused by due to business special line quantity is very few etc. that from can not transmitting.
On the basis of the above embodiments, present invention also provides the embodiment party of following improved business special line decision-making technique
Case.
According to optional embodiment, the decision-making technique of the business special line, further includes: when being obtained based on message center for S110
When the business statistics information of business special line being taken to fail, it is alternatively possible to which it is special to obtain business based on the daily record data of business special line
The business statistics information of line.Wherein, obtain daily record data can specifically use based on log analysis using business as the prison of core
Control platform, such as XFLUSH platform.Here, data source is acquired based on syslog data to obtain the data of business statistics information
Delay is about 30s, and aforementioned real-time data acquisition data source is about 5s come the data delay for obtaining the mode of data, therefore, this
The decision-making technique default of the business special line of application uses the real-time data acquisition system based on message center, only when real time data is adopted
When collecting system failure, just use based on system log as data source.
In this embodiment, it provides and uses system log as preliminary data source, when real-time data signal source is unavailable
When, daily record data data source is automatically switched to, guarantees the normal operation of decision system model, guarantees the normal implementation of decision scheme
Example, improves the stability of decision system.
According to optional embodiment, in S130, preset metrics-thresholds can be the history industry according to the business special line
The baseline threshold that business information precalculates.Specifically, the baseline threshold can be calculated before S110.Specifically, industry is obtained
The history service statistical information of business special line predetermined amount of time within the date selected according to pre-defined rule;Based on the history service
Statistical information calculates business special line baseline threshold corresponding with the predetermined amount of time.
Wherein, the history service statistical information may include history service number of requests information, legacy system success/mistake
Quantity information, historical communication success/failure quantity information etc. are lost, but not limited to this.Wherein, it is counted according to the history service
The baseline threshold that information calculates may include that the total traffic baseline threshold of unit time, system successfully count baseline threshold, system
Success rate baseline threshold, communication success rate baseline threshold etc., but not limited to this.
Wherein, the date selected according to pre-defined rule can for for example before current date according to certain rule
Several number of days chosen.Wherein, the calculating of baseline threshold can be using such as 1 minute as time window, and statistics calculates aforementioned choosing
The baseline that history service statistical information data is distributed in daily mutually same minute in the date selected, then as to decision day
The baseline threshold of business statistics information in this corresponding minute.For example, judging certain business special line in 10:00:00-10:01 today:
Whether the operational indicator of 00 this period is abnormal, can be based on the business special line daily 10 in the historical date of selection:
The baseline threshold that the history service statistical information of this period of 00:00-10:01:00 calculates is sentenced as operational indicator threshold value
It is disconnected.For another example judging certain business special line in today 10:00:00-10:00:05,10:00:10-10:00:15,10:00:20-
Whether the second grade operational indicator of any time periods such as 10:00:22 is abnormal, for the operational indicator threshold value of judgement, can be and is based on being somebody's turn to do
The history service of this period of 10:00:00-10:01:00 daily in the historical date of selection of business special line counts letter
Cease the baseline threshold calculated.
It is described that institute is determined based on the operational indicator information and preset operational indicator threshold value in S130 according to embodiment
The status information for stating business special line, can specifically include: obtain the base corresponding with the predetermined amount of time of the business special line
Line threshold value;Based on the baseline threshold, judge whether the operational indicator information meets the first decision condition;If meeting described
The status information of the business special line is determined as abnormality by one decision condition.
Wherein, first decision condition is the decision condition using the baseline threshold as parameter.As an example, first
Decision condition can be TPS >=TPS_THRESHOLD&& (CSS≤CSS_BASELINE | | (SYS_TSSY≤SYS_TSSY_
BASELINE&&SYS_TSS≤SYS_TSS_BASELINE)), wherein TPS indicates transaction request quantity per second, TPS_
THRESHOLD indicates that CSS indicates communication success rate per second, and CSS_BASELINE indicates communication success rate baseline threshold, SYS_
TSSY indicates that system per second successfully counts, and SYS_TSSY_BASELINE indicates that system per second successfully counts baseline threshold, SYS_TSS table
Showing system success rate per second, SYS_TSS_BASELINE indicates system success rate baseline threshold per second, if meeting the decision condition,
Then special line is abnormal.
In this embodiment, the baseline threshold corresponding with predetermined amount of time can be calculates in advance, rather than real
When calculate, this avoids carry out it is abnormal judge when unnecessary data postpone.In addition, based on history service statistical information
The baseline threshold of calculation is substantially a predicted value, and is predicted value of the corresponding business special line within the corresponding period,
With in traditional determination method by fixed value determined in the way of compared with, judge it is more acurrate, to special line abnormal conditions
It identifies more sensitive.
It is described to judge whether the operational indicator information meets the first judgement item based on the baseline threshold according to embodiment
It before part, can also include: whether verification gets required whole baseline thresholds, obtain the second check results;If described
Two check results be it is no, then judge whether the operational indicator information meets the second decision condition based on empirical value;If meeting
The status information of the business special line is determined as abnormality by second decision condition;It is described to be based on the baseline threshold
Judge whether the operational indicator information meets the first decision condition, specifically include, if second check results are yes, base
In the baseline threshold, judge whether the operational indicator information meets the first decision condition.
Specifically, whether verification gets required whole baseline thresholds, can be, and whether verification gets for example corresponding
The history service number of requests information of time, legacy system success/failure quantity information, historical communication success/failure quantity letter
Cease the whole in three.For example, if a part or history service the number of requests information only got in aforementioned three is
Zero, then completeness check does not pass through.
Specifically, in the unacceptable situation of completeness check, determination method is switched to use experience threshold value as referring to
Threshold value is marked to be determined.Wherein, empirical value can be preset threshold information, as an example, service request per second
The empirical value of quantity information can be 30, and the empirical value of system success rate per second can be 60%, communication success rate per second
Empirical value can be 50%.Specifically, the second decision condition can be the decision condition using empirical value as parameter.Base
In aforementioned exemplary, the second decision condition can be TPS>=30&& (CSS<60% | | SYS_TSS<50%), if meeting the condition,
Then think that business special line is abnormal.
In the above-described embodiments, using the baseline threshold calculated based on history service statistical data come pair with business special line
The indication information of period is answered relatively to obtain determining information, the baseline threshold is by the historical data meter thus according to the corresponding period
It obtains, so that determine that result is more acurrate reliable, it is also more sensitive for the judgement of special line exception.In addition, use experience threshold value
As spare metrics-thresholds, the dual fail-safe determined with empirical value is determined using baseline threshold, to ensure to imitate in guarantee business
Under the premise of fruit, the exception of business special line is precisely quickly identified.
During business special line carries out data transmission, it may occur however that data link caused by due to network etc. is trembled
It is dynamic, for example, the processing receipt of the business first sent may be late due to data dithering according to the business that certain time sequence carries out
In the processing receipt of the business of rear transmission, or two service requests sent according to first time interval, the processing received
The second time interval between receipt is different from first time interval.The second grade decision of carry out business special line, needed to solve in the second
Grade environment under, data dithering deviation increase the problem of.
According to optional embodiment, whether the verification business statistics information, which meets operational indicator information, calculates item
Part obtains the first check results, can also include: the corresponding statistical time range of the verification business statistics information whether meet it is predetermined
Time range, obtain the first check results.Specifically, if first check results be it is no, exit this decision process;
If first check results be it is yes, according to the business statistics information calculate operational indicator information.
Specifically, before calculating operational indicator information using business statistics information, it is also necessary to verify the operational indicator
Whether information meets certain data dithering threshold condition, that is, verify the corresponding statistical time range of the business statistics information whether
In scheduled time range.More specifically, for example, if when the correspondence of the total business volume statistical information in business statistics information counts
Deviation between section and the correspondence statistical time range of business success or failure statistical information is less than predetermined threshold, then the two can be used to calculate
Business success or failure rate.For example, if the correspondence statistical time range of the total business volume statistical information in business statistics information is united with success or failure are communicated
The deviation counted between the correspondence statistical time range of information is less than predetermined threshold, then the two can be used to calculate communication success or failure rate.Example
Such as, the predetermined threshold can be 30s, that is, when two or more corresponding actual counts of business statistics information of acquisition
When the deviation to each other of period is not more than 30s, carry out alignment of data may not need, can directly use two of the acquisition
Or more business statistics information calculate operational indicator information.
According to embodiment, operational indicator information is calculated according to the business statistics information, is specifically included: using at the first time
The business success or failure statistical information of section and the total business volume statistical information of second time period, calculate the business of the predetermined amount of time at
Power, wherein the first time period and the predetermined amount of time and the second time period and the predetermined amount of time
Time deviation is no more than third duration.Wherein, the third duration can be 30s, and optionally, the third duration can be
20s, optionally, the third duration can be 10s, and optionally, the third duration can be 5s, and but not limited to this.
Specifically, ideal for example, to decision being state of the business special line in 10:00:30-10:00:35 this period
The case where be get this period of 10:00:30-10:00:35 such as total business volume statistical information and business success or failure statistics letter
It ceases, and calculates the system success or failure rate in this period of 10:00:30-10:00:35 using the two.However, due to data dithering
Etc. reasons, possibly can not accurate statistics to this period of 10:00:30-10:00:35 business statistics information, at this time, it may be necessary to sentence
The real time section of the disconnected corresponding business datum of business statistics information actually obtained, if when actual count period and predetermined statistics
When deviation between section is not more than scheduled third duration, business directly can be carried out using the actual count period obtained
The calculating of index.For example, if when third a length of 30s, at the business statistics information corresponding period actually obtained
In this period of time of 10:00:00-10:01:05, such as 10:00:00-10:00:05,10:00:13-10:00:18,10:
Corresponding business statistics information may be incorporated for calculating the 10:00:30-10 to decision in the periods such as 00:40-10:00:45:
The operational indicator of this period of 00:35.
When there is data dithering, but in the case that data dithering deviation meets scheduled threshold range, to operational indicator
The accuracy of data influences less, at this time can be without the operation of alignment of data, directly using the business for meeting target offset
Statistical data calculates operational indicator data, improves the timeliness of special line decision.
For the influence being further reduced in second grade decision scene caused by data dithering to the result of decision, the application makes
Operational indicator information is calculated with following improved data processing methods.
It is described that operational indicator information is calculated according to the business statistics information according to optional embodiment, specifically it can wrap
Include: according to service exception amount statistical information and total business volume statistical information, being calculate by the following formula service success rate information: business at
Power information=(total business volume statistical information-service exception amount statistical information)/total business volume statistical information.
Specifically, when the number of services information includes business sum per second and communication failure number per second, can pass through
Following formula calculates communication success rate per second: communication success rate per second=(business sum-communication failure number per second per second)/business per second
Sum.When the number of services information includes business sum per second and thrashing number per second, can be calculate by the following formula per second
System success rate: system success rate per second=(business sum-thrashing number per second per second)/business sum per second.
In practical business scene, such as in the case where having many batch processing tasks at night, trade off curve will appear steep increasing
Or the scene dropped suddenly, for example, unit time trading volume was 2000/second at upper one second, it is 100/second in next second.Tolerating
In the case where certain data dithering deviation (for example, 30s), it is assumed that the business transaction amount data point as denominator is in 00:00:25
~00:00:30, and the transaction as molecule successfully measures data point in 00:00:00~00:00:05, then calculating success rate
In the process, data dislocation will will lead to decision value inaccuracy, in turn result in accidentally decision.More specifically, it is assumed that 00:00:00~
The actual services trading volume of 00:00:05 is 10000, wherein trading successfully number 9980, Fail Transaction number is 20;Assuming that
It is 500 in the actual services trading volume of 00:00:25~00:00:30, wherein successfully number of trading is 499, Fail Transaction number
It is 1;So, the true sale success rate in 00:00:00~00:00:05 and 00:00:25~00:00:30 is 499/
500(0.9998).If being calculated according to successfully counting, it is assumed that data dithering occur, what is actually got is 00:00:00~00:
The transaction of the business transaction amount and 00:00:25~00:00:30 of 00:05 successfully counts, then, the transaction success rate being calculated is
499/10000=0.0499, it is clear that it differs larger with true transaction success rate 0.9998, may result in accidentally decision.And root
According to the scheme of the application, calculated according to unsuccessfully counting, it is assumed that data dithering occur, that actually obtain is 00:00:00~00:00:
05 business transaction amount and the Fail Transaction number of 00:00:25~00:00:30, then, the transaction success rate being calculated is
(10000-1)/10000=9999/10000=0.9999 differs smaller with true transaction success rate 0.9998, can be effective
It avoids missing decision caused by data dithering.
In this embodiment, based on thrashing number rather than system successfully counts come computing system success rate, based on communication
Failure number rather than communicate successfully it is several come computing system success rate, data dithering can be reduced to a certain extent and determined to calculating
The influence of the accuracy of plan index solves the problems, such as that data dithering deviation increases under second grade environment.
It based on the above embodiment, can be in the case where the data of acquisition meet target offset threshold value without alignment of data
And data being directly used for parameter, while using unsuccessfully several and non-successful numbers come parameter, the two combines, and both mentions significantly
Decision timeliness under high second grade situation efficiently solves data dithering under second grade situation simultaneously, does under second grade environment
The balance of error and timeliness is arrived.
In summary one or more embodiments, the decision-making technique of business special line provided by the present application, may be implemented low
It is delayed and the data collection of (for example, in 30s), anomalous identification and precisely makes the system decision-making;Meanwhile using multi-data source, refer to
Mark threshold value, the comprehensive stable operation for ensuring decision scheme.
Fig. 2 shows the schematic diagrames of the decision process of business special line decision-making technique according to the embodiment, more clearly to retouch
State the scheme of the application.As shown in Fig. 2, the decision process of business special line decision-making technique may include the following four stage: first
Stage, configuration acquisition and statistical information to decision business special line obtain the stage;Second stage, data integrity verifying stage;
Phase III, business special line abnormal determination stage;Fourth stage, business special line decision reject the stage.
First stage includes obtaining key configuration information and current private related data.On the one hand, available to decision
Business special line configured list information, the configured list information may include to decision business special line mark, every specially
The weight of line can also include area information, address information of every special line etc..Wherein, the weight information may include this
The trading volume shunt ratio of special line carrying, for example, in the case where a total of N special line, M1*L1+M2*L2+......+Mn*
Ln indicates total deal size information, wherein Ln indicates the tapping condition of nth special line, and special line normal use is 1, and special line is abnormal
It is 0;Wherein, Mn indicates the weight information of nth special line, when business information mean allocation in all business main lines the case where
Under, M1=M2=...=Mn=1/N, but not limited to this.According to embodiment, can periodically be traversed with the scheduled period all
Business special line, to inquire all newest configured lists of business special line, wherein including the business special line it is newest shunting and
Weight information.The scheduled period can be for example every 20s, every 30s, every 60s, be not specifically limited herein.
On the other hand, the first stage is not 0 for diffluent information on the basis of aforementioned acquisition special line current configuration information
Special line, the available business special line to decision second grade statistical information, wherein Double Data can be used in the acquisition of information
Source, preferably real-time data acquisition data source, alternative system daily record data number in the case where real-time data acquisition data source failure
According to source, wherein when the data loss rate of real-time data acquisition reach certain threshold value (for example, about 20%, about 30% etc., this threshold value root
It is calculated according to historical data or rule of thumb sets) when, then execute the automatic switchover of data source.Wherein, the business of acquisition
Statistical information can refer to the business statistics information of unit time, for example, business statistics information per second, more specifically, can wrap
It includes special line total amount of transactions per second, special line system Fail Transaction number per second and special line system communication per second unsuccessfully counts, but be not limited to
This.Wherein, the corresponding statistical time range of each business statistics information can be selected as nearest 5s, nearest 10s etc., usually more than most
Nearly 60s.
Second stage mainly carries out completeness check and according to check results to second grade statistical data, the baseline threshold of acquisition
Carry out subsequent operation.On the one hand, the integrality of the private line service statistical information of acquisition is verified, for example, when the second obtained
In grade data when at least one of transaction request quantity per second, thrashing number per second, communication failure number three per second missing,
Think that completeness check does not pass through, exits this decision process extremely;For example, when the transaction request quantity per second obtained is zero
When, also think that completeness check does not pass through, exits this decision process extremely.In addition to this, the special line industry of acquisition is also verified
Whether the time deviation of business statistical information meets target offset threshold value, if not satisfied, then thinking that verification does not pass through, exits this extremely
Secondary decision process.For example, target offset threshold value can be comprehensive assessment timeliness and error rate obtains as a result, for example, can be
30s.For example, it is contemplated that the data obtained are the data target of 00:00:15~00:00:20, but the data actually obtained are 00:
00:00~00:00:05, in target offset threshold value, i.e., within an acceptable error range, verification passes through.It needs to illustrate herein
, in the case where the data actually obtained meet target offset threshold value, without carrying out alignment of data operation, can directly make
Operational indicator information is calculated with the business statistics information actually obtained.If owned it is required that the data that will acquire are perfectly aligned
It participates in the statistical data that index calculates to be required to be determined according to the worst statistical data of synchronous timeliness, leads to whole decision chain
The road time extends.Scheme provided by the present application by setting target offset threshold value, can be used directly in certain deviation range
The data of acquisition, so that improving the timeliness of decision under the premise of accurately.
On the other hand, the integrality for the baseline threshold that second stage verification obtains.Specifically, available business special line
The history service statistical information of predetermined amount of time within the date selected according to pre-defined rule is then based on the history service system
Meter information calculates the baseline threshold corresponding with the predetermined amount of time of the business special line.Wherein, to the calculating of baseline threshold
It can be calculated using such as 3-sigma algorithm model, but not limited to this, and also can be used known in the art can be used for base
The other methods of baseline threshold are calculated in historical data.Wherein, the baseline threshold may include communication success rate baseline threshold
Value, system success rate baseline threshold, trading volume baseline threshold, system successfully measure baseline threshold etc..
Phase III can take selected determination method to determine business special line.Specifically, it is successfully getting
In the case where baseline threshold, then determined using baseline threshold.In the case where not obtaining baseline threshold, then use is switched to
Empirical value is determined, for example, the communication success rate threshold value in the empirical value can be 0.5, system success rate threshold value
It can be able to be 30 for 0.5, trading volume threshold value.
Fourth stage, abnormal special line can be made whether reject judgement, and according to judging result carry out reject and/or
Alarm operation.Specifically, according to the configuring condition of all business special lines obtained in the aforementioned first stage, risk prevention system is carried out,
If abnormal special line accounts for the ratio of sum beyond predetermined ratio threshold value, does not reject and be currently judged as abnormal special line, optionally,
It can be alerted;If abnormal special line accounts for the ratio of sum without departing from predetermined ratio threshold value, abnormal to being currently judged as
Special line is rejected.As an example, the predetermined ratio threshold value can be 50%, but not limited to this.In addition, to be rejected is special
Line can be added in automatic rejection queue and wait automatic rejection, can also be sent to maintenance personnel and be rejected manually.
Fig. 3 shows the schematic diagram of the decision link of business special line decision-making technique according to the embodiment, more clearly to retouch
State the scheme of the application.
As shown in figure 3, Real-time Decision link therein is the platform of real-time perfoming service exception identification and decision.It can determine
Phase dispatches the Real-time Decision link to carry out decision to business special line.Specifically, the configuration information of inquiry business special line first, packet
Include the information such as the business special line shunt ratio of current facility;Then the business statistics information of inquiry business special line and metrics-thresholds letter
Breath, wherein business statistics information can be obtained by real-time data acquisition data source, it is alternatively possible to pass through system log
Data source is acquired to obtain, wherein metrics-thresholds information can be the baseline threshold information obtained by off-line calculation link, standby
Empirical value information can be used as metrics-thresholds information in selection of land;The business statistics information based on acquisition calculates business and refers to again
Mark information, then in conjunction with operational indicator threshold information carry out special line whether Yi Chang judgement, wherein calculating operational indicator information
When using system/communication failure information and nonsystematic/communication successfully counts information, to reduce data dithering to the shadow of calculated result
It rings;Finally, the result of decision is sent to decision-making platform, decide whether that carrying out special line picks according to decision-making management prediction scheme by decision-making platform
It removes and/or monitoring alarm operates.According to the special line result of decision that above-mentioned Real-time Decision link obtains, the business of Lai Guanli special line is held
Load ratio.For example, that is, this can be reconfigured by decision special line no longer bearer service if the result of decision is to carry out special line rejecting
The shunt ratio of each business special line, and business is proportionally sent to corresponding special line for example, by super gateway.Example
Such as, 10 special lines are shared between third party transaction mechanism and net connection/Unionpay, in the case where equity distribution, every special line is all held
1/10 trading volume is carried, if rejecting wherein 1 abnormal special line, the trading volume of remaining every special line carrying is 1/9.
As shown in Figure 3, the baseline threshold for carrying out abnormal determination is precalculated by off-line calculation link.Specifically
Ground can periodically call offline baseline threshold computation model, and the history service data of inquiry business special line;Then according to business
The history service statistical data of special line, calculates corresponding baseline threshold, and stores the baseline threshold in case Real-time Decision link
It uses.Specifically, based on the business statistics information in the target time section in the historical date selected according to pre-defined rule,
Baseline threshold is calculated, using the predicted value as the business statistics information in target time section in future date.For example, can count
Before current date in this period of 00:00:00-06:00:00 daily in 1 day, 2 days, 3 days, 7 days, 14 days, 21 days, 30 days
The information such as carrying trading volume per minute, communication failure amount, thrashing amount, are calculated period 00:00:00-06:00:
The baseline threshold of the information such as 00 carrying trading volume, communication failure amount, thrashing amount, as period today 00:00:00-
The predicted value of 06:00:00.In this instance, the length of the objective time interval of calculating is 6 hours, in such a case, it is possible to every 6
Hour calculates a baseline threshold;But be only shown as example herein, the length of objective time interval can be any as needed
Setting, such as can be 2 hours, then a baseline threshold can be calculated in each 2 hours.In addition, in order to ensure baseline threshold
Value can accurately reflect the newest business processing status of business special line, and then ensure the accurate of the decision based on baseline threshold
Property, the baseline threshold used every time is the baseline threshold newly calculated, that is, is carried out to business datum in the certain time period of tomorrow
Baseline threshold used in abnormal judgement carries out exception with business datum in the same period to today and judges used base
Line threshold value is different, the former is updated baseline threshold.
Based on same thinking, this specification embodiment additionally provides the corresponding device of the above method.Fig. 4 shows basis
The structural schematic diagram of the decision making device of the business special line of embodiment.
As shown in figure 4, the apparatus may include:
Module 410 is obtained, for obtaining business special line within a predetermined period of time based on message center with predetermined time interval
Business statistics information, for the predetermined time interval less than the first duration, the predetermined amount of time is described to disappear less than the second duration
Breath center is used for the business information of cache business special line;
Computing module 420, for calculating operational indicator information according to the business statistics information;
Determination module 430 determines the business for being based on the operational indicator information and preset operational indicator threshold value
The status information of special line;
Decision-making module 440 carries out decision to the business special line for the status information according to the business special line.
According to embodiment, the acquisition module 410 is also used to when the business statistics for being obtained business special line based on message center
When information fails, then the business statistics information of business special line is obtained based on the daily record data of business special line.
According to embodiment, the computing module 420 is specifically included: the first verification unit, for uniting according to the business
Before counting information calculating operational indicator information, verify whether the business statistics information meets operational indicator information design conditions,
Obtain the first check results;First execution unit, if for first check results be it is no, exit this decision process,
If if first check results be it is yes, according to the business statistics information calculate operational indicator information.
According to embodiment, first execution unit is specifically used for: if first check results be it is yes, using the
The business success or failure statistical information of one period and the total business volume statistical information of second time period, calculate the predetermined amount of time
Service success rate, wherein the first time period and the predetermined amount of time and the second time period and the pre- timing
Between section time deviation no more than third duration.
According to embodiment, the computing module 420 is specifically used for: according to service exception amount statistical information and total business volume
Statistical information, is calculate by the following formula service success rate information: service success rate information=(total business volume statistical information-business is different
Constant statistical information)/total business volume statistical information.
According to embodiment, the determination module 430 includes: threshold value acquiring unit, for obtain the business special line with
The corresponding baseline threshold of the predetermined amount of time, wherein the base precalculated according to the historical operational information of the business special line
Line threshold value is as preset metrics-thresholds;Whether the second verification unit gets required whole baseline thresholds for verifying, obtains
To the second check results;Second execution unit, if for second check results be it is yes, be based on the baseline threshold conduct
Metrics-thresholds judge whether the operational indicator information meets the first decision condition, if second check results be it is no,
Judge whether the operational indicator information meets the second decision condition as metrics-thresholds based on empirical value.
According to embodiment, the decision-making module 440 includes: third verification unit, for working as the state of the business special line
When information indicates that the business special line is abnormality, judge whether the business special line meets special line kick-out condition;Third is held
Row unit, if carrying out rejecting operation to the business special line for meeting special line kick-out condition.
It is appreciated that above-mentioned each module refers to computer program or program segment, for executing certain one or more spy
Fixed function.In addition, it must be separated that the differentiation of above-mentioned each module, which does not represent actual program code, yet.
Based on same thinking, this specification embodiment additionally provides the corresponding equipment of the above method.
Fig. 5 shows the structural schematic diagram of the decision device of business special line according to the embodiment.As shown in figure 5, equipment 500
May include:
At least one processor 510;And
The memory 530 being connect at least one described processor communication;Wherein,
The memory 530 is stored with the instruction 520 that can be executed by least one described processor 510, described instruction quilt
Described at least one processor 510 executes so that at least one described processor 510 can: with predetermined time interval, based on disappearing
Breath center obtains business special line business statistics information within a predetermined period of time, the predetermined time interval less than the first duration,
The predetermined amount of time is used for the business information of cache business special line less than the second duration, the message center;According to the industry
Business statistical information, calculates operational indicator information;Based on the operational indicator information and preset operational indicator threshold value, determine described in
The status information of business special line;According to the status information of the business special line, decision is carried out to the business special line.
Based on same thinking, this specification embodiment additionally provides the corresponding computer-readable medium of the above method.It should
Computer-readable instruction is stored on computer-readable medium, the computer-readable instruction can be executed by processor on to realize
The decision-making technique of business special line described in any embodiment of face.
It is above-mentioned that this specification specific embodiment is described, in some cases, record in detail in the claims
Movement or step can execute according to the sequence being different from embodiment and desired result still may be implemented.In addition,
Process depicted in the drawing not necessarily requires the particular order shown or consecutive order and is just able to achieve desired result.At certain
In a little embodiments, multitasking and parallel processing are also possible or may be advantageous.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device,
For apparatus embodiments, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to method
The part of embodiment illustrates.
This specification embodiment provide device, apparatus and method for be it is corresponding, therefore, device, equipment also have with it is right
The similar advantageous effects of induction method, since the advantageous effects of method being described in detail above,
The advantageous effects of which is not described herein again corresponding intrument, equipment.
In the 1990s, the improvement of a technology can be distinguished clearly be on hardware improvement (for example,
Improvement to circuit structures such as diode, transistor, switches) or software on improvement (improvement for method flow).So
And with the development of technology, the improvement of current many method flows can be considered as directly improving for hardware circuit.
Designer nearly all obtains corresponding hardware circuit by the way that improved method flow to be programmed into hardware circuit.Cause
This, it cannot be said that the improvement of a method flow cannot be realized with hardware entities module.For example, programmable logic device
(Programmable Logic Device, PLD) (such as field programmable gate array (Field Programmable Gate
Array, FPGA)) it is exactly such a integrated circuit, logic function determines device programming by user.By designer
Voluntarily programming comes a digital display circuit " integrated " on a piece of PLD, designs and makes without asking chip maker
Dedicated IC chip.Moreover, nowadays, substitution manually makes IC chip, this programming is also used instead mostly " is patrolled
Volume compiler (logic compiler) " software realizes that software compiler used is similar when it writes with program development,
And the source code before compiling also write by handy specific programming language, this is referred to as hardware description language
(Hardware Description Language, HDL), and HDL is also not only a kind of, but there are many kind, such as ABEL
(Advanced Boolean Expression Language)、AHDL(Altera Hardware Description
Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL
(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby
Hardware Description Language) etc., VHDL (Very-High-Speed is most generally used at present
Integrated Circuit Hardware Description Language) and Verilog.Those skilled in the art also answer
This understands, it is only necessary to method flow slightly programming in logic and is programmed into integrated circuit with above-mentioned several hardware description languages,
The hardware circuit for realizing the logical method process can be readily available.
Controller can be implemented in any suitable manner, for example, controller can take such as microprocessor or processing
The computer for the computer readable program code (such as software or firmware) that device and storage can be executed by (micro-) processor can
Read medium, logic gate, switch, specific integrated circuit (Application Specific Integrated Circuit,
ASIC), the form of programmable logic controller (PLC) and insertion microcontroller, the example of controller includes but is not limited to following microcontroller
Device: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicone Labs C8051F320 are deposited
Memory controller is also implemented as a part of the control logic of memory.It is also known in the art that in addition to
Pure computer readable program code mode is realized other than controller, can be made completely by the way that method and step is carried out programming in logic
Controller is obtained to come in fact in the form of logic gate, switch, specific integrated circuit, programmable logic controller (PLC) and insertion microcontroller etc.
Existing identical function.Therefore this controller is considered a kind of hardware component, and to including for realizing various in it
The device of function can also be considered as the structure in hardware component.Or even, it can will be regarded for realizing the device of various functions
For either the software module of implementation method can be the structure in hardware component again.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity,
Or it is realized by the product with certain function.It is a kind of typically to realize that equipment is computer.Specifically, computer for example may be used
Think personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play
It is any in device, navigation equipment, electronic mail equipment, game console, tablet computer, wearable device or these equipment
The combination of equipment.
For convenience of description, it is divided into various units when description apparatus above with function to describe respectively.Certainly, implementing this
The function of each unit can be realized in the same or multiple software and or hardware when application.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more,
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces
The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium
Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices
Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want
There is also other identical elements in the process, method of element, commodity or equipment.
The application can describe in the general context of computer-executable instructions executed by a computer, such as program
Module.Generally, program module includes routines performing specific tasks or implementing specific abstract data types, programs, objects, group
Part, data structure etc..The application can also be practiced in a distributed computing environment, in these distributed computing environments, by
Task is executed by the connected remote processing devices of communication network.In a distributed computing environment, program module can be with
In the local and remote computer storage media including storage equipment.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality
For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method
Part explanation.
The above description is only an example of the present application, is not intended to limit this application.For those skilled in the art
For, various changes and changes are possible in this application.All any modifications made within the spirit and principles of the present application are equal
Replacement, improvement etc., should be included within the scope of the claims of this application.