swift-log-uploader requires proxy-server.conf on account nodes

Asked by Robert Parker

I have set up a proxy node and 4 storage nodes with swift version 1.3. I have added the missing files (db_stats_collector.py and swift-container-stat-logger). I have followed the directions http://swift.openstack.org/overview_stats.html#account-container-db-stats-logs and http://swift.openstack.org/1.2/overview_stats.html#running-the-stats-system-on-saio but I have tried to separate where appropriate proxy logging configuration from the account/container node configuration. Running the commands on the storage node(s)

/usr/bin/swift-log-uploader /etc/swift/log-processor.conf stats
/usr/bin/swift-log-uploader /etc/swift/log-processor.conf container-stats

fail unless I copy the proxy-server.conf to the storage node.

Should the proxy-server.conf be required on the storage nodes?
Is there any better documentation for setting up multi-noded Swift stats/logging?

Thanks,
rob

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Object Storage (swift) Edit question
Assignee:
No assignee Edit question
Solved by:
Marcelo Martins
Solved:
Last query:
Last reply:
Revision history for this message
Best Marcelo Martins (btorch) said :
#1

Hi Robert,

Indeed, it needs a bare minimal proxy-server.conf file. You could call it "/etc/swift/internal-proxy-server.conf" and place it in the storage nodes. So in the "/etc/swift/log-processor.conf" you would add "proxy_server_conf = /etc/swift/internal-proxy-server.conf". Give that a try and see how it works.

--------------- example -------------
[DEFAULT]

[pipeline:main]
pipeline = catch_errors proxy-server

[app:proxy-server]
use = egg:swift#proxy
set log_facility = LOG_LOCAL0
node_timeout = 60
conn_timeout = 3.5
allow_account_management = false

[filter:catch_errors]
use = egg:swift#catch_errors

---------------------------

Revision history for this message
Robert Parker (rob-s-parker) said :
#2

Thanks Marcelo Martins, that solved my question.