CN104735097A - Information collecting method and system - Google Patents

Information collecting method and system Download PDF

Info

Publication number
CN104735097A
CN104735097A CN201310700664.4A CN201310700664A CN104735097A CN 104735097 A CN104735097 A CN 104735097A CN 201310700664 A CN201310700664 A CN 201310700664A CN 104735097 A CN104735097 A CN 104735097A
Authority
CN
China
Prior art keywords
information
collection node
information collection
service server
node
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
CN201310700664.4A
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.)
Qingdao Haier Air Conditioner Gen Corp Ltd
Haier Group Corp
Original Assignee
Qingdao Haier Air Conditioner Gen Corp Ltd
Haier Group Corp
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 Qingdao Haier Air Conditioner Gen Corp Ltd, Haier Group Corp filed Critical Qingdao Haier Air Conditioner Gen Corp Ltd
Priority to CN201310700664.4A priority Critical patent/CN104735097A/en
Publication of CN104735097A publication Critical patent/CN104735097A/en
Pending legal-status Critical Current

Links

Abstract

The invention provides an information collecting method and system. The method comprises the steps that a registration center acquires a calling request of at least one service server connected with the registration center; the registration center determines a matched information collecting node according to the calling request, a long connection between the service server and the information collecting node is established, and collected information collected by the service server is cashed to the matched information collecting node; effective collection and storage of the information are ensured, and the reliability is high.

Description

The collection method of information and system
Technical field
The present invention relates to operation system field, particularly relate to a kind of collection method and system of information.
Background technology
Operation system in enterprise is deployed on multiple stage service server, the basic resource service condition of real-time grasp each service server node is extremely important, the occupation condition of service server peak period can be known, the basic resource information of all service servers in enterprise all will be saved in database, data volume is comparatively large, collection frequency is high, it is a server cluster that the information of existing system preserves end, when occurring in server cluster that server is unavailable or increase server, then can have an impact to the collection of information and storage, reliability is low.
Summary of the invention
Provide hereinafter about brief overview of the present invention, to provide about the basic comprehension in some of the present invention.Should be appreciated that this general introduction is not summarize about exhaustive of the present invention.It is not that intention determines key of the present invention or pith, and nor is it intended to limit the scope of the present invention.Its object is only provide some concept in simplified form, in this, as the preorder in greater detail discussed after a while.
The invention provides a kind of collection method of information, comprising:
Registration center obtains the call request of at least one service server be attached thereto;
Registration center determines the information collection node mated according to call request, set up described service server and be connected with the long of described information collection node, so that the information collection node that the information cache collected extremely mates by service server.
The present invention also provides a kind of gathering system of information, comprise: registration center, at least one information collection node communicate to connect with registration center and at least one service server communicated to connect with registration center, registration center is for the call request of at least one service server described in obtaining; And the information collection node of coupling is determined according to call request, set up described service server and be connected with the long of described information collection node, the information collection node that the information cache collected extremely mates by service server.
Formation gathering method provided by the invention and system, the call request of at least one service server be attached thereto is obtained by registration center, the information collection node mated is determined according to call request, set up service server to be connected with the long of information collection node, the information collection node that the information cache collected extremely mates by service server; Effective collection of guarantee information and storage, reliability is high.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the flow chart of a kind of embodiment of collection method of information provided by the invention.
Fig. 2 is the flow chart of a kind of embodiment of gathering system of information provided by the invention.
Fig. 3 is a kind of application scenarios schematic diagram of gathering system of information provided by the invention.
Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.The element described in an accompanying drawing of the present invention or a kind of execution mode and feature can combine with the element shown in one or more other accompanying drawing or execution mode and feature.It should be noted that for purposes of clarity, accompanying drawing and eliminate expression and the description of unrelated to the invention, parts known to persons of ordinary skill in the art and process in illustrating.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under the prerequisite not paying creative work, all belongs to the scope of protection of the invention.
Embodiment one
With reference to figure 1, the present embodiment provides a kind of collection method of information, comprising:
Step S101, registration center obtains the call request of at least one service server be attached thereto;
Step S102, registration center determines the information collection node mated according to call request, set up described service server and be connected with the long of described information collection node, so that the information collection node that the information cache collected extremely mates by service server.
The information that service server described in the present embodiment is collected comprises the information of the basic resource service condition of corresponding service server.
In step S101, the call request that registration center obtains service server is real-time, when the information collection node be connected with service server is unavailable, service server sends this call request to registration center, registration center can redefine the information collection node of coupling, available information collection node is only searched by registration center, ignores disabled information collection node, and guarantee information collector node is transparent to service server when unavailable.
The collection method of the information that the present embodiment provides, being connected with the long of information collection node by setting up service server, realizing the remote transmission of message, effectively improving the reliability of information and storage.
Particularly, before execution step S101, also comprise:
Registration center obtains the registration request of at least one information collection node be attached thereto, and described registration request comprises the nodal information of corresponding information collector node;
According to the registration request received, corresponding information collection node is registered.
As the optional execution mode of one, nodal information comprises the information such as IP address, port information, server version of place information collection node.
Fashionable when there being new information collection node to add, information collection node sends registration request to registration center, and registration center registers according to this registration request, preserves the nodal information of this information collection node.
Further, after according to the registration request received corresponding information collection node being registered, also comprise:
Registration center periodically sends heartbeat detection request to each information collection node, determines whether corresponding information collection node can be used according to the feedback of each information collection node.
After registration, registration center and information collection node establish a communications link, sometimes need to carry out maintenance shut-downs etc. to information collection node, in order to grasp the state of each information collection node in real time, registration center periodically sends heartbeat detection request to each information collection node, determines whether corresponding information collection node can be used according to the feedback of each information collection node; Further, registration center is provided with nodal information list, for storing the nodal information of at least one information collection node described, when the nodal information of unavailable this information collection node of deletion of information collection node being detected, or increase the nodal information of corresponding information collector node when increasing new information collection node, ensure that the nodal information in nodal information list is up-to-date, registration center can grasp the state of each information collection node in real time.
Further, when becoming unavailable with the long information collection node be connected of service server, service server sends call request again to described registration center, registration center picks up the information collection node of a coupling according to call request, sets up described service server and is connected with the long of corresponding information collector node.
In addition, when there being the information collection node newly increased, to being in, the service server be connected with other information collection node is transparent, accordingly, the system that can ensure is when increasing new information collection node or deleting information collection node, do not have any impact to service server, the reliability of effective raising system, guarantee information is effectively collected and is stored.
As the optional execution mode of one, after the information collection node that the information cache collected extremely mates by described service server, also comprise:
Information collection node by the information unloading of collection to the database be attached thereto.
Information collection node carries out buffer memory to the information of collecting, because information amount is large, when the information that information collection node is collected reaches predetermined value, by information unloading to database.
As the optional execution mode of one, registration center comprises at least three station servers, at least three station servers select master server by temporal voting strategy, when described master server is unavailable, remaining server is again initiated temporal voting strategy and is selected new master server, and at least three station servers described in when previous master server returns to available are again initiated temporal voting strategy and selected new master server; The information collection node that described master server mates for the call request determining according to call request obtaining at least one service server be attached thereto, sets up growing of described service server and described information collection node and is connected; Can ensure like this in three station servers any one or two-server is unavailable time, still externally can provide service.
Embodiment two
With reference to figure 2, the present embodiment provides a kind of Information Collection System, comprising:
Registration center 201, at least one information collection node 202 communicated to connect with registration center 201 and at least one service server 203 communicated to connect with registration center 201, registration center 201 is for obtaining the call request of at least one service server 203; And the information collection node 202 of coupling is determined according to call request, set up service server 203 and be connected with the long of corresponding information collector node 202, the information collection node 202 that the information cache collected extremely mates by service server 203.
Service server 203 comprises monitor client, for timed collection service server 203 information, set up with corresponding information collector node 202 grow be connected and the information of collection be sent to information collection node 202.
The call request that registration center 201 obtains service server 203 is real-time, when the information collection node be connected with service server 203 is unavailable, service server 203 sends this call request to registration center 201, registration center 201 can redefine the information collection node 202 of coupling, available information collection node is only searched by registration center 201, ignore disabled information collection node, guarantee information collector node 202 is transparent to service server 203 when unavailable.
The gathering system of the information that the present embodiment provides, being connected with the long of information collection node by setting up service server, realizing the remote transmission of message, effectively improving the reliability of information and storage.
Particularly, registration center 201 obtains the registration request of at least one information collection node 202 be attached thereto, and registration request comprises the nodal information of corresponding information collector node; According to the registration request received, corresponding information collection node is registered.
As the optional execution mode of one, nodal information comprises the information such as IP address, port information, server version of place information collection node.
Fashionable when there being new information collection node to add, information collection node 202 sends registration request to registration center, and registration center 201 registers according to this registration request, preserves the nodal information of this information collection node.
Registration center 201 periodically sends heartbeat detection request to each information collection node, determines whether corresponding information collection node can be used according to the feedback of each information collection node.
Registration center 201 and information collection node 202 communicate to connect, sometimes need to carry out maintenance shut-downs etc. to information collection node 202, in order to grasp the state of each information collection node in real time, registration center 201 periodically sends heartbeat detection request to each information collection node 202, determines whether corresponding information collection node 202 can be used according to the feedback of each information collection node 202; Further, registration center 201 is provided with nodal information list, for storing the nodal information of at least one information collection node 202 described, when detecting that information collection node 202 is unavailable, delete the nodal information of this information collection node, or increase the nodal information of corresponding information collector node when increasing new information collection node, ensure that the nodal information in nodal information list is up-to-date, registration center can grasp the state of each information collection node in real time.
Further, when becoming unavailable with the long information collection node 202 be connected of service server 203, service server 203 sends call request again to described registration center 201, registration center 201 picks up the information collection node 202 of a coupling according to call request, sets up service server 203 and is connected with the long of corresponding information collector node 202.
In addition, when there being the information collection node newly increased, to being in, the service server be connected with other information collection node is transparent, accordingly, the system that can ensure is when increasing new information collection node or deleting information collection node, do not have any impact to service server, the reliability of effective raising system, guarantee information is effectively collected and is stored.
As the optional execution mode of one, gathering system also comprises the database 204 be connected with at least one information collection node 202, for storing the information of collecting.
Information collection node 202 carries out buffer memory to the information of collecting, because information amount is large, when the information that information collection node is collected reaches predetermined value, by information unloading to database 204.
As the optional execution mode of one, registration center 201 comprises first server 205, second server 206 and the 3rd server 207, first server 205, second server 206 and the 3rd server 207 select master server by temporal voting strategy, master server is used for externally providing service, when information collection node 202 or service server 203 cannot connect master server, remaining server selects new master server by temporal voting strategy, when previous master server returns to available, again initiate temporal voting strategy and select new master server, that is all initiate temporal voting strategy when having new server node to add or to delete server node and select new master server, can ensure like this in three station servers any one or two-server is unavailable time, still externally can provide service.
With reference to figure 3, the schematic diagram of a kind of application scenarios of the Information Collection System that the present embodiment provides, wherein abscissa is the time, based on the Information Collection System resources occupation rate information that the present embodiment provides, this resources occupation rate information comprises idle progress, wait progress, systems progress, consumer process etc., attendant can check the information of any time service server, grasps the basic resource service condition of each service server.
State in each embodiment on the invention, the sequence number of embodiment is only convenient to describe, and does not represent the quality of embodiment.The description of each embodiment is all emphasized particularly on different fields, in certain embodiment, there is no the part described in detail, can see the associated description of other embodiments.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can have been come by the hardware that program command is relevant, aforesaid program can be stored in a computer read/write memory medium, this program, when performing, performs the step comprising said method embodiment; And aforesaid storage medium comprises: read-only memory (Read-Only Memory, be called for short ROM), random access memory (Random Access Memory is called for short RAM), magnetic disc or CD etc. various can be program code stored medium.
In the embodiments such as apparatus and method of the present invention, obviously, each parts or each step reconfigure after can decomposing, combine and/or decomposing.These decompose and/or reconfigure and should be considered as equivalents of the present invention.Simultaneously, above in the description of the specific embodiment of the invention, the feature described for a kind of execution mode and/or illustrate can use in one or more other execution mode in same or similar mode, combined with the feature in other execution mode, or substitute the feature in other execution mode.
Should emphasize, term " comprises/comprises " existence referring to feature, key element, step or assembly when using herein, but does not get rid of the existence or additional of one or more further feature, key element, step or assembly.
Although last it is noted that described the present invention and advantage thereof in detail above, be to be understood that and can carry out various change when not exceeding the spirit and scope of the present invention limited by appended claim, substituting and converting.And scope of the present invention is not limited only to the specific embodiment of process, equipment, means, method and step described by specification.One of ordinary skilled in the art will readily appreciate that from disclosure of the present invention, can use perform the function substantially identical with corresponding embodiment described herein or obtain and its substantially identical result, existing and that will be developed in the future process, equipment, means, method or step according to the present invention.Therefore, appended claim is intended to comprise such process, equipment, means, method or step in their scope.

Claims (15)

1. a collection method for information, is characterized in that, comprising:
Registration center obtains the call request of at least one service server be attached thereto;
Registration center determines the information collection node mated according to call request, set up described service server and be connected with the long of described information collection node, so that the information collection node that the information cache collected extremely mates by service server.
2. the collection method of information according to claim 1, is characterized in that, described registration center also comprises before obtaining the call request of at least one service server be attached thereto:
Registration center obtains the registration request of at least one information collection node be attached thereto, and described registration request comprises the nodal information of corresponding information collector node;
Described registration center registers corresponding information collection node according to the registration request received.
3. the collection method of information according to claim 2, is characterized in that, described registration center also comprises after registering corresponding information collection node according to the registration request received:
Registration center periodically sends heartbeat detection request to each information collection node, determines whether corresponding information collection node can be used according to the feedback of each information collection node.
4. the collection method of information according to claim 3, it is characterized in that, described registration center is provided with nodal information list, for storing the nodal information of at least one information collection node described, upgrade described nodal information list when detecting that information collection node is unavailable or increase new information collection node.
5. the collection method of information according to claim 1, it is characterized in that, when becoming unavailable with the long information collection node be connected of service server, service server sends call request again to described registration center, registration center redefines the information collection node of coupling according to call request, sets up described service server and is connected with the long of corresponding information collector node.
6. the collection method of information according to claim 1, is characterized in that, after the information collection node that the information cache collected extremely mates by described service server, also comprises:
Information collection node by the information unloading of collection to the database be attached thereto.
7. the collection method of information according to claim 1, it is characterized in that, described registration center comprises at least three station servers, described at least three station servers select master server by temporal voting strategy, when described master server is unavailable, remaining server is again initiated temporal voting strategy and is selected new master server, and at least three station servers described in when previous master server returns to available are again initiated temporal voting strategy and selected new master server; The information collection node that described master server mates for the call request determining according to call request obtaining at least one service server be attached thereto, sets up growing of described service server and described information collection node and is connected.
8. the gathering system of an information, it is characterized in that, comprise: registration center, at least one information collection node communicate to connect with registration center and at least one service server communicated to connect with registration center, registration center is for the call request of at least one service server described in obtaining; And the information collection node of coupling is determined according to call request, set up described service server and be connected with the long of described information collection node, the information cache that service server is used for collecting is to the information collection node mated.
9. the gathering system of information according to claim 8, it is characterized in that, described registration center is for obtaining the registration request of at least one information collection node be attached thereto, described registration request comprises the nodal information of corresponding information collector node, and registers corresponding information collection node according to the registration request received.
10. the gathering system of information according to claim 9, it is characterized in that, according to the feedback of each information collection node, described registration center also for periodically sending heartbeat detection request to each information collection node, determines whether corresponding information collection node can be used.
The gathering system of 11. information according to claim 10, it is characterized in that, registration center is provided with nodal information list, for storing the nodal information of at least one information collection node described, upgrade described nodal information list when detecting that information collection node is unavailable or increase new information collection node.
The gathering system of 12. information according to claim 8, it is characterized in that, described registration center is also for when becoming unavailable with the long information collection node be connected of service server, the call request again sent according to service server redefines the information collection node of coupling, sets up described service server and is connected with the long of corresponding information collector node.
The gathering system of 13. information according to claim 8, it is characterized in that, described service server comprises monitor client, for service server described in timed collection information, set up with corresponding information collector node grow be connected and the information of collection be sent to described information collection node.
The gathering system of 14. information according to claim 8, is characterized in that, described gathering system also comprises the database be connected with at least one information collection node described, stores for the information of collecting information collection node.
The gathering system of 15. information according to claim 8, it is characterized in that, described registration center comprises at least three station servers, described at least three station servers select master server by temporal voting strategy, when described master server is unavailable, remaining server is again initiated temporal voting strategy and is selected new master server, and at least three station servers described in when previous master server returns to available are again initiated temporal voting strategy and selected new master server; The information collection node that described master server mates for the call request determining according to call request obtaining at least one service server be attached thereto, sets up growing of described service server and described information collection node and is connected.
CN201310700664.4A 2013-12-18 2013-12-18 Information collecting method and system Pending CN104735097A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310700664.4A CN104735097A (en) 2013-12-18 2013-12-18 Information collecting method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310700664.4A CN104735097A (en) 2013-12-18 2013-12-18 Information collecting method and system

Publications (1)

Publication Number Publication Date
CN104735097A true CN104735097A (en) 2015-06-24

Family

ID=53458531

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310700664.4A Pending CN104735097A (en) 2013-12-18 2013-12-18 Information collecting method and system

Country Status (1)

Country Link
CN (1) CN104735097A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107395686A (en) * 2017-06-28 2017-11-24 甘棠软件系统(上海)有限公司 The method, apparatus and system of the long connection of switching
CN110049089A (en) * 2019-01-09 2019-07-23 阿里巴巴集团控股有限公司 A kind of service register center
CN111343237A (en) * 2020-02-07 2020-06-26 广州亚美信息科技有限公司 Server cluster communication method, communication device and computer storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101146152A (en) * 2006-09-14 2008-03-19 中国电信股份有限公司 Information collection and search system for telecommunication information station
US20100138769A1 (en) * 2007-02-28 2010-06-03 Sony Computr Entertainment Inc. Distributed Processing Method, Distributed Processing System, Server, Program for the Same, Computer, And Program for the Same
CN101815095A (en) * 2010-03-26 2010-08-25 山东高效能服务器和存储研究院 SAN stored resource unified management and distribution method
CN102739775A (en) * 2012-05-29 2012-10-17 宁波东冠科技有限公司 Method for monitoring and managing Internet of Things data acquisition server cluster
CN102932209A (en) * 2012-11-20 2013-02-13 无锡城市云计算中心有限公司 Method and device for detecting state of server cluster
CN102984012A (en) * 2012-12-10 2013-03-20 青岛海信传媒网络技术有限公司 Management method and system for service resources

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101146152A (en) * 2006-09-14 2008-03-19 中国电信股份有限公司 Information collection and search system for telecommunication information station
US20100138769A1 (en) * 2007-02-28 2010-06-03 Sony Computr Entertainment Inc. Distributed Processing Method, Distributed Processing System, Server, Program for the Same, Computer, And Program for the Same
CN101815095A (en) * 2010-03-26 2010-08-25 山东高效能服务器和存储研究院 SAN stored resource unified management and distribution method
CN102739775A (en) * 2012-05-29 2012-10-17 宁波东冠科技有限公司 Method for monitoring and managing Internet of Things data acquisition server cluster
CN102932209A (en) * 2012-11-20 2013-02-13 无锡城市云计算中心有限公司 Method and device for detecting state of server cluster
CN102984012A (en) * 2012-12-10 2013-03-20 青岛海信传媒网络技术有限公司 Management method and system for service resources

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107395686A (en) * 2017-06-28 2017-11-24 甘棠软件系统(上海)有限公司 The method, apparatus and system of the long connection of switching
CN110049089A (en) * 2019-01-09 2019-07-23 阿里巴巴集团控股有限公司 A kind of service register center
CN111343237A (en) * 2020-02-07 2020-06-26 广州亚美信息科技有限公司 Server cluster communication method, communication device and computer storage medium

Similar Documents

Publication Publication Date Title
CN111752799A (en) Service link tracking method, device, equipment and storage medium
CN102291416B (en) A kind of method and system of client and server bi-directional synchronization
CN104219316A (en) Method and device for processing call request in distributed system
CN105867837A (en) Method, equipment and system for updating configurations of clients in distributed high-speed cache systems
CN103780679A (en) Long time delay remote invocation method based on HTTP protocol
CN108334557B (en) Aggregated data analysis method and device, storage medium and electronic equipment
CN102098233B (en) Method and system for controlling communication window in instant messenger
CN105260485A (en) Method and device for loading data
US20080281954A1 (en) Capability requirements for group membership
CN106302421A (en) A kind of information intercepting processing method and device
CN104735097A (en) Information collecting method and system
CN107135108A (en) The update method and system of network connection list
CN114676205A (en) Event information processing method and device
CN104410511A (en) Server management method and system
CN105607606A (en) Data acquisition device and data acquisition method based on double-mainboard framework
CN106341433A (en) Service system, signal server and intercom server
CN102780780B (en) Method, equipment and system for data processing in cloud computing mode
CN112417050A (en) Data synchronization method and device, system, storage medium and electronic device
CN113297148B (en) Method, device and equipment for collecting service log data and readable storage medium
CN112711466B (en) Hanging affair inspection method and device, electronic equipment and storage medium
CN107888693A (en) NB IOT apparatus debugging methods and server
CN105991450A (en) MAC address table updating method and device
CN103795810A (en) Data distribution system and method and central server of data distribution system
CN108805741B (en) Fusion method, device and system of power quality data
CN114726711A (en) Method and system for cooperative processing service between devices

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150624