User:Bhartshorne/swift upgrade notes 2012-08

From Wikitech

swift upgrade notes from 1.4.3 to 1.5.0-3

packages (bast1001:~ben/swift_packages_1.5.0.tgz):

  • python-ss-statsd_1.7-4ss7_all.deb (requires python-argparse)
  • python-swauth_1.0.5~dev-1_all.deb
  • python-swift_1.5.0-3_all.deb
  • swift_1.5.0-3_all.deb
  • swift-account_1.5.0-3_all.deb
  • swift-container_1.5.0-3_all.deb
  • swift-doc_1.5.0-3_all.deb
  • swift-object_1.5.0-3_all.deb
  • swift-proxy_1.5.0-3_all.deb

How these are broken up:

  • all hosts:
    • python-ss-statsd_1.7-4ss7_all.deb
    • python-swift_1.5.0-3_all.deb
    • swift_1.5.0-3_all.deb
    • swift-doc_1.5.0-3_all.deb
  • proxy:
    • swift-proxy_1.5.0-3_all.deb
    • python-swauth_1.0.5~dev-1_all.deb
  • storage:
    • swift-account_1.5.0-3_all.deb
    • swift-container_1.5.0-3_all.deb
    • swift-object_1.5.0-3_all.deb

config changes needed

  • statsd configs
  • db preallocation to false
  • proxy logging
  • swift recon (optional)

config changes for the proxy server

  • proxy logging
    • change /etc/proxy-server.conf
 pipeline = rewrite healthcheck cache swauth proxy-logging proxy-server
 ...
 [filter:proxy-logging]
 use = egg:swift#proxy_logging
  • add in statsd configs

change rewrite.py

  • remove the ObjectController class
  • adjust call():
 app_iter = self._app_call(env) #01
 status = self._get_status_int()
 headers = self._response_headers

start statsd per server:

  • change arguments to be specific to each host
    • choose appropriate ganglia-host from the gmond.conf
    • change spoof-host to local IP : hostname (or don't use spoof-host
 pystatsd-server -n 127.0.0.1 -r ganglia --ganglia-host 10.4.0.79 --ganglia-port 21206 \
   --flush-interval 15 -d --ganglia-spoof-host 10.4.0.167:su-fe1 --ganglia-counter-group swift_counters

config changes for account, object, container servers

  • add db_preallocate = on to the DEFAULT section