Repository: zeppelin
Updated Branches:
  refs/heads/master 2674291d6 -> d925e052a


[Doc] Doc for LifecycleManager

### What is this PR for?
Documentation for LifecycleManager

### What type of PR is it?
[ Documentation ]

### Questions:
* Does the licenses files need update? No
* Is there breaking changes for older versions? No
* Does this needs documentation? No

Author: Jeff Zhang <zjf...@apache.org>

Closes #2644 from zjffdu/Doc_Lifecycle and squashes the following commits:

5aa0c16 [Jeff Zhang] [Doc] Doc for LifecycleManager


Project: http://git-wip-us.apache.org/repos/asf/zeppelin/repo
Commit: http://git-wip-us.apache.org/repos/asf/zeppelin/commit/d925e052
Tree: http://git-wip-us.apache.org/repos/asf/zeppelin/tree/d925e052
Diff: http://git-wip-us.apache.org/repos/asf/zeppelin/diff/d925e052

Branch: refs/heads/master
Commit: d925e052adb5ef40129ec8a878f48b14de09683c
Parents: 2674291
Author: Jeff Zhang <zjf...@apache.org>
Authored: Thu Nov 2 11:37:41 2017 +0800
Committer: Jeff Zhang <zjf...@apache.org>
Committed: Mon Nov 6 18:26:53 2017 +0800

----------------------------------------------------------------------
 docs/usage/interpreter/overview.md | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/zeppelin/blob/d925e052/docs/usage/interpreter/overview.md
----------------------------------------------------------------------
diff --git a/docs/usage/interpreter/overview.md 
b/docs/usage/interpreter/overview.md
index dc93b4f..ee0c4d7 100644
--- a/docs/usage/interpreter/overview.md
+++ b/docs/usage/interpreter/overview.md
@@ -123,3 +123,11 @@ Snippet of code (language of interpreter) that executes 
after initialization of
 <img 
src="{{BASE_PATH}}/assets/themes/zeppelin/img/screenshots/interpreter_precode.png"
 width="800px">
 
  
+## Interpreter Lifecycle Management
+
+Before 0.8.0, Zeppelin don't have lifecycle management on interpreter. User 
have to shutdown interpreters explicitly via UI. Starting from 0.8.0, Zeppelin 
provides a new interface
+`LifecycleManager` to control the lifecycle of interpreters. For now, there're 
2 implementations: `NullLifecycleManager` and `TimeoutLifecycleManager` which 
is default. 
+
+`NullLifecycleManager` will do nothing,
+user need to control the lifecycle of interpreter by themselves as before. 
`TimeoutLifecycleManager` will shutdown interpreters after interpreter idle for 
a while. By default, the idle threshold is 1 hour.
+User can change it via 
`zeppelin.interpreter.lifecyclemanager.timeout.threshold`. 
`TimeoutLifecycleManager` is the default lifecycle manager, user can change it 
via `zeppelin.interpreter.lifecyclemanager.class`.

Reply via email to