Create an account server configuration file for node #1: /etc/swift/account-server/1.conf and add the following lines to the file

[DEFAULT]
devices = /srv/1/node
mount_check = false
bind_port = 6012
user = swift
log_facility = LOG_LOCAL2

[pipeline:main]
pipeline = account-server

[app:account-server]
use = egg:swift#account

[account-replicator]
vm_test_mode = yes

[account-auditor]

[account-reaper]

We need to create the configuration for the rest of the three virtual nodes (/srv/2/node, /srv/3/node, /srv/4/node ) as well. So we simply make three more copies of 1.conf and set unique bind ports for the rest of the nodes (6022. 6032 and 6042) and different local log values (LOG_LOCAL3, LOG_LOCAL4, LOG_LOCAL5).

sudo cp /etc/swift/account-server/1.conf /etc/swift/account-server/2.conf
sudo cp /etc/swift/account-server/1.conf /etc/swift/account-server/3.conf
sudo cp /etc/swift/account-server/1.conf /etc/swift/account-server/4.conf

Now we need to edit the files 2.conf, etc. created by the above command and edit the bind port number and local log values.


loading table of contents...