Merge lp:~letterj/swift/defaultbacklog into lp:~hudson-openstack/swift/trunk

Proposed by Jay Payne
Status: Merged
Approved by: Chuck Thier
Approved revision: 94
Merged at revision: 95
Proposed branch: lp:~letterj/swift/defaultbacklog
Merge into: lp:~hudson-openstack/swift/trunk
Diff against target: 47 lines (+4/-0)
4 files modified
etc/account-server.conf-sample (+1/-0)
etc/container-server.conf-sample (+1/-0)
etc/object-server.conf-sample (+1/-0)
etc/proxy-server.conf-sample (+1/-0)
To merge this branch: bzr merge lp:~letterj/swift/defaultbacklog
Reviewer Review Type Date Requested Status
Chuck Thier (community) Approve
clayg Needs Fixing
Review via email: mp+38265@code.launchpad.net

Description of the change

Added default backlog setting to the sample config file

To post a comment you must log in.
Revision history for this message
clayg (clay-gerrard) wrote :

Of little consequence; there's some debate on proper placement of the backlog setting in the config. Does it belong in the app section? Or should it be in the default section next to the other socket related options - bind_ip and bind_port?

After some discussion, it seems that the "bind_port" is used by the replicator to determine which devices in the ring it's responsible for replicating. In many cases comparing the 'ip' of the device in the ring to the ips configured on the system running the replicator (see common.util.whataremyips) is enough for the replicator to "claim" a device - but not always (e.g. saio) - so the bind_port in the config is used as final verification key.

To keep things less weird looking it seems a few other app/server config options were moved into default section as well (i.e. bind_ip and workers - which are all used in run_wsgi around the same time as bind_port) - although I can't see where any of them besides bind_port are used in any other module classes.

IMHO, all the socket and run_wsgi related config options should probably be kept together in the default section of the config instead of the app/server section - but my only justification is keeping with the convention of "less weird looking".

If there's time, it may be nice to try and track down some other "config option easter eggs" that could added to the conf-sample's (e.g. object-replicator.ring_check_interval) and some defaults that don't match the configs (e.g. object-replicator.timeout)

review: Needs Fixing
lp:~letterj/swift/defaultbacklog updated
94. By Jay Payne

Moved backlog setting into the [Default] section of the sample-conf files

Revision history for this message
Chuck Thier (cthier) wrote :

Looks good for now, and suffices for this bug report. Clayg, would you mind making bug reports for the other config cleanup stuff, as those should be done at some point, but not with this branch.

review: Approve
Revision history for this message
clayg (clay-gerrard) wrote :

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'etc/account-server.conf-sample'
2--- etc/account-server.conf-sample 2010-08-24 14:10:36 +0000
3+++ etc/account-server.conf-sample 2010-10-14 00:15:56 +0000
4@@ -1,6 +1,7 @@
5 [DEFAULT]
6 # bind_ip = 0.0.0.0
7 # bind_port = 6002
8+# backlog = 4096
9 # workers = 1
10 # user = swift
11 # swift_dir = /etc/swift
12
13=== modified file 'etc/container-server.conf-sample'
14--- etc/container-server.conf-sample 2010-08-24 14:10:36 +0000
15+++ etc/container-server.conf-sample 2010-10-14 00:15:56 +0000
16@@ -1,6 +1,7 @@
17 [DEFAULT]
18 # bind_ip = 0.0.0.0
19 # bind_port = 6001
20+# backlog = 4096
21 # workers = 1
22 # user = swift
23 # swift_dir = /etc/swift
24
25=== modified file 'etc/object-server.conf-sample'
26--- etc/object-server.conf-sample 2010-08-24 14:10:36 +0000
27+++ etc/object-server.conf-sample 2010-10-14 00:15:56 +0000
28@@ -1,6 +1,7 @@
29 [DEFAULT]
30 # bind_ip = 0.0.0.0
31 # bind_port = 6000
32+# backlog = 4096
33 # workers = 1
34 # user = swift
35 # swift_dir = /etc/swift
36
37=== modified file 'etc/proxy-server.conf-sample'
38--- etc/proxy-server.conf-sample 2010-09-09 17:24:25 +0000
39+++ etc/proxy-server.conf-sample 2010-10-14 00:15:56 +0000
40@@ -1,6 +1,7 @@
41 [DEFAULT]
42 # bind_ip = 0.0.0.0
43 # bind_port = 80
44+# backlog = 4096
45 # swift_dir = /etc/swift
46 # workers = 1
47 # user = swift