livy-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [incubator-livy] yiheng commented on a change in pull request #276: [LIVY-723] Server Registration
Date Thu, 12 Mar 2020 10:21:35 GMT
yiheng commented on a change in pull request #276: [LIVY-723] Server Registration
URL: https://github.com/apache/incubator-livy/pull/276#discussion_r391523634
 
 

 ##########
 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:
   done

----------------------------------------------------------------
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

Mime
View raw message