sahara/sahara
Dmitry Mescheryakov 9cd9013a49 Avoid deleting transient cluster before job is started
In order to run job on a transient cluster client needs to execute
two commands:
 * create cluster with is_transient=true
 * run job on it in a regular manner

We terminate unneeded transient clusters in a periodic job, which
terminates cluster if cluster is transient and no job is running on it
at a time. We also do not terminate cluster if its lifetime is smaller
then config parameter min_transient_cluster_active_time. For some
reason the parameter is set to 0 by default, which could cause
premature cluster termination if periodic task runs between
cluster creation and job execution.

Also added unit tests to verify min_transient_cluster_active_time.

Change-Id: I5330a969ea7cd81ec2759a7fe32bab4a5de3fb4c
(cherry picked from commit 400d90da07)
2014-06-24 14:19:44 +00:00
..
api Move the savanna subdir to sahara 2014-03-18 16:38:36 +04:00
cli Fix db management: don't autocreate db on start 2014-04-02 15:26:39 +04:00
conductor Add a custom filter method to scan wrapped dict results 2014-04-08 13:20:48 +04:00
db Fix big job binary objects in mysql 2014-04-08 13:20:36 +04:00
locale Imported Translations from Transifex 2014-03-24 06:04:13 +00:00
middleware Move the savanna subdir to sahara 2014-03-18 16:38:36 +04:00
openstack Rename missed env variables in oslo code 2014-03-24 23:22:58 +04:00
plugins Fix running EDP job on transient cluster 2014-06-03 14:19:39 +04:00
resources Merge "Fixed wrong attached volume's names via Heat" 2014-03-30 00:39:11 +00:00
service Avoid deleting transient cluster before job is started 2014-06-24 14:19:44 +00:00
swift Fix hardcoded tenant name for job binaries 2014-06-03 14:25:25 +04:00
tests Avoid deleting transient cluster before job is started 2014-06-24 14:19:44 +00:00
topology Renaming files with savanna words in its names 2014-03-19 23:42:18 +04:00
utils Create trusts for admin user with correct tenant name 2014-06-03 14:25:26 +04:00
__init__.py Move the savanna subdir to sahara 2014-03-18 16:38:36 +04:00
config.py Miscellaneous renaming string fixes 2014-03-20 16:37:54 -04:00
context.py Move the savanna subdir to sahara 2014-03-18 16:38:36 +04:00
exceptions.py Move the savanna subdir to sahara 2014-03-18 16:38:36 +04:00
main.py Miscellaneous renaming string fixes 2014-03-20 16:37:54 -04:00
version.py Move the savanna subdir to sahara 2014-03-18 16:38:36 +04:00