Swift -- Collecting usage statistics and detecting failed hard drives

Collecting usage statistics

on each Swift Storage node:

vi /etc/swift/object-server.conf
[pipeline:main]
pipeline = recon object-server

[filter:recon]
use = egg:swift#recon
recon_cache_path = /var/swift/recon


service openstack-swift-object restart


on Swift Proxy Server

swift-recon -d --human-readable
swift-recon --all


detecting failed hard drives

on each swift storage node:

vi /etc/rsyslog.conf
kern.*    /var/log/kern.log

service rsyslog restart

vi /etc/swift/swift-drive-audit.conf
[drive-audit]
log_facility=LOG_LOCAL0
log_level=INFO
device_dir=/srv/node
minutes=60
error_limit=1

chown swift:swift /etc/swift/swift-drive-audit.conf

crontab -e
@hourly /usr/bin/swift-drive-audit /etc/swift/swift-drive-audit.conf

service crond restart

你可能感兴趣的:(swift)