diff --git a/make/harbor.yml.tmpl b/make/harbor.yml.tmpl index 6ce719f3a..997e1edda 100644 --- a/make/harbor.yml.tmpl +++ b/make/harbor.yml.tmpl @@ -142,6 +142,7 @@ _version: 1.10.0 # chartmuseum_db_index: 3 # clair_db_index: 4 # trivy_db_index: 5 +# idle_timeout_seconds: 30 # Uncomment uaa for trusting the certificate of uaa instance that is hosted via self-signed cert. # uaa: diff --git a/make/photon/prepare/templates/core/env.jinja b/make/photon/prepare/templates/core/env.jinja index c976fcfad..b863c0339 100644 --- a/make/photon/prepare/templates/core/env.jinja +++ b/make/photon/prepare/templates/core/env.jinja @@ -1,6 +1,6 @@ CONFIG_PATH=/etc/core/app.conf UAA_CA_ROOT=/etc/core/certificates/uaa_ca.pem -_REDIS_URL={{redis_host}}:{{redis_port}},100,{{redis_password}} +_REDIS_URL={{redis_host}}:{{redis_port}},100,{{redis_password}},0,{{redis_idle_timeout_seconds}} SYNC_QUOTA=true CHART_CACHE_DRIVER={{chart_cache_driver}} _REDIS_URL_REG={{redis_url_reg}} diff --git a/make/photon/prepare/utils/configs.py b/make/photon/prepare/utils/configs.py index ee785a1bc..90e8d4fa9 100644 --- a/make/photon/prepare/utils/configs.py +++ b/make/photon/prepare/utils/configs.py @@ -395,6 +395,7 @@ def get_redis_configs(external_redis=None, with_clair=True, with_trivy=True): 'chartmuseum_db_index': 3, 'clair_db_index': 4, 'trivy_db_index': 5, + 'idle_timeout_seconds': 30, } # overwriting existing keys by external_redis @@ -406,6 +407,7 @@ def get_redis_configs(external_redis=None, with_clair=True, with_trivy=True): configs['redis_db_index_reg'] = redis['registry_db_index'] configs['redis_db_index_js'] = redis['jobservice_db_index'] configs['redis_db_index_chart'] = redis['chartmuseum_db_index'] + configs['redis_idle_timeout_seconds'] = redis['idle_timeout_seconds'] configs['redis_url_js'] = get_redis_url(configs['redis_db_index_js'], redis) configs['redis_url_reg'] = get_redis_url(configs['redis_db_index_reg'], redis)