mistral: align parameters with undercloud

- To be aligned with how undercloud was configured, let's change some
defaults in Mistral Engine:

mistral::engine::evaluation_interval: 120
mistral::engine::older_than: 2880

- 2 new parameters are provided:

    MistralEvaluationInterval is a new parameter that allow to configure
    how often will the Mistral Executions be evaluated.
    For example for value 120 the interval will be 2 hours (every 2 hours).

    MistralFinishedExecutionDuration is a new parameter that allow to configure
    how Mistral will evaluate from which time remove executions in minutes.
    For example when set to 60, remove all executions that finished a 60 minutes
    ago or more.
    Note that only final state execution will remove (SUCCESS/ERROR).

Change-Id: Ia2c3e41a77aa44edacf4d03a6da829fbf33410b9
This commit is contained in:
Emilien Macchi 2018-04-03 16:43:03 -07:00
parent 35e8b6d0ba
commit a360759fd2
2 changed files with 30 additions and 0 deletions

View File

@ -35,6 +35,22 @@ parameters:
description: The default maximum size in KB of large text fields of runtime
execution objects. Use -1 for no limit.
type: number
MistralEvaluationInterval:
default: 120
description: How often will the executions be evaluated
(in minutes). For example for value 120 the interval
will be 2 hours (every 2 hours).
type: number
MistralFinishedExecutionDuration:
default: 2880
description: Evaluate from which time remove executions in minutes.
For example when set to 60, remove all executions
that finished a 60 minutes ago or more.
Minimum value is 1.
Note that only final state execution will remove (SUCCESS/ERROR).
constraints:
- range: { min: 1 }
type: number
resources:
MistralBase:
@ -56,6 +72,8 @@ outputs:
map_merge:
- get_attr: [MistralBase, role_data, config_settings]
- mistral::engine::execution_field_size_limit_kb: {get_param: MistralExecutionFieldSizeLimit}
mistral::engine::evaluation_interval: {get_param: MistralEvaluationInterval}
mistral::engine::older_than: {get_param: MistralFinishedExecutionDuration}
step_config: |
include ::tripleo::profile::base::mistral::engine
upgrade_tasks:

View File

@ -0,0 +1,12 @@
---
features:
- |
MistralEvaluationInterval is a new parameter that allow to configure
how often will the Mistral Executions be evaluated.
For example for value 120 the interval will be 2 hours (every 2 hours).
- |
MistralFinishedExecutionDuration is a new parameter that allow to configure
how Mistral will evaluate from which time remove executions in minutes.
For example when set to 60, remove all executions that finished a 60 minutes
ago or more.
Note that only final state execution will remove (SUCCESS/ERROR).