Parametrize Swift partition power
authorEamonn O'Toole <eamonn.otoole@hp.com>
Mon, 28 Jul 2014 15:33:06 +0000 (16:33 +0100)
committerEamonn O'Toole <eamonn.otoole@hp.com>
Fri, 5 Sep 2014 10:19:22 +0000 (11:19 +0100)
The Swift partition power is currently hard-coded to 10.  While
this is fine for small Swift clusters there are some users who
will want to configure rings with higher partition powers.  We
have parametrized the value of the partition power, and the
default is set to 10.

Change-Id: If115cf5cf2f4c2ff7d28b0f5ae3d2ca3f4b4be5a

swift-deploy.yaml
swift-source.yaml
swift-storage-source.yaml

index e3f475c..a748649 100644 (file)
@@ -10,6 +10,10 @@ parameters:
     description: The password for the swift service account, used by the swift proxy services.
     type: string
     hidden: true
+  SwiftPartPower:
+    default: 10
+    description: Partition Power to use when building Swift rings
+    type: number
   SwiftReplicas:
     type: number
     default: 1
@@ -24,6 +28,7 @@ resources:
       input_values:
         swift_hash_suffix: {get_param: SwiftHashSuffix}
         swift_password: {get_param: SwiftPassword}
+        swift_part_power: {get_param: SwiftPartPower}
         swift_devices:
           Fn::Join:
           - ', '
index 1a5a04f..fcf9436 100644 (file)
@@ -7,7 +7,7 @@ resources:
         swift:
           devices: { get_input: swift_devices }
           hash: { get_input: swift_hash_suffix }
-          part-power: 10
+          part-power: { get_input: swift_part_power }
           proxy-memcache: { get_input: swift_proxy_memcache }
           replicas: {get_input: swift_replicas }
           service-password: { get_input: swift_password }
index 40e0573..49bc3e4 100644 (file)
@@ -52,6 +52,7 @@ resources:
         neutron_enable_tunneling: {get_param: NeutronEnableTunnelling}
         swift_hash_suffix: {get_param: SwiftHashSuffix}
         swift_password: {get_param: SwiftPassword}
+        swift_part_power: {get_param: SwiftPartPower}
         swift_devices:
           Fn::Join:
           - ', '