Skip to content

Commit

Permalink
Document memory autotuning strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
crezvoy committed Oct 6, 2023
1 parent c21d849 commit e488853
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion api/services/ocean/spark/schemas/oceanSparkApplicationSpec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,8 @@ components:
type: object
memory:
oneOf:
- $ref: '#/components/schemas/OOMRecoveryStrategy'
- $ref: '#/components/schemas/MemoryAutotuningStrategy'
- $ref: '#/components/schemas/AutotuningStrategy'
- $ref: '#/components/schemas/StaticMemoryString'
memoryOverhead:
title: Memoryoverhead
Expand Down Expand Up @@ -1243,6 +1244,35 @@ components:
type: string
required:
- strategy
MemoryAutotuningStrategy:
description: Memory allocation strategy that automatically increments the
memory when a previous app failed with a OOM, and decreases it based on
past applications memory usage
properties:
strategy:
type: string
title: autotuning
enum: [autotuning]
description: Automatically increase memory if a previous app failed with an OOM error, and decrease it based on
past applications memory usage
scalingFactor:
title: scalingFactor
description: Memory multiplier after an OOM failure. Optional, defaults to 2.0
type: number
maxMemory:
title: maxMemory
description: Optional, maximum allocatable memory
type: string
historySize:
title: historySize
description: Number of past apps to take into account to compute the recommended memory, defaults to 6
type: integer
marginRatio:
title: marginRatio
description: Additional safety margin on top of the recommended memory, defaults to 0.1
type: number
required:
- strategy

PersistentVolumeClaimVolumeSource:
properties:
Expand Down

0 comments on commit e488853

Please sign in to comment.