OpenSearch/plugin
Dimitris Athanasiou 99ffbb1cd6 [ML] Add random offset to the maintenance task execution time (elastic/x-pack-elasticsearch#2483)
Currently the maintenance task is executed at 30 minutes past
midnight of each day. In the scenario where multiple clusters
are running on the same hardware infrastructure they all will
be running at the same time, competing for resources.

This commit changes this by adding a random offset to the
execution time which ranges from 0 to 119 minutes. The
minute granularity means that different offsets give at
least 1 minute for the maintenance task to end. Moreover,
the 2 hour window gives enough slots for different offsets
to occur and remains within what most people would think
as "middle of the night".

relates elastic/x-pack-elasticsearch#2273

Original commit: elastic/x-pack-elasticsearch@b538923aca
2017-09-13 14:53:44 +01:00
..
bin/x-pack Add x-pack-env.bat 2017-08-23 14:16:36 -04:00
bwc Build: Add build metadata generation and usage to xpack (elastic/x-pack-elasticsearch#2368) 2017-08-28 14:03:02 -07:00
config/x-pack
keys
licenses Revert "Use shaded rest client dependencies" (elastic/x-pack-elasticsearch#2352) 2017-08-25 14:13:16 -05:00
ml-cpp-snapshot Allow build to directly run under JDK 9 (elastic/x-pack-elasticsearch#2320) 2017-08-22 14:46:37 +09:30
src [ML] Add random offset to the maintenance task execution time (elastic/x-pack-elasticsearch#2483) 2017-09-13 14:53:44 +01:00
build.gradle Remove token passphrase setting (elastic/x-pack-elasticsearch#2318) 2017-09-12 15:34:41 +02:00