The content of the invention
The technical scheme is that:A kind of immediate processing method of data in computer room control, methods described includes:
The target data for the monitoring object that step S11, acquisition are pre-set;
The multiple real-time indicators data for the monitoring object that step S12, acquisition are real-time monitored;
Step S13, each real-time indicators data are compared one by one with the target data, obtained and the realityWhen achievement data number identical action parameter;
Step S14, one memory block of offer, are stored in the memory block, from the memory block by all action parametersThe middle current operation action parameter for obtaining the corresponding action terminal of the monitoring object.
Preferably, the step S14 includes:
S141, all action parameters are concurrently stored in the memory block;
S142, from the memory block action parameter described in one is transferred as current operation action parameter;
S143, according to the current operation action parameter control action terminal perform corresponding actions.
Preferably, in the step S142, transferring the action parameter work that last in the memory block writesFor the current operation action parameter.
Preferably, the step S11 includes:
S111, reception target amendment data;
S121, according to the target amendment data processing is modified to the target data.
Preferably, in the step S13, each real-time indicators data are compared with the target data,When the real-time indicators data are more than the target data, the action parameter is 1;Conversely, the action parameter is 0.
Another technical scheme that the present invention is provided is:The quick treatment device of data, the dress in a kind of computer room controlPut including:
First acquisition module 1, the target data of the monitoring object pre-set to obtain;
Second acquisition module 2, is communicated to connect with first acquisition module 1, the prison real-time monitored to obtainSurvey multiple real-time indicators data of object;
Comparing module 3, is communicated to connect respectively at first acquisition module 1 and second acquisition module 2, to incite somebody to actionEach real-time indicators data are compared one by one with the target data, obtain identical with the real-time indicators data amount checkAction parameter;
Processing module 4, is communicated to connect with the comparing module 3, all action parameters are stored in into memory block,And the current operation action parameter of the corresponding action terminal of the monitoring object is obtained from memory block.
Preferably, the processing module 4 includes:
Memory cell 41, is communicated to connect with the comparing module 3, all action parameters are concurrently stored in into instituteState memory block;
Acquiring unit 42, is communicated to connect with the memory cell 41, is acted to be transferred from the memory block described in oneParameter is used as current operation action parameter;
Execution unit 43, is communicated to connect with the acquiring unit 42, to be controlled according to the current operation action parameterAct terminal and perform corresponding actions.
Preferably, first acquisition module 1 includes:
Receiving unit 11, to receive target amendment data;
Amending unit 12, is communicated to connect with the receiving unit 11 and the comparing module 3, to according to the targetAmendment data are modified processing to the target data.
Above-mentioned technical proposal has the following advantages that or beneficial effect:The above method and device, are being deposited by largely concurrentStorage area write activity order, and write-not concrete numerical value, improve whole data processing while assuring data securityThe speed of journey, greatly shortens the calculating time, solves a variety of real time datas that a large amount of monitors are detected in rack controlTreatment effeciency it is low the problem of, also further improve the stability of rack integrated environment.
Embodiment
The immediate processing method of data in a kind of computer room control of the invention is carried out with specific embodiment below in conjunction with the accompanying drawingsDescribe in detail.
As shown in figure 1, in a kind of control of computer room data immediate processing method, comprise the following steps:
Step S11, obtains the target data of the monitoring object pre-set;
Step S12, obtains multiple real-time indicators data of the monitoring object real-time monitored;
Step S13, each real-time indicators data are compared with target data, are obtained and real-time indicators data amount checkIdentical action parameter;
Step S14, above-mentioned all action parameter is stored in memory block, the corresponding action of monitoring object is obtained from memory blockThe current operation action parameter of terminal.
In the immediate processing method of above-mentioned data, pass through step S11 to step S14, the first reality to each monitoring objectWhen achievement data be compared with target data, to obtain current time, the corresponding action of real-time indicators data each obtainedParameter, then further according to this multiple action parameter, obtains the current operational motion of monitoring object.Due to directly according to multiple actionsThe operational motion of the corresponding action terminal of parameter acquiring monitoring object, rather than to the processing of multiple real-time indicators Data Concurrents, with thisImprove the speed of whole data handling procedure.
As an alternative embodiment, during above-mentioned monitoring object can be temperature or computer room in computer roomHumidity, corresponding action terminal can be air-conditioning (possessing dehumidification function), or monitoring object is interchanger and serverNetwork data in, corresponding action terminal is corresponding control module in interchanger and server, and content can basisDepending on the actual demand of user.
Illustrated exemplified by the temperature control that the above method is applied in computer room.In order to ensure what computer room temperature was monitoredComprehensive, so be provided with temperature sensor at multiple orientation of computer room, each temperature sensor timing will refer in real timeMark data are uploaded to processing unit.Processing unit is handled each temperature sensor first, i.e., by temperature sensor withTarget data is compared, and judges corresponding action parameter.In another case, if this method is applied in computer roomLine service monitoring and analysis, then need to gather network data from interchanger and server in real time, and by these network datas withTarget data is compared, such as the quality (packet loss, duration) and the target data (i.e. normality threshold) that compare network dataGap, corresponding action parameter is obtained with this, and then to control the control module in interchanger and server to carry out corresponding actions.
For further, as shown in Fig. 2 after obtaining the target data of the monitoring object pre-set in step s 11,Method also includes step:
Step S111, reception target amendment data;
Step S112, according to target amendment data processing is modified to target data.
Specifically, in the actual control to rack, user requires different to the target temperature of interior of equipment cabinet, so working as, can be with client to ensure during follow-up temperature adjustment when target temperature is changed, in addition it is also necessary to be modified processing to the target dataDemand after change is carried out.
For further, in step s 13, each real-time indicators data are compared with target data, obtain withThe process of real-time indicators data amount check identical action parameter, including step:
Each real-time indicators data are compared with target data, are less than or equal to target data in real-time indicators dataWhen, the corresponding action parameter of real-time indicators data is 0;Conversely, the corresponding action parameter of real-time indicators data is 1.
Specifically, if real-time indicators data are more than target data, action parameter is 1;If real-time indicators data are smallIn equal to target data, action parameter is 0.Finally, according to multiple action parameters, the current operation action ginseng of monitoring object is judgedNumber is 0 or 1, if 0, then air-conditioning does not start, if 1, illustrating that computer room temperature is too high needs to open air-conditioning.
For further, in step S14, multiple action parameters are stored in memory block, monitoring object pair is obtained from memory blockThe process of the current operation action parameter for the action terminal answered includes step:
S141, everything parameter is concurrently stored in same memory block;
S142, from memory block an action parameter is transferred as current operation action parameter;
S143, according to current operation action parameter control action terminal perform corresponding actions.
Specifically, because action parameter is made up of 0 or 1, so not carrying out action ginseng using the mode of lockingSeveral storages, but concurrently by all action parameters simultaneously be stored in same memory block, then transferred from memory block one moveMake parameter as current operation action parameter, the action parameter for preferably transferring last deposit is acted as current operationParameter, then carries out corresponding actions further according to this current operation action parameter execution action terminal.In actual applications, ifThe real-time indicators data that all temperature sensors are detected in rack are more than target data, then now action parameter all 1, thatNo matter which action parameter what is transferred from memory block is, always corresponding current operation action parameter 1, then it is corresponding the need forAir-conditioning is opened in control.Accordingly, if the real-time indicators data that all temperature sensors are detected in rack are less than or equal to targetData, then now action parameter all 0, then corresponding current no matter which action parameter what is transferred from memory block isOperational motion parameter always 0, then it is corresponding the need for control close air-conditioning.In addition, also having another situation, if current rackInterior temperature and the difference of target data are smaller, then now storing the action parameter into memory block has 0 also to have 1, soIt 0 is also likely to be 1 that current operation action parameter, which is probably,.In this case, no matter current operation action parameter is 0 or 1, i.e., notIt is to need to open or close by air-conditioning, very big influence can't be caused to the bulk temperature in rack.Once because rackInterior temperature is higher or lower, then corresponding current operation action parameter, which will necessarily be recalculated, is changed into 1 or 0, then now air-conditioningIt may proceed to start or close, to be adjusted to the temperature in rack.In short, delaying because final action terminal produces oneSlowly the process changed, and action command have one can allowable error scope, it is possible to do not consider conflict, it is direct to perform action.
So, from above method, by a large amount of concurrent in memory block write activity order, and write-not is specifically countedValue, the speed of whole data handling procedure is improved while assuring data security, the calculating time is greatly shortened, and is solvedThe problem for the treatment of effeciency of a variety of real time datas is low in rack of having determined control, also further improves rack integrated environmentStability.
According to embodiments of the present invention there is provided the device embodiment of the quick treatment device of data in a kind of control of computer room,It should be noted that the processing unit of the embodiment can be used for the quick processing side for performing the data in the embodiment of the present inventionMethod, the data processing method of the embodiment of the present invention can be performed in the processing unit of the embodiment.
As shown in figure 3, in a kind of control of computer room data quick treatment device, the device includes:
First acquisition module 1, obtains the target data of the monitoring object pre-set;
Second acquisition module 2, is communicated to connect with the first acquisition module 1, obtain monitor monitoring object it is multiple in real timeAchievement data;
Comparing module 3, is communicated to connect respectively at the first acquisition module 1 and the second acquisition module 2, to will be each real-timeAchievement data is compared with target data, obtains and real-time indicators data amount check identical action parameter;
Processing module 4, is connected with comparing module 3, above-mentioned multiple action parameters are stored in into memory block, is obtained from memory blockTake the current operation action parameter of the corresponding action terminal of monitoring object.
In the immediate processing method of above-mentioned data, by the first acquisition module 1, the second acquisition module 2, comparing module 3 withAnd processing module 4, each real-time indicators data are compared with target data, to obtain current time each real-time indicators numberAccording to corresponding action parameter, then further according to this multiple action parameter, the current operational motion of monitoring object is obtained.Due to directThe operational motion of the corresponding action terminal of monitoring object is obtained according to multiple action parameters, rather than to multiple real-time indicators data simultaneouslyHair processing, the speed of whole data handling procedure is improved with this.
As an alternative embodiment, during above-mentioned monitoring object can be temperature or computer room in computer roomTemperature, corresponding action terminal can be air-conditioning (possessing dehumidification function), or monitoring object is interchanger and serverNetwork data in, corresponding action terminal is corresponding control module in interchanger and server, and content can basisDepending on the actual demand of user.
Illustrated exemplified by the temperature control that the above method is applied in computer room.In order to ensure what computer room temperature was monitoredComprehensive, so be provided with temperature sensor at multiple orientation of computer room, each temperature sensor timing will refer in real timeMark data are uploaded to processing unit.Processing unit is handled each temperature sensor first, i.e., by temperature sensor withTarget data is compared, and judges corresponding action parameter.In another case, if this method is applied in computer roomLine service monitoring and analysis, then need to gather network data from interchanger and server in real time, and by these network datas withTarget data is compared, such as the quality (packet loss, duration) and the target data (i.e. normality threshold) that compare network dataGap, corresponding action parameter is obtained with this, and then to control the control module in interchanger and server to carry out corresponding actions.
For further, as shown in figure 4, the device also includes:
Receiving unit 11, receives target amendment data;
Amending unit 12, is communicated to connect with receiving unit 11 and comparing module 3, to according to target amendment data to meshMark data are modified processing.
Specifically, in the actual control to rack, user requires different to the target temperature of interior of equipment cabinet, so working as, can be with client to ensure during follow-up temperature adjustment when target temperature is changed, in addition it is also necessary to be modified processing to the target dataDemand after change is carried out.
For further, the specific operation process of comparing module 3 is:
Each real-time indicators data are compared with target data, are less than or equal to target data in real-time indicators dataWhen, the corresponding action parameter of real-time indicators data is 0;Conversely, the corresponding action parameter of real-time indicators data is 1.
Specifically, if real-time indicators data are more than target data, action parameter is 1;If real-time indicators data are smallIn equal to target data, action parameter is 0.Finally, according to multiple action parameters, the current operation action ginseng of monitoring object is judgedNumber is 0 or 1, if 0, then air-conditioning does not start, if 1, illustrating that computer room temperature is too high needs to open air-conditioning.
For further, processing module 4 includes:
Memory cell 41, is communicated to connect with comparing module 3, everything parameter is concurrently stored in into same memory block;
Acquiring unit 42, is communicated to connect with the memory cell 41, to transfer an action parameter conduct from memory blockCurrent operation action parameter;
Execution unit 43, is communicated to connect with the acquiring unit 42, to according to current operation action parameter control actionTerminal performs corresponding actions.
Specifically, because action parameter is made up of 0 or 1, so not carrying out action ginseng using the mode of lockingSeveral storages, but concurrently by all action parameters simultaneously be stored in same memory block, then transferred from memory block one moveMake parameter as current operation action parameter, the action parameter for preferably transferring last deposit is acted as current operationParameter, then carries out corresponding actions further according to this current operation action parameter execution action terminal.In actual applications, ifThe real-time indicators data that all temperature sensors are detected in rack are more than target data, then now action parameter all 1, thatNo matter which action parameter what is transferred from memory block is, always corresponding current operation action parameter 1, then it is corresponding the need forAir-conditioning is opened in control.Accordingly, if the real-time indicators data that all temperature sensors are detected in rack are less than or equal to targetData, then now action parameter all 0, then corresponding current no matter which action parameter what is transferred from memory block isOperational motion parameter always 0, then it is corresponding the need for control close air-conditioning.In addition, also having another situation, if current rackInterior temperature and the difference of target data are smaller, then now storing the action parameter into memory block has 0 also to have 1, soIt 0 is also likely to be 1 that current operation action parameter, which is probably,.In this case, no matter current operation action parameter is 0 or 1, i.e., notIt is to need to open or close by air-conditioning, very big influence can't be caused to the bulk temperature in rack.Once because rackInterior temperature is higher or lower, then corresponding current operation action parameter, which will necessarily be recalculated, is changed into 1 or 0, then now air-conditioningIt may proceed to start or close, to be adjusted to the temperature in rack.In short, delaying because final action terminal produces oneSlowly the process changed, and action command have one can allowable error scope, it is possible to do not consider conflict, it is direct to perform action.
Foregoing invention embodiment needs are for illustration only, and the quality of embodiment is not represented.
In the above embodiment of the present invention, the description to each embodiment all emphasizes particularly on different fields, and does not have in some embodimentThe part of detailed description, may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed technology contents, others can be passed throughMode is realized.Wherein, device embodiment described above is only schematical, such as division of described unit, Ke YiweiA kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can combine orPerson can inherit another system, or some features can be ignored, or not perform.Another, shown or discussed phaseCoupling or direct-coupling or communication connection between mutually, can be made an excuse by some, the INDIRECT COUPLING of unit or module orCommunication connection, can be electrical or other forms.
For a person skilled in the art, read after described above, various changes and modifications undoubtedly will be evident.Therefore, appended claims should regard whole variations and modifications of the true intention and scope that cover the present invention as.In powerAny and all scope and content of equal value, are all considered as still belonging to the intent and scope of the invention in the range of sharp claim.