-
Notifications
You must be signed in to change notification settings - Fork 62
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] Change way the job config is passed to autodetect #1253
Comments
One tricky thing about this change is how to keep the way Java passes the inputs to C++ working while the changes are made. I think the way to do it is as follows:
Step 3 is by far the biggest of these steps. But the beauty of passing the config in both formats during the transition is that step 3 can be broken down into smaller steps, and these can even span multiple releases. (There is a slight cost if they span multiple releases in that anyone doing low level debugging of problems with that release will have to create both config formats. However, since the new config option takes the unmodified job config in JSON format the extra format is not hard to obtain.). We are only completely committed to this project at step 4. One subtlety with the redundant options is that |
Once all this work is done the command line arguments of |
Add an argument to autodetect to enable specifying a config file. Eventually this will be used to read an autodetect job config in JSON format but in this initial step it is unused. Relates to #1253
Add an argument to autodetect to enable specifying a config file. Eventually this will be used to read an autodetect job config in JSON format but in this initial step it is unused. Relates to #1253
Add an argument to autodetect to enable specifying a config file. Eventually this will be used to read an autodetect job config in JSON format but in this initial step it is unused. Relates to elastic#1253
Write job config in the form of a JSON formatted file and pass its location to autodetect as an additional command line option. This will ultimately allow all relevant job config to be read from the JSON config file and hence reduce the number of command line arguments for autodetect. Relates to elastic/ml-cpp#1253
Write job config in the form of a JSON formatted file and pass its location to autodetect as an additional command line option. This will ultimately allow all relevant job config to be read from the JSON config file and hence reduce the number of command line arguments for autodetect. Relates to elastic/ml-cpp#1253 Backport of #63865
|
Add a parser for the recently added anomaly job configuration file, which is in JSON format. As an initial step to the configuration file replacing a number of command line arguments, modify autodetect to use the jobId extracted by the parser. Relates to elastic#1253
Add a parser for the recently added anomaly job configuration file, which is in JSON format. As an initial step to the configuration file replacing a number of command line arguments, modify autodetect to use the jobId extracted by the parser. Relates to #1253
Add a parser for the recently added anomaly job configuration file, which is in JSON format. As an initial step to the configuration file replacing a number of command line arguments, modify autodetect to use the jobId extracted by the parser. Relates to elastic#1253
Detector rules may possibly refer to rule filters that are defined separately, outside of the anomaly job configuration. As an interim solution pass the rule filters parsed from the old-style field config to the new-style JSON parser. Relates to elastic#1253
Detector rules may possibly refer to rule filters that are defined separately, outside of the anomaly job configuration. As an interim solution pass the rule filters parsed from the old-style field config to the new-style JSON parser. Relates to #1253
Detector rules may possibly refer to rule filters that are defined separately, outside of the anomaly job configuration. As an interim solution pass the rule filters parsed from the old-style field config to the new-style JSON parser. Relates to elastic#1253
* Remove trace of the CFieldConfig class and any related files (e.g. test configuration files). * Enable the code to use JSON formatted files to obtain configuration settings. * Use the model plot configuration settings present in the anomaly job configuration to initialise model plot properties. Relates #1253 Backports #1644
Prepare the ground for the Java process to stop sending soon to be redundant command line arguments. In particular: * Ensure that the persist interval, time field and categorisation stop on warn properties are obtained from job config * Perform the calculation of the random 'staggering interval' in C++ code (to be removed from Java in due course) Backports #1648 Relates #1253
Do not pass the now unneeded command line arguments to autodetect and remove any supporting code. Remove staggering interval - now in C++ Relates elastic/ml-cpp#1253
Do not pass the now unneeded command line arguments to autodetect and remove any supporting code. Remove staggering interval - now in C++ Relates elastic/ml-cpp#1253 Backports #67344
Be more lenient when parsing the background_persist_interval field as it is a) optional and b) not present in the job config in the majority of cases relates elastic#1253, elastic#1648
Remove the now redundant autodetect command line options and exit with error message on seeing unknown command line arguments Relates #1253
Remove the now redundant autodetect command line options and exit with error message on seeing unknown command line arguments Relates elastic#1253
* Expect configuration update requests to be received in JSON formatted strings. * Remove support for old, ini file parsing. Relates elastic/elasticsearch#67721, #1253
* Expect configuration update requests to be received in JSON formatted strings. * Remove support for old, ini file parsing. Relates elastic/elasticsearch#67721, elastic#1253
* Expect configuration update requests to be received in JSON formatted strings. * Remove support for old, ini file parsing. Relates elastic/elasticsearch#67721, #1253 Backports #1682
Write job config in the form of a JSON formatted file and pass its location to autodetect as an additional command line option. This will ultimately allow all relevant job config to be read from the JSON config file and hence reduce the number of command line arguments for autodetect. Relates to elastic/ml-cpp#1253
Pass JSON files containing rule filters and scheduled events configuration to autodetect. This change must not be merged until after elastic/ml-cpp#1640 as the C++ backend code must be able to safely consume the new command line options. Relates elastic/ml-cpp#1253
Do not pass the now unneeded command line arguments to autodetect and remove any supporting code. Remove staggering interval - now in C++ Relates elastic/ml-cpp#1253
For historical reasons the job config that
autodetect
uses is passed to it in a mixture of 2 Windows.ini
file style config files and a few command line options.It would make life much easier and would make the code clearer if it was passed as a single config file in JSON format containing the exact job config document from the
.ml-config
index.Benefits would be:
autodetect
autodetect
they will be able to look at job config examples from our public documentationautodetect
process from the command line - currently when we get a job config from a support diag we have to manually translate it to the.ini
formats and command line arguments in order to try to reproduce problemsThe text was updated successfully, but these errors were encountered: