CN106126333A - Subprocess maintaining method under a kind of cloud computing environment - Google Patents
Subprocess maintaining method under a kind of cloud computing environment Download PDFInfo
- Publication number
- CN106126333A CN106126333A CN201610508661.4A CN201610508661A CN106126333A CN 106126333 A CN106126333 A CN 106126333A CN 201610508661 A CN201610508661 A CN 201610508661A CN 106126333 A CN106126333 A CN 106126333A
- Authority
- CN
- China
- Prior art keywords
- subprocess
- cloud computing
- node
- computing environment
- maps
- 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.)
- Withdrawn
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
- G06F9/485—Task life-cycle, e.g. stopping, restarting, resuming execution
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The present invention relates to cloud computing management technique field, particularly relate to subprocess maintaining method under a kind of cloud computing environment.After first the present invention manages node and realizes node processes startup, registration closedown process hook, it is used for processing subprocess;Then subprocess produces and records to subprocess Maps, removes Maps during destruction;When then managing node and realize node processes by closing, first call hook thread;Finally perform hook thread, close all record subprocess inside subprocess Maps.The method maintainability of the present invention is good, when host process is closed, can preferentially close all subprocess, it is adaptable to the order that the time that performs in cloud computing environment is longer.
Description
Technical field
The present invention relates to cloud computing management technique field, particularly relate to subprocess maintaining method under a kind of cloud computing environment.
Background technology
In cloud computing solution, management node is deposited realizing node (calculating node, memory node, network node etc.)
Control work in substantial amounts of order, especially realize the end operational order for underlying virtual.Generally for realizing program
Loose coupling, be to separate for the operational order of bottom and the program of management end, it is achieved hold and the order of bottom is only responsible for
Calling, underlying operating system is responsible for execution, and returns result.But times longer order is performed for some, such as copy
Mirror image, the transmission operation such as file, packing, it is impossible to by realizing end and interrupt it, cancels operation, such as closedown realizes end and enters
Cheng Shi, being currently executing in theory of task also should close, and returns and perform failure.Can only lead to for this kind of situation at present
Cross underlying operating system execution related command and carry out the maintenance work of correlator process, so suffer from the drawback that
1, be that maintainability is poor, need to enter each calculating node and check the subprocess needing to stop, it is possible to finding time
Wait subprocess to have performed;
2, dangerous, easily produce zombie process, close owing to maintenance needs when realizing end host process, held by realizing end
The order subprocess of row likely becomes zombie process, thus the system that affects normally uses;
In order to from truly realizing the Rational Maintenance of subprocess under cloud computing environment, need one when management node
Or realize the maintenance mechanism that when node processes is closed, subprocess is automatically switched off.
Summary of the invention
Present invention solves the technical problem that and be to provide subprocess maintaining method under a kind of cloud computing environment, solve tradition side
The deficiency that method exists, provides a kind of maintainability high for subprocess under cloud computing environment, the solution that safety is good.
It is to comprise the following steps that the present invention solves the technical scheme of the problems referred to above:
Described method comprises the steps:
Step 1: after managing node and realizing node processes startup, registration closedown process hook, it is used for processing subprocess;
Step 2: subprocess produces and records to subprocess Maps, removes Maps during destruction;
Step 3: when managing node and realize node processes by closing, first call hook thread;
Step 4: perform hook thread, close all record subprocess inside subprocess Maps.
Described management node is the management module in cloud computing solution respectively with realizing node and realizes module;
Described management module refers to be responsible for generation task, transmission task, reception task feedback in cloud computing solution
Service control management module, this module is only responsible for generation task, and irresponsibility is pragmatic existing;
The described module that realizes is to be responsible for consumption task, the business function module that task realizes in cloud computing solution.
Described process hook, is Runtime.addShutdownHook method in JAVA, is used for increasing in jvm one
The hook of individual closedown;When program normally exits, system calls System.exit method or virtual machine just can perform to add when being closed
The shutdownHook thread added;Wherein shutdownHook is one and has initialized but do not have the thread of startup, when JVM closes
The when of closing, all hooks added by method addShutdownHook that can be the most configured in execution system, when system is held
Having gone after these hooks, JVM just can close.
Described subprocess produces and records to subprocess Maps, removes Maps during destruction;
Described subprocess, is that under cloud computing environment, some by management node or realize the bottom operation life that node is initiated
Order, the subprocess of generation;
Described process Maps, is primarily adapted for use in the id of the information table recording all subprocess, such as subprocess, title,
Content etc..
The method maintainability of the present invention is good, when host process is closed, can preferentially close all subprocess, it is adaptable to cloud computing ring
The order that the time that performs in border is longer.The method security of the present invention is high, it is to avoid owing to host process is closed, and cause subprocess
Become the risk of zombie process, improve the stability of system, reduce the long-time terminate-and-stay-resident of subprocess, cause JVM virtual machine
Crash or the high risk of Installed System Memory utilization rate.
Accompanying drawing explanation
The present invention is further described below in conjunction with the accompanying drawings:
Fig. 1 is the flow chart of the present invention;
Fig. 2 is the technical schematic diagram of the present invention;
Detailed description of the invention
As shown in Figure 1, 2, essential core of the present invention is to be linked up with by process to realize, and specific implementation process is as follows:
1, after managing node and realizing node processes startup, registration closedown process hook, it is used for processing subprocess;
AddShutdownHook (Thread hook) method of Runtime object registers new virtual machine to close extension
Hook.Hook thread realizes environment cleaning work.
2, subprocess produces and records to subprocess Maps, removes Maps during destruction;
When 3, managing node and realize node processes by closing, first call hook thread;
4, perform hook thread, close all record subprocess inside subprocess Maps.
When such as establishment virtual machine does not carry out mirror image cache, automatically can be mirrored to cache catalogue by copy.At copy
During, realizing end process id by kill, ctrl+C is when cancelling, relevant dd process disappears.
Claims (5)
1. subprocess maintaining method under a cloud computing environment, it is characterised in that: described method comprises the steps:
Step 1: after managing node and realizing node processes startup, registration closedown process hook, it is used for processing subprocess;
Step 2: subprocess produces and records to subprocess Maps, removes Maps during destruction;
Step 3: when managing node and realize node processes by closing, first call hook thread;
Step 4: perform hook thread, close all record subprocess inside subprocess Maps.
Subprocess maintaining method under a kind of cloud computing environment the most according to claim 1, it is characterised in that:
Described management node is the management module in cloud computing solution respectively with realizing node and realizes module;
Described management module refers to be responsible for generation task, transmission task, the industry of reception task feedback in cloud computing solution
Business controls management module, and this module is only responsible for generation task, and irresponsibility is pragmatic existing;
The described module that realizes is to be responsible for consumption task, the business function module that task realizes in cloud computing solution.
Subprocess maintaining method under a kind of cloud computing environment the most according to claim 1, it is characterised in that:
Described process hook, is Runtime.addShutdownHook method in JAVA, is used for increasing a pass in jvm
The hook closed;When program normally exits, system calls System.exit method or virtual machine just can perform interpolation when being closed
ShutdownHook thread;Wherein shutdownHook is an own initialization but does not have the thread of startup, when JVM closedown
Time, all hooks added by method addShutdownHook that can be the most configured in execution system, when system has performed
After these hooks, JVM just can close.
Subprocess maintaining method under a kind of cloud computing environment the most according to claim 2, it is characterised in that:
Described process hook, is Runtime.addShutdownHook method in JAVA, is used for increasing a pass in jvm
The hook closed;When program normally exits, system calls System.exit method or virtual machine just can perform interpolation when being closed
ShutdownHook thread;Wherein shutdownHook is an own initialization but does not have the thread of startup, when JVM closedown
Time, all hooks added by method addShutdownHook that can be the most configured in execution system, when system has performed
After these hooks, JVM just can close.
5. according to subprocess maintaining method under a kind of cloud computing environment described in claim 1,2,3 or 4, it is characterised in that: institute
The subprocess stated produces and records to subprocess Maps, removes Maps during destruction;
Described subprocess, is that under cloud computing environment, some by management node or realize the bottom operation order that node is initiated,
The subprocess produced;
Described process Maps, is primarily adapted for use in the id of the information table recording all subprocess, such as subprocess, title, content
Deng.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610508661.4A CN106126333A (en) | 2016-06-30 | 2016-06-30 | Subprocess maintaining method under a kind of cloud computing environment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610508661.4A CN106126333A (en) | 2016-06-30 | 2016-06-30 | Subprocess maintaining method under a kind of cloud computing environment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106126333A true CN106126333A (en) | 2016-11-16 |
Family
ID=57468777
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610508661.4A Withdrawn CN106126333A (en) | 2016-06-30 | 2016-06-30 | Subprocess maintaining method under a kind of cloud computing environment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106126333A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108196956A (en) * | 2017-12-28 | 2018-06-22 | 郑州云海信息技术有限公司 | A kind of NAS service nodes realize the method and system of NAS services |
CN109254828A (en) * | 2018-08-28 | 2019-01-22 | 四川爱创科技有限公司 | The method of JVM Safe withdrawing |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105718307A (en) * | 2014-12-01 | 2016-06-29 | 北京神州泰岳软件股份有限公司 | Process management method and process management device |
-
2016
- 2016-06-30 CN CN201610508661.4A patent/CN106126333A/en not_active Withdrawn
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105718307A (en) * | 2014-12-01 | 2016-06-29 | 北京神州泰岳软件股份有限公司 | Process management method and process management device |
Non-Patent Citations (2)
Title |
---|
汪承佳: ""基于Java源代码的动态监测技术研究"", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
结城 浩: "《Java多线程设计模式》", 30 April 2005, 中国铁道出版社 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108196956A (en) * | 2017-12-28 | 2018-06-22 | 郑州云海信息技术有限公司 | A kind of NAS service nodes realize the method and system of NAS services |
CN109254828A (en) * | 2018-08-28 | 2019-01-22 | 四川爱创科技有限公司 | The method of JVM Safe withdrawing |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8656397B2 (en) | Migrating groups of threads across NUMA nodes based on remote page access frequency | |
RU2429530C2 (en) | Managing state of allocated hardware in virtual machines | |
US10180899B2 (en) | Device for automatically generating test cases for embedded software using symbolic and concrete execution | |
JP2010108211A5 (en) | ||
AU2013207906B2 (en) | Fault tolerance for complex distributed computing operations | |
CN105760237B (en) | A kind of means of communication based on association's journey mechanism | |
CN102629906A (en) | Design method for improving cluster business availability by using cluster management node as two computers | |
CN105095094A (en) | Memory management method and equipment | |
CN204795119U (en) | Official working management system based on cloud desktop technique | |
US8793439B2 (en) | Accelerating memory operations using virtualization information | |
CN103065086A (en) | Distributed intrusion detection system and method applied to dynamic virtualization environment | |
CN104123194A (en) | Communication structure and method for kernel mode and user mode | |
CN111162941A (en) | Method for automatically managing virtual IP (Internet protocol) in Kubernetes environment | |
CN106331065A (en) | Proxy application for host system with service container and system | |
US20150112934A1 (en) | Parallel scanners for log based replication | |
CN106126333A (en) | Subprocess maintaining method under a kind of cloud computing environment | |
KR20110083084A (en) | Apparatus and method for operating server by using virtualization technology | |
CN103116627A (en) | Database access method with high concurrency service-oriented architecture (SOA) technology and system | |
CN102457578A (en) | Distributed network monitoring method based on event mechanism | |
WO2011012003A1 (en) | Method and system for controlling service based on service componentized application software | |
US8977752B2 (en) | Event-based dynamic resource provisioning | |
CN107528871A (en) | Data analysis in storage system | |
CN105630556B (en) | A kind of method and system loading resource | |
CN109063516B (en) | Data processor | |
CN102737198A (en) | Method and device for object protection |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20161116 |
|
WW01 | Invention patent application withdrawn after publication |