Skip to content

new complexScalingLogic struct for SO definition#1189

Closed
gauron99 wants to merge 4 commits intokedacore:mainfrom
gauron99:scaling-logic-docu
Closed

new complexScalingLogic struct for SO definition#1189
gauron99 wants to merge 4 commits intokedacore:mainfrom
gauron99:scaling-logic-docu

Conversation

@gauron99
Copy link
Contributor

@gauron99 gauron99 commented Jul 17, 2023

This PR is opened for kedacore/keda#4583 new feature

  • change webhook check for SO

@gauron99 gauron99 requested a review from a team as a code owner July 17, 2023 16:31
@netlify
Copy link

netlify bot commented Jul 17, 2023

Deploy Preview for keda ready!

Name Link
🔨 Latest commit dcd98e4
🔍 Latest deploy log https://app.netlify.com/sites/keda/deploys/64b8fae2811107000879beae
😎 Deploy Preview https://deploy-preview-1189--keda.netlify.app/docs/2.12/concepts/admission-webhooks
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@github-actions
Copy link

Thank you for your contribution! 🙏 We will review your PR as soon as possible.

🏖️ Over the summer, the response time will be longer than usual due to maintainers taking time off so please bear with us.

While you are waiting, make sure to:

  • Add your contribution to all applicable KEDA versions
  • GitHub checks are passing
  • Is the DCO check failing? Here is how you can fix DCO issues

Learn more about:

Copy link
Member

@JorTurFer JorTurFer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ❤️ this feature!

Maybe we should add an example for each case, as this is an advanced feature, some examples could help with the adoption

Comment on lines +77 to +79
fallback: # Optional. Section to specify ec-fallback options
replicas: 3 # Mandatory if fallback section is included
failureThreshold: 3 # Mandatory if fallback section is included
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need a second fallback? I mean, we already have a fallback section and duplicate it could be confusing

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this fallback is for the external server, I think that it's wrong indented

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the fallback is for external servers, if one of them fails, the fallback is applied, works the same like normal triggers. I was thinking if triggers have error, normal fallback is applied and this logic can still work, therefore if any of the server fail, that would be the fallback for it. But i agree, this could be simplified. I could simply call the same fallback function as the standard one if an error occurs in external servers

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ive got rid of the grpc server fallback entirely and everything is handled with the default fallback as it exists currently

- type: Percent
value: 100
periodSeconds: 15
complexScalingLogic: # Optional. Section to specify complex scaling logic
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

complexScalingLogic sounds weird, doesn't? WDYT about something like modifiers ?

complexScalingLogic: # Optional. Section to specify complex scaling logic
formula: {formula-for-fetched-metrics} # Optional. Formula for calculation
target: {target-value-to-scale-on} # Optional. If metrics are anyhow composed together
externalCalculators: # Optional. Section for user defined grpc calculation servers
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As above, something like externalModifiers?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

externalModifiers does sound pretty good. combining these two would then be

modifiers:
 externalModifiers:
  - name: ...

what about just leaving the servers as external as they would be already in modifiers field?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ive opened kedacore/keda#4583 for review. Im guessing this will be discussed there

@gauron99
Copy link
Contributor Author

gauron99 commented Jul 18, 2023

Maybe we should add an example for each case, as this is an advanced feature, some examples could help with the adoption

yes Im definitelly going to add examples, Im still drafting the actual PR as well (i shouldve probably put this as draft as well, thats my bad), i thought of more cases to test and want to cleanup unnecessary code before putting it up for review. Im happy to change the structures before that so we can discuss here

edit: added some examples for each case

@gauron99 gauron99 force-pushed the scaling-logic-docu branch from 92539ac to a7e33c5 Compare July 19, 2023 13:07
gauron99 added 4 commits July 20, 2023 11:14
Signed-off-by: gauron99 <fridrich.david19@gmail.com>
Signed-off-by: gauron99 <fridrich.david19@gmail.com>
Signed-off-by: gauron99 <fridrich.david19@gmail.com>
Signed-off-by: gauron99 <fridrich.david19@gmail.com>
@gauron99 gauron99 force-pushed the scaling-logic-docu branch from f0d5db8 to dcd98e4 Compare July 20, 2023 09:14
@gauron99 gauron99 marked this pull request as draft July 25, 2023 16:00
@zroubalik
Copy link
Member

@gauron99 this can be closed, right?

@gauron99
Copy link
Contributor Author

yes, sorry i completely forgot about this one @zroubalik

@gauron99 gauron99 closed this Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants