CN109947576A - A kind of method of virtual machine internal broker program management - Google Patents
A kind of method of virtual machine internal broker program management Download PDFInfo
- Publication number
- CN109947576A CN109947576A CN201711399338.9A CN201711399338A CN109947576A CN 109947576 A CN109947576 A CN 109947576A CN 201711399338 A CN201711399338 A CN 201711399338A CN 109947576 A CN109947576 A CN 109947576A
- Authority
- CN
- China
- Prior art keywords
- subprocess
- virtual machine
- parent process
- program
- machine internal
- 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.)
- Granted
Links
Landscapes
- Stored Programmes (AREA)
Abstract
The present invention relates to a kind of methods of virtual machine internal broker program management, after service routine starting, parent process and subprocess distinguish independent operating on a virtual machine, parent process is monitored subprocess using heartbeat mechanism, parent process does not receive the heartbeat message of subprocess within the set time, then it is assumed that subprocess has occurred leading often, parent process reboot operation subprocess, in the absence of parent process finds subprocess, parent process starts a new subprocess to provide service;When service routine is unable to response external PROGRAMMED REQUESTS, external program interrupt communication management, subprocess triggering is restarted, and realizes reboot operation;Subprocess is in a manner of repeating query or event methods detect the connection state information of external program and itself, if judgement connection is abnormal, subprocess is exited self, realizes reboot operation.External program of the present invention is not by entering the mode inside guest virtual machine, to realize the management to virtual machine internal broker program;Virtual machine own physical resource is saved, the speed of service of virtual machine is improved, and ensures reliability of operation.
Description
Technical field
The present invention relates to a kind of method of virtual machine program management more particularly to a kind of virtual machine internal broker program management
Method.
Background technique
Virtual machine is common computer technology, for the management and monitoring of virtual machine operation, generallys use external program reality
When the mode that monitors, need to expend virtual machine own physical resource, and influence the speed of service of virtual machine.
Summary of the invention
In view of the above-mentioned problems, a kind of method that the present invention proposes virtual machine internal broker program management, service routine starting
Afterwards, independent operating, parent process are monitored subprocess using heartbeat mechanism on a virtual machine respectively for parent process and subprocess,
Parent process does not receive the heartbeat message of subprocess in setting time, then it is assumed that leading often has occurred in subprocess, and parent process restarts behaviour
Make subprocess, in the absence of parent process finds subprocess, parent process starts a new subprocess to provide service;Service routine
When being unable to response external PROGRAMMED REQUESTS, external program interrupt communication management, subprocess triggering is restarted, and realizes reboot operation;Son into
Journey is in a manner of repeating query or event methods detect the connection state information of external program and itself, if judgement connection is abnormal, subprocess
Self is exited, and realizes reboot operation.
Subprocess is communicated, upgrade procedure with subprocess by establishing by read-write character device with client process
Connection obtains current internal program version, and when confirmation needs updating operation, new version is transmitted in virtual machine by upgrade procedure
Portion, and in the upgrading of virtual machine internal completion code program.
Heartbeat mechanism can carry out communication response by setting time by parent process and subprocess and realize.
Technical solution of the present invention realize the utility model has the advantages that
External program is not by entering guest virtual machine internal type, to realize the pipe to virtual machine internal broker program
Reason;Virtual machine own physical resource is saved, the speed of service of virtual machine is improved, and ensures reliability of operation.
Detailed description of the invention
Fig. 1 is a kind of flow chart of the method for virtual machine internal broker program management of the present invention.
Specific embodiment
In the following with reference to the drawings and specific embodiments, the present invention is further explained, and the embodiment of the present invention is only to illustrate this hair
The protection scope that bright technical solution is not intended to limit the present invention.
Such as a kind of method that Fig. 1, the present invention propose virtual machine internal broker program management, after service routine starting, father into
Independent operating, parent process are monitored subprocess using heartbeat mechanism on a virtual machine respectively for journey and subprocess, in setting
Interior parent process does not receive the heartbeat message of subprocess, then it is assumed that subprocess has occurred leading often, parent process reboot operation into
Journey, in the absence of parent process finds subprocess, parent process starts a new subprocess to provide service.Heartbeat mechanism can lead to
It crosses parent process and subprocess and carries out communication response realization by setting time.
The broker program of client internal acts on service routine, when service routine is unable to the request of response external program,
Virtual machine internal can not just be managed accordingly at this time.Therefore corresponding mechanism is needed to guarantee do not logging in client computer
In the case of, to realize the reboot operation to agent process.So when service routine is unable to response external PROGRAMMED REQUESTS, external program
Communication management is interrupted, subprocess triggering is restarted, and realizes reboot operation.
In addition subprocess is in a manner of repeating query or event methods detect the connection state information of external program and itself, if judgement
Connection is abnormal, and subprocess exits self, realizes reboot operation.
Subprocess is communicated, upgrade procedure with subprocess by establishing by read-write character device with client process
Connection obtains current internal program version, and when confirmation needs updating operation, new version is transmitted in virtual machine by upgrade procedure
Portion, and in the upgrading of virtual machine internal completion code program, realization does not depend on network auto-upgrade program.
By entering the mode inside guest virtual machine, not realize the management to virtual machine internal broker program.
Claims (3)
1. a kind of method of virtual machine internal broker program management, it is characterised in that service routine starting after, parent process and son into
Independent operating, the parent process are monitored the subprocess using heartbeat mechanism journey on a virtual machine respectively, in setting
The interior parent process does not receive the heartbeat message of the subprocess, then it is assumed that the subprocess has occurred leading often, the father
Subprocess described in process reboot operation;In the absence of the parent process finds the subprocess, the parent process starts one newly
Subprocess the service is provided;
When the service routine is unable to response external PROGRAMMED REQUESTS, the external program interrupt communication management, the subprocess touching
Hair is restarted, and realizes the reboot operation;
The subprocess is in a manner of repeating query or event methods detect the connection state information of external program and itself, if judgement connection
Abnormal, the subprocess exits self, realizes the reboot operation.
2. the method for virtual machine internal broker program management according to claim 1, feature pass through in the subprocess
Character device is read and write, is communicated with client process, upgrade procedure is obtained in current by establishing connection with the subprocess
Portion's program version, when confirmation needs updating operation, new version is transmitted to the virtual machine internal by the upgrade procedure, and in institute
State the upgrading of virtual machine internal completion code program.
3. the method for virtual machine internal broker program management according to claim 1, it is characterised in that the heartbeat mechanism
Communication response can be carried out by setting time by the parent process and the subprocess to realize.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711399338.9A CN109947576B (en) | 2017-12-21 | 2017-12-21 | Method for managing internal agent program of virtual machine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711399338.9A CN109947576B (en) | 2017-12-21 | 2017-12-21 | Method for managing internal agent program of virtual machine |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109947576A true CN109947576A (en) | 2019-06-28 |
CN109947576B CN109947576B (en) | 2022-12-06 |
Family
ID=67006209
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711399338.9A Active CN109947576B (en) | 2017-12-21 | 2017-12-21 | Method for managing internal agent program of virtual machine |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109947576B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113535446A (en) * | 2021-06-29 | 2021-10-22 | 中国人民解放军战略支援部队信息工程大学 | Process bidirectional daemon method and system for service data protection during line access |
CN113778998A (en) * | 2021-09-28 | 2021-12-10 | 北京安华金和科技有限公司 | Database proxy fault prevention processing method and device |
CN115190052A (en) * | 2022-07-12 | 2022-10-14 | 中国工商银行股份有限公司 | Long connection management method, system and control unit |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1477509A (en) * | 2002-08-19 | 2004-02-25 | 万达信息股份有限公司 | Process automatic restoring method |
US20080022281A1 (en) * | 2006-07-19 | 2008-01-24 | Microsoft Corporation | Trusted communications with child processes |
US20100138898A1 (en) * | 2008-11-28 | 2010-06-03 | International Business Machines Corporation | Method for activating virtual machine, apparatus for simulating computing device and supervising device |
JP2011198027A (en) * | 2010-03-19 | 2011-10-06 | Fujitsu Ltd | Virtual machine system and virtual machine management method |
CN103092675A (en) * | 2012-12-24 | 2013-05-08 | 北京伸得纬科技有限公司 | Virtual environment construction method |
CN103365702A (en) * | 2013-07-11 | 2013-10-23 | 中国科学院合肥物质科学研究院 | System and method for tracking process of lightweight virtual machine under IaaS cloud environment |
CN104331327A (en) * | 2014-12-02 | 2015-02-04 | 山东乾云启创信息科技有限公司 | Optimization method and optimization system for task scheduling in large-scale virtualization environment |
CN104573506A (en) * | 2015-01-06 | 2015-04-29 | 中国科学院信息工程研究所 | Virtual machine based real-time monitoring method and device for process behavior |
US20150278515A1 (en) * | 2014-03-27 | 2015-10-01 | International Business Machines Corporation | Monitoring an application in a process virtual machine |
CN105589757A (en) * | 2014-10-23 | 2016-05-18 | 上海天脉聚源文化传媒有限公司 | Method for protecting working process in server framework and server |
CN106528370A (en) * | 2016-10-25 | 2017-03-22 | 济南浪潮高新科技投资发展有限公司 | Virtual machine state monitoring realized in virtualized layer |
CN106648870A (en) * | 2016-12-28 | 2017-05-10 | 北京奇虎科技有限公司 | Service restarting method and device |
CN107193577A (en) * | 2016-03-15 | 2017-09-22 | 阿里巴巴集团控股有限公司 | One kind application startup method, device and intelligent terminal |
CN107480005A (en) * | 2017-07-31 | 2017-12-15 | 惠州华阳通用电子有限公司 | A kind of linux system process guard method |
-
2017
- 2017-12-21 CN CN201711399338.9A patent/CN109947576B/en active Active
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1477509A (en) * | 2002-08-19 | 2004-02-25 | 万达信息股份有限公司 | Process automatic restoring method |
US20080022281A1 (en) * | 2006-07-19 | 2008-01-24 | Microsoft Corporation | Trusted communications with child processes |
US20100138898A1 (en) * | 2008-11-28 | 2010-06-03 | International Business Machines Corporation | Method for activating virtual machine, apparatus for simulating computing device and supervising device |
JP2011198027A (en) * | 2010-03-19 | 2011-10-06 | Fujitsu Ltd | Virtual machine system and virtual machine management method |
CN103092675A (en) * | 2012-12-24 | 2013-05-08 | 北京伸得纬科技有限公司 | Virtual environment construction method |
CN103365702A (en) * | 2013-07-11 | 2013-10-23 | 中国科学院合肥物质科学研究院 | System and method for tracking process of lightweight virtual machine under IaaS cloud environment |
US20150278515A1 (en) * | 2014-03-27 | 2015-10-01 | International Business Machines Corporation | Monitoring an application in a process virtual machine |
CN105589757A (en) * | 2014-10-23 | 2016-05-18 | 上海天脉聚源文化传媒有限公司 | Method for protecting working process in server framework and server |
CN104331327A (en) * | 2014-12-02 | 2015-02-04 | 山东乾云启创信息科技有限公司 | Optimization method and optimization system for task scheduling in large-scale virtualization environment |
CN104573506A (en) * | 2015-01-06 | 2015-04-29 | 中国科学院信息工程研究所 | Virtual machine based real-time monitoring method and device for process behavior |
CN107193577A (en) * | 2016-03-15 | 2017-09-22 | 阿里巴巴集团控股有限公司 | One kind application startup method, device and intelligent terminal |
CN106528370A (en) * | 2016-10-25 | 2017-03-22 | 济南浪潮高新科技投资发展有限公司 | Virtual machine state monitoring realized in virtualized layer |
CN106648870A (en) * | 2016-12-28 | 2017-05-10 | 北京奇虎科技有限公司 | Service restarting method and device |
CN107480005A (en) * | 2017-07-31 | 2017-12-15 | 惠州华阳通用电子有限公司 | A kind of linux system process guard method |
Non-Patent Citations (3)
Title |
---|
AKIHIRO NAKAO ET AL: "CoreLab: an emerging network testbed employing hosted virtual machine monitor", 《CONEXT "08: PROCEEDINGS OF THE 2008 ACM CONEXT CONFERENCE》 * |
郑俊芳: "虚拟机环境下层次化的进程隔离管理", 《中国优秀硕士学位论文全文数据库》 * |
陈兴蜀等: "基于KVM的Windows虚拟机用户进程防护", 《电子科技大学学报》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113535446A (en) * | 2021-06-29 | 2021-10-22 | 中国人民解放军战略支援部队信息工程大学 | Process bidirectional daemon method and system for service data protection during line access |
CN113778998A (en) * | 2021-09-28 | 2021-12-10 | 北京安华金和科技有限公司 | Database proxy fault prevention processing method and device |
CN115190052A (en) * | 2022-07-12 | 2022-10-14 | 中国工商银行股份有限公司 | Long connection management method, system and control unit |
CN115190052B (en) * | 2022-07-12 | 2024-02-02 | 中国工商银行股份有限公司 | Management method, system and control unit for long connection |
Also Published As
Publication number | Publication date |
---|---|
CN109947576B (en) | 2022-12-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20220179646A1 (en) | Detecting anomalies online using controller processing activity | |
CN104360878B (en) | A kind of method and device of application software deployment | |
US8863109B2 (en) | Updating secure pre-boot firmware in a computing system in real-time | |
EP2909723B1 (en) | Smart error recovery for database applications | |
US10848839B2 (en) | Out-of-band telemetry data collection | |
EP3391634B1 (en) | Electronic device and method for controlling application and component | |
CN103201724A (en) | Providing application high availability in highly-available virtual machine environments | |
US20120054384A1 (en) | Methods, devices and communication systems for data card identification operating system | |
CN104185836A (en) | Method and system for verifying proper operation of computing device after system change | |
CN104205109A (en) | Persistent and resilient worker processes | |
CN106066803B (en) | application program operation control method and device | |
CN104737134A (en) | System and method for operating system agnostic hardware validation | |
US20120185776A1 (en) | Analyzing resource consumption of software executing during a usage scenario | |
WO2021190659A1 (en) | System data acquisition method and apparatus, and medium and electronic device | |
CN109947576A (en) | A kind of method of virtual machine internal broker program management | |
CN110457154A (en) | Exception service processing method and processing device, storage medium, communication terminal | |
CN113760332A (en) | Software upgrading method and electronic equipment | |
CN110704228A (en) | Solid state disk exception handling method and system | |
CN109783390A (en) | PSU firmware promotion and demotion stability test method, apparatus, terminal and storage medium | |
CN105740139A (en) | Virtual environment based embedded software debugging method | |
CN106021024B (en) | A kind of user terminal stops response reminding method and user terminal | |
US10572435B2 (en) | Techniques of accessing serial console of BMC using host serial port | |
US10742496B2 (en) | Platform specific configurations setup interface for service processor | |
CN110413310A (en) | Program upgrading method and terminal equipment | |
US10198275B2 (en) | Protecting firmware flashing from power operations |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |