File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -237,11 +237,13 @@ class RetryPolicy(str, Enum):
237
237
application to deal with failed replica departures and
238
238
replacement replica admittance.
239
239
2. APPLICATION: Restarts the entire application.
240
-
240
+ 3. APPLICATION_HOT_SPARE: Restarts the replicas for a role as long as quorum (min_replicas)
241
+ is not violated using extra hosts as spares. (EXPERIMENTAL)
241
242
"""
242
243
243
244
REPLICA = "REPLICA"
244
245
APPLICATION = "APPLICATION"
246
+ APPLICATION_HOT_SPARE = "APPLICATION_HOT_SPARE"
245
247
246
248
247
249
class MountType (str , Enum ):
@@ -340,6 +342,8 @@ class Role:
340
342
and num_replicas depending on the cluster resources and
341
343
policies. If the scheduler doesn't support auto scaling this
342
344
field is ignored and the job size will be num_replicas.
345
+ EXPERIMENTAL: For APPLICATION_HOT_SPARE restart policy this field is used to
346
+ indicate the quorum required for the job to run.
343
347
max_retries: max number of retries before giving up
344
348
retry_policy: retry behavior upon replica failures
345
349
resource: Resource requirement for the role. The role should be scheduled
You can’t perform that action at this time.
0 commit comments