Multipaths manner of execution and systemTechnical field
The present invention relates to field of computer technology, particularly a kind of multipaths manner of execution and system.
Background technology
In the order processing of ecommerce, often different according to the division of business, often form multiple flow process, such as order splits, order shifts, order predecomposition etc. flow process, each flow process is processed by corresponding operation system, the processing power of each operation system differs, when a large amount of orders needs to carry out the process of multipaths simultaneously, the execution time of whole flow process may be had influence on because of lacking in ability of certain business flow processing, even may there is certain operation system because visit capacity machine of delaying greatly, and then cause the stopping of whole order dealing process, the order affecting downstream storehouse is produced.
In typical e-commerce order processing procedure, place an order the production of terminal storehouse order from user, order can flow through multiple flow process and process, can through malice order flow process after such as placing an order, order splits flow process, the flow process that order transfer etc. has sequencing to rely on, produces until order last incoming terminal storehouse.And this series of flow process is independent of one another, is processed by different operation systems respectively, need to call these operation systems successively, the final result producing needs.
In existing techniques in realizing, each operation flow is independent toward each other, processes each flow process by independently operation system, therefore in the process of process order, call each operation system according to carrying out successively, such as, first call malice form ordering system, check whether order is malice order; Then call order split system, order is split as corresponding sub-order; Next go calling branch system again, order is transferred to corresponding Warehouse System etc., form the order can produced at storehouse until last.As shown in Figure 1, Fig. 1 is the schematic diagram of the main modular of system according to process order of the prior art to the main modular used in above process.Order raw data module in Fig. 1 is mainly used to order data to encapsulate, for ensuing process is prepared.Call control center's module be mainly used to according to order processing order to call each process order operation system.Ordering Module 1 to N in figure realizes the function of each operation system, is used for processing each operation flow.Each Ordering Module generally adopts server cluster to realize.
When order volume is smaller, the system of employing Fig. 1 generally can normal process order.But order volume changes often, in the peak period of order volume, the individual server often occurring in certain operation system is delayed the situation of machine, now the load of other servers of this operation system increases immediately, make wherein to have again server to delay machine, thus form avalanche effect, this operation system is paralysed completely, thus cause interruption and the stagnation of order dealing process, finally have influence on order produce and to user's deliver goods.In order to avoid the appearance of above-mentioned situation, current Main is the processing power of expanding system, realizes mainly through increasing hardware facility.This mode cost compare is high.
Summary of the invention
In view of this, the invention provides a kind of multipaths manner of execution and system, the reliability that multipaths performs can be improved under lower cost.
For achieving the above object, according to an aspect of the present invention, a kind of multipaths manner of execution is provided.
Multipaths manner of execution of the present invention comprises: the performance parameter limit value of record traffic system, and described operation system is for performing a flow process in multipaths; According to the performance parameter limit value of described operation system and the real-time performance parameter value of described operation system and default regulation strategy, the amount of the calling setting value of described operation system is regulated, makes described real-time performance parameter value within described performance parameter limit value; The amount of calling setting value according to described operation system is called this operation system.
Alternatively, before the step that the amount of the calling setting value of described operation system is regulated, also comprise: the weight of preserving the multiple performance parameter settings to operation system; The real-time performance parameter value of described operation system is the instantaneous value of the maximum performance parameter of weight.
Alternatively, before the step of the performance parameter limit value of described record traffic system, also comprise: selected described operation system from the multiple operation systems for performing described multipaths.
Alternatively, before the step that the amount of the calling setting value of described operation system is regulated, also comprise: the real-time performance parameter continuing to obtain described operation system according to the time interval of presetting.
Alternatively, after according to the amount of the calling setting value of described operation system this operation system being called, also comprise: when the real-time performance parameter value of described operation system is within described performance parameter limit value, calculate difference therebetween, if this difference is greater than preset value, then increase the amount of the calling setting value of described operation system, then by this amount of calling setting value, this operation system is called.
Alternatively, the performance parameter of described operation system comprise following one or more: utilization rate of central processing unit, calculator memory use amount, calls time of return.
Alternatively, described operation system comprises the operation system of the order of process ecommerce.
According to a further aspect in the invention, a kind of multipaths executive system is provided.
Multipaths executive system of the present invention comprises: system parameter settings module, for recording the performance parameter limit value of the multiple operation systems performing multipaths; Real-time Obtaining module, for obtaining the real-time performance parameter value of operation system; Intellectual analysis engine modules, for according to the performance parameter limit value of described operation system and the real-time performance parameter value of described operation system and default regulation strategy, the amount of the calling setting value of described operation system is regulated, makes described real-time performance parameter value within described performance parameter limit value; Call control center's module, for regulating the amount of the calling setting value obtained to call this operation system according to described intellectual analysis engine modules.
Alternatively, described system parameter settings module is also for preserving the weight of the multiple performance parameter settings to operation system; Described intellectual analysis engine modules is also for according to the real-time performance parameter value of the performance parameter limit value of described operation system and the maximum performance parameter of the weight of described operation system and default regulation strategy, the amount of the calling setting value of described operation system is regulated, makes described real-time performance parameter value within described performance parameter limit value.
Alternatively, described Real-time Obtaining module is also for continuing according to the time interval of presetting the real-time performance parameter obtaining described operation system.
Alternatively, described intellectual analysis engine modules is also for when the real-time performance parameter value of described operation system is within described performance parameter limit value, calculate difference therebetween, if this difference is greater than preset value, then increase the amount of the calling setting value of described operation system.
According to technical scheme of the present invention, the performance parameter limit value of setting operation system, the amount of calling to this operation system is regulated according to this limit value, make its real-time performance parameter value within this limit value, thus ensure that this operation system can normally be run, the multiple operation systems for process multipaths do similar process can enable multipaths be processed by reliable and stable.
Accompanying drawing explanation
Accompanying drawing is used for understanding the present invention better, does not form inappropriate limitation of the present invention.Wherein:
Fig. 1 is the schematic diagram of the main modular of system according to process order of the prior art;
Fig. 2 is the schematic diagram of the basic step of multipaths manner of execution according to the embodiment of the present invention;
Fig. 3 is the schematic diagram of the main modular of multipaths actuating unit according to the embodiment of the present invention.
Embodiment
Below in conjunction with accompanying drawing, one exemplary embodiment of the present invention is explained, comprising the various details of the embodiment of the present invention to help understanding, they should be thought it is only exemplary.Therefore, those of ordinary skill in the art will be appreciated that, can make various change and amendment, and can not deviate from scope and spirit of the present invention to the embodiments described herein.Equally, for clarity and conciseness, the description to known function and structure is eliminated in following description.
In embodiments of the present invention, to each operation system setting performance parameter limit value, regulate the amount of calling to this system when system cloud gray model according to this limit value, make the real-time performance parameter of operation system not exceed the performance parameter limit value of setting.Elaborate below in conjunction with accompanying drawing.Fig. 2 is the schematic diagram of the basic step of multipaths manner of execution according to the embodiment of the present invention.What Fig. 2 described is way for an operation system, adopts similar process in the implementation for each operation system.
Step S21: the performance parameter limit value of record traffic system.CPU usage, the memory usage of performance parameter limit value such as server, call response time value etc.When the performance parameter of operation system exceeds these limit values, then illustrate that server performance declines, and has the risk of the machine of delaying, needs to take measures.For multiple operation system, a part wherein only can be controlled.Therefore can select one or more operation system in advance, these operation systems are processed by Fig. 2 flow process.
Step S22: the real-time performance parameter value of capturing service system.
Step S23: according to the performance parameter limit value of operation system and the real-time performance parameter value of operation system and default regulation strategy, the amount of the calling setting value of operation system is regulated.The amount of calling here is the call number to operation system in the unit interval.In this step, the object of adjustment is that the real-time performance parameter value that makes to collect is within the performance parameter limit value of record.Adjustment can perform according to the strategy of default settings.Can be make all real-time performance parameter values within limit value, also can make wherein a part of real-time performance parameter value within limit value.The response time is called to investigate, be example within being limited to limit value, setting current business system call amount is 10,000 times per second, and collect current to call the response time be 2s, and its limit value 50ms of setting, the currency collected exceeds limit value, then illustrate that current business system handling property is in decline, now our number of times calling operation system is reduced to 5,000 times per second by 10,000 times per second, then continue gather current call the response time and investigate it whether decline to some extent, if do not declined, then again carry out the downward amount of calling by the step-length preset, until collect currently call within the response time returns to limit value.Now the amount of calling finally used is preserved as the amount of calling setting value.
Step S24: the amount of the calling setting value according to operation system is called this operation system.Above-mentioned flow process can circulate and carry out, and namely returns step S22, continues according to the time interval of presetting the real-time performance parameter obtaining operation system.When the real-time performance parameter value of operation system is within performance parameter limit value, calculate difference therebetween, if this difference is greater than preset value, then increases the amount of the calling setting value of operation system, then by this amount of calling setting value, this operation system is called.Contribute to the resource making full use of operation system like this.
For each operation system, the difference of its treatment effeciency, when the amount of calling be set value limit, there will be order volume that last business flow processing completes be greater than after the situation of the acceptable order volume of an operation flow, after now the data volume that last for part operation flow exports can being exceeded, the part of the amount of the calling setting value of an operation flow is saved in database.Can call within the next time cycle like this, the processing procedure of order is carried out smoothly.
Each operation system for process multipaths processes all in a manner described, thus all systems of process order can be made can both to run within the load range that can bear.Be more than be illustrated for the order dealing process of ecommerce, the scheme of the present embodiment also can be applicable to the application scenario of other multipaths.
For each operation system, stress different to the control of its performance index, therefore can arrange each operation system, set the weight of each performance parameter.Such as to a certain operation system, the weight of setting CPU usage is 2, and the weight of internal memory use amount is 5, and the weight calling time of return is 10.The instantaneous value of the maximum performance parameter of weight is just gathered like this in step S22.
Fig. 3 is the schematic diagram of the main modular of multipaths executive system according to the embodiment of the present invention.As shown in Figure 3, multipaths executive system 30 mainly comprises system parameter settings module 31, Real-time Obtaining module 32, intellectual analysis engine modules 33 and calls control center's module 34.System parameter settings module 31 is for recording the performance parameter limit value of the multiple operation systems performing multipaths; Real-time Obtaining module 32 is for obtaining the real-time performance parameter value of operation system; Intellectual analysis engine modules 33 is for according to the performance parameter limit value of operation system and the real-time performance parameter value of operation system and default regulation strategy, the amount of the calling setting value of operation system is regulated, makes this real-time performance parameter value within this performance parameter limit value; Call control center's module 34 to call this operation system for the amount of the calling setting value according to operation system.
According to the technical scheme of the embodiment of the present invention, the performance parameter limit value of setting operation system, the amount of calling to this operation system is regulated according to this limit value, make its real-time performance parameter value within this limit value, thus ensure that this operation system can normally be run, the multiple operation systems for process multipaths do similar process can enable multipaths be processed by reliable and stable.
Below describe ultimate principle of the present invention in conjunction with specific embodiments, in apparatus and method of the present invention, obviously, each parts or each step can decompose and/or reconfigure.These decompose and/or reconfigure and should be considered as equivalents of the present invention.Further, the step performing above-mentioned series of processes can order naturally following the instructions perform in chronological order, but does not need necessarily to perform according to time sequencing.Some step can walk abreast or perform independently of one another.
Above-mentioned embodiment, does not form limiting the scope of the invention.It is to be understood that depend on designing requirement and other factors, various amendment, combination, sub-portfolio can be there is and substitute in those skilled in the art.Any amendment done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within scope.