Skip to content

Conversation

ctrlaltdilj
Copy link
Contributor

@ctrlaltdilj ctrlaltdilj commented Aug 25, 2025

This is a draft PR related to this conversation:

https://lists.apache.org/thread/749l74z1h5jylkxrw3rtjmxcj2t9p7ws

private static final Logger LOG = LoggerFactory.getLogger(PluginDiscoveryUtils.class);

public static <T> Set<T> discoverResources(
FlinkConfigManager configManager, Class<T> resourceClass) {
Copy link
Contributor Author

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

Copy link
Contributor Author

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();
Copy link
Contributor Author

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

Copy link
Contributor Author

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

@ctrlaltdilj ctrlaltdilj changed the title support autoscaling scaling realizer [Draft] support autoscaling scaling realizer Aug 25, 2025
@ctrlaltdilj
Copy link
Contributor Author

This is a draft PR related to this conversation:

https://lists.apache.org/thread/749l74z1h5jylkxrw3rtjmxcj2t9p7ws

@ctrlaltdilj ctrlaltdilj changed the title [Draft] support autoscaling scaling realizer [Draft] support autoscaling scaling realizer via plugins Aug 25, 2025
@ctrlaltdilj ctrlaltdilj changed the title [Draft] support autoscaling scaling realizer via plugins [Draft] support overriding autoscaling scaling realizer via plugins Aug 25, 2025
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.

1 participant