mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-05 07:27:50 +01:00
Merge pull request #10815 from cd1989/redis-idle-timeout
Set redis idle timeout for core
This commit is contained in:
commit
4fa4c4e74c
@ -142,6 +142,7 @@ _version: 1.10.0
|
|||||||
# chartmuseum_db_index: 3
|
# chartmuseum_db_index: 3
|
||||||
# clair_db_index: 4
|
# clair_db_index: 4
|
||||||
# trivy_db_index: 5
|
# trivy_db_index: 5
|
||||||
|
# idle_timeout_seconds: 30
|
||||||
|
|
||||||
# Uncomment uaa for trusting the certificate of uaa instance that is hosted via self-signed cert.
|
# Uncomment uaa for trusting the certificate of uaa instance that is hosted via self-signed cert.
|
||||||
# uaa:
|
# uaa:
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
CONFIG_PATH=/etc/core/app.conf
|
CONFIG_PATH=/etc/core/app.conf
|
||||||
UAA_CA_ROOT=/etc/core/certificates/uaa_ca.pem
|
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
|
SYNC_QUOTA=true
|
||||||
CHART_CACHE_DRIVER={{chart_cache_driver}}
|
CHART_CACHE_DRIVER={{chart_cache_driver}}
|
||||||
_REDIS_URL_REG={{redis_url_reg}}
|
_REDIS_URL_REG={{redis_url_reg}}
|
||||||
|
@ -395,6 +395,7 @@ def get_redis_configs(external_redis=None, with_clair=True, with_trivy=True):
|
|||||||
'chartmuseum_db_index': 3,
|
'chartmuseum_db_index': 3,
|
||||||
'clair_db_index': 4,
|
'clair_db_index': 4,
|
||||||
'trivy_db_index': 5,
|
'trivy_db_index': 5,
|
||||||
|
'idle_timeout_seconds': 30,
|
||||||
}
|
}
|
||||||
|
|
||||||
# overwriting existing keys by external_redis
|
# 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_reg'] = redis['registry_db_index']
|
||||||
configs['redis_db_index_js'] = redis['jobservice_db_index']
|
configs['redis_db_index_js'] = redis['jobservice_db_index']
|
||||||
configs['redis_db_index_chart'] = redis['chartmuseum_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_js'] = get_redis_url(configs['redis_db_index_js'], redis)
|
||||||
configs['redis_url_reg'] = get_redis_url(configs['redis_db_index_reg'], redis)
|
configs['redis_url_reg'] = get_redis_url(configs['redis_db_index_reg'], redis)
|
||||||
|
Loading…
Reference in New Issue
Block a user