Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Support configuring cinder's RPC and WSGI timeouts
Browse files Browse the repository at this point in the history
New CinderRpcResponseTimeout and CinderApiWsgiTimeout parameters
support configuring cinder's corresponding RPC response and WSGI
connection timeouts. The default values (60s each) match the existing
defaults.

Change-Id: I66b472d37041f67907691f55c153ff880093e4bc
  • Loading branch information
ASBishop committed Feb 24, 2021
1 parent 9790824 commit 3af965d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
11 changes: 10 additions & 1 deletion deployment/cinder/cinder-api-container-puppet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ parameters:
e.g. { cinder-context_is_admin: { key: context_is_admin, value: 'role:admin' } }
default: {}
type: json
CinderApiWsgiTimeout:
default: 60
description: The number of seconds until a Cinder API WSGI connection times out.
type: number
NotificationDriver:
type: comma_delimited_list
default: 'noop'
Expand Down Expand Up @@ -191,13 +195,18 @@ outputs:
"%{hiera('$NETWORK')}"
params:
$NETWORK: {get_param: [ServiceNetMap, CinderApiNetwork]}
-
cinder::wsgi::apache::servername:
str_replace:
template:
"%{hiera('fqdn_$NETWORK')}"
params:
$NETWORK: {get_param: [ServiceNetMap, CinderApiNetwork]}
cinder::wsgi::apache::vhost_custom_fragment:
str_replace:
template:
"Timeout TIMEOUT"
params:
TIMEOUT: {get_param: CinderApiWsgiTimeout}
-
if:
- cinder_workers_zero
Expand Down
5 changes: 5 additions & 0 deletions deployment/cinder/cinder-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ parameters:
description: >
Cron to purge db entries marked as deleted and older than $age - Max Delay
default: '3600'
CinderRpcResponseTimeout:
default: 60
description: Cinder's RPC response timeout, in seconds.
type: number
NovaPassword:
type: string
description: The password for the nova service and db account
Expand Down Expand Up @@ -141,6 +145,7 @@ outputs:
- {get_param: CinderDebug }
cinder::storage_availability_zone: {get_param: CinderStorageAvailabilityZone}
cinder::rabbit_heartbeat_timeout_threshold: 60
cinder::rpc_response_timeout: {get_param: CinderRpcResponseTimeout}
cinder::db::database_db_max_retries: -1
cinder::db::database_max_retries: -1
cinder::cron::db_purge::minute: {get_param: CinderCronDbPurgeMinute}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
features:
- |
New ``CinderRpcResponseTimeout`` and ``CinderApiWsgiTimeout`` parameters
provide a means for configuring Cinder's RPC response and WSGI connection
timeouts, respectively.

0 comments on commit 3af965d

Please sign in to comment.