CN104579842A - Processing method for acquiring cluster monitoring computing node state based on socket communication - Google Patents

Processing method for acquiring cluster monitoring computing node state based on socket communication Download PDF

Info

Publication number
CN104579842A
CN104579842A CN201510013577.0A CN201510013577A CN104579842A CN 104579842 A CN104579842 A CN 104579842A CN 201510013577 A CN201510013577 A CN 201510013577A CN 104579842 A CN104579842 A CN 104579842A
Authority
CN
China
Prior art keywords
computing node
cluster monitoring
socket
processing method
network
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
CN201510013577.0A
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.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry 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 Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201510013577.0A priority Critical patent/CN104579842A/en
Publication of CN104579842A publication Critical patent/CN104579842A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a processing method for acquiring cluster monitoring computing node states based on socket communication, which comprises the following specific implementation processes: firstly, establishing a socketTCP connection with a computing node, judging whether a cluster monitoring software client program is operated on the computing node or not according to the judgment that whether the connection is established successfully or not, and then acquiring the state of the computing node. Compared with the prior art, the processing method for acquiring the cluster monitoring computing node state based on socket communication has the advantages that the whole implementation process is simple and quick, the cluster monitoring node state can be efficiently acquired, the whole process is high in implementation efficiency, strong in practicability and easy to popularize.

Description

A kind of processing method obtaining cluster monitoring computing node state based on socket communication
Technical field
The present invention relates to field of computer technology, specifically a kind of practical, processing method of obtaining cluster monitoring computing node state based on socket communication.
Background technology
General cluster all can install cluster monitoring software, cluster monitoring software realizes the system integration, the software and hardware resources management of the coordinating and unifying, monitoring, warning, the complexity of resolution system monitoring management, for system resource provides unified monitoring view, and provide the administration portal of single system mapping for keeper.
The cluster monitoring software of prior art, has a function obtaining node state.General, node has three kinds of states, and one is that network is not communicated with (state 1); One is network-in-dialing but does not run cluster monitoring software client program (state 2); One is network-in-dialing and runs cluster monitoring software client program (state 3).
Owing to judging whether computing node runs cluster monitoring software client program based on network-in-dialing, so, first judge whether network is communicated with, then go to judge whether to run cluster monitoring software client program, but the program efficiency obtaining node computer state is like this low.
Based on this, a kind of method being obtained PC cluster node state by socket communication is now proposed, the method first judges whether computing node runs cluster monitoring software client program, judge whether computing node network is communicated with again, under normal circumstances, the status routine efficiency obtaining computing node can double.
Summary of the invention
Technical assignment of the present invention is for above weak point, provides a kind of practical, processing method of obtaining cluster monitoring computing node state based on socket communication.
Obtain a processing method for cluster monitoring computing node state based on socket communication, its specific implementation process is:
First set up socket TCP to be connected with computing node, judge whether computing node runs cluster monitoring software client program, whether its basis for estimation is successfully established for connecting, and then obtains computing node state.
Whether described decision node allows the detailed process of cluster monitoring software client program be:
When after the success of socket TCP connection establishment, then computing node runs cluster monitoring software client program and computing node network-in-dialing;
When the failure of socket TCP connection establishment, then send socket icmp packet to computing node, judge whether network is communicated with.
After described socket icmp packet sends, when the socket icmp packet receiving computing node is replied, then network-in-dialing but do not run cluster monitoring software client program; When not receiving socket icmp packet and replying, then network is not communicated with.
A kind of processing method obtaining cluster monitoring computing node state based on socket communication of the present invention, has the following advantages:
A kind of processing method based on socket communication acquisition cluster monitoring computing node state of this invention connects by setting up socket TCP, complete in decision node and whether allow cluster monitoring software client program, whole implementation procedure is simple and quick, can effective acquisition cluster monitoring node state, whole process implementation efficiency is high, practical, be easy to promote.
Accompanying drawing explanation
Accompanying drawing 1 is realization flow figure of the present invention.
Embodiment
Below in conjunction with the drawings and specific embodiments, the invention will be further described.
The present invention proposes a kind of processing method obtaining cluster monitoring computing node state based on socket communication, first set up socket TCP to connect, if connection establishment success, then computing node runs cluster monitoring software client program and computing node network-in-dialing; If the failure of TCP connection establishment, then send socket icmp packet, judge whether network is communicated with.Improve the efficiency obtaining cluster monitoring computing node state by this method.
As shown in Figure 1, its specific implementation process is:
1, first set up socket TCP with cluster monitoring computing node to be connected.
If 2 socket TCP connection establishment successes, then declarative section dotted state is state 3, performs the 6th step.
If 3 socket TCP connection establishment failures, then send socket icmp packet to computing node, judge whether network is communicated with.
Reply if 4 receive socket icmp packet, then node state is state 2, performs the 6th step.
Reply if 5 do not receive socket icmp packet, then node state is state 1, performs the 6th step.
6, obtain node state to terminate.
The state that the state 1 mentioned in above-mentioned steps is not communicated with for network; State 2 is network-in-dialing but does not run the state of cluster monitoring software client program; State 3 is network-in-dialing and runs the state of cluster monitoring software client program.
Above-mentioned embodiment is only concrete case of the present invention; scope of patent protection of the present invention includes but not limited to above-mentioned embodiment; any according to the invention a kind of based on socket communication obtain claims of the processing method of cluster monitoring computing node state and the those of ordinary skill of any described technical field to its suitable change done or replacement, all should fall into scope of patent protection of the present invention.

Claims (3)

1. obtain a processing method for cluster monitoring computing node state based on socket communication, it is characterized in that, its specific implementation process is:
First set up socket TCP to be connected with computing node, judge whether computing node runs cluster monitoring software client program, whether its basis for estimation is successfully established for connecting, and then obtains computing node state.
2. a kind of processing method obtaining cluster monitoring computing node state based on socket communication according to claim 1, is characterized in that, whether described decision node allows the detailed process of cluster monitoring software client program be:
When after the success of socket TCP connection establishment, then computing node runs cluster monitoring software client program and computing node network-in-dialing;
When the failure of socket TCP connection establishment, then send socket icmp packet to computing node, judge whether network is communicated with.
3. a kind of processing method obtaining cluster monitoring computing node state based on socket communication according to claim 2, it is characterized in that, after described socket icmp packet sends, when the socket icmp packet receiving computing node is replied, then network-in-dialing but do not run cluster monitoring software client program; When not receiving socket icmp packet and replying, then network is not communicated with.
CN201510013577.0A 2015-01-12 2015-01-12 Processing method for acquiring cluster monitoring computing node state based on socket communication Pending CN104579842A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510013577.0A CN104579842A (en) 2015-01-12 2015-01-12 Processing method for acquiring cluster monitoring computing node state based on socket communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510013577.0A CN104579842A (en) 2015-01-12 2015-01-12 Processing method for acquiring cluster monitoring computing node state based on socket communication

Publications (1)

Publication Number Publication Date
CN104579842A true CN104579842A (en) 2015-04-29

Family

ID=53095106

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510013577.0A Pending CN104579842A (en) 2015-01-12 2015-01-12 Processing method for acquiring cluster monitoring computing node state based on socket communication

Country Status (1)

Country Link
CN (1) CN104579842A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107360059A (en) * 2017-07-28 2017-11-17 广东欧珀移动通信有限公司 Network detecting method, network detection means and intelligent terminal
CN108683572A (en) * 2018-07-18 2018-10-19 郑州云海信息技术有限公司 A kind of network detecting method and system based on Openstack
CN108696392A (en) * 2018-05-14 2018-10-23 南京南瑞继保电气有限公司 A kind of communications status monitoring method, network node and computer readable storage medium
CN113890838A (en) * 2021-09-24 2022-01-04 天津津航计算技术研究所 Network connectivity judgment method based on ICMP (Internet control protocol)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1405994A (en) * 2002-11-08 2003-03-26 清华大学 Transmission agreement special for TP-S satellite channel
CN101291343A (en) * 2008-05-20 2008-10-22 北京锐安科技有限公司 Remote controlling method and system based on transparent proxy equipment
CN102215243A (en) * 2010-04-12 2011-10-12 华为技术有限公司 Event synchronization method, system, client and server
CN102439905A (en) * 2011-09-30 2012-05-02 华为技术有限公司 Method, device and system of finding network topology automatically

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1405994A (en) * 2002-11-08 2003-03-26 清华大学 Transmission agreement special for TP-S satellite channel
CN101291343A (en) * 2008-05-20 2008-10-22 北京锐安科技有限公司 Remote controlling method and system based on transparent proxy equipment
CN102215243A (en) * 2010-04-12 2011-10-12 华为技术有限公司 Event synchronization method, system, client and server
CN102439905A (en) * 2011-09-30 2012-05-02 华为技术有限公司 Method, device and system of finding network topology automatically

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107360059A (en) * 2017-07-28 2017-11-17 广东欧珀移动通信有限公司 Network detecting method, network detection means and intelligent terminal
CN107360059B (en) * 2017-07-28 2019-03-01 Oppo广东移动通信有限公司 Network detecting method, network detection device and intelligent terminal
CN108696392A (en) * 2018-05-14 2018-10-23 南京南瑞继保电气有限公司 A kind of communications status monitoring method, network node and computer readable storage medium
CN108683572A (en) * 2018-07-18 2018-10-19 郑州云海信息技术有限公司 A kind of network detecting method and system based on Openstack
CN113890838A (en) * 2021-09-24 2022-01-04 天津津航计算技术研究所 Network connectivity judgment method based on ICMP (Internet control protocol)

Similar Documents

Publication Publication Date Title
CN104579842A (en) Processing method for acquiring cluster monitoring computing node state based on socket communication
CN105672988B (en) Pumping-unit workdone graphic diagnostic system and diagnostic method
CN111340456A (en) Edge cloud collaborative data processing method, device and equipment based on Internet of things
CN105025056A (en) Internet of Things information collection and monitoring system design method
CN112134754A (en) Pressure testing method and device, network equipment and storage medium
CN109462590A (en) A kind of unknown protocol conversed analysis method based on fuzz testing
CN105224442A (en) Performance test method for multi-client shared file system
CN108154230A (en) The monitoring method and monitoring device of deep learning processor
CN106357473B (en) Distributed multi-microcomputer, control method and control device
CN105119926A (en) Multichannel duplex communication method based on Socket connection
CN105553731A (en) Automatic inspection method and device
CN110868313A (en) Inspection method, related device and readable storage medium
CN105607606A (en) Data acquisition device and data acquisition method based on double-mainboard framework
CN104753957A (en) Mass communication terminal connection management method of electricity information acquisition system
CN104811343A (en) Network detection method and system of peer-to-peer network
CN105553766A (en) Monitoring method of abnormal node dynamic tracking cluster node state
CN105656762A (en) Message pushing method and message pushing system for mobile office software
CN106953809B (en) 485 time-sharing communication-based equipment resource acquisition method
Porter et al. DeSARM: A Decentralized Mechanism for Discovering Software Architecture Models at Runtime in Distributed Systems.
CN105071991A (en) Method for testing IP (Internet Protocol) connectivity of plurality of firewalls
CN107798067A (en) Suitable for the database normalization storage system and method for polytypic satellite test
CN103491557B (en) The processing method and processing device of upgrading base station data
CN104714875A (en) Distributed automatic collecting method
CN103457926A (en) Communication method for CMS front-end processor and server
CN103176796A (en) Method for achieving mapping from complex data to signal set in AUTOSAR

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150429

WD01 Invention patent application deemed withdrawn after publication