github.com/gocrane/crane@v0.11.0/examples/tsp-workload-resource-dsp.yaml (about)

     1  apiVersion: prediction.crane.io/v1alpha1
     2  kind: TimeSeriesPrediction
     3  metadata:
     4    name: workload-resource-dsp
     5    namespace: default
     6  spec:
     7    targetRef:
     8      kind: Deployment
     9      name: dep-1-100m-500mib
    10      namespace: default
    11      apiVersion: apps/v1
    12    predictionWindowSeconds: 3600
    13    predictionMetrics:
    14      - resourceIdentifier: workload-cpu
    15        type: ResourceQuery
    16        resourceQuery: cpu
    17        algorithm:
    18          algorithmType: "dsp"
    19          dsp:
    20            sampleInterval: "60s"
    21            historyLength: "3d"
    22            estimators:
    23              fft:
    24                - marginFraction: "0.2"
    25                  lowAmplitudeThreshold: "1.0"
    26                  highFrequencyThreshold: "0.05"
    27                  minNumOfSpectrumItems: 10
    28                  maxNumOfSpectrumItems: 20
    29      - resourceIdentifier: workload-mem
    30        type: ResourceQuery
    31        resourceQuery: memory
    32        algorithm:
    33          algorithmType: "dsp"
    34          dsp:
    35            sampleInterval: "60s"
    36            historyLength: "3d"
    37            estimators:
    38              fft:
    39                - marginFraction: "0.2"
    40                  lowAmplitudeThreshold: "1.0"
    41                  highFrequencyThreshold: "0.05"
    42                  minNumOfSpectrumItems: 10
    43                  maxNumOfSpectrumItems: 20