Services in our OpenStack Object Storage environment can be managed using the swift-init
tool. This tool allows us to control all the daemons in OpenStack Object Storage in a convenient way. For information on installing and configuring the Swift services or daemons, see Chapter 5, Swift – OpenStack Object Storage.
Login to any OpenStack Object Storage node. If using the vagrant
environment, these can be accessed by using the following commands:
vagrant ssh swift-proxy vagrant ssh swift-01 vagrant ssh swift-02 vagrant ssh swift-03 vagrant ssh swift-04 vagrant ssh swift-05
The swift-init
tool can be used to control any of the running daemons in our OpenStack Object Storage cluster rather than calling individual init
scripts, which makes it a convenient tool.
To control OpenStack Object Storage proxy, use the following command:
swift-init proxy-server { command }
To control OpenStack Object Storage object daemons, use the following commands:
swift-init object { command } swift-init object-replicator {command } swift-init object-auditor { command } swift-init object-updater { command }
To control OpenStack Object Storage container daemons, use the following commands:
swift-init container { command } swift-init container-update { command } swift-init container-replicator { command } swift-init container-auditor { command }
To control OpenStack Object Storage account daemons, use the following commands:
swift-init account { command } swift-init account-auditor { command } swift-init account-reaper { command } swift-init account-replicator { command }
To control all daemons, use the following command:
swift-init all { command }
The { command }
term can be one of the following:
Command |
Description |
---|---|
|
As stated, the |
|
A graceful shutdown and restart. |
|
Shutdown after waiting for current processes to finish. |
|
Start a server within the current shell. |
|
Spawn server and return immediately. |
|
Start server and run one pass. |
|
Display the status of the processes for the server. |
The swift-init
tool is a single tool that can be used to manage any of the running OpenStack Object Storage daemons. This allows for consistency in managing our cluster.
Explanation of the various features and services of Swift can be found at http://docs.openstack.org/developer/swift/admin_guide.html.