CN110430084A - Node state monitoring method and device - Google Patents

Node state monitoring method and device Download PDF

Info

Publication number
CN110430084A
CN110430084A CN201910768153.3A CN201910768153A CN110430084A CN 110430084 A CN110430084 A CN 110430084A CN 201910768153 A CN201910768153 A CN 201910768153A CN 110430084 A CN110430084 A CN 110430084A
Authority
CN
China
Prior art keywords
django
website
node
status information
openstack system
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
CN201910768153.3A
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.)
Jinan Inspur Data Technology Co Ltd
Original Assignee
Jinan Inspur Data Technology 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 Jinan Inspur Data Technology Co Ltd filed Critical Jinan Inspur Data Technology Co Ltd
Priority to CN201910768153.3A priority Critical patent/CN110430084A/en
Publication of CN110430084A publication Critical patent/CN110430084A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • H04L41/0253Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using browsers or web-pages for accessing management information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/28Restricting access to network management systems or functions, e.g. using authorisation function to access network configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Environmental & Geological Engineering (AREA)
  • Power Engineering (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention relates to field of computer technology, more particularly to a kind of node state monitoring method and device.This method comprises: to OpenStack system sending node status request;When receiving each node status information, each node status information is sent to the website Django;It determines web page corresponding with the website Django, each node status information is shown in web page, so that user is monitored the corresponding bare machine node of each node status information by web page.Using this method; the web page that the node status information of bare machine node each in OpenStack system is synchronized to the website Django is shown; so that user checks node status information on the web page; realization is monitored each bare machine node in OpenStack system; to guarantee in bare machine node collapses or failure, the bare machine node of failure is handled in time.

Description

Node state monitoring method and device
Technical field
The present invention relates to field of computer technology, more particularly to a kind of node state monitoring method and device.
Background technique
With the fast development of computer technology, cloud computing develops more and more fast as a kind of novel calculation Speed, scale are also increasing.Cloud computing resources manage platform OpenStack system as a kind of novel cloud computing platform, branch The cloud environment of many types is held, can provide that implementation is simple, can extend on a large scale, the service that standard is unified.
It is increasingly mature with OpenStack system item, by many bare machine node groups in each OpenStack system At system cluster, and the bare machine node in each OpenStack system is up to a hundred, thousands of.In order to realize to each bare machine Node is managed and controls, and needs to be monitored each bare machine node.In existing OpenStack system, due to each Network locating for a bare machine node is private network, is mutually isolated, can not be carried out to each bare machine node with management network Monitoring, makes user that can not each bare machine node is managed and be monitored, when collapse or failure occur for bare machine node, Wu Faji When the bare machine node to break down is handled.
Summary of the invention
Technical problem to be solved by the invention is to provide a kind of node state monitoring methods, in this way, can be right Each bare machine node in OpenStack system is monitored, to guarantee in bare machine node collapses or failure, in time to event The bare machine node of barrier is handled.
The present invention also provides a kind of node state monitoring device, to guarantee above method realization in practice and answer With.
A kind of node state monitoring method, comprising:
Platform OpenStack system sending node status request is managed to cloud computing resources;
Requested when receiving the OpenStack system according to the node state, feedback with each bare machine node pair When the node status information answered, each node status information is sent to pre-set web application framework Django net It stands, the website Django is for managing each system information corresponding with the OpenStack system, the system information packet Include the node status information;
It determines web page corresponding with the website Django, each node status information is shown in the web The page, so that user is monitored the corresponding bare machine node of each node status information by the web page.
Above-mentioned method, it is optionally, described to be asked to cloud computing resources management platform OpenStack system sending node state It asks, comprising:
When OpenStack system starting, api interface corresponding with the OpenStack system is determined;
Corresponding with OpenStack system access cycle is set, and call pre-set timed task frame according to According to the access cycle and the api interface, Xiang Suoshu OpenStack system sending node status request.
Above-mentioned method, it is optionally, described to show each node status information in the web page, comprising:
Determine display area corresponding with each node status information in the web page;
According to access cycle corresponding with the OpenStack system, the OpenStack system is received every time according to institute Each node status information of node state request feedback is stated, and pre-set asynchronous refresh technology is called to refresh the web The display area of the page shows each node status information received every time in the display area of the web page In.
Above-mentioned method optionally shows each node status information after the web page, further includes:
When receiving the logging request corresponding with the website Django of user's transmission, obtain and the logging request Corresponding login IP;
Verify the login IP whether be the website Django external Port IP, the external Port IP is that application is pre- The port mapping technology being first arranged, will be obtaining with the Django net after the host ip conversion in the OpenStack system It stands corresponding external Port IP;
When the login IP is the external Port IP of the website Django, Xiang Suoshu user's prompt is asked with the login Corresponding successful login message is sought, so that the user checks each node in the web page of the website Django Status information.
Above-mentioned method optionally, will be in the OpenStack system using pre-set port mapping technology The process of the external Port IP corresponding with the website Django obtained after host ip conversion, comprising:
The website Django is connect with the OpenStack system, and calls the routing of the OpenStack system Device sends the data packet of the OpenStack system to the gateway of the website Django, the data packet include host ip and Host port;
The host ip and host port of the OpenStack system in the data packet are obtained, and applies the port The host port is converted into corresponding with the website Django converting external port and the host ip by mapping techniques At with the external Port IP corresponding to external port, described is that the user logs in the website Django and steps on to external port Record port.
A kind of node state monitoring device, comprising:
First transmission unit, for managing platform OpenStack system sending node status request to cloud computing resources;
Second transmission unit is requested for that ought receive the OpenStack system according to the node state, feedback When node status information corresponding with each bare machine node, each node status information is sent to pre-set web The website application framework Django, the website Django is for managing each system letter corresponding with the OpenStack system Breath, the system information includes the node status information;
Display unit, for determining web page corresponding with the website Django, by each node status information It is shown in the web page, so that user is by the web page to the corresponding bare machine node of each node status information It is monitored.
Above-mentioned device, optionally, first transmission unit, comprising:
First determines subelement, is used for when OpenStack system starting, the determining and OpenStack system Corresponding api interface;
Transmission sub-unit for access cycle corresponding with the OpenStack system to be arranged, and is called pre-set Timed task frame is asked according to the access cycle and the api interface, Xiang Suoshu OpenStack system sending node state It asks.
Above-mentioned device, optionally, the display unit, comprising:
Second determines subelement, for determining display corresponding with each node status information in the web page Region;
Subelement is shown, for receiving every time described according to access cycle corresponding with the OpenStack system Each node status information of the OpenStack system according to node state request feedback, and call pre-set asynchronous Refresh technique refreshes the display area of the web page, and each node status information received every time is shown in the web In the display area of the page.
Above-mentioned device, optionally, further includes:
Acquiring unit, for obtaining when receiving the logging request corresponding with the website Django of user's transmission Login IP corresponding with the logging request;
Authentication unit, for verify it is described login IP whether be the website Django external Port IP, it is described externally Port IP is to apply pre-set port mapping technology, by what is obtained after the host ip conversion in the OpenStack system External Port IP corresponding with the website Django;
Prompt unit, for when the login IP is the external Port IP of the website Django, Xiang Suoshu user to be mentioned Show successful login message corresponding with the logging request, so that the user looks into the web page of the website Django See each node status information.
Above-mentioned device, optionally, further includes:
Connection unit, for the website Django to be connect with the OpenStack system, and described in calling The router of OpenStack system sends the data packet of the OpenStack system to the gateway of the website Django, described Data packet includes host ip and host port;
Converting unit, for obtaining the host ip and host port of the OpenStack system in the data packet, and Using the port mapping technology, the host port is converted into corresponding with the website Django to external port and institute State host ip be converted into the external Port IP corresponding to external port, it is described to external port be the user log in described in The login-port of the website Django.
A kind of storage medium, the storage medium include the instruction of storage, wherein in described instruction operation described in control Equipment where storage medium executes above-mentioned node state monitoring method.
A kind of electronic equipment, including memory and one perhaps one of them or one of more than one instruction with Upper instruction is stored in memory, and is configured to execute above-mentioned node state monitoring by one or more than one processor Method.
Compared with prior art, the present invention includes the following advantages:
The embodiment of the invention provides a kind of node state monitoring methods, comprising: manages platform to cloud computing resources OpenStack system sending node status request;It is requested when receiving the OpenStack system according to the node state, When the node status information corresponding with each bare machine node of feedback, each node status information is sent to and is preset The website web application framework Django, the website Django is for managing corresponding with the OpenStack system each system System information, the system information includes the node status information;Determine web page corresponding with the website Django, it will Each node status information is shown in the web page, so that user is by the web page to each node shape The corresponding bare machine node of state information is monitored.Using method provided by the invention, by bare machine section each in OpenStack system The web page that the node status information of point is synchronized in the website Django is shown, so that user can look on the web page See node status information, realization is monitored each bare machine node in OpenStack system, to guarantee in bare machine node When collapse or failure, the bare machine node of failure is handled in time.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of method flow diagram of node state monitoring method provided in an embodiment of the present invention;
Fig. 2 is a kind of another method flow diagram of node state monitoring method provided in an embodiment of the present invention;
Fig. 3 is a kind of another method flow diagram of node state monitoring method provided in an embodiment of the present invention;
Fig. 4 is a kind of structure drawing of device of node state monitoring device provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
In this application, relational terms such as first and second and the like be used merely to by an entity or operation with Another entity or operation distinguish, and without necessarily requiring or implying between these entities or operation, there are any this realities The relationship on border perhaps sequence the terms "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion, from And to include the process, method, article or equipments of a series of elements not only to include those elements, but also including not bright The other element really listed, or further include for elements inherent to such a process, method, article, or device.Do not having In the case where more limitations, the element that is limited by sentence "including a ...", it is not excluded that include the element process, There is also other identical elements in method, article or equipment.
The present invention can be used in numerous general or special purpose computing device environment or configurations.Such as: personal computer, service Device computer, handheld device or portable device, laptop device, multi-processor device including any of the above devices or devices Distributed computing environment etc..
The embodiment of the invention provides a kind of node state monitoring method, this method can be applied in multiple systems platform, Its executing subject can be terminal or the processor of various mobile devices, the method flow diagram of the method such as Fig. 1 institute Show, specifically include:
S101: platform OpenStack system sending node status request is managed to cloud computing resources;
In method provided in an embodiment of the present invention, carried out when needing to manage platform OpenStack system to cloud computing resources When monitoring, to the OpenStack system sending node status request.Wherein, node state request is to the OpenStack system The request that the node state of each bare machine node is monitored in system.
S102: requesting when receiving the OpenStack system according to the node state, feedback with each bare machine section When the corresponding node status information of point, each node status information is sent to pre-set web application framework The website Django, the website Django is for managing each system information corresponding with the OpenStack system, the system Information of uniting includes the node status information;
In method provided in an embodiment of the present invention, to after OpenStack system sending node status request, OpenStack system will be according to the node status information of each bare machine node of the node state request.When receiving When corresponding with each bare machine node node status information of OpenStack system feedback, web is sent by each nodal information and is answered With the website frame Django, that is, each node status information to be synchronized in the website Django.It mainly uses the website Django It include node status information in the system information in managing each system information corresponding with the OpenStack system.
It should be noted that the website Django is the web application framework an of open source code, it can apply and set in advance The scripting language set is write, which can be Python.
It should also be noted that, the node status information of bare machine node may include power state information, network state letter Breath etc..
S103: it determines web page corresponding with the website Django, each node status information is shown in institute Web page is stated, so that user supervises the corresponding bare machine node of each node status information by the web page Control.
In method provided in an embodiment of the present invention, web page corresponding with the website Django is determined, which can To be used to show the above-mentioned system information referred to, therefore each node status information is shown on the web page, user can be with Check the node status information of each bare machine node, by the web page to realize the monitoring to each bare machine node.
In node state monitoring method provided in an embodiment of the present invention, when needing to each naked in OpenStack system When machine node is monitored, to OpenStack system sending node status request, so that the OpenStack system is according to the section Dotted state request, searches the node status information of each bare machine node in the system.When receiving OpenStack system feedback When each node status information, send each that status information of ground connection in the website Django, that is, each node state is same It walks to the website Django, and each node status information is shown by the web page in the website Django.User is by being somebody's turn to do Django checks website each node status information in web page, to realize the monitoring and management of corresponding each bare machine node.
It should be noted that the website Django is somebody's turn to do for managing each system information in the OpenStack system The website Django specifically can be used for carrying out APP decoupling, create APP by the website Django, and do not do mutually between each APP It disturbs, hot plug may be implemented.Wherein, which is equivalent to the node status information of bare machine node.I.e. in the website Django not only Only include each node status information, further include the other information in OpenStack system, do not interfere with each other between each information, By it is each inputted or exported when the operation such as do not influence the display of other information or use.
It should also be noted that, the present invention is by the web page using the website Django to each in OpenStack system The node status information of a bare machine node is monitored.This method can be applied not only to monitor each bare machine node, should Various system informations can be using the process in above-mentioned steps S101~S103, so that system information exists in OpenStack system It is shown on the web page of the website Django.
Using method provided in an embodiment of the present invention, the node state of bare machine node each in OpenStack system is believed It ceases the web page being synchronized in the website Django to be shown, so that user can check that node state is believed on the web page Breath, realization is monitored each bare machine node in OpenStack system, to guarantee in bare machine node collapses or failure When, the bare machine node of failure is handled in time.
In method provided in an embodiment of the present invention, it is based on above-mentioned steps S101, when needing to each in OpenStack system When bare machine node is monitored, to OpenStack system sending node status request process as shown in Fig. 2, specifically including:
S201: when OpenStack system starting, api interface corresponding with the OpenStack system is determined;
In method provided in an embodiment of the present invention, in the starting of OpenStack system, the determining and OpenStack system Corresponding api interface.Wherein, which can be one, or multiple.When api interface is multiple, each API Interface corresponds to the different node status information of bare machine node;Such as the power state information in the corresponding bare machine node of api interface 1, Network state information in the corresponding bare machine node of api interface 2.
It should be noted that the api interface is specifically as follows each OpenStackironic in OpenStack system RestAPI interface, i.e. ironic api interface, the interface are to be deployed in OpenStack system and each ironic project pair The interface answered.Wherein ironic project is that the project of bare machine deployment installation is carried out in OpenStack system, this may be implemented The quick delivery of each hardware infrastructure resource in OpenStack system.
S202: access cycle corresponding with the OpenStack system is set, and calls pre-set timed task frame Frame is according to the access cycle and the api interface, Xiang Suoshu OpenStack system sending node status request.
In method provided in an embodiment of the present invention, after determining corresponding with OpenStack system api interface, setting and It OpenStack system corresponding access cycle, can be according to the real time access access cycle OpenStack system, i.e., in real time To OpenStack system sending node status request.Specifically, call pre-set timed task frame according to access week Phase and api interface, to OpenStack system sending node status request, that is, by calling timed task frame, according to the visit It asks the period and passes through api interface, realize in real time to OpenStack system sending node status request.
It should be noted that the timed task frame specifically can be apscheduler timed task frame, which appoints Being engaged in frame can be in real time to the real-time sending node status request of OpenStack system.
Optionally, in addition to according to pre-set access cycle by api interface to OpenStack system sending node shape Except state request, regular time point can also be set using the timed task frame and send section to OpenStack system in real time Dotted state request.
In node state monitoring method provided in an embodiment of the present invention, in order to realize to each naked in OpenStack system The monitoring of machine node, in the starting of OpenStack system, to the real-time sending node status request of OpenStack system.Specifically Ground determines api interface corresponding with the OpenStack system in the starting of OpenStack system.Setting and the OpenStack System corresponding access cycle, using apscheduler according to the access cycle, in real time by the api interface to OpenStack System sending node status request.
Using method provided in an embodiment of the present invention, since each bare machine node begins to work after OpenStack system Make, and the work of each bare machine node is all real-time perfoming, in the starting of OpenStack system, using timed task frame In real time to OpenStack system sending node status request, each bare machine node in OpenStack system can be obtained in real time Node status information, realization is in real time monitored each bare machine node, thus guarantee in bare machine node collapses or failure, and When the bare machine node of failure is handled.
In method provided in an embodiment of the present invention, it is based on above-mentioned steps S103, is receiving OpenStack system feedback After each node status information, each node status information is shown in web page, is specifically included:
Determine display area corresponding with each node status information in the web page;
According to access cycle corresponding with the OpenStack system, the OpenStack system is received every time according to institute Each node status information of node state request feedback is stated, and pre-set asynchronous refresh technology is called to refresh the web The display area of the page shows each node status information received every time in the display area of the web page.
In node state monitoring method provided in an embodiment of the present invention, each of OpenStack system feedback is being received After node status information, display area corresponding with each node status information in the web page of the website Django is determined.Its In, settable multiple display areas, each display area can be used for showing different information on web page.According to above-mentioned steps Each node status information of the OpenStack system feedback is received the access cycle that S202 is referred to, by calling asynchronous refresh Technology refreshes the display area of the web page, and each node status information received every time is shown in the viewing area Domain.
It should be noted that the asynchronous refresh technology is specifically as follows Ajax (Asynchronous Javascript AndXML AndHTML, asynchronous JavaScript and XML or HTML) technology.By the Ajax technology, can not update entirely Data are safeguarded under the premise of web page, that is, only update each node status information in the display area.Using the Ajax technology, It is when receiving each node status information of OpenStack system feedback, each node status information is asynchronous to web page Display area in.
It is by asynchronous refresh technology, each node status information is asynchronous extremely using method provided in an embodiment of the present invention In web page, realize each node status information of bare machine node real-time display in web page, in bare machine node collapses or When failure, can the bare machine node in time to failure handle.
In method provided in an embodiment of the present invention, after showing each node status information on web page, work as user When needing to be monitored each bare machine node, it can be monitored by logging in the website Django, login process such as Fig. 3 institute Show, specifically further include:
S301: when receiving the logging request corresponding with the website Django of user's transmission, acquisition is stepped on described Corresponding login IP is requested in record;
In method provided in an embodiment of the present invention, when user needs to check the section of each bare machine node in the website Django When three-point state information, it can be netted by management and log in the website Django.When receive user transmission it is corresponding with the website Django Logging request when, obtain the login IP corresponding with the logging request that the inputs when user requests to log in the website Django.
It should be noted that the management netting gear body can be what user and the website Django on the website Django interacted Outside port or the browser website of other terminals etc..
S302: verifying is described log in IP whether be the website Django external Port IP, the external Port IP is Using pre-set port mapping technology, will obtain after the host ip conversion in the OpenStack system with it is described The corresponding external Port IP in the website Django;
In method provided in an embodiment of the present invention, verify login IP whether be the website Django external Port IP.Its In, which is to answer design sheets to convert the host ip in OpenStack system by pre-set port The external Port IP corresponding with the website Django obtained afterwards, user can log in Django net by inputting the IP to external port It stands.
S303: when it is described login IP be the website Django external Port IP when, Xiang Suoshu user prompt with it is described The corresponding successful login message of logging request, so that the user checks each institute in the web page of the website Django State node status information.
In method provided in an embodiment of the present invention, when login IP is the external Port IP of the website Django, that is, this is stepped on Record IP with this it is consistent to external port when, prompt successful login message, Yong Hucheng by the logging request of the user and to the user Function logs on in the website Django, and each node status information can be checked on the web page of the website Django, real Now to the monitoring of each bare machine node.
In method provided in an embodiment of the present invention, in order to guarantee that user can be in each terminal to OpenStack system In each bare machine node be monitored, the host ip of OpenStack system is mapped to Django using port mapping technology In website, user can log in Django web publishing OpenStack system from any one terminal according to incoming IP is reflected Each bare machine node.When user needs to check the node status information of each bare machine node in web page, management can be passed through Net input logs in the node status information that bare machine node is checked in IP request.When receive user transmission it is corresponding with the website Django Logging request when, obtain login IP corresponding with the logging request, and verify whether login IP is the website Django External Port IP, if so, successful log message is prompted the user with, so that user logs in the website Django to each bare machine section Point is monitored.
Using method provided in an embodiment of the present invention, user can log in IP by input in different terminals and log on to The website Django, and each node status information in OpenStack system is monitored, without being confined in designated environment Under be monitored, the use feeling of user is provided.
In method provided in an embodiment of the present invention, in order to guarantee that user can be right in real time under its operating environment Each bare machine node in OpenStack system is monitored, will be described using pre-set port mapping technology The process of the external Port IP corresponding with the website Django obtained after host ip conversion in OpenStack system, packet It includes:
The website Django is connect with the OpenStack system, and calls the routing of the OpenStack system Device sends the data packet of the OpenStack system to the gateway of the website Django, the data packet include host ip and Host port;
The host ip and host port of the OpenStack system in the data packet are obtained, and applies the port The host port is converted into corresponding with the website Django converting external port and the host ip by mapping techniques At with the external Port IP corresponding to external port, described is that the user logs in the website Django and steps on to external port Record port.
In node state monitoring system provided in an embodiment of the present invention, when application port mapping techniques are by OpenStack system Each host ip in system be converted into the website Django it is corresponding to external port when, first by the website Django and OpenStack system System is attached, and sends data packet to the gateway of the website Django by the router of OpenStack system, which is The Net gateway of the website Django.Net gateway parses the data packet after receiving data packet, obtains in the data packet Host ip corresponding with OpenStack system and host port.It wherein, can be with other than host ip and host port Including system IP and system port.According to the host ip and host port, host ip is converted by application port mapping techniques The external Port IP of the website Django, host port are converted into external port.It is right that user can input this to external port by this The website Django is logged in after external port IP to monitor each bare machine node in OpenStack system.
Using method provided in an embodiment of the present invention, application port mapping techniques are plain can now to be stepped on by cluster management net Each node status information in the web page of the website is simultaneously checked in the land website Django, realizes to each in OpenStack system The monitoring of bare machine node.
The specific implementation process and its deriving mode of above-mentioned each embodiment, it is within the scope of the present invention.
It is corresponding with method described in Fig. 1, the embodiment of the invention also provides a kind of node state monitoring device, for pair The specific implementation of method in Fig. 1, node state monitoring device provided in an embodiment of the present invention can be with application computer terminals or each In kind mobile device, structural schematic diagram is as shown in figure 4, specifically include:
First transmission unit 401, for being asked to cloud computing resources management platform OpenStack system sending node state It asks;
Second transmission unit 402 is requested for that ought receive the OpenStack system according to the node state, instead When the node status information corresponding with each bare machine node of feedback, each node status information is sent to pre-set The website web application framework Django, the website Django is for managing each system corresponding with the OpenStack system Information, the system information include the node status information;
Display unit 403, for determining web page corresponding with the website Django, by each node state Information is shown in the web page, so that user is by the web page to the corresponding bare machine of each node status information Node is monitored.
In device provided in an embodiment of the present invention, first transmission unit, comprising:
First determines subelement, is used for when OpenStack system starting, the determining and OpenStack system Corresponding api interface;
Transmission sub-unit for access cycle corresponding with the OpenStack system to be arranged, and is called pre-set Timed task frame is asked according to the access cycle and the api interface, Xiang Suoshu OpenStack system sending node state It asks.
In device provided in an embodiment of the present invention, the display unit, comprising:
Second determines subelement, for determining display corresponding with each node status information in the web page Region;
Subelement is shown, for receiving every time described according to access cycle corresponding with the OpenStack system Each node status information of the OpenStack system according to node state request feedback, and call pre-set asynchronous Refresh technique refreshes the display area of the web page, and each node status information received every time is shown in the web In the display area of the page.
In device provided in an embodiment of the present invention, further includes:
Acquiring unit, for obtaining when receiving the logging request corresponding with the website Django of user's transmission Login IP corresponding with the logging request;
Authentication unit, for verify it is described login IP whether be the website Django external Port IP, it is described externally Port IP is to apply pre-set port mapping technology, by what is obtained after the host ip conversion in the OpenStack system External Port IP corresponding with the website Django;
Prompt unit, for when the login IP is the external Port IP of the website Django, Xiang Suoshu user to be mentioned Show successful login message corresponding with the logging request, so that the user looks into the web page of the website Django See each node status information.
In device provided in an embodiment of the present invention, further includes:
Connection unit, for the website Django to be connect with the OpenStack system, and described in calling The router of OpenStack system sends the data packet of the OpenStack system to the gateway of the website Django, described Data packet includes host ip and host port;
Converting unit, for obtaining the host ip and host port of the OpenStack system in the data packet, and Using the port mapping technology, the host port is converted into corresponding with the website Django to external port and institute State host ip be converted into the external Port IP corresponding to external port, it is described to external port be the user log in described in The login-port of the website Django.
The first transmission unit 401, second in the above node state monitoring device disclosed by the embodiments of the present invention sends single The specific work process of member 402 and display unit 403, reference can be made to node state monitoring method disclosed in the above embodiment of the present invention In corresponding content, be not discussed here.
The embodiment of the invention also provides a kind of storage medium, the storage medium includes the instruction of storage, wherein in institute It states the equipment where controlling the storage medium when instruction operation and executes above-mentioned node state monitoring method.
The embodiment of the invention also provides a kind of electronic equipment, structural schematic diagram is as shown in figure 5, specifically include memory 501 and one perhaps more than one 502 one of them or more than one instruction of instruction 502 be stored in memory 501 In, and be configured to by one or more than one processor 503 execute the one or more instruction 502 carry out with Lower operation:
Platform OpenStack system sending node status request is managed to cloud computing resources;
Requested when receiving the OpenStack system according to the node state, feedback with each bare machine node pair When the node status information answered, each node status information is sent to pre-set web application framework Django net It stands, the website Django is for managing each system information corresponding with the OpenStack system, the system information packet Include the node status information;
It determines web page corresponding with the website Django, each node status information is shown in the web The page, so that user is monitored the corresponding bare machine node of each node status information by the web page.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system or For system embodiment, since it is substantially similar to the method embodiment, so describing fairly simple, related place is referring to method The part of embodiment illustrates.System and system embodiment described above is only schematical, wherein the conduct The unit of separate part description may or may not be physically separated, component shown as a unit can be or Person may not be physical unit, it can and it is in one place, or may be distributed over multiple network units.It can root According to actual need that some or all of the modules therein is selected to achieve the purpose of the solution of this embodiment.Ordinary skill Personnel can understand and implement without creative efforts.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure And algorithm steps, it can be realized with electronic hardware, computer software, or a combination of the two.
In order to clearly illustrate the interchangeability of hardware and software, it is generally retouched according to function in the above description Each exemplary composition and step are stated.These functions are implemented in hardware or software actually, depending on technical solution Specific application and design constraint.Professional technician can to each specific application come using distinct methods to realize The function of description, but such implementation should not be considered as beyond the scope of the present invention.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest scope of cause.

Claims (10)

1. a kind of node state monitoring method characterized by comprising
Platform OpenStack system sending node status request is managed to cloud computing resources;
Requested when receiving the OpenStack system according to the node state, feedback it is corresponding with each bare machine node When node status information, each node status information is sent to the pre-set website web application framework Django, institute State the website Django for manage corresponding with the OpenStack system each system information, the system information includes institute State node status information;
It determines web page corresponding with the website Django, each node status information is shown in the Web page Face, so that user is monitored the corresponding bare machine node of each node status information by the web page.
2. the method according to claim 1, wherein described manage platform OpenStack system to cloud computing resources System sending node status request, comprising:
When OpenStack system starting, api interface corresponding with the OpenStack system is determined;
Access cycle corresponding with the OpenStack system is set, and calls pre-set timed task frame according to institute State access cycle and the api interface, Xiang Suoshu OpenStack system sending node status request.
3. according to the method described in claim 2, it is characterized in that, described show each node status information described Web page, comprising:
Determine display area corresponding with each node status information in the web page;
According to access cycle corresponding with the OpenStack system, the OpenStack system is received every time according to the section Each node status information of dotted state request feedback, and pre-set asynchronous refresh technology is called to refresh the web page Display area, each node status information received every time is shown in the display area of the web page.
4. the method according to claim 1, wherein showing each node status information in the web After the page, further includes:
When receiving the logging request corresponding with the website Django of user's transmission, obtain corresponding with the logging request Login IP;
Verify it is described login IP whether be the website Django external Port IP, the external Port IP be application set in advance The port mapping technology set, will be obtaining with the website pair Django after the host ip conversion in the OpenStack system The external Port IP answered;
When the login IP is the external Port IP of the website Django, Xiang Suoshu user's prompt and the logging request pair The successful login message answered, so that the user checks each node state in the web page of the website Django Information.
5., will be described according to the method described in claim 4, it is characterized in that, using pre-set port mapping technology The process of the external Port IP corresponding with the website Django obtained after host ip conversion in OpenStack system, packet It includes:
The website Django is connect with the OpenStack system, and call the router of the OpenStack system to The gateway of the website Django sends the data packet of the OpenStack system, and the data packet includes host ip and host Port;
The host ip and host port of the OpenStack system in the data packet are obtained, and applies the port mapping Technology, by the host port be converted into it is corresponding with the website Django to external port and the host ip be converted into The external Port IP corresponding to external port, the login end for logging in the website Django for the user to external port Mouthful.
6. a kind of node state monitoring device characterized by comprising
First transmission unit, for managing platform OpenStack system sending node status request to cloud computing resources;
Second transmission unit, for being requested according to the node state when receiving the OpenStack system, feedback with it is every When the corresponding node status information of a bare machine node, each node status information is sent to pre-set web and is applied The website frame Django, the website Django is for managing each system information corresponding with the OpenStack system, institute Stating system information includes the node status information;
Display unit shows each node status information for determining web page corresponding with the website Django In the web page, so that user carries out the corresponding bare machine node of each node status information by the web page Monitoring.
7. device according to claim 6, which is characterized in that first transmission unit, comprising:
First determines subelement, for when OpenStack system starting, determination to be corresponding with the OpenStack system Api interface;
Transmission sub-unit for access cycle corresponding with the OpenStack system to be arranged, and calls pre-set timing Task framework is according to the access cycle and the api interface, Xiang Suoshu OpenStack system sending node status request.
8. device according to claim 6, which is characterized in that the display unit, comprising:
Second determines subelement, for determining display area corresponding with each node status information in the web page;
Subelement is shown, for receiving every time described according to access cycle corresponding with the OpenStack system Each node status information of the OpenStack system according to node state request feedback, and call pre-set asynchronous Refresh technique refreshes the display area of the web page, and each node status information received every time is shown in the web In the display area of the page.
9. device according to claim 6, which is characterized in that further include:
Acquiring unit, for when receive user transmission logging request corresponding with the website Django when, obtain and institute State the corresponding login IP of logging request;
Authentication unit, for verify it is described login IP whether be the website Django external Port IP, it is described to external port IP be apply pre-set port mapping technology, by the OpenStack system host ip conversion after obtain with institute State the corresponding external Port IP in the website Django;
Prompt unit, for when it is described login IP be the website Django external Port IP when, Xiang Suoshu user prompt with The corresponding successful login message of the logging request, so that the user checks respectively in the web page of the website Django A node status information.
10. device according to claim 9, which is characterized in that further include:
Connection unit for the website Django to be connect with the OpenStack system, and calls the OpenStack The router of system sends the data packet of the OpenStack system, the data packet packet to the gateway of the website Django Include host ip and host port;
Converting unit for obtaining the host ip and host port of the OpenStack system in the data packet, and is applied The host port is converted into corresponding with the website Django to external port and the master by the port mapping technology Machine IP be converted into the external Port IP corresponding to external port, described is that the user logs in the Django to external port The login-port of website.
CN201910768153.3A 2019-08-20 2019-08-20 Node state monitoring method and device Pending CN110430084A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910768153.3A CN110430084A (en) 2019-08-20 2019-08-20 Node state monitoring method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910768153.3A CN110430084A (en) 2019-08-20 2019-08-20 Node state monitoring method and device

Publications (1)

Publication Number Publication Date
CN110430084A true CN110430084A (en) 2019-11-08

Family

ID=68417022

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910768153.3A Pending CN110430084A (en) 2019-08-20 2019-08-20 Node state monitoring method and device

Country Status (1)

Country Link
CN (1) CN110430084A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111324496A (en) * 2020-02-20 2020-06-23 山东汇贸电子口岸有限公司 Method and device for detecting bare machine
CN111427749A (en) * 2020-04-01 2020-07-17 山东汇贸电子口岸有限公司 Monitoring tool and method for ironic service in openstack environment
CN111880996A (en) * 2020-07-29 2020-11-03 北京浪潮数据技术有限公司 Bare computer data acquisition method, device, equipment and readable storage medium
CN113760610A (en) * 2020-06-01 2021-12-07 富泰华工业(深圳)有限公司 OpenStack-based bare computer high-availability realization method and device and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9749331B1 (en) * 2011-05-03 2017-08-29 Symantec Corporation Context based conditional access for cloud services
CN107612787A (en) * 2017-11-06 2018-01-19 南京易捷思达软件科技有限公司 A kind of cloud hostdown detection method for cloud platform of being increased income based on Openstack
CN109213496A (en) * 2018-08-29 2019-01-15 郑州云海信息技术有限公司 A kind of realization method and system for disposing OpenStack
CN109412887A (en) * 2018-10-08 2019-03-01 郑州云海信息技术有限公司 A kind of collection system of the container monitors data based on OpenStack

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9749331B1 (en) * 2011-05-03 2017-08-29 Symantec Corporation Context based conditional access for cloud services
CN107612787A (en) * 2017-11-06 2018-01-19 南京易捷思达软件科技有限公司 A kind of cloud hostdown detection method for cloud platform of being increased income based on Openstack
CN109213496A (en) * 2018-08-29 2019-01-15 郑州云海信息技术有限公司 A kind of realization method and system for disposing OpenStack
CN109412887A (en) * 2018-10-08 2019-03-01 郑州云海信息技术有限公司 A kind of collection system of the container monitors data based on OpenStack

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111324496A (en) * 2020-02-20 2020-06-23 山东汇贸电子口岸有限公司 Method and device for detecting bare machine
CN111324496B (en) * 2020-02-20 2023-05-26 山东汇贸电子口岸有限公司 Method and device for detecting bare metal
CN111427749A (en) * 2020-04-01 2020-07-17 山东汇贸电子口岸有限公司 Monitoring tool and method for ironic service in openstack environment
CN111427749B (en) * 2020-04-01 2023-07-11 山东汇贸电子口岸有限公司 Monitoring tool and method for ironic service in opentack environment
CN113760610A (en) * 2020-06-01 2021-12-07 富泰华工业(深圳)有限公司 OpenStack-based bare computer high-availability realization method and device and electronic equipment
CN111880996A (en) * 2020-07-29 2020-11-03 北京浪潮数据技术有限公司 Bare computer data acquisition method, device, equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN110430084A (en) Node state monitoring method and device
Coutinho et al. Fogbed: A rapid-prototyping emulation environment for fog computing
WO2018014657A1 (en) Unified portal method, apparatus and system
CN105991734B (en) A kind of cloud platform management method and system
CN102281311B (en) Method, system and device for implementing network service based on open application programming interface
CN102916995B (en) AH method and system
CN109150904A (en) Interface service call method and terminal device
CN103200215A (en) Method achieving XenServer virtual machine remote control on https
CN104850450A (en) Load balancing method and system facing mixed cloud application
US20180054456A1 (en) Website security tracking across a network
CN111262839A (en) Vulnerability scanning method, management equipment, node and storage medium
US10592399B2 (en) Testing web applications using clusters
CN109639782A (en) Message sends platform, method
KR20150082932A (en) Apparatus and method for supporting configuration management of virtual machine, and apparatus and method for brokering cloud service using the apparatus
US20200274897A1 (en) Method and apparatus for processing data
US20220232101A1 (en) Virtual workspace experience visualization and optimization
CN104243230B (en) The method and apparatus of monitoring data in a kind of acquisition Linux server
CN109344075A (en) Configuration method, test method, configuration server and service node device
CN110099129A (en) A kind of data transmission method and equipment
CN103179104A (en) Method, system and equipment thereof for accessing remote service
Celesti et al. Integration of clever clouds with third party software systems through a rest web service interface
CN109617966A (en) A kind of cloud pipe Platform deployment system and method based on Openstack
Al-Khafaji et al. Secured environment for cloud integrated fog and mist architecture
WO2015123990A1 (en) Page push method, device, server and system
CN112799970B (en) Test data processing method, device, electronic equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for 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: 20191108