Ask Your Question
0

Openstack Swift with pound(load balance) problem

asked 2013-10-29 04:11:08 -0500

s90752 gravatar image

Hi all,

I am setting my Openstack Swift with pound, but It did not work, can anyone help me out?

I built a swift cluser,two proxy server , one pound server ---load balance for two swift proxy server,and two storage server

My 192.168.208.118(pound server)'s pound.cfg is:

Minimal sample pound.cfg

##

see pound(8) for details

######################################################################

global options:

User "root" Group "root" #RootJail "/chroot/pound"

Logging: (goes to syslog by default)

0 no logging

1 normal

2 extended

3 Apache-style (common log format)

LogLevel 1

check backend every X secs:

Alive 30

use hardware-accelleration card supported by openssl(1):

#SSLEngine "<hw>"

poundctl control socket

Control "/var/run/pound/poundctl.socket"

######################################################################

listen, redirect and ... to:

redirect all requests on port 8080 ("ListenHTTP") to the local webserver (see "Service" below):

ListenHTTP Address 0.0.0.0 Port 80

    ## allow PUT and DELETE also (by default only GET, POST and HEAD)?:
    xHTTP           2

End Service BackEnd Address 192.168.208.116 # proxy server1 Port 8080 End Service BackEnd Address 192.168.208.117 # proxy server2 Port 8080 End End

My 192.168.208.116( proxy server1)'s proxy-server.conf is:

[DEFAULT] bind_port = 8080 workers = 8 user = swift #log_level = DEBUG log_facility = LOG_LOCAL1 eventlet_debug = true

[pipeline:main] #pipeline = healthcheck proxy-logging cache tempauth proxy-logging proxy-server #pipeline = healthcheck cache tempauth proxy-server pipeline = healthcheck cache authtoken keystone proxy-server

[app:proxy-server] use = egg:swift#proxy allow_account_management = true account_autocreate = true

[filter:keystone] paste.filter_factory = keystone.middleware.swift_auth:filter_factory operator_roles = Member,admin

[filter:authtoken] paste.filter_factory = keystone.middleware.auth_token:filter_factory delay_auth_decision =0 service_port = 5000 service_host = 192.168.208.116 auth_port = 35357 auth_host = 192.168.208.116 auth_uri=http://192.168.208.116:5000/ auth_token = ADMIN admin_token = ADMIN auth_protocol = http

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

[filter:cache] use = egg:swift#memcache

[filter:proxy-logging] use = egg:swift#proxy_logging

The command: swift -V 2 -A http://192.168.208.118 -U admin -K admin list [Errno 111] ECONNREFUSED or swift -V 2 -A http://192.168.208.118 -U admin:admin -K admin list [Errno 111] ECONNREFUSED

How can I solve this problem?

p.s. The following command works: swift -V 2 -A http://192.168.208.116:5000/v2.0 -U admin -K admin list container_test

There is no log file available for pound, how can I enable the log file for pound?

Thank you very much.

Andy Chang

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-11-08 07:12:20 -0500

s90752 gravatar image

Problem solved. thanks

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-10-29 04:11:08 -0500

Seen: 84 times

Last updated: Nov 08 '13