Ask Your Question
1

How to enable region-affinity in swift?

asked 2013-05-07 04:51:13 -0500

Max Lapshin gravatar image

I have one proxy and two storage nodes in two DC.

They are configured with swift-ring-builder with different regions:

Devices:    id  region  zone      ip address  port      name weight partitions balance meta
             0       1     1     1.1.1.9  6010     disk2   1.00       1366   0.05 
             1       1     1     1.1.1.9  6010     disk3   1.00       1365  -0.02 
             2       1     1     1.1.1.9  6010     disk4   1.00       1365  -0.02 
             3       2     2     2.2.2.3  6010     disk2   1.00       1366   0.05 
             4       2     2     2.2.2.3  6010     disk3   1.00       1365  -0.02 
             5       2     2     2.2.2.3  6010     disk4   1.00       1365  -0.02 

Proxy is configured:

[DEFAULT]
bind_port = 6000
user = swift
log_facility = LOG_LOCAL1
eventlet_debug = true
region = 1

Why do proxy tries to download file from 2.2.2.3, when this file exists on 1.1.1.9 ?

edit retag flag offensive close merge delete

Comments

I looked through the source code and there does not seem to be any proxy-affinity built into the current version of swift. (V 1.8.0)

Thomaschaaf gravatar imageThomaschaaf ( 2013-05-10 03:56:25 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-05-10 11:39:18 -0500

See https://blueprints.launchpad.net/swift/+spec/proxy-affinity (the blueprint). It looks like there is code but it has not passed https://review.openstack.org/#/c/27431/ (code review) yet.

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

Stats

Asked: 2013-05-07 04:51:13 -0500

Seen: 324 times

Last updated: May 10 '13