-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
[ML] Job in index: Datafeed node selector #34194
Closed
davidkyle
wants to merge
10
commits into
elastic:feature/jindex-6.x
from
davidkyle:datafeed-selector
Closed
[ML] Job in index: Datafeed node selector #34194
davidkyle
wants to merge
10
commits into
elastic:feature/jindex-6.x
from
davidkyle:datafeed-selector
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index mappings for the configuration documents
Pinging @elastic/ml-core |
davidkyle
force-pushed
the
feature/jindex-6.x
branch
from
October 2, 2018 09:01
52b891e
to
42b250a
Compare
The diff for this PR is showing a huge number of changes, including many that were in #33994. Please can you merge the feature branch into your PR branch because I think this will remove the duplicated differences. |
Closing due to a rebase snafu. This pr is replaced by #34218 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Breaks the
DatafeedNodeSelector
s dependency on datafeed and job configuration defined in the cluster state.Similar to #33994 the required configuration is added to the persistent task's parameters.
TransportStartDatafeedAction
now collects the required config and adds it toStartDatafeedAction.DatafeedParams
. The new fields added to the params cannot be streamed in BWC safe way but this isn't an issue asTransportStartDatafeedAction
is a master node action andStartDatafeedPersistentTasksExecutor.getAssignment
is also only called on the master node (by thePersistentTasksClusterService
).DatafeedManager.run
is changed to accept the config as a parameter rather than reading from the clusterstate, this has the additional benefit that the validated configs are used rather than re-reading the config some point after validation. However, the BWC breaks down here as the datafeed may start on a node that isn't upgraded (mixed cluster) and the required config will not have been streamed inStartDatafeedAction.DatafeedParams
.Discuss
I can think of 2 solutions to this, either re-read the missing config in DatafeedManager or prevent the datafeed from starting on an old node/in a mixed cluster state. I prefer the later as I think it will simplify the migration process. That change can sensibly be done as part of the migration/upgrade work.