diff options
author | Paul Luse <paul.e.luse@intel.com> | 2014-04-07 14:22:27 -0700 |
---|---|---|
committer | Clay Gerrard <clay.gerrard@gmail.com> | 2014-06-19 10:18:34 -0700 |
commit | e52e8bc9177f6ca860bc69672588811a37440fc2 (patch) | |
tree | 72368148bcf412d7e0d00c2ead23cd604626c718 /doc/saio | |
parent | c1dc2fa624d2abaea1c872a4e98bf7880c07c236 (diff) | |
download | swift-e52e8bc9177f6ca860bc69672588811a37440fc2.tar.gz |
Add Storage Policy Documentation
Add overview and example information for using Storage Policies.
DocImpact
Implements: blueprint storage-policies
Change-Id: I6f11f7a1bdaa6f3defb3baa56a820050e5f727f1
Diffstat (limited to 'doc/saio')
-rwxr-xr-x | doc/saio/bin/remakerings | 6 | ||||
-rw-r--r-- | doc/saio/swift/container-reconciler.conf | 47 | ||||
-rw-r--r-- | doc/saio/swift/swift.conf | 7 |
3 files changed, 60 insertions, 0 deletions
diff --git a/doc/saio/bin/remakerings b/doc/saio/bin/remakerings index 1c8468147..e95915953 100755 --- a/doc/saio/bin/remakerings +++ b/doc/saio/bin/remakerings @@ -10,6 +10,12 @@ swift-ring-builder object.builder add r1z2-127.0.0.1:6020/sdb2 1 swift-ring-builder object.builder add r1z3-127.0.0.1:6030/sdb3 1 swift-ring-builder object.builder add r1z4-127.0.0.1:6040/sdb4 1 swift-ring-builder object.builder rebalance +swift-ring-builder object-1.builder create 10 2 1 +swift-ring-builder object-1.builder add r1z1-127.0.0.1:6010/sdb1 1 +swift-ring-builder object-1.builder add r1z2-127.0.0.1:6020/sdb2 1 +swift-ring-builder object-1.builder add r1z3-127.0.0.1:6030/sdb3 1 +swift-ring-builder object-1.builder add r1z4-127.0.0.1:6040/sdb4 1 +swift-ring-builder object-1.builder rebalance swift-ring-builder container.builder create 10 3 1 swift-ring-builder container.builder add r1z1-127.0.0.1:6011/sdb1 1 swift-ring-builder container.builder add r1z2-127.0.0.1:6021/sdb2 1 diff --git a/doc/saio/swift/container-reconciler.conf b/doc/saio/swift/container-reconciler.conf new file mode 100644 index 000000000..09261d294 --- /dev/null +++ b/doc/saio/swift/container-reconciler.conf @@ -0,0 +1,47 @@ +[DEFAULT] +# swift_dir = /etc/swift +user = <your-user-name> +# You can specify default log routing here if you want: +# log_name = swift +# log_facility = LOG_LOCAL0 +# log_level = INFO +# log_address = /dev/log +# +# comma separated list of functions to call to setup custom log handlers. +# functions get passed: conf, name, log_to_console, log_route, fmt, logger, +# adapted_logger +# log_custom_handlers = +# +# If set, log_udp_host will override log_address +# log_udp_host = +# log_udp_port = 514 +# +# You can enable StatsD logging here: +# log_statsd_host = localhost +# log_statsd_port = 8125 +# log_statsd_default_sample_rate = 1.0 +# log_statsd_sample_rate_factor = 1.0 +# log_statsd_metric_prefix = + +[container-reconciler] +# reclaim_age = 604800 +# interval = 300 +# request_tries = 3 + +[pipeline:main] +pipeline = catch_errors proxy-logging cache proxy-server + +[app:proxy-server] +use = egg:swift#proxy +# See proxy-server.conf-sample for options + +[filter:cache] +use = egg:swift#memcache +# See proxy-server.conf-sample for options + +[filter:proxy-logging] +use = egg:swift#proxy_logging + +[filter:catch_errors] +use = egg:swift#catch_errors +# See proxy-server.conf-sample for options diff --git a/doc/saio/swift/swift.conf b/doc/saio/swift/swift.conf index 23e7279e9..4d8b014e8 100644 --- a/doc/saio/swift/swift.conf +++ b/doc/saio/swift/swift.conf @@ -2,3 +2,10 @@ # random unique strings that can never change (DO NOT LOSE) swift_hash_path_prefix = changeme swift_hash_path_suffix = changeme + +[storage-policy:0] +name = gold +default = yes + +[storage-policy:1] +name = silver |