turboFei commented on code in PR #2295:
URL: https://github.com/apache/incubator-kyuubi/pull/2295#discussion_r846055292


##########
docs/deployment/engine_lifecycle.md:
##########
@@ -60,6 +62,17 @@ The above two configurations can be used together to set the 
TTL of engines.
 These configurations are user-facing and able to use in JDBC urls.
 Note that, for [connection](engine_share_level.html#connection) share level 
engines that will be terminated at once when the connection is disconnected, 
these configurations not necessarily work in this case.
 
+### Engine max lifetime
+| Key                                          | Default                       
                                                 | Meaning                      
                                                                                
                                                                                
                 | Type                                    | Since              
                  |
+|----------------------------------------------|--------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------|--------------------------------------|
+| kyuubi\.session\.engine<br>\.spark\.max\.lifetime | <div style='width: 
65pt;word-wrap: break-word;white-space: normal'>PT0s</div>  | <div 
style='width: 170pt;word-wrap: break-word;white-space: normal'>Max lifetime for 
spark engine, the engine will self-terminate when it reaches the end of life. 0 
or negative means not to self-terminate.</div>                                  
                                                             | <div 
style='width: 30pt'>duration</div> | <div style='width: 20pt'>1.6.0</div> |
+
+The max lifetime configuration only applies to spark engine currently.<br>
+For some use case, we might need restart the spark engine periodically. For 
example, to load the latest UDFs and jars.<br>
+If the spark engine has been running for a specified time, it need to 
deregister itself from engine discovery space(such as zookeeper) so that it 
will not receive new request. 
+Then it will wait the current connection to close, and terminate itself.

Review Comment:
   move to `### Engine TTL` part?
   
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to