File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -237,11 +237,15 @@ 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. HOT_SPARE: Restarts the replicas for a role as long as quorum (min_replicas)
241
+ is not violated using extra hosts as spares. It does not really support
242
+ elasticity and just uses the delta between num_replicas and min_replicas
243
+ as spares (EXPERIMENTAL).
241
244
"""
242
245
243
246
REPLICA = "REPLICA"
244
247
APPLICATION = "APPLICATION"
248
+ HOT_SPARE = "HOT_SPARE"
245
249
246
250
247
251
class MountType (str , Enum ):
@@ -340,6 +344,8 @@ class Role:
340
344
and num_replicas depending on the cluster resources and
341
345
policies. If the scheduler doesn't support auto scaling this
342
346
field is ignored and the job size will be num_replicas.
347
+ EXPERIMENTAL: For HOT_SPARE restart policy this field is used to
348
+ indicate the quorum required for the job to run.
343
349
max_retries: max number of retries before giving up
344
350
retry_policy: retry behavior upon replica failures
345
351
resource: Resource requirement for the role. The role should be scheduled
You can’t perform that action at this time.
0 commit comments