CN103167034B - Based on the construction method of the monitoring Agent of CloudStack dummy node - Google Patents

Based on the construction method of the monitoring Agent of CloudStack dummy node Download PDF

Info

Publication number
CN103167034B
CN103167034B CN201310080925.7A CN201310080925A CN103167034B CN 103167034 B CN103167034 B CN 103167034B CN 201310080925 A CN201310080925 A CN 201310080925A CN 103167034 B CN103167034 B CN 103167034B
Authority
CN
China
Prior art keywords
cloudstack
agent
virtual machine
dummy node
monitoring
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.)
Active
Application number
CN201310080925.7A
Other languages
Chinese (zh)
Other versions
CN103167034A (en
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.)
Hohai University HHU
Original Assignee
Hohai University HHU
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 Hohai University HHU filed Critical Hohai University HHU
Priority to CN201310080925.7A priority Critical patent/CN103167034B/en
Publication of CN103167034A publication Critical patent/CN103167034A/en
Application granted granted Critical
Publication of CN103167034B publication Critical patent/CN103167034B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention discloses the construction method of a kind of monitoring Agent based on CloudStack dummy node, when CloudStack cloud platform creates new virtual machine node, be injected in these dummy nodes by the monitoring Agent of structure, automatic and host's virtual machine is bound and starts to monitor.The physical machine administration interface that user can use CloudStack administrator's password to log in CloudStack to carry, can obtain the page of each virtual machine monitoring information returned by monitoring Agent simultaneously.By monitoring Agent, user can view the various running statuses of each virtual machine, comprising: flow information (same day, this month) statistics of each time of the utilization rate of the utilance of virtual cpu, the occupancy of virtual memory, virtual hard disk, the operation system of virtual machine and virtual machine.The refinement of the present invention monitoring granularity of virtual resource, solves the deficiency cannot monitored virtual machine in CloudStack, is conducive to management and resource more fully.

Description

Based on the construction method of the monitoring Agent of CloudStack dummy node
Technical field
The present invention relates to the construction method of a kind of monitoring Agent based on CloudStack dummy node, belong to cloud computing correlative technology field.
Background technology
Cloud computing is as a kind of calculating pattern newly, and it is the mixing evolution such as Intel Virtualization Technology, effectiveness calculating, parallel computation, Distributed Calculation and the result risen to, and represents the state-of-the-art theory in current I T field.CloudStack is the solution of cloud computing platform of increasing income well-known in the industry, and it is for building IaaS cloud, and therefore also of equal importance to the monitoring of these resources, the ageing and accuracy of monitoring directly affects the operation to resource.At present, CloudStack can be good at monitoring the physical host having installed CloudStack client, as disposed a virtual machine to certain physical machine, can judge whether the resource of this machine satisfies the demands.But for dummy node, CloudStack but lacks effective monitoring mechanism, cannot know the ruuning situation of dummy node, the information of each dummy node of collection that user cannot be unified, enters each virtual machine except by Telnet and observes.When CloudStack cluster is huge time, this almost can not realize.Therefore, a kind of can monitor dummy node based on CloudStack and providing the monitoring mechanism of unified administration page and abundant presentation mode very important is newly proposed.
Summary of the invention
Goal of the invention: for problems of the prior art and deficiency, the invention provides the construction method of a kind of monitoring Agent based on CloudStack dummy node.
Technical scheme: the construction method of a kind of monitoring Agent based on CloudStack dummy node, when CloudStack keeper creates virtual machine, inject Agent to this virtual machine, monitor virtual machine, key step is as follows:
Step 11: build the Agent can bound with CloudStack dummy node for each operating system platform.This program can be bound with CloudStack dummy node, and monitors dummy node, returns monitor message.
Step 12: create Agent receiver module, this receiver module receives the real time information of the Agent injecting each virtual machine,
Step 13: create Agent display module, this module provides CloudStack Admin Access entrance in the mode of Web, logs in password consistent with CloudStack administrator's password, employing be same database.
First step 14:Agent display module logs in accession page according to the username and password of user's input, the information that page presentation monitoring Agent collects.
Step 15: arrange Agent, inserts IP and the port of background program, selects the information needed virtual machine monitoring.
Step 16: create each Edition operating system mirror image that CloudStack needs to install, the Agent set in implantation step 15 in this mirror image.These operating system mirror images are installed when creating new CloudStack dummy node.
Step 17:CloudStack keeper creates new virtual machine, and starts Agent, and generally Agent automatically starting runs.
Step 18: mounted Agent ceaselessly sends virtual machine information to backstage, and background program preserves these information, and the form such as design of graphics, table provides web page access.
Agent needs and CloudStack virtual machine is bound, and by binding, after binding success, Agent sends monitor data to backstage, the method for Agent and the binding of CloudStack dummy node, and its key step comprises:
Step 21: create Agent binding module, this module can obtain the log-on message of Agent.Agent timing to Agent binding module send log-on message, determine the binding relationship of Agent and host's virtual machine.
Step 22: create background program administrator module, this module has CloudStack keeper account, can obtain the essential information of all virtual machines of CloudStack cluster by this module.
Step 23: after installing Agent, Agent obtains the information of host virtual machine, and main information comprises the IP of host's dummy node and operation system information and information is sent to backstage.
Step 24: the API of backstage CloudStack obtains the information of CloudStack All hosts and virtual machine.
Step 25: the information of the information that backstage comparison Agent returns and CloudStack, the id of the CloudStack dummy node of confirmation and Agent binding, and this id is sent to Agent.
Step 26: Agent sends virtual node information at every turn and all binds the dummy node id obtained in step 3.
Beneficial effect: compared with prior art, the construction method of the monitoring Agent based on CloudStack dummy node provided by the invention, monitoring Agent can obtain the various resources of target virtual machine, comprise the resource utilization of virtual cpu, the occupancy of virtual memory, flow information (same day, this month) statistics of each time of the utilance of virtual hard disk, the operation system of virtual machine, virtual machine.And this monitoring Agent provides the unified interface presenting each virtual machine running status, abundant ways of presentation (figure, table, panel board) is provided to represent each attribute of virtual machine.
Accompanying drawing explanation
Fig. 1 is the system assumption diagram of the monitoring Agent of the embodiment of the present invention.
Embodiment
Below in conjunction with specific embodiment, illustrate the present invention further, these embodiments should be understood only be not used in for illustration of the present invention and limit the scope of the invention, after having read the present invention, the amendment of those skilled in the art to the various equivalent form of value of the present invention has all fallen within the application's claims limited range.
The Agent can bound with CloudStack dummy node is built for each operating system platform.This program can be bound with CloudStack dummy node, and monitors dummy node, returns monitor message.This monitor code operating procedure is as follows:
Step 11: the setting of Agent.Agent needs the IP and the port that arrange management backstage, and Agent can send information to correct place.
Step 12: Agent initialization, obtains host's virtual machine essential information after Agent starts, the Information Selection according to host's virtual machine starts module (difference according to system).
Step 13: Agent and virtual machine binding, Agent sends the essential information of virtual machine to backstage, obtained the id of host's virtual machine by backstage.
Step 14: Agent starts to collect the virtual machine information needing to detect, comprise the resource utilization of virtual cpu, the occupancy of virtual memory, flow information (same day, this month) statistics of each time of the utilance of virtual hard disk, the operation system of virtual machine, virtual machine.
The concrete execution step of monitoring Agent is as follows:
Step 21: build the Agent can bound with CloudStack dummy node for each operating system platform.This program can be bound with CloudStack dummy node, and monitors dummy node, returns monitor message.
Step 22: create Agent receiver module, this Agent receiver module receives the real time information of the Agent injecting each virtual machine,
Step 23: create Agent sequence access modules, this access modules provides CloudStack Admin Access entrance in the mode of Web, logs in password consistent with CloudStack administrator's password, employing be same database.
Step 24: what first background program access modules obtained CloudStack according to the username and password of user's input logs in token, obtains Administrator Info and whether can logging according to token to calling CloudStackAPI.
Step 25: arrange Agent, inserts IP and the port of background program, selects the information needed virtual machine monitoring.
Step 26: create each Edition operating system mirror image that CloudStack needs to install, the Agent set in implantation step 25 in this mirror image.These operating system mirror images are installed when creating new CloudStack dummy node.
Step 27:CloudStack keeper creates new virtual machine, and starts Agent, and generally Agent automatically starting runs.
Step 28: mounted Agent ceaselessly sends virtual machine information to backstage, and background program preserves these information, and the form such as design of graphics, table provides web page access.
Agent needs and CloudStack virtual machine is bound, and by binding, after binding success, Agent sends monitor data to backstage, the method for Agent and the binding of CloudStack dummy node, and its key step comprises:
Step 31: create Agent binding module, this module can obtain the log-on message of Agent.Agent timing to backstage binding module send log-on message, determine the binding relationship of Agent and host's virtual machine.
Step 32: create background program administrator module, this module has CloudStack keeper account, can obtain the essential information of all virtual machines of CloudStack cluster by this module
Step 33: after installing Agent, Agent obtains the information of host virtual machine, and main information comprises the IP of host's dummy node and operation system information and information is sent to backstage.
Step 34: the API of backstage CloudStack obtains the information of CloudStack All hosts and virtual machine.
Step 35: the information of the information that backstage comparison Agent returns and CloudStack, the id of the CloudStack dummy node of confirmation and Agent binding, and this id is sent to Agent.
Step 36: Agent sends virtual node information at every turn and all binds the dummy node id obtained in step 33.

Claims (4)

1. the construction method based on the monitoring Agent of CloudStack dummy node, it is characterized in that, when creating new CloudStack dummy node, injecting monitoring Agent and to dummy node implementing monitoring, get the various running status indexs of virtual machine, key step comprises as follows:
Step 1: build the Agent with the binding of CloudStack dummy node, this Agent injects when CloudStack dummy node is created and binds, and then the running status of monitoring dummy node, return monitor control index information;
Step 2: create Agent receiver module, the real time information that this Agent receiver module Receiving Agent program is monitored;
Step 3: create Agent display module, this module provides CloudStack Admin Access entrance in the mode of Web, logs in password consistent with CloudStack administrator's password, employing be same database;
First step 4:Agent display module logs in accession page according to the username and password of user's input, the information that page presentation monitoring Agent collects;
Step 5: Agent is set, insert background program and port, select the information needed virtual machine monitoring;
Step 6: create each Edition operating system mirror image that CloudStack needs to install, the Agent set in implantation step 5 in this mirror image; These operating system mirror images are installed when creating new CloudStack dummy node;
Step 7:CloudStack keeper creates new virtual machine, and starts Agent;
Step 8: mounted Agent ceaselessly sends virtual machine information to backstage, and background program preserves these information, and design of graphics, sheet form provide web page access.
2. the construction method of the monitoring Agent based on CloudStack dummy node according to claim 1, it is characterized in that, in step 1, create Agent binding module, this module can obtain the log-on message of Agent, and log-on message comprises virtual machine ip and id of binding; Agent timing to backstage binding module send log-on message, determine the binding relationship of Agent and host's virtual machine.
3. the construction method of the monitoring Agent based on CloudStack dummy node according to claim 1, it is characterized in that, in step 3, create background program administrator module, this module has CloudStack keeper account, can be obtained the essential information of all virtual machines of CloudStack cluster by this module.
4. the construction method of the monitoring Agent based on CloudStack dummy node according to claim 1, it is characterized in that, in step 4, what use the account name of user's input and password to obtain CloudStack logs in token, calls CloudStackAPI obtain Administrator Info and judge whether to log according to token.
CN201310080925.7A 2013-03-13 2013-03-13 Based on the construction method of the monitoring Agent of CloudStack dummy node Active CN103167034B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310080925.7A CN103167034B (en) 2013-03-13 2013-03-13 Based on the construction method of the monitoring Agent of CloudStack dummy node

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310080925.7A CN103167034B (en) 2013-03-13 2013-03-13 Based on the construction method of the monitoring Agent of CloudStack dummy node

Publications (2)

Publication Number Publication Date
CN103167034A CN103167034A (en) 2013-06-19
CN103167034B true CN103167034B (en) 2015-11-18

Family

ID=48589770

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310080925.7A Active CN103167034B (en) 2013-03-13 2013-03-13 Based on the construction method of the monitoring Agent of CloudStack dummy node

Country Status (1)

Country Link
CN (1) CN103167034B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106844000A (en) * 2016-12-21 2017-06-13 北京大学 Using the method and apparatus of browser access linux container cluster under a kind of multi-user environment

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10608873B2 (en) 2013-08-08 2020-03-31 Telefonaktiebolaget Lm Ericsson (Publ) Methods and devices for media processing in distributed cloud
CN103473113B (en) * 2013-09-04 2017-02-08 国云科技股份有限公司 Universal virtual-machine adopting method
CN104572412A (en) * 2013-10-29 2015-04-29 鸿富锦精密工业(深圳)有限公司 Method and system for making startup time statistics of virtual machines
CN104378264B (en) * 2014-12-12 2017-09-15 武汉噢易云计算股份有限公司 A kind of virtual machine process flux monitoring method based on sFlow
CN104484221A (en) * 2014-12-30 2015-04-01 北京天云融创软件技术有限公司 Method for taking over existing vCenter cluster by CloudStack
CN105634998B (en) * 2016-03-30 2020-04-10 中国联合网络通信集团有限公司 Method and system for unified monitoring of physical machine and virtual machine in multi-tenant environment
CN107391350A (en) * 2017-07-28 2017-11-24 郑州云海信息技术有限公司 A kind of display methods for monitoring view, apparatus and system
WO2019080011A1 (en) * 2017-10-25 2019-05-02 深圳市互盟科技股份有限公司 Cloudstack cloud platform-based method for monitoring virtual machine

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102646062A (en) * 2012-03-20 2012-08-22 广东电子工业研究院有限公司 Flexible capacity enlargement method for cloud computing platform based application clusters
CN102932326A (en) * 2012-09-19 2013-02-13 无锡华御信息技术有限公司 Safety cloud computing system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102646062A (en) * 2012-03-20 2012-08-22 广东电子工业研究院有限公司 Flexible capacity enlargement method for cloud computing platform based application clusters
CN102932326A (en) * 2012-09-19 2013-02-13 无锡华御信息技术有限公司 Safety cloud computing system

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Research and application of migrating legacy systems to the private cloud platform with cloudstack;Bin Cai, Feng Xu, Feng Ye,WenhuanZhou;《Automation and Logistics (ICAL), 2012 IEEE International Conference on》;20120817;全文 *
企业私有云平台构建技术研究;刘宇;《计算机时代》;20110602;全文 *
张栋;黄莹莹.基于Android平台的云计算旅游信息导航***设计.《电子世界》.2013,全文. *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106844000A (en) * 2016-12-21 2017-06-13 北京大学 Using the method and apparatus of browser access linux container cluster under a kind of multi-user environment

Also Published As

Publication number Publication date
CN103167034A (en) 2013-06-19

Similar Documents

Publication Publication Date Title
CN103167034B (en) Based on the construction method of the monitoring Agent of CloudStack dummy node
Moreno-Vozmediano et al. Key challenges in cloud computing: Enabling the future internet of services
WO2021203979A1 (en) Operation and maintenance processing method and apparatus, and computer device
CN105187512A (en) Method and system for load balancing of virtual machine clusters
JP2013171582A (en) Method for increasing number of configuration of virtual machine for server
US10027534B1 (en) Log management system and method for distributed computing systems
CN112948063B (en) Cloud platform creation method and device, cloud platform and cloud platform implementation system
CN103458020B (en) A kind of monitoring method and system of the cloud platform based on XCP
KR20150030332A (en) Distributed and parallel processing system on data and method of operating the same
CN109254922B (en) Automatic testing method and device for BMC Redfish function of server
CN102811239A (en) Virtual machine system and safety control method thereof
CN103309723B (en) Virtual machine resource integration and method
CN102929769A (en) Virtual machine internal-data acquisition method based on agency service
Pakin et al. Power usage of production supercomputers and production workloads
Pucher et al. Using trustworthy simulation to engineer cloud schedulers
CN103399791A (en) Method and device for migrating virtual machines on basis of cloud computing
CN103152416A (en) Dynamic management method for improving high availability of online clustering group
KR20130099424A (en) Method and system on triggering using monitoring metric for cloud computing resource management
Islam et al. Distributed temperature-aware resource management in virtualized data center
Carrega et al. OpenStack extensions for QoS and energy efficiency in edge computing
US20150178120A1 (en) Method And System For Estimating Power Consumption For Aggregate System Workload
JP6040894B2 (en) Log generation apparatus and log generation method
KR20160032881A (en) Cloud based intelligent power control system
CN106959885A (en) A kind of virtual machine High Availabitity realizes system and its implementation
CN112073499A (en) Dynamic service method of multi-machine type cloud physical server

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant