-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
[FLINK-32488][REST] Introduce separate configuration to control expiry of E… #22906
base: master
Are you sure you want to change the base?
Conversation
@dmvk Would you be keen on reviewing this PR to improve the configuration of the REST endpoint execution graph cache? P.S.: I couldn't find an easy way to fallback to the |
…xecutionGraph cache
@@ -20,6 +20,12 @@ | |||
<td>Long</td> | |||
<td>The time in ms that the client waits for the leader address, e.g., Dispatcher or WebMonitorEndpoint</td> | |||
</tr> | |||
<tr> | |||
<td><h5>rest.cache.execution-graph.expiry</h5></td> |
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.
Will this config be meaningful to end users? Which REST endpoints does this control? For example, it is not intuitive that this controls the checkpoint list API
@@ -56,7 +55,6 @@ WebMonitorEndpoint<T> createRestEndpoint( | |||
static ExecutionGraphCache createExecutionGraphCache( | |||
RestHandlerConfiguration restConfiguration) { | |||
return new DefaultExecutionGraphCache( | |||
restConfiguration.getTimeout(), | |||
Time.milliseconds(restConfiguration.getRefreshInterval())); | |||
restConfiguration.getTimeout(), restConfiguration.getExecutionGraphCacheExpiry()); |
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 believe this is a backwards incompatible change, that might require a FLIP
…xecutionGraph cache
What is the purpose of the change
Introduce a new configuration to control the cache expiry for ExecutionGraph cache. This should be separate from the
web.refresh-interval
, as that controls the Flink dashboard refresh rate.Brief change log
rest.cache.execution-graph.expiry
to control ExecutionGraph expiryVerifying this change
This change is a trivial rework / code cleanup without any test coverage.
Does this pull request potentially affect one of the following parts:
@Public(Evolving)
: noDocumentation