35
This is the configuration file used by the object server and other object
36
background services, such as; replicator, updater and auditor.
35
This is the configuration file used by the object server and other object
36
background services, such as; replicator, updater and auditor.
38
38
The configuration file follows the python-pastedeploy syntax. The file is divided
39
into sections, which are enclosed by square brackets. Each section will contain a
40
certain number of key/value parameters which are described later.
42
Any line that begins with a '#' symbol is ignored.
44
You can find more information about python-pastedeploy configuration format at
39
into sections, which are enclosed by square brackets. Each section will contain a
40
certain number of key/value parameters which are described later.
42
Any line that begins with a '#' symbol is ignored.
44
You can find more information about python-pastedeploy configuration format at
45
45
\fIhttp://pythonpaste.org/deploy/#config-format\fR
52
This is indicated by section named [DEFAULT]. Below are the parameters that
53
are acceptable within this section.
52
This is indicated by section named [DEFAULT]. Below are the parameters that
53
are acceptable within this section.
55
55
.IP "\fBbind_ip\fR"
56
IP address the object server should bind to. The default is 0.0.0.0 which will make
56
IP address the object server should bind to. The default is 0.0.0.0 which will make
57
57
it bind to all available addresses.
59
TCP port the object server should bind to. The default is 6000.
61
TCP backlog. Maximum number of allowed pending connections. The default value is 4096.
63
Number of object server workers to fork. The default is 1.
65
The system user that the object server will run as. The default is swift.
59
TCP port the object server should bind to. The default is 6000.
61
TCP backlog. Maximum number of allowed pending connections. The default value is 4096.
63
Number of object server workers to fork. The default is 1.
65
The system user that the object server will run as. The default is swift.
67
67
Swift configuration directory. The default is /etc/swift.
69
69
Parent directory or where devices are mounted. Default is /srv/node.
71
Whether or not check if the devices are mounted to prevent accidentally writing to
71
Whether or not check if the devices are mounted to prevent accidentally writing to
72
72
the root device. The default is set to true.
74
74
Label used when logging. The default is swift.
75
.IP \fBlog_facility\fR
75
.IP \fBlog_facility\fR
76
76
Syslog log facility. The default is LOG_LOCAL0.
78
78
Logging level. The default is INFO.
79
79
.IP \fBlog_address\fR
80
80
Logging address. The default is /dev/log.
86
86
.SH PIPELINE SECTION
89
89
This is indicated by section name [pipeline:main]. Below are the parameters that
90
are acceptable within this section.
90
are acceptable within this section.
92
92
.IP "\fBpipeline\fR"
93
It is used when you need to apply a number of filters. It is a list of filters
94
ended by an application. The default should be \fB"healthcheck recon
93
It is used when you need to apply a number of filters. It is a list of filters
94
ended by an application. The normal pipeline is "healthcheck recon
104
104
This is indicated by section name [app:object-server]. Below are the parameters
105
105
that are acceptable within this section.
107
Entry point for paste.deploy for the object server. This is the reference to the installed python egg.
108
The default is \fBegg:swift#object\fR.
109
.IP "\fBset log_name\fR
107
Entry point for paste.deploy for the object server. This is the reference to the installed python egg.
108
This is normally \fBegg:swift#object\fR.
109
.IP "\fBset log_name\fR
110
110
Label used when logging. The default is object-server.
111
.IP "\fBset log_facility\fR
111
.IP "\fBset log_facility\fR
112
112
Syslog log facility. The default is LOG_LOCAL0.
113
.IP "\fB set log_level\fR
113
.IP "\fB set log_level\fR
114
114
Logging level. The default is INFO.
115
.IP "\fB set log_requests\fR
115
.IP "\fB set log_requests\fR
116
116
Enables request logging. The default is True.
117
117
.IP "\fB set log_address\fR
118
118
Logging address. The default is /dev/log.
119
119
.IP \fBnode_timeout\fR
120
Request timeout to external services. The default is 3 seconds.
121
.IP \fBconn_timeout\fR
122
Connection timeout to external services. The default is 0.5 seconds.
120
Request timeout to external services. The default is 3 seconds.
121
.IP \fBconn_timeout\fR
122
Connection timeout to external services. The default is 0.5 seconds.
128
128
.SH FILTER SECTION
131
131
Any section that has its name prefixed by "filter:" indicates a filter section.
132
132
Filters are used to specify configuration parameters for specific swift middlewares.
133
Below are the filters available and respective acceptable parameters.
133
Below are the filters available and respective acceptable parameters.
134
134
.IP "\fB[filter:healthcheck]\fR"
138
Entry point for paste.deploy for the healthcheck middleware. This is the reference to the installed python egg.
139
The default is \fBegg:swift#healthcheck\fR.
138
Entry point for paste.deploy for the healthcheck middleware. This is the reference to the installed python egg.
139
This is normally \fBegg:swift#healthcheck\fR.
140
.IP "\fBdisable_path\fR"
141
An optional filesystem path which, if present, will cause the healthcheck
142
URL to return "503 Service Unavailable" with a body of "DISABLED BY FILE".
143
146
.IP "\fB[filter:recon]\fR"
147
Entry point for paste.deploy for the healthcheck middleware. This is the reference to the installed python egg.
148
The default is \fBegg:swift#recon\fR.
150
Entry point for paste.deploy for the recon middleware. This is the reference to the installed python egg.
151
This is normally \fBegg:swift#recon\fR.
149
152
.IP "\fBrecon_cache_path\fR"
150
The recon_cache_path simply sets the directory where stats for a few items will be stored.
151
Depending on the method of deployment you may need to create this directory manually
152
and ensure that swift has read/write.The default is /var/cache/swift.
153
The recon_cache_path simply sets the directory where stats for a few items will be stored.
154
Depending on the method of deployment you may need to create this directory manually
155
and ensure that swift has read/write. The default is /var/cache/swift.
163
166
.IP "\fB[object-replicator]\fR"
167
170
Label used when logging. The default is object-replicator.
168
.IP \fBlog_facility\fR
171
.IP \fBlog_facility\fR
169
172
Syslog log facility. The default is LOG_LOCAL0.
171
174
Logging level. The default is INFO.
172
175
.IP \fBlog_address\fR
173
176
Logging address. The default is /dev/log.
174
.IP \fBvm_test_mode\fR
177
.IP \fBvm_test_mode\fR
175
178
Indicates that you are using a VM environment. The default is no.
177
180
Whether or not to run replication as a daemon. The default is yes.
179
182
Time in seconds to wait between replication passes. The default is 30.
180
.IP \fBconcurrency\fR
183
.IP \fBconcurrency\fR
181
184
Number of replication workers to spawn. The default is 1.
182
.IP \fBstats_interval\fR
185
.IP \fBstats_interval\fR
183
186
Interval in seconds between logging replication statistics. The default is 300.
184
.IP \fBrsync_timeout\fR
185
Max duration of a partition rsync. The default is 900 seconds.
186
.IP \fBrsync_io_timeout\fR
187
Passed to rsync for I/O OP timeout. The default is 30 seconds.
188
.IP \fBhttp_timeout\fR
189
Max duration of an HTTP request. The default is 60 seconds.
190
.IP \fBlockup_timeout\fR
191
Attempts to kill all workers if nothing replicates for lockup_timeout seconds. The
192
default is 1800 seconds.
193
.IP \fBreclaim_age\fR
194
Time elapsed in seconds before an object can be reclaimed. The default is
187
.IP \fBrsync_timeout\fR
188
Max duration of a partition rsync. The default is 900 seconds.
189
.IP \fBrsync_io_timeout\fR
190
Passed to rsync for I/O OP timeout. The default is 30 seconds.
191
.IP \fBhttp_timeout\fR
192
Max duration of an HTTP request. The default is 60 seconds.
193
.IP \fBlockup_timeout\fR
194
Attempts to kill all workers if nothing replicates for lockup_timeout seconds. The
195
default is 1800 seconds.
196
.IP \fBreclaim_age\fR
197
Time elapsed in seconds before an object can be reclaimed. The default is
196
199
.IP \fBrecon_enable\fR
197
200
Enable logging of replication stats for recon. The default is on.
198
201
.IP "\fBrecon_cache_path\fR"
199
The recon_cache_path simply sets the directory where stats for a few items will be stored.
200
Depending on the method of deployment you may need to create this directory manually
201
and ensure that swift has read/write.The default is /var/cache/swift.
202
The recon_cache_path simply sets the directory where stats for a few items will be stored.
203
Depending on the method of deployment you may need to create this directory manually
204
and ensure that swift has read/write.The default is /var/cache/swift.
206
209
.IP "\fB[object-updater]\fR"
210
213
Label used when logging. The default is object-updater.
211
.IP \fBlog_facility\fR
214
.IP \fBlog_facility\fR
212
215
Syslog log facility. The default is LOG_LOCAL0.
214
217
Logging level. The default is INFO.
215
218
.IP \fBlog_address\fR
216
219
Logging address. The default is /dev/log.
218
Minimum time for a pass to take. The default is 300 seconds.
219
.IP \fBconcurrency\fR
220
Number of reaper workers to spawn. The default is 1.
221
.IP \fBnode_timeout\fR
222
Request timeout to external services. The default is 10 seconds.
223
.IP \fBconn_timeout\fR
224
Connection timeout to external services. The default is 0.5 seconds.
221
Minimum time for a pass to take. The default is 300 seconds.
222
.IP \fBconcurrency\fR
223
Number of reaper workers to spawn. The default is 1.
224
.IP \fBnode_timeout\fR
225
Request timeout to external services. The default is 10 seconds.
226
.IP \fBconn_timeout\fR
227
Connection timeout to external services. The default is 0.5 seconds.
225
228
.IP \fBslowdown = 0.01\fR
226
Slowdown will sleep that amount between objects. The default is 0.01 seconds.
229
Slowdown will sleep that amount between objects. The default is 0.01 seconds.
232
235
.IP "\fB[object-auditor]\fR"
236
239
Label used when logging. The default is object-auditor.
237
.IP \fBlog_facility\fR
240
.IP \fBlog_facility\fR
238
241
Syslog log facility. The default is LOG_LOCAL0.
240
243
Logging level. The default is INFO.
241
244
.IP \fBlog_address\fR
242
245
Logging address. The default is /dev/log.
244
.IP \fBfiles_per_second\fR
245
Maximum files audited per second. Should be tuned according to individual
246
system specs. 0 is unlimited. The default is 20.
247
.IP \fBbytes_per_second\fR
248
Maximum bytes audited per second. Should be tuned according to individual
249
system specs. 0 is unlimited. The default is 10000000.
247
.IP \fBfiles_per_second\fR
248
Maximum files audited per second. Should be tuned according to individual
249
system specs. 0 is unlimited. The default is 20.
250
.IP \fBbytes_per_second\fR
251
Maximum bytes audited per second. Should be tuned according to individual
252
system specs. 0 is unlimited. The default is 10000000.
251
254
The default is 3600 seconds.
252
.IP \fBzero_byte_files_per_second\fR
255
.IP \fBzero_byte_files_per_second\fR
259
262
.SH DOCUMENTATION
261
264
More in depth documentation about the swift-object-server and
262
also Openstack-Swift as a whole can be found at
263
.BI http://swift.openstack.org/admin_guide.html
265
also Openstack-Swift as a whole can be found at
266
.BI http://swift.openstack.org/admin_guide.html
265
268
.BI http://swift.openstack.org