Skip to content

Provide CloudEvents when workload(s) are scaling in/out #3526

Open
@tomkerkhove

Description

@tomkerkhove

Proposal

Event Types

  • keda.workload.scaling.scaleout.v1
  • keda.workload.scaling.scalein.v1

Payload:

{
    "specversion" : "1.0",
    "type" : "keda.workload.scaling.scaleout.v1",
    "subject" : "/{kubernetes-cluster-name}/{namespace}/workload/{resource-name}/",
    "time" : "2018-04-05T17:31:00Z",
    "datacontenttype" : "application/json",
    "data" : {
      "scaleTarget": {
         "name": "sample-workload",
         "apiVersion": "Deployment",
         "kind": "apps/v1",
      },
      "replicas": {
         "old": 1,
         "new": 4
      }
   }
}

Use-Case

Allow end-users to get notified when a workload is actively scaling out/in.

Anything else?

Given we rely on the HPA, we need to find a way to integrate with it to leverage this.

Relates to #479

Metadata

Metadata

Assignees

No one assigned

    Labels

    cloudeventsAll events related to CloudEvents to extend KEDAextensibilityAll issues related to extensibility of KEDAfeatureAll issues for new features that have been committed tooperations

    Type

    No type

    Projects

    Status

    To Do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions