Managing the OpenStack Object Storage cluster with swift-init

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.

Getting ready

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

How to do it...

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

stop, start, and restart

As stated, the start and stop commands are used to start and stop the daemon objects. The restart command will include both functions of the stop and start commands successively.

force - reload and reload

A graceful shutdown and restart.

shutdown

Shutdown after waiting for current processes to finish.

no-daemon

Start a server within the current shell.

no-wait

Spawn server and return immediately.

once

Start server and run one pass.

status

Display the status of the processes for the server.

How it works...

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.

There's more…

Explanation of the various features and services of Swift can be found at http://docs.openstack.org/developer/swift/admin_guide.html.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset