Merge "Set hierdata for swift server workers conditionally"
This commit is contained in:
commit
1393ced362
@ -43,7 +43,7 @@ parameters:
|
|||||||
description: Timeout for requests going from swift-proxy to swift a/c/o services.
|
description: Timeout for requests going from swift-proxy to swift a/c/o services.
|
||||||
type: number
|
type: number
|
||||||
SwiftWorkers:
|
SwiftWorkers:
|
||||||
default: auto
|
default: 0
|
||||||
description: Number of workers for Swift service.
|
description: Number of workers for Swift service.
|
||||||
type: string
|
type: string
|
||||||
KeystoneRegion:
|
KeystoneRegion:
|
||||||
@ -98,6 +98,7 @@ conditions:
|
|||||||
use_tls_proxy: {equals : [{get_param: EnableInternalTLS}, true]}
|
use_tls_proxy: {equals : [{get_param: EnableInternalTLS}, true]}
|
||||||
swift_encryption_enabled: {equals : [{get_param: SwiftEncryptionEnabled}, true]}
|
swift_encryption_enabled: {equals : [{get_param: SwiftEncryptionEnabled}, true]}
|
||||||
cors_allowed_origin_unset: {equals : [{get_param: SwiftCorsAllowedOrigin}, '']}
|
cors_allowed_origin_unset: {equals : [{get_param: SwiftCorsAllowedOrigin}, '']}
|
||||||
|
swift_workers_zero: {equals : [{get_param: SwiftWorkers}, '0']}
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
SwiftBase:
|
SwiftBase:
|
||||||
@ -140,7 +141,11 @@ outputs:
|
|||||||
swift::proxy::authtoken::project_name: 'service'
|
swift::proxy::authtoken::project_name: 'service'
|
||||||
swift::proxy::s3token::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri]}
|
swift::proxy::s3token::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri]}
|
||||||
swift::proxy::node_timeout: {get_param: SwiftProxyNodeTimeout}
|
swift::proxy::node_timeout: {get_param: SwiftProxyNodeTimeout}
|
||||||
swift::proxy::workers: {get_param: SwiftWorkers}
|
-
|
||||||
|
if:
|
||||||
|
- swift_workers_zero
|
||||||
|
- {}
|
||||||
|
- swift::proxy::workers: {get_param: SwiftWorkers}
|
||||||
-
|
-
|
||||||
if:
|
if:
|
||||||
- ceilometer_pipeline_enabled
|
- ceilometer_pipeline_enabled
|
||||||
|
@ -46,15 +46,15 @@ parameters:
|
|||||||
default: 'overcloud-swift-storage'
|
default: 'overcloud-swift-storage'
|
||||||
type: string
|
type: string
|
||||||
SwiftAccountWorkers:
|
SwiftAccountWorkers:
|
||||||
default: auto
|
default: 0
|
||||||
description: Number of workers for Swift account service.
|
description: Number of workers for Swift account service.
|
||||||
type: string
|
type: string
|
||||||
SwiftContainerWorkers:
|
SwiftContainerWorkers:
|
||||||
default: auto
|
default: 0
|
||||||
description: Number of workers for Swift account service.
|
description: Number of workers for Swift account service.
|
||||||
type: string
|
type: string
|
||||||
SwiftObjectWorkers:
|
SwiftObjectWorkers:
|
||||||
default: auto
|
default: 0
|
||||||
description: Number of workers for Swift account service.
|
description: Number of workers for Swift account service.
|
||||||
type: string
|
type: string
|
||||||
SwiftUseLocalDir:
|
SwiftUseLocalDir:
|
||||||
@ -97,6 +97,9 @@ conditions:
|
|||||||
equals:
|
equals:
|
||||||
- get_param: SwiftRawDisks
|
- get_param: SwiftRawDisks
|
||||||
- {}
|
- {}
|
||||||
|
account_workers_zero: {equals : [{get_param: SwiftAccountWorkers}, '0']}
|
||||||
|
container_workers_zero: {equals : [{get_param: SwiftContainerWorkers}, '0']}
|
||||||
|
object_workers_zero: {equals : [{get_param: SwiftObjectWorkers}, '0']}
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
role_data:
|
role_data:
|
||||||
@ -136,9 +139,21 @@ outputs:
|
|||||||
"%{hiera('$NETWORK')}"
|
"%{hiera('$NETWORK')}"
|
||||||
params:
|
params:
|
||||||
$NETWORK: {get_param: [ServiceNetMap, SwiftStorageNetwork]}
|
$NETWORK: {get_param: [ServiceNetMap, SwiftStorageNetwork]}
|
||||||
swift::storage::all::account_server_workers: {get_param: SwiftAccountWorkers}
|
-
|
||||||
swift::storage::all::container_server_workers: {get_param: SwiftContainerWorkers}
|
if:
|
||||||
swift::storage::all::object_server_workers: {get_param: SwiftObjectWorkers}
|
- account_workers_zero
|
||||||
|
- {}
|
||||||
|
- swift::storage::all::account_server_workers: {get_param: SwiftAccountWorkers}
|
||||||
|
-
|
||||||
|
if:
|
||||||
|
- container_workers_zero
|
||||||
|
- {}
|
||||||
|
- swift::storage::all::container_server_workers: {get_param: SwiftContainerWorkers}
|
||||||
|
-
|
||||||
|
if:
|
||||||
|
- object_workers_zero
|
||||||
|
- {}
|
||||||
|
- swift::storage::all::object_server_workers: {get_param: SwiftObjectWorkers}
|
||||||
step_config: |
|
step_config: |
|
||||||
include ::tripleo::profile::base::swift::storage
|
include ::tripleo::profile::base::swift::storage
|
||||||
upgrade_tasks:
|
upgrade_tasks:
|
||||||
|
@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
upgrade:
|
||||||
|
- |
|
||||||
|
swift worker count parameter defaults have been changed from 'auto' to
|
||||||
|
0. If not provided, puppet module default would instead be used and the
|
||||||
|
number of server processes will be limited to '12'.
|
Loading…
Reference in New Issue
Block a user