How to create multiple Swift connections? [closed]

asked 2014-07-08 16:03:44 -0600

tliu526 gravatar image

I'm using the python-swiftclient api, and am attempting get the multithreading to work. I'm having issues creating multiple connections to Swift. The documentation I'm referring to is here: (

And the function get_conn() looks like this:

def get_conn():
    return swiftclient.client.Connection(user=user, key=key, authurl=url)

I pass get_conn() to the connection_maker param for the queue_manager(), but the connection returned is always the same; as a result when I try to run PUTs in parallel the objects get overwritten. How do I create multiple Swift connections using the same login credentials?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by tliu526
close date 2014-07-09 09:52:29.053027


Why did you close this question? If you found the answer, please share it so others can find it in the future.

smaffulli gravatar imagesmaffulli ( 2014-07-09 10:21:20 -0600 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2014-07-09 11:46:47 -0600

tliu526 gravatar image

Hi, I closed this question because the issue I had with the PUT command was unrelated to creating multiple Swift connections; the code I posted above was actually working correctly.

edit flag offensive delete link more


thank you!

smaffulli gravatar imagesmaffulli ( 2014-07-09 11:56:05 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools


Asked: 2014-07-08 16:03:44 -0600

Seen: 158 times

Last updated: Jul 08 '14