CN104348683A - Information providing method and device - Google Patents

Information providing method and device Download PDF

Info

Publication number
CN104348683A
CN104348683A CN201410586679.7A CN201410586679A CN104348683A CN 104348683 A CN104348683 A CN 104348683A CN 201410586679 A CN201410586679 A CN 201410586679A CN 104348683 A CN104348683 A CN 104348683A
Authority
CN
China
Prior art keywords
processing server
normal condition
memory module
server
state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410586679.7A
Other languages
Chinese (zh)
Inventor
朱超
王超
陈飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201410586679.7A priority Critical patent/CN104348683A/en
Publication of CN104348683A publication Critical patent/CN104348683A/en
Priority to PCT/CN2015/092962 priority patent/WO2016066084A1/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks

Abstract

The invention discloses an information providing method and device. The method comprises the following steps that the state of a providing server and a state of a processing server are monitored; when the condition that the state of the providing server and/or the state of the processing server are/is changed is detected, the configuration information corresponding to the processing server in the normal state is determined, wherein the configuration information is used for indicating the providing server of service required by the processing server in the normal state; the configuration information is provided for the processing server in the normal state. According to the method and the device, the processing server directly adopts the configuration information to serve the providing server, and the efficiency and the accuracy of the processing server for processing messages to be processed can be improved.

Description

A kind of information providing method and device
Technical field
The present invention relates to communication technical field, particularly relate to a kind of information providing method and device.
Background technology
At present, user, when obtaining the various service in network, generally needs to be processed by the message of processing server to corresponding service.Such as, user first needs certain pending message to be sent to by terminal to provide server, provides server to send to processing server to process this pending message again.
Wherein, provide server for providing pending message for processing server, processing server then for the treatment of pending message, and returns the response message (also namely, result) of pending message.
In the prior art, in order to improve the efficiency of processing messages, often adopt multiple processing server to process pending message.Specifically, can be stored in different memory modules respectively by multiple pending message in advance, the pending message in each memory module be all different, then each processing server can process the pending message at least one memory module.
In order to ensure treatment effeciency and the accuracy of pending message to greatest extent, when adopting multiple processing server processing messages, the certain principle of usual demand fulfillment, such as: for a memory module, pending message in this memory module by multiple processing server process, can not can not process it without any a processing server.This just relates to the problem that each processing server serves which or which memory module respectively, or the problem that each memory module is served by which or which processing server respectively, to meet mentioned above principle.
For the problems referred to above, in the prior art, normally calculate by each processing server the pending message self needing to process in which or which memory module.And in order to meet mentioned above principle, then need each processing server can know the state of each memory module and other processing servers in time, that is, need between each processing server to interconnect, also need between each processing server and each memory module to interconnect.Each processing server according to the state of the processing server self interconnected and the state of memory module, and according to mentioned above principle, calculate the memory module self needing service.
Specifically, as shown in Figure 1, suppose to there is processing server 1, processing server 2 at present, and processing server 3 serves the memory module A1, memory module A2, the memory module A3 that provide server A, and memory module B1 and the memory module B2 of server B are provided.As shown in the line segment with arrow in Fig. 1, processing server 1, processing server 2, with processing server 3 need respectively with server A and provide each memory module of server B to interconnect is provided, and processing server 1, processing server 2, and processing server 3 also needs to interconnect each other.
In FIG, the memory module of the current normal condition that each processing server gets comprises memory module A1, memory module A2, memory module A3, memory module B1 and memory module B2, the processing server of the normal condition got is processing server 1, processing server 2 and processing server 3, the result that then each processing server calculates is: processing server 1 serves memory module A1 and memory module A2, processing server 2 serves memory module A3, and processing server 3 serves memory module B1 and memory module B2.
But, when the state of memory module and/or processing server changes, (a certain processing server and/or memory module temporarily can not process pending message because breaking down, or, add one or several processing server and/or memory module), in order to still meet mentioned above principle, just require that processing server can according to the memory module after state variation and processing server, redefine timely and self need to serve which or which memory module, and once interrupting appears in above-mentioned arbitrary interconnection and interflow, the memory module that then each processing server gets will be inaccurate with the state of other processing servers, cause meeting mentioned above principle.
Still be described for Fig. 1, suppose that processing server 1 breaks down and temporarily can not process pending message, simultaneously, processing server 1 and the communication between processing server 2 and processing server 3 are all interrupted, processing server 2 and processing server 3 fail obtain processing server 1 change after state, thus still think that processing server 1 is normal condition, therefore, processing server 2 still serves memory module A3 according to original result of calculation, processing server 3 still serves memory module B1 and memory module B2 according to original result of calculation, then obvious, the pending message of memory module A1 and memory module A2 processes without any a processing server, so just mentioned above principle cannot be met, the efficiency of the pending message of processing server process and accuracy is caused to reduce.
Summary of the invention
In view of the above problems, the present invention proposes a kind of information providing method and the device that overcome the problems referred to above, effectively can improve efficiency and the accuracy of the pending message of processing server process.
According to an aspect of the present invention, propose a kind of information providing method, comprising: monitoring provides the state of server and the state of processing server; When the state of the state and/or processing server that provide server described in monitoring changes, determine the configuration information corresponding with the processing server of normal condition, wherein, described configuration information be used to indicate normal condition processing server need service server is provided; And described configuration information is supplied to the processing server of normal condition.
Optionally, providing the state of server to comprise described in provides the state of each memory module in server.
Optionally, when the state of the state and/or processing server that provide server described in monitoring changes, determine the configuration information corresponding with the processing server of normal condition, specifically comprise:
When the state of the state and/or at least one processing server that monitor at least one memory module changes, according to the memory module of normal condition and the processing server of normal condition, determine the configuration information corresponding with the processing server of normal condition, wherein, described configuration information is used to indicate the memory module of the processing server needs service of normal condition.
Optionally, determine the configuration information corresponding with the processing server of normal condition, specifically comprise:
According to the quantity of the memory module of normal condition, and the quantity of the processing server of normal condition, determine the configuration information corresponding with the processing server of normal condition.
Optionally, determine the configuration information corresponding with the processing server of normal condition, specifically comprise:
According to the quantity of the memory module of normal condition, the memory module for each normal condition arranges the first numbering;
According to the quantity of the processing server of normal condition, from 0 for each normal condition processing server order the second numbering is set;
Determine the modulus value of the first numbering to the quantity of the processing server of normal condition of each memory module; And
For the processing server of each normal condition, need the memory module of serving using numbering memory module corresponding to identical modulus value with second of this processing server as this processing server.
Optionally, according to the quantity of the memory module of normal condition, the memory module for each normal condition arranges the first numbering, specifically comprises:
Memory module for each normal condition arranges the first numbering of the consecution natural number increased successively from 0.
Optionally, described configuration information is the processing server being supplied to normal condition by central controller, and specifically comprises:
Described configuration information is supplied to the processing server of normal condition by central controller by coordination server Zookeeper.
According to another aspect of the present invention, proposing a kind of information provider unit, comprising: state acquisition module, providing the state of server and the state of processing server for obtaining; Configuration information determination module, for when the state of the state and/or processing server that provide server described in monitoring changes, determine the configuration information corresponding with the processing server of normal condition, wherein, described configuration information be used to indicate normal condition processing server need service server is provided; And configuration information sending module, for described configuration information being supplied to the processing server of normal condition.
Optionally, providing the state of server to comprise described in provides the state of each memory module in server.
Optionally, described configuration information determination module, specifically for:
When the state of the state and/or processing server that provide server described in monitoring changes, determine the configuration information corresponding with the processing server of normal condition, specifically comprise:
When the state of the state and/or at least one processing server that monitor at least one memory module changes, according to the memory module of normal condition, and the processing server of normal condition, determine the configuration information corresponding with the processing server of normal condition, wherein, described configuration information is used to indicate the memory module of the processing server needs service of normal condition.
Optionally, described configuration information determination module, specifically for: according to the quantity of the memory module of normal condition, and the quantity of the processing server of normal condition, determine the configuration information corresponding with the processing server of normal condition.
Optionally, described configuration information determination module, specifically for: according to the quantity of the memory module of normal condition, the memory module for each normal condition arranges the first numbering; According to the quantity of the processing server of normal condition, from 0 for each normal condition processing server order the second numbering is set; Determine the modulus value of the first numbering to the quantity of the processing server of normal condition of each memory module; For the processing server of each normal condition, be the memory module of memory module as the service of this processing server needs of the second numbering of this processing server using the modulus value determined.
Optionally, described configuration information determination module, specifically for: according to the quantity of the memory module of normal condition, the memory module for each normal condition arranges the first numbering of the consecution natural number increased successively from 0.
Optionally, configuration information sending module, specifically for: the processing server described configuration information being supplied to normal condition by coordination server Zookeeper.
Central controller monitoring of the present invention provides the state of server and the state of processing server, when central monitoring control devices changes to the state of the state and/or processing server that provide server, determine the configuration information corresponding with the processing server of normal condition, this configuration information is supplied to the processing server of normal condition.That is, central controller provides the state of server and the state of processing server by monitoring, determine the configuration information of each processing server, in this process, do not need to interconnect between processing server, do not need to provide between server and processing server to interconnect yet, central controller can be monitored and be obtained provides the state of server and the state of processing server, once provide the state of server and/or the state of processing server to change, central controller can redefine configuration information under the prerequisite meeting setting principle, promptly and accurately provide this configuration information for each processing server, improve treatment effeciency and the accuracy of pending message.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit will become cheer and bright for those of ordinary skill in the art.Accompanying drawing only for illustrating the object of preferred implementation, and does not think limitation of the present invention.And in whole accompanying drawing, represent identical parts by identical reference symbol.In the accompanying drawings:
Fig. 1 provides the system configuration schematic diagram of server and processing server for prior art comprises;
Fig. 2 is the information providing method schematic flow sheet according to one embodiment of the invention;
One of Fig. 3 is the processing server comprising central controller, current normal condition according to one embodiment of the invention, and the system configuration schematic diagram of the memory module of current normal condition;
Fig. 4 is the processing server comprising central controller, current normal condition according to one embodiment of the invention, and the system configuration schematic diagram two of the memory module of current normal condition;
Fig. 5 is the processing server comprising central controller, current normal condition according to one embodiment of the invention, and the system configuration schematic diagram three of the memory module of current normal condition;
Fig. 6 is the information provider unit structural representation according to one embodiment of the invention.
Embodiment
Below with reference to accompanying drawings exemplary embodiment of the present disclosure is described in more detail.Although show exemplary embodiment of the present disclosure in accompanying drawing, however should be appreciated that can realize the disclosure in a variety of manners and not should limit by the embodiment set forth here.On the contrary, provide these embodiments to be in order to more thoroughly the disclosure can be understood, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
Below in conjunction with Figure of description, the embodiment of the present invention is described in detail.
Fig. 2 is the information providing method according to one embodiment of the invention, can comprise step:
S101, monitoring provide the state of server and the state of processing server.
S102, when the state of the state and/or processing server that provide server described in monitoring changes, determine the configuration information corresponding with the processing server of normal condition.
Wherein, described configuration information be used to indicate normal condition processing server need service server is provided.
S103, described configuration information is supplied to the processing server of normal condition.
From the foregoing, according to this embodiment, central controller monitoring provides the state of server and the state of processing server, when monitor provide the state of server and/or the state of processing server to change time, determine the configuration information corresponding with the processing server of normal condition, this configuration information is supplied to the processing server of normal condition.That is, central controller provides the state of server and the state of processing server by monitoring, determines the configuration information of each processing server, in this process, do not need to interconnect between processing server, do not need to provide between server and processing server yet and interconnect.Specifically, central controller can be monitored and be obtained provides the state of server and the state of processing server, once provide the state of server and/or the state of processing server to change, central controller can redefine configuration information under the prerequisite meeting setting principle, timely and accurately for each processing server provides this configuration information, improve treatment effeciency and the accuracy of pending message.Wherein, described setting principle is: each provides the pending message of server to have processing server process and not by the process of multiple (namely at least two) processing server.
According to one embodiment of the present of invention, after processing server gets configuration information by step S103, pending message may be obtained from one or more providing server, be actually and obtain pending message from the memory module that server is provided.In general, provide server to comprise multiple (that is, at least two) memory module, like this, processing server may obtain pending message from multiple providing in the memory module server.Therefore, under the above conditions, in step S101, monitoring provides the state of server, is specially the state that monitoring provides each memory module in server, that is, described in provide the state of server to comprise to provide the state of each memory module in server.Wherein, state of the present invention at least comprises the normal condition of work and the abnormality of work.
To provide server to comprise multiple memory module, the present invention is described below.Fig. 3 is the system comprising central controller, provide server and processing server provided by the invention, comprising: provide server A, provide server B, provide server C, processing server 1, processing server 2, processing server 3 and processing server 4; Wherein, provide server A to comprise memory module A1, memory module A2 and memory module A3, provide server B to comprise memory module B1, memory module B2 and memory module B3, provide server C to comprise memory module C1 and memory module C2.Wherein, central controller interconnects (as shown in the solid line with arrow in Fig. 3) with each processing server and each memory module respectively, the state of server and the state of processing server is provided to obtain, each processing server and one or more provide the memory module in server to interconnect (as shown in the dotted line with arrow in Fig. 3), to obtain the pending message in memory module.
According to one embodiment of the present of invention, in the step S101 shown in Fig. 2, central controller is to providing server A, server B is provided and provides the state of each memory module in server C to monitor, and to processing server 1, processing server 2, the state of processing server 3 and processing server 4 is monitored, wherein, in the step S102 shown in Fig. 2, optionally, when central monitoring control devices changes to the state of at least one memory module and/or the state of at least one processing server, according to the memory module of normal condition and the processing server of normal condition, determine the configuration information corresponding with the processing server of normal condition, wherein, described configuration information is used to indicate the memory module of the processing server needs service of normal condition.
Wherein, if at least a period of time in following situation occurs the system shown in Fig. 3 of the present invention, then can think that state there occurs change: the quantity of the processing server of normal condition increases or reduces; The quantity of the memory module of normal condition increases or reduces.Such as, when having newly increased one or more processing server in system, then think current normal condition processing server quantity increase; One or more in the processing server of normal condition in system break down (being namely in abnormality) temporarily cannot processing messages time, then think that the quantity of processing server of current normal condition reduces.Similar, when a certain in the system memory module that provides server to newly increase, then think current normal condition memory module quantity increase, when the memory module of normal condition in system cannot provide pending message because of fault, or memory module place provide server because of fault cannot work time, then think current normal condition memory module quantity reduce.
Adopt above-mentioned example, suppose that central controller monitors in the system shown in Fig. 3, processing server 1 is in abnormality, other processing servers and each memory module are still in normal condition, then central controller is according to memory module A1, memory module A2, memory module A3, memory module B1, memory module B2, memory module B3, memory module C1, the memory module C2 of normal condition, and the processing server 2 of normal condition, processing server 3 and processing server 4, determine configuration information corresponding with each processing server of normal condition respectively.Wherein, Fig. 4 for identifying the system having the processing server of abnormality on the basis of the system shown in Fig. 3, and the processing server 1 in dotted line frame represents the processing server 1 being in abnormality.
According to one embodiment of the present of invention, in order to meet above-mentioned setting principle (i.e. each provide the pending message of server to have processing server process and not by multiple processing server process), optionally, central controller can according to the quantity of the memory module of normal condition in system, and the quantity of the processing server of normal condition, determine the configuration information corresponding with the processing server of normal condition.
Concrete, central controller is according to the quantity of the memory module of normal condition, and the memory module for each normal condition arranges the first numbering.Specifically, central controller is according to the quantity of the memory module of normal condition, and the memory module that can be each normal condition arranges the first numbering of the consecution natural number increased successively from 0;
According to the quantity of the processing server of normal condition, for the processing server of each normal condition sequentially arranges the second numbering from 0;
Determine the modulus value of the first numbering to the quantity of the processing server of normal condition of each memory module; And
For the processing server of each normal condition, need the memory module of serving using numbering memory module corresponding to identical modulus value with second of this processing server as this processing server.
It should be noted that, after the processing server of each normal condition needs the memory module of service to determine, then the configuration information of this processing server also just determines.
Continue to adopt above-mentioned example, central controller be respectively the memory module A1 shown in Fig. 4, memory module A2, memory module A3, memory module B1, memory module B2, memory module B3, memory module C1, memory module C2 arrange first numbering be respectively 3,17,24,35,36,38,41,53; Central controller be respectively processing server 2, processing server 3, processing server 4 order second numbering that arranges be respectively 0,1,2;
Determine the modulus value 3mod 3=0 of the quantity 3 of the processing server of the first numbering 3 pairs of normal conditions of memory module A1;
Determine the modulus value 17mod 3=2 of the quantity 3 of the processing server of the first numbering 17 pairs of normal conditions of memory module A2;
Determine the modulus value 24mod 3=0 of the quantity 3 of the processing server of the first numbering 24 pairs of normal conditions of memory module A3;
Determine the modulus value 35mod 3=2 of the quantity 3 of the processing server of the first numbering 35 pairs of normal conditions of memory module B1;
Determine the modulus value 36mod 3=0 of the quantity 3 of the processing server of the first numbering 36 pairs of normal conditions of memory module B2;
Determine the modulus value 38mod 3=2 of the quantity 3 of the processing server of the first numbering 38 pairs of normal conditions of memory module B3;
Determine the modulus value 41mod 3=2 of the quantity 3 of the processing server of the first numbering 41 pairs of normal conditions of memory module C1;
Determine the modulus value 53mod 3=2 of the quantity 3 of the processing server of the first numbering 52 pairs of normal conditions of memory module C2;
See Fig. 4, for the processing server 2 of normal condition, memory module A1, the memory module A3 corresponding to modulus value identical for the second numbering 0 with this processing server 2, memory module B2 are needed the memory module of serving as processing server 2; Similar, by memory module A2, memory module B1, memory module B3, memory module C1, memory module C2 is needed the memory module of serving as processing server 4.
The configuration information that self determines by central controller is supplied to the processing server 2 of normal condition, processing server 3 and processing server 4, after each processing server gets configuration information, according to the instruction of configuration information, from the memory module of correspondence, obtain pending information.Wherein, each configuration information can be supplied to each processing server by central controller, and each processing server, after receiving multiple configuration information, obtains pending message according to the instruction of the configuration information corresponding with self; Or each configuration information is supplied to corresponding processing server by central controller respectively, and processing server obtains pending message according to the instruction of configuration information after receiving configuration information.
As shown in Figure 4, the pending message that the processing server 2 of normal condition needs the pending message of process three memory modules, processing server 3 does not need to process any one memory module, processing server 4 process the pending message of five memory modules, obviously, the processing load of the processing server of each normal condition is not accomplished even as far as possible.In order to make the load of the processing server of each normal condition balanced as much as possible, preferably, the first numbering of each memory module can be serial number, as the consecution natural number increased successively from 0.
Specifically, suppose central controller be respectively the memory module A1 shown in Fig. 5, memory module A2, memory module A3, memory module B1, memory module B2, memory module B3, memory module C1, memory module C2 arrange first numbering be respectively: 0,1,2,3,4,5,6,7; Second numbering of processing server 2, processing server 3, processing server 4 is respectively: 0,1,2;
Determine the modulus value 0mod 3=0 of the quantity 3 of the processing server of the first numbering 0 pair of normal condition of memory module A1;
Determine the modulus value 1mod 3=1 of the quantity 3 of the processing server of the first numbering 1 pair of normal condition of memory module A2;
Determine the modulus value 2mod 3=2 of the quantity 3 of the processing server of the first numbering 2 pairs of normal conditions of memory module A3;
Determine the modulus value 3mod 3=0 of the quantity 3 of the processing server of the first numbering 3 pairs of normal conditions of memory module B1;
Determine the modulus value 4mod 3=1 of the quantity 3 of the processing server of the first numbering 4 pairs of normal conditions of memory module B2;
Determine the modulus value 5mod 3=2 of the quantity 3 of the processing server of the first numbering 5 pairs of normal conditions of memory module B3;
Determine the modulus value 6mod 3=0 of the quantity 3 of the processing server of the first numbering 6 pairs of normal conditions of memory module C1;
Determine the modulus value 7mod 3=1 of the quantity 3 of the processing server of the first numbering 7 pairs of normal conditions of memory module C2.
See Fig. 5, for the processing server 2 of normal condition, memory module A1, the memory module B1 corresponding to modulus value identical for the second numbering 0 with this processing server 2, memory module C1 are needed the memory module of serving as processing server 2; Similar, memory module A2, memory module B2, memory module C2 are needed the memory module of service as processing server 3; Memory module A3, memory module B3 are needed the memory module of service as processing server 3.
As shown in Figure 5, the pending message that the processing server 2 of normal condition and processing server 3 process the pending message of three memory modules respectively, processing server 4 processes two memory modules, that is, the processing load of the processing server of each normal condition is kept in balance to greatest extent under the prerequisite meeting setting principle (i.e. each provide the pending message of server to have processing server process and not by multiple processing server process).
Optionally, the configuration information that self determines by central controller is supplied to the processing server of normal condition by coordination server (Zookeeper).Zookeeper is a Configuration Manager, the configuration information that central controller upgrades each time can be obtained in time, then the configuration information that corresponding processing server stores to read self is notified in time, effectively can improve the efficiency that processing server obtains configuration information, thus improve the efficiency of the pending message of processing server process further.
As can be seen from the above embodiment of the present invention, configuration information is determined by central controller, instead of each processing server is determined self, like this, not only conveniently can manage the configuration information of each processing server, reduce the expense of resource, also can improve efficiency and the accuracy of the pending message of processing server process.
Be a kind of information providing method that the embodiment of the present invention provides above, based on same invention thinking, the embodiment of the present invention also provides a kind of information provider unit, as shown in the figure.
Fig. 6 is the information provider unit structural representation according to one embodiment of the invention, specifically comprises:
State acquisition module 11, provides the state of server and the state of processing server for obtaining;
Configuration information determination module 12, for when the state of the state and/or processing server that provide server described in monitoring changes, determine the configuration information corresponding with the processing server of normal condition, wherein, described configuration information be used to indicate normal condition processing server need service server is provided; And
Configuration information sending module 13, for being supplied to the processing server of normal condition by described configuration information.
Optionally, providing the state of server to comprise described in provides the state of each memory module in server.
Optionally, configuration information determination module 12, specifically for: when the state of the state and/or processing server that provide server described in monitoring changes, determine the configuration information corresponding with the processing server of normal condition, specifically comprise:
When the state of the state and/or at least one processing server that monitor at least one memory module changes, according to the memory module of normal condition, and the processing server of normal condition, determine the configuration information corresponding with the processing server of normal condition, wherein, described configuration information is used to indicate the memory module of the processing server needs service of normal condition.
Optionally, configuration information determination module 12, specifically for: according to the quantity of the memory module of normal condition, and the quantity of the processing server of normal condition, determine the configuration information corresponding with the processing server of normal condition.
Optionally, configuration information determination module 12, specifically for: according to the quantity of the memory module of normal condition, the memory module for each normal condition arranges the first numbering;
According to the quantity of the processing server of normal condition, from 0 for each normal condition processing server order the second numbering is set;
Determine the modulus value of the first numbering to the quantity of the processing server of normal condition of each memory module;
For the processing server of each normal condition, need the memory module of serving using numbering memory module corresponding to identical modulus value with second of this processing server as this processing server.
Optionally, configuration information determination module 12, specifically for: according to the quantity of the memory module of normal condition, the memory module for each normal condition arranges the first numbering of the consecution natural number increased successively from 0.
Optionally, configuration information sending module 13, specifically for: the processing server described configuration information being supplied to normal condition by coordination server Zookeeper.
In sum, the embodiment of the present invention provides a kind of information providing method and device, central controller monitoring of the present invention provides the state of server and the state of processing server, when central monitoring control devices changes to the state of the state and/or processing server that provide server, determine the configuration information corresponding with the processing server of normal condition, this configuration information is supplied to the processing server of normal condition.That is, central controller provides the state of server and the state of processing server by monitoring, determines the configuration information of each processing server, in this process, do not need must interconnect between processing server, do not need to provide between server and processing server yet and must interconnect.Concrete, central controller can be monitored and be obtained provides the state of server and the state of processing server, once provide the state of server and/or the state of processing server to change, central controller can redefine configuration information under the prerequisite meeting setting principle, promptly and accurately provide this configuration information for each processing server, improve treatment effeciency and the accuracy of pending message.
Intrinsic not relevant to any certain computer, virtual system or miscellaneous equipment with display at this algorithm provided.Various general-purpose system also can with use together with teaching herein.According to description above, the structure constructed required by this type systematic is apparent.In addition, the present invention is not also for any certain programmed language.It should be understood that and various programming language can be utilized to realize content of the present invention described here, and the description done language-specific is above to disclose preferred forms of the present invention.
In specification provided herein, describe a large amount of detail.But, can understand, embodiments of the invention also can when do not have these details at least partially implement.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand in each inventive aspect one or more, in the description above to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes.But, the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires feature more more than the feature clearly recorded in each claim.Or rather, as claims below reflect, all features of disclosed single embodiment before inventive aspect is to be less than.Therefore, the claims following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art should understand, and adaptively can change and they are arranged in one or more equipment different from this embodiment the module in the equipment in embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition.Except at least some in such feature and/or process or unit be mutually repel except, any combination can be adopted to combine all processes of all features disclosed in this specification (comprising adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment or unit.Unless expressly stated otherwise, each feature disclosed in this specification (comprising adjoint claim, summary and accompanying drawing) can by providing identical, alternative features that is equivalent or similar object replaces.
In addition, those skilled in the art should be able to understand, although embodiments more described herein to comprise in other embodiment some included feature instead of further feature, the combination of the feature of different embodiment means and to be within scope of the present invention and to form different embodiments.Such as, in the following claims, the one of any of embodiment required for protection can use with arbitrary compound mode.
All parts embodiment of the present invention with hardware implementing, or can realize with the software module run on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that the some or all functions that microprocessor or digital signal processor (DSP) can be used in practice to realize according to the some or all parts in the equipment of the implantation information in the interception application program of the embodiment of the present invention.The present invention can also be embodied as part or all equipment for performing method as described herein or device program (such as, computer program and computer program).Realizing program of the present invention and can store on a computer-readable medium like this, or the form of one or more signal can be had.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described instead of limit the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment when not departing from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims." comprise " word not get rid of existence and do not arrange element in the claims or step.Word "a" or "an" before being positioned at element is not got rid of and be there is multiple such element.The present invention can by means of including the hardware of some different elements and realizing by means of the computer of suitably programming.In the unit claim listing some devices, several in these devices can be carry out imbody by same hardware branch.Word first, second and third-class use do not represent any order.Can be title by these word explanations.
The present invention can be applied to computer system/server, and it can operate with other universal or special computing system environment numerous or together with configuring.The example of the well-known computing system being suitable for using together with computer system/server, environment and/or configuration includes but not limited to: personal computer system, server computer system, thin client, thick client computer, hand-held or laptop devices, system based on microprocessor, Set Top Box, programmable consumer electronics, NetPC Network PC, minicomputer system large computer system and comprise the distributed cloud computing technology environment of above-mentioned any system, etc.
Computer system/server can describe under the general linguistic context of the computer system executable instruction (such as program module) performed by computer system.Usually, program module can comprise routine, program, target program, assembly, logic, data structure etc., and they perform specific task or realize specific abstract data type.Computer system/server can be implemented in distributed cloud computing environment, and in distributed cloud computing environment, task is performed by the remote processing devices by communication network links.In distributed cloud computing environment, program module can be positioned at and comprise on the Local or Remote computing system storage medium of memory device.
The present invention includes A8, a kind of information transmitting apparatus, comprising:
State acquisition module, provides the state of server and the state of processing server for obtaining;
Configuration information determination module, for when the state of the state and/or processing server that provide server described in monitoring changes, determine the configuration information corresponding with the processing server of normal condition, wherein, described configuration information be used to indicate normal condition processing server need service server is provided; And
Configuration information sending module, for being supplied to the processing server of normal condition by described configuration information.
A11, device as described in claim A8, described configuration information determination module, specifically for: according to the quantity of the memory module of normal condition, and the quantity of the processing server of normal condition, determine the configuration information corresponding with the processing server of normal condition.
A12, device as described in claim A8, described configuration information determination module, specifically for: according to the quantity of the memory module of normal condition, the memory module for each normal condition arranges the first numbering; According to the quantity of the processing server of normal condition, from 0 for each normal condition processing server order the second numbering is set; Determine the modulus value of the first numbering to the quantity of the processing server of normal condition of each memory module; For the processing server of each normal condition, be the memory module of memory module as the service of this processing server needs of the second numbering of this processing server using the modulus value determined.
A13, device as described in claim A12, described configuration information determination module, specifically for: according to the quantity of the memory module of normal condition, the memory module for each normal condition arranges the first numbering of the consecution natural number increased successively from 0.
A14, device as described in claim A8, configuration information sending module, specifically for: the processing server described configuration information being supplied to normal condition by coordination server Zookeeper.

Claims (10)

1. an information providing method, is characterized in that, comprising:
Monitoring provides the state of server and the state of processing server;
When the state of the state and/or processing server that provide server described in monitoring changes, determine the configuration information corresponding with the processing server of normal condition, wherein, described configuration information be used to indicate normal condition processing server need service server is provided; And
Described configuration information is supplied to the processing server of normal condition.
2. the method for claim 1, is characterized in that, described in provide the state of server to comprise to provide the state of each memory module in server.
3. method as claimed in claim 2, is characterized in that, when the state of the state and/or processing server that provide server described in monitoring changes, determine the configuration information corresponding with the processing server of normal condition, specifically comprise:
When the state of the state and/or at least one processing server that monitor at least one memory module changes, according to the memory module of normal condition and the processing server of normal condition, determine the configuration information corresponding with the processing server of normal condition, wherein, described configuration information is used to indicate the memory module of the processing server needs service of normal condition.
4. the method for claim 1, is characterized in that, determines the configuration information corresponding with the processing server of normal condition, specifically comprises:
According to the quantity of the memory module of normal condition, and the quantity of the processing server of normal condition, determine the configuration information corresponding with the processing server of normal condition.
5. method as claimed in claim 4, is characterized in that, determine the configuration information corresponding with the processing server of normal condition, specifically comprise:
According to the quantity of the memory module of normal condition, the memory module for each normal condition arranges the first numbering;
According to the quantity of the processing server of normal condition, from 0 for each normal condition processing server order the second numbering is set;
Determine the modulus value of the first numbering to the quantity of the processing server of normal condition of each memory module; And
For the processing server of each normal condition, need the memory module of serving using numbering memory module corresponding to identical modulus value with second of this processing server as this processing server.
6. method as claimed in claim 5, it is characterized in that, according to the quantity of the memory module of normal condition, the memory module for each normal condition arranges the first numbering, specifically comprises:
Memory module for each normal condition arranges the first numbering of the consecution natural number increased successively from 0.
7. the method for claim 1, is characterized in that, described configuration information is the processing server being supplied to normal condition by central controller, and specifically comprises:
Described configuration information is supplied to the processing server of normal condition by central controller by coordination server Zookeeper.
8. an information transmitting apparatus, is characterized in that, comprising:
State acquisition module, provides the state of server and the state of processing server for obtaining;
Configuration information determination module, for when the state of the state and/or processing server that provide server described in monitoring changes, determine the configuration information corresponding with the processing server of normal condition, wherein, described configuration information be used to indicate normal condition processing server need service server is provided; And
Configuration information sending module, for being supplied to the processing server of normal condition by described configuration information.
9. device as claimed in claim 8, is characterized in that, described in provide the state of server to comprise to provide the state of each memory module in server.
10. device as claimed in claim 9, it is characterized in that, described configuration information determination module, specifically for: when the state of the state and/or processing server that provide server described in monitoring changes, determine the configuration information corresponding with the processing server of normal condition, specifically comprise:
When the state of the state and/or at least one processing server that monitor at least one memory module changes, according to the memory module of normal condition, and the processing server of normal condition, determine the configuration information corresponding with the processing server of normal condition, wherein, described configuration information is used to indicate the memory module of the processing server needs service of normal condition.
CN201410586679.7A 2014-10-28 2014-10-28 Information providing method and device Pending CN104348683A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410586679.7A CN104348683A (en) 2014-10-28 2014-10-28 Information providing method and device
PCT/CN2015/092962 WO2016066084A1 (en) 2014-10-28 2015-10-27 Information-providing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410586679.7A CN104348683A (en) 2014-10-28 2014-10-28 Information providing method and device

Publications (1)

Publication Number Publication Date
CN104348683A true CN104348683A (en) 2015-02-11

Family

ID=52503549

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410586679.7A Pending CN104348683A (en) 2014-10-28 2014-10-28 Information providing method and device

Country Status (2)

Country Link
CN (1) CN104348683A (en)
WO (1) WO2016066084A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016066084A1 (en) * 2014-10-28 2016-05-06 北京奇虎科技有限公司 Information-providing method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050097391A1 (en) * 2003-10-20 2005-05-05 International Business Machines Corporation Method, system, and article of manufacture for data replication
CN101217293A (en) * 2007-01-04 2008-07-09 中兴通讯股份有限公司 Media operation trusteeship switching system and method
CN101996111A (en) * 2010-11-30 2011-03-30 华为技术有限公司 Switching method, device and distributed blade server system
CN102999587A (en) * 2011-11-16 2013-03-27 微软公司 Arrangement for mirror database across different servers used for failover
CN103098031A (en) * 2010-09-04 2013-05-08 思科技术公司 System and method for providing media server redundancy in a network environment
CN103546313A (en) * 2013-09-26 2014-01-29 福州宙斯盾信息技术有限公司 Cloud computing based IT (information technology) operation and maintenance management system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103368785A (en) * 2012-04-09 2013-10-23 鸿富锦精密工业(深圳)有限公司 Server operation monitoring system and method
US9143432B2 (en) * 2012-04-10 2015-09-22 Hewlett-Packard Development Company, L.P. Expander-targeted zoned broadcast
CN102929220B (en) * 2012-09-27 2014-07-16 青岛海信网络科技股份有限公司 Distributed monitoring system and database server, fault processing device and fault processing method thereof
CN104348683A (en) * 2014-10-28 2015-02-11 北京奇虎科技有限公司 Information providing method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050097391A1 (en) * 2003-10-20 2005-05-05 International Business Machines Corporation Method, system, and article of manufacture for data replication
CN101217293A (en) * 2007-01-04 2008-07-09 中兴通讯股份有限公司 Media operation trusteeship switching system and method
CN103098031A (en) * 2010-09-04 2013-05-08 思科技术公司 System and method for providing media server redundancy in a network environment
CN101996111A (en) * 2010-11-30 2011-03-30 华为技术有限公司 Switching method, device and distributed blade server system
CN102999587A (en) * 2011-11-16 2013-03-27 微软公司 Arrangement for mirror database across different servers used for failover
CN103546313A (en) * 2013-09-26 2014-01-29 福州宙斯盾信息技术有限公司 Cloud computing based IT (information technology) operation and maintenance management system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016066084A1 (en) * 2014-10-28 2016-05-06 北京奇虎科技有限公司 Information-providing method and device

Also Published As

Publication number Publication date
WO2016066084A1 (en) 2016-05-06

Similar Documents

Publication Publication Date Title
CN104993953B (en) The method and apparatus for detecting network service state
CN102016298B (en) Wind turbine configuration management system, and central computer system therefor
US10601634B2 (en) Cloud service control device having an information transferor configured to limit the transfer of service information, a cloud service control system having a cloud service control device, a related cloud service control method, and a related storage medium
US9716612B2 (en) Evaluation of field replaceable unit dependencies and connections
CN102984230B (en) Data transmission device in remote assistance and method
CN107483572A (en) The dispositions method and device of a kind of server
US20200159622A1 (en) Rule based failure addressing
WO2016076236A1 (en) Distributed control system, control device, control method, and program
CN105099755A (en) Method, device and system for monitoring performance of website system
CN108123851A (en) The lifetime detection method and device of main and subordinate node synchronization link in distributed system
CN104991821A (en) Monitor task batch processing method and apparatus
US10289522B2 (en) Autonomous information technology diagnostic checks
CN104579765A (en) Disaster tolerance method and device for cluster system
EP2933726A1 (en) Apparatus, system and method for application log data processing
CN103595770A (en) Method and device for achieving file downloading through SDK
CN106547645A (en) Automatically the method and server system of image shelves are repaired
CN108713192B (en) Method and system for automatic ordering of computer system repairs
CN105229626B (en) Event notice is sorted by priority using the pairing of past preference
CN105471703A (en) Message sending method and device
US11455223B2 (en) Using system errors and manufacturer defects in system components causing the system errors to determine a quality assessment value for the components
WO2020192930A1 (en) Thermal management system, method, and device for monitoring health of electronic devices
CN104348683A (en) Information providing method and device
JP6938573B2 (en) Equipment with operator server and operator client
CN110875832B (en) Abnormal service monitoring method, device and system and computer readable storage medium
CN109302336B (en) Mail generation method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150211

RJ01 Rejection of invention patent application after publication