diff --git a/doc/source/development_saio.rst b/doc/source/development_saio.rst index 51ba9436b4..50f4dac87b 100644 --- a/doc/source/development_saio.rst +++ b/doc/source/development_saio.rst @@ -73,6 +73,8 @@ another device when creating the VM, and follow these instructions. #. `chown -R : /etc/swift /srv/[1-4]/ /var/run/swift` -- **Make sure to include the trailing slash after /srv/[1-4]/** #. Add to `/etc/rc.local` (before the `exit 0`):: + mkdir /var/cache/swift /var/cache/swift2 /var/cache/swift3 /var/cache/swift4 + chown : /var/cache/swift* mkdir /var/run/swift chown : /var/run/swift #. Next, skip to :ref:`rsync-section`. @@ -100,6 +102,8 @@ If you want to use a loopback device instead of another partition, follow these #. `chown -R : /etc/swift /srv/[1-4]/ /var/run/swift` -- **Make sure to include the trailing slash after /srv/[1-4]/** #. Add to `/etc/rc.local` (before the `exit 0`):: + mkdir /var/cache/swift /var/cache/swift2 /var/cache/swift3 /var/cache/swift4 + chown : /var/cache/swift* mkdir /var/run/swift chown : /var/run/swift @@ -329,13 +333,17 @@ Sample configuration files are provided with all defaults in line-by-line commen bind_port = 6012 user = log_facility = LOG_LOCAL2 + recon_cache_path = /var/cache/swift [pipeline:main] - pipeline = account-server + pipeline = recon account-server [app:account-server] use = egg:swift#account + [filter:recon] + use = egg:swift#recon + [account-replicator] vm_test_mode = yes @@ -351,13 +359,17 @@ Sample configuration files are provided with all defaults in line-by-line commen bind_port = 6022 user = log_facility = LOG_LOCAL3 + recon_cache_path = /var/cache/swift2 [pipeline:main] - pipeline = account-server + pipeline = recon account-server [app:account-server] use = egg:swift#account + [filter:recon] + use = egg:swift#recon + [account-replicator] vm_test_mode = yes @@ -373,13 +385,17 @@ Sample configuration files are provided with all defaults in line-by-line commen bind_port = 6032 user = log_facility = LOG_LOCAL4 + recon_cache_path = /var/cache/swift3 [pipeline:main] - pipeline = account-server + pipeline = recon account-server [app:account-server] use = egg:swift#account + [filter:recon] + use = egg:swift#recon + [account-replicator] vm_test_mode = yes @@ -395,13 +411,17 @@ Sample configuration files are provided with all defaults in line-by-line commen bind_port = 6042 user = log_facility = LOG_LOCAL5 + recon_cache_path = /var/cache/swift4 [pipeline:main] - pipeline = account-server + pipeline = recon account-server [app:account-server] use = egg:swift#account + [filter:recon] + use = egg:swift#recon + [account-replicator] vm_test_mode = yes @@ -417,13 +437,17 @@ Sample configuration files are provided with all defaults in line-by-line commen bind_port = 6011 user = log_facility = LOG_LOCAL2 + recon_cache_path = /var/cache/swift [pipeline:main] - pipeline = container-server + pipeline = recon container-server [app:container-server] use = egg:swift#container + [filter:recon] + use = egg:swift#recon + [container-replicator] vm_test_mode = yes @@ -441,13 +465,17 @@ Sample configuration files are provided with all defaults in line-by-line commen bind_port = 6021 user = log_facility = LOG_LOCAL3 + recon_cache_path = /var/cache/swift2 [pipeline:main] - pipeline = container-server + pipeline = recon container-server [app:container-server] use = egg:swift#container + [filter:recon] + use = egg:swift#recon + [container-replicator] vm_test_mode = yes @@ -465,13 +493,17 @@ Sample configuration files are provided with all defaults in line-by-line commen bind_port = 6031 user = log_facility = LOG_LOCAL4 + recon_cache_path = /var/cache/swift3 [pipeline:main] - pipeline = container-server + pipeline = recon container-server [app:container-server] use = egg:swift#container + [filter:recon] + use = egg:swift#recon + [container-replicator] vm_test_mode = yes @@ -489,13 +521,17 @@ Sample configuration files are provided with all defaults in line-by-line commen bind_port = 6041 user = log_facility = LOG_LOCAL5 + recon_cache_path = /var/cache/swift4 [pipeline:main] - pipeline = container-server + pipeline = recon container-server [app:container-server] use = egg:swift#container + [filter:recon] + use = egg:swift#recon + [container-replicator] vm_test_mode = yes @@ -514,13 +550,17 @@ Sample configuration files are provided with all defaults in line-by-line commen bind_port = 6010 user = log_facility = LOG_LOCAL2 + recon_cache_path = /var/cache/swift [pipeline:main] - pipeline = object-server + pipeline = recon object-server [app:object-server] use = egg:swift#object + [filter:recon] + use = egg:swift#recon + [object-replicator] vm_test_mode = yes @@ -536,13 +576,17 @@ Sample configuration files are provided with all defaults in line-by-line commen bind_port = 6020 user = log_facility = LOG_LOCAL3 + recon_cache_path = /var/cache/swift2 [pipeline:main] - pipeline = object-server + pipeline = recon object-server [app:object-server] use = egg:swift#object + [filter:recon] + use = egg:swift#recon + [object-replicator] vm_test_mode = yes @@ -558,13 +602,17 @@ Sample configuration files are provided with all defaults in line-by-line commen bind_port = 6030 user = log_facility = LOG_LOCAL4 + recon_cache_path = /var/cache/swift3 [pipeline:main] - pipeline = object-server + pipeline = recon object-server [app:object-server] use = egg:swift#object + [filter:recon] + use = egg:swift#recon + [object-replicator] vm_test_mode = yes @@ -580,13 +628,17 @@ Sample configuration files are provided with all defaults in line-by-line commen bind_port = 6040 user = log_facility = LOG_LOCAL5 + recon_cache_path = /var/cache/swift4 [pipeline:main] - pipeline = object-server + pipeline = recon object-server [app:object-server] use = egg:swift#object + [filter:recon] + use = egg:swift#recon + [object-replicator] vm_test_mode = yes @@ -615,6 +667,7 @@ Setting up scripts for running Swift sudo chown : /mnt/sdb1/* mkdir -p /srv/1/node/sdb1 /srv/2/node/sdb2 /srv/3/node/sdb3 /srv/4/node/sdb4 sudo rm -f /var/log/debug /var/log/messages /var/log/rsyncd.log /var/log/syslog + find /var/cache/swift* -type f -name *.recon -exec -rm -f {} \; sudo service rsyslog restart sudo service memcached restart