Expose param to configure EventTTL

Currently we keep events in db forever. This could
cause performance issues. So lets expire periodically
and make it configurable.

Partial-Bug: #1746514

Depends-On: Iac1b0def39a4beb9b0f86ad306a991d7822e8b4e
Change-Id: I59efbcdc387b329103d72c0a254563a148c35d9d
This commit is contained in:
Pradeep Kilambi 2018-01-31 10:48:24 -05:00
parent 541adb47d1
commit ec08df30af
1 changed files with 5 additions and 0 deletions

View File

@ -44,6 +44,10 @@ parameters:
e.g. { panko-context_is_admin: { key: context_is_admin, value: 'role:admin' } }
default: {}
type: json
PankoEventTTL:
description: Number of seconds that events are kept in the database
default: '86400'
type: string
resources:
PankoBase:
@ -87,6 +91,7 @@ outputs:
panko::policy::policies: {get_param: PankoApiPolicies}
panko::api::service_name: 'httpd'
panko::api::enable_proxy_headers_parsing: true
panko::api::event_time_to_live: {get_param: PankoEventTTL}
tripleo.panko_api.firewall_rules:
'140 panko-api':
dport: