Container Server Configuration
An example Container Server configuration can be found at
etc/container-server.conf-sample in the source code repository.
The following configuration options are available:
Table 4.6. container-server.conf Default Options in the [DEFAULT] section
| Option |
Default |
Description |
| swift_dir |
/etc/swift |
Swift configuration directory |
| devices |
/srv/node |
Parent directory of where devices are mounted |
| mount_check |
true |
Whether or not check if the devices are mounted to prevent accidentally
writing to the root device |
| bind_ip |
0.0.0.0 |
IP Address for server to bind to |
| bind_port |
6001 |
Port for server to bind to |
| workers |
1 |
Number of workers to fork |
| user |
swift |
User to run as |
Table 4.7. container-server.conf Server Options in the [container-server] section
| Option |
Default |
Description |
| use |
|
paste.deploy entry point for the container server. For most cases, this
should be egg:swift#container. |
| log_name |
container-server |
Label used when logging |
| log_facility |
LOG_LOCAL0 |
Syslog log facility |
| log_level |
INFO |
Logging level |
| node_timeout |
3 |
Request timeout to external services |
| conn_timeout |
0.5 |
Connection timeout to external services |
Table 4.8. container-server.conf Replicator Options in the [container-replicator] section
| Option |
Default |
Description |
| log_name |
container-replicator |
Label used when logging |
| log_facility |
LOG_LOCAL0 |
Syslog log facility |
| log_level |
INFO |
Logging level |
| per_diff |
1000 |
|
| concurrency |
8 |
Number of replication workers to spawn |
| run_pause |
30 |
Time in seconds to wait between replication passes |
| node_timeout |
10 |
Request timeout to external services |
| conn_timeout |
0.5 |
Connection timeout to external services |
| reclaim_age |
604800 |
Time elapsed in seconds before a container can be reclaimed |
Table 4.9. container-server.conf Updater Options in the [container-updater] section
| Option |
Default |
Description |
| log_name |
container-updater |
Label used when logging |
| log_facility |
LOG_LOCAL0 |
Syslog log facility |
| log_level |
INFO |
Logging level |
| interval |
300 |
Minimum time for a pass to take |
| concurrency |
4 |
Number of updater workers to spawn |
| node_timeout |
3 |
Request timeout to external services |
| conn_timeout |
0.5 |
Connection timeout to external services |
| slowdown |
0.01 |
Time in seconds to wait between containers |
Table 4.10. container-server.conf Auditor Options in the [container-auditor] section
| Option |
Default |
Description |
| log_name |
container-auditor |
Label used when logging |
| log_facility |
LOG_LOCAL0 |
Syslog log facility |
| log_level |
INFO |
Logging level |
| interval |
1800 |
Minimum time for a pass to take |