-
Notifications
You must be signed in to change notification settings - Fork 492
[Draft] support overriding autoscaling scaling realizer via plugins #1020
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
base: main
Are you sure you want to change the base?
[Draft] support overriding autoscaling scaling realizer via plugins #1020
Conversation
private static final Logger LOG = LoggerFactory.getLogger(PluginDiscoveryUtils.class); | ||
|
||
public static <T> Set<T> discoverResources( | ||
FlinkConfigManager configManager, Class<T> resourceClass) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think keeping this generic, will be beneficial for future changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Open to ideas
ScalingRealizer scalingRealizer = new KubernetesScalingRealizer(); | ||
|
||
if (!flinkAutoscalerScalingRealizers.isEmpty()) { | ||
scalingRealizer = flinkAutoscalerScalingRealizers.stream().findFirst().get(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uses the scaling realizer from plugins
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this assumes 1 scaling realizer, I'll harden this
This is a draft PR related to this conversation: https://lists.apache.org/thread/749l74z1h5jylkxrw3rtjmxcj2t9p7ws |
This is a draft PR related to this conversation:
https://lists.apache.org/thread/749l74z1h5jylkxrw3rtjmxcj2t9p7ws