You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@livy.apache.org by GitBox <gi...@apache.org> on 2020/01/21 03:16:57 UTC

[GitHub] [incubator-livy] jerryshao commented on a change in pull request #276: [LIVY-723] Server Registration

jerryshao commented on a change in pull request #276: [LIVY-723] Server Registration
URL: https://github.com/apache/incubator-livy/pull/276#discussion_r368779788
 
 

 ##########
 File path: server/src/main/scala/org/apache/livy/LivyConf.scala
 ##########
 @@ -186,6 +186,22 @@ object LivyConf {
    */
   val RECOVERY_MODE = Entry("livy.server.recovery.mode", "off")
 
+  /**
+   * HA mode of Livy. Possible values:
+   * 1. null: Default. livy will use the value of livy.server.recovery.mode
+   * 2. off: Turn off recovery. Every time Livy shuts down, it stops and forgets all sessions.
+   * 3. recovery: Livy persists session info to the state store. When Livy restarts, it recovers
+   *              previous sessions from the state store.
+   *              Must set livy.server.recovery.state-store and
+   *              livy.server.recovery.state-store.url to configure the state store.
+   * 4. multi-active: HA with multi-active mode.
+   */
+  val HA_MODE = Entry("livy.server.ha.mode", HA_MODE_OFF)
+  val HA_MODE_OFF = "off"
+  val HA_MODE_RECOVERY = "recovery"
+  val HA_MODE_MULTI_ACTIVE = "multi-active"
+
+
 
 Review comment:
   nit: additional line.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services