Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide CloudEvent design proposal to extend KEDA #479

Closed
3 of 5 tasks
tomkerkhove opened this issue Nov 22, 2019 · 29 comments
Closed
3 of 5 tasks

Provide CloudEvent design proposal to extend KEDA #479

tomkerkhove opened this issue Nov 22, 2019 · 29 comments
Assignees
Labels
cloudevents All events related to CloudEvents to extend KEDA extensibility All issues related to extensibility of KEDA feature All issues for new features that have been committed to help wanted Looking for support from community operations

Comments

@tomkerkhove
Copy link
Member

tomkerkhove commented Nov 22, 2019

Provide CloudEvent that are emitted by the runtime so that customers can extend KEDA.

Events that come to mind are:

  • New Trigger Authentication Created
  • Deployment Scaled to Zero
  • New Scaled Object Created
  • Information on scaling action
  • Information about new scaled object referencing existing trigger authentication

Only concern I have is that folks could go through the Kubernetes eventing approach to get the information, but if we would emit it ourselves we could make it more user friendly rather than having to figure this out via the Kube way

Tasklist

  • Create proposal
  • Agree on proposal
  • Define list of events & payloads to emit
  • Implement
  • Document
@tomkerkhove tomkerkhove added needs-discussion feature-request All issues for new features that have not been committed to labels Nov 22, 2019
@tomkerkhove
Copy link
Member Author

Thoughts @jeffhollan?

@zroubalik
Copy link
Member

We should definitely implement the Kuberenetes eventing approach (created #530). This could be lower priority item.

@tomkerkhove
Copy link
Member Author

Thanks for that! Since Kubernetes doens't support CloudEvents (yet), I would leverage this as a seperate component as well to make it easier to integrate with other products/tools that are not Kubernetes event specific.

See kubernetes/kubernetes#85544 for CloudEvents support in Kubernetes.

@tomkerkhove
Copy link
Member Author

tomkerkhove commented Jan 3, 2020

The reason for that is that, for most scenarios you'd want to react on these events, and these workloads are not always in Kubernetes. If we only support Kubernetes events how it is today, events are stuck inside the cluster so they are, in my opinion, often pointless.

If we have CloudEvents, we can just forward them to things like Azure Event Grid and take it from there with FaaS/SaaS/PaaS services like Azure Functions.

@tomkerkhove tomkerkhove added feature All issues for new features that have been committed to help wanted Looking for support from community and removed feature-request All issues for new features that have not been committed to needs-discussion labels Feb 27, 2020
@tomkerkhove tomkerkhove added this to the v2.0 milestone Mar 19, 2020
@tomkerkhove tomkerkhove added the extensibility All issues related to extensibility of KEDA label Oct 13, 2020
@zroubalik zroubalik removed this from the v2.0 milestone Oct 15, 2020
@zroubalik zroubalik removed the help wanted Looking for support from community label Mar 3, 2021
@zroubalik zroubalik added the help wanted Looking for support from community label Mar 16, 2021
preflightsiren pushed a commit to preflightsiren/keda that referenced this issue Nov 7, 2021
@tomkerkhove tomkerkhove added help wanted Looking for support from community needs-discussion and removed Hacktoberfest help wanted Looking for support from community labels Nov 29, 2021
@tomkerkhove tomkerkhove self-assigned this Dec 1, 2021
@tomkerkhove
Copy link
Member Author

I will provide a more thorough proposal before we start on this.

@tomkerkhove
Copy link
Member Author

But similarly to how we offer scale-to-zero, we can leverage this as well in my opinion. If it's technically possible, which I think it should be but I do agree that this could be in a separate component if need be.

@dmeytin
Copy link

dmeytin commented Jul 5, 2022

Can you please help me to understand how rising Cloud Events will help with multi-cluster use-case #1587 ?

@tomkerkhove
Copy link
Member Author

Events will allow you to extend KEDA to close our current multi-cluster gap and take required actions. For example if we're at max replicas you can scale out in another region or if it fails to scale, etc.

However, we are open to event requests that can help you more though.

@tomkerkhove
Copy link
Member Author

I've completed my design proposal and anyone who is interested is welcome to review and comment on it: docs.google.com/document/d/14Z04AWiMBkSX88uiaVS-kg-8QjjNcDhVy6-u5FMUk_w/edit?usp=sharing

In terms of implementation, I would identify a first batch of events to support and create dedicated items per event scenario so that they can be added afterwards in a phased-approach.

/cc @kedacore/keda-maintainers

Last call for reviews before we close it on Tuesday EOB European time.

/cc @kedacore/keda-maintainers

@JorTurFer
Copy link
Member

I have taken another look and I agree with all but Maximum replicas exceeded for workload, I still think that it's not under KEDA scope because KEDA doesn't know the current needed replicas, it's the HPA Controller who knows that.
You have done a great job designing this

@tomkerkhove
Copy link
Member Author

I have taken another look and I agree with all but Maximum replicas exceeded for workload, I still think that it's not under KEDA scope because KEDA doesn't know the current needed replicas, it's the HPA Controller who knows that.

I tend to disagree and say that this is implementation detail because KEDA's focus is making application autoscaling simple and using HPA is just an implementation detail that some/most KEDA end-users don't even know about.

Because of that, it's up to us to provide a unified autoscaling solution imo.

@dmeytin
Copy link

dmeytin commented Aug 4, 2022 via email

@tomkerkhove
Copy link
Member Author

tomkerkhove commented Aug 8, 2022

@dmeytin Feel free to post in #1587 with a proposal but it's not a top prio at the moment

@tomkerkhove
Copy link
Member Author

All work items have been created and can be progress can be found on https://github.com/orgs/kedacore/projects/2/views/23?query=is%3Aopen+sort%3Aupdated-desc

Repository owner moved this from In Review to Ready To Ship in Roadmap - KEDA Core Aug 9, 2022
@tomkerkhove tomkerkhove moved this from Ready To Ship to Done in Roadmap - KEDA Core Aug 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cloudevents All events related to CloudEvents to extend KEDA extensibility All issues related to extensibility of KEDA feature All issues for new features that have been committed to help wanted Looking for support from community operations
Projects
Archived in project
Development

No branches or pull requests

5 participants