Use single replica for standalone AIO deployments
Similarly to undercloud, Swift is using only a single replica on AIO (all-in-one standalone). Therefore recovering from a corrupted or lost object is not possible, and running replicators and auditors only wastes resources. And may create some trouble. For example, the DB replicators and auditors will lock the DB, and new objects won't be stored during that time. Related-Bug: #1797167 Change-Id: I839393bf6cbb2303a0359f8aed32b2fc67d46f6a Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
This commit is contained in:
parent
47f93e1792
commit
1c56834aa8
|
@ -90,3 +90,4 @@ parameter_defaults:
|
|||
StackAction: CREATE
|
||||
SoftwareConfigTransport: POLL_SERVER_HEAT
|
||||
EnablePackageInstall: true
|
||||
SwiftReplicas: 1
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
# * Neutron (and related)
|
||||
# * Glance
|
||||
# * Cinder
|
||||
# * Swift
|
||||
# * Swift (single replica mode)
|
||||
# * Horizon
|
||||
# This file disables any other OpenStack services that would normally be
|
||||
# enabled.
|
||||
|
@ -42,6 +42,10 @@ parameter_defaults:
|
|||
# Type: string
|
||||
StandaloneHostnameFormat: '%stackname%-standalone-%index%'
|
||||
|
||||
# How many replicas to use in the swift rings.
|
||||
# Type: number
|
||||
SwiftReplicas: 1
|
||||
|
||||
resource_registry:
|
||||
OS::TripleO::Services::AodhApi: OS::Heat::None
|
||||
OS::TripleO::Services::AodhEvaluator: OS::Heat::None
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
# * Neutron (and related)
|
||||
# * Glance
|
||||
# * Cinder
|
||||
# * Swift
|
||||
# * Swift (single replica mode)
|
||||
# * Horizon
|
||||
# This file disables any other OpenStack services that would normally be
|
||||
# enabled.
|
||||
|
@ -45,6 +45,10 @@ parameter_defaults:
|
|||
# Type: string
|
||||
StackAction: CREATE
|
||||
|
||||
# How many replicas to use in the swift rings.
|
||||
# Type: number
|
||||
SwiftReplicas: 1
|
||||
|
||||
resource_registry:
|
||||
OS::TripleO::Network::Ports::ControlPlaneVipPort: ../../deployed-server/deployed-neutron-port.yaml
|
||||
OS::TripleO::Network::Ports::RedisVipPort: ../../network/ports/noop.yaml
|
||||
|
|
|
@ -18,13 +18,16 @@ environments:
|
|||
* Neutron (and related)
|
||||
* Glance
|
||||
* Cinder
|
||||
* Swift
|
||||
* Swift (single replica mode)
|
||||
* Horizon
|
||||
This file disables any other OpenStack services that would normally be
|
||||
enabled.
|
||||
|
||||
openstack overcloud roles generate -o ~/roles_data.yaml Standalone
|
||||
files:
|
||||
docker/services/swift-storage.yaml:
|
||||
parameters:
|
||||
- SwiftReplicas
|
||||
puppet/services/time/ntp.yaml:
|
||||
parameters:
|
||||
- NtpServer
|
||||
|
@ -44,6 +47,7 @@ environments:
|
|||
StackAction: CREATE
|
||||
SoftwareConfigTransport: POLL_SERVER_HEAT
|
||||
EnablePackageInstall: true
|
||||
SwiftReplicas: 1
|
||||
resource_registry:
|
||||
# this network config is assumed by the tripleo deploy command
|
||||
OS::TripleO::Network::Ports::RedisVipPort: ../../network/ports/noop.yaml
|
||||
|
@ -135,13 +139,16 @@ environments:
|
|||
* Neutron (and related)
|
||||
* Glance
|
||||
* Cinder
|
||||
* Swift
|
||||
* Swift (single replica mode)
|
||||
* Horizon
|
||||
This file disables any other OpenStack services that would normally be
|
||||
enabled.
|
||||
|
||||
openstack overcloud roles generate -o ~/roles_data.yaml Standalone
|
||||
files:
|
||||
docker/services/swift-storage.yaml:
|
||||
parameters:
|
||||
- SwiftReplicas
|
||||
puppet/services/time/ntp.yaml:
|
||||
parameters:
|
||||
- NtpServer
|
||||
|
@ -158,6 +165,7 @@ environments:
|
|||
sample_values:
|
||||
StandaloneCount: 1
|
||||
OvercloudStandaloneFlavor: standalone
|
||||
SwiftReplicas: 1
|
||||
resource_registry:
|
||||
OS::TripleO::Standalone::Net::SoftwareConfig: ../../net-config-bridge.yaml
|
||||
|
||||
|
|
Loading…
Reference in New Issue