Skip to content

Commit

Permalink
Merge "Allows to configure the rsync modules where the replicators wi…
Browse files Browse the repository at this point in the history
…ll send data"
  • Loading branch information
Jenkins authored and openstack-gerrit committed Sep 16, 2015
2 parents e399dcb + 71f6fd0 commit 241b68d
Show file tree
Hide file tree
Showing 27 changed files with 247 additions and 76 deletions.
2 changes: 0 additions & 2 deletions doc/manpages/account-server.conf.5
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,6 @@ Syslog log facility. The default is LOG_LOCAL0.
Logging level. The default is INFO.
.IP \fBlog_address\fR
Logging address. The default is /dev/log.
.IP \fBvm_test_mode\fR
Indicates that you are using a VM environment. The default is no.
.IP \fBper_diff\fR
The default is 1000.
.IP \fBmax_diffs\fR
Expand Down
2 changes: 0 additions & 2 deletions doc/manpages/container-server.conf.5
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,6 @@ Syslog log facility. The default is LOG_LOCAL0.
Logging level. The default is INFO.
.IP \fBlog_address\fR
Logging address. The default is /dev/log.
.IP \fBvm_test_mode\fR
Indicates that you are using a VM environment. The default is no.
.IP \fBer_diff\fR
The default is 1000.
.IP \fBmax_diffs\fR
Expand Down
2 changes: 0 additions & 2 deletions doc/manpages/object-server.conf.5
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,6 @@ Syslog log facility. The default is LOG_LOCAL0.
Logging level. The default is INFO.
.IP \fBlog_address\fR
Logging address. The default is /dev/log.
.IP \fBvm_test_mode\fR
Indicates that you are using a VM environment. The default is no.
.IP \fBdaemonize\fR
Whether or not to run replication as a daemon. The default is yes.
.IP "\fBrun_pause [deprecated]\fR"
Expand Down
2 changes: 1 addition & 1 deletion doc/saio/swift/account-server/1.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use = egg:swift#account
use = egg:swift#recon

[account-replicator]
vm_test_mode = yes
rsync_module = {replication_ip}::account{replication_port}

[account-auditor]

Expand Down
2 changes: 1 addition & 1 deletion doc/saio/swift/account-server/2.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use = egg:swift#account
use = egg:swift#recon

[account-replicator]
vm_test_mode = yes
rsync_module = {replication_ip}::account{replication_port}

[account-auditor]

Expand Down
2 changes: 1 addition & 1 deletion doc/saio/swift/account-server/3.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use = egg:swift#account
use = egg:swift#recon

[account-replicator]
vm_test_mode = yes
rsync_module = {replication_ip}::account{replication_port}

[account-auditor]

Expand Down
2 changes: 1 addition & 1 deletion doc/saio/swift/account-server/4.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use = egg:swift#account
use = egg:swift#recon

[account-replicator]
vm_test_mode = yes
rsync_module = {replication_ip}::account{replication_port}

[account-auditor]

Expand Down
2 changes: 1 addition & 1 deletion doc/saio/swift/container-server/1.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use = egg:swift#container
use = egg:swift#recon

[container-replicator]
vm_test_mode = yes
rsync_module = {replication_ip}::container{replication_port}

[container-updater]

Expand Down
2 changes: 1 addition & 1 deletion doc/saio/swift/container-server/2.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use = egg:swift#container
use = egg:swift#recon

[container-replicator]
vm_test_mode = yes
rsync_module = {replication_ip}::container{replication_port}

[container-updater]

Expand Down
2 changes: 1 addition & 1 deletion doc/saio/swift/container-server/3.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use = egg:swift#container
use = egg:swift#recon

[container-replicator]
vm_test_mode = yes
rsync_module = {replication_ip}::container{replication_port}

[container-updater]

Expand Down
2 changes: 1 addition & 1 deletion doc/saio/swift/container-server/4.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use = egg:swift#container
use = egg:swift#recon

[container-replicator]
vm_test_mode = yes
rsync_module = {replication_ip}::container{replication_port}

[container-updater]

Expand Down
2 changes: 1 addition & 1 deletion doc/saio/swift/object-server/1.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use = egg:swift#object
use = egg:swift#recon

[object-replicator]
vm_test_mode = yes
rsync_module = {replication_ip}::object{replication_port}

[object-reconstructor]

Expand Down
2 changes: 1 addition & 1 deletion doc/saio/swift/object-server/2.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use = egg:swift#object
use = egg:swift#recon

[object-replicator]
vm_test_mode = yes
rsync_module = {replication_ip}::object{replication_port}

[object-reconstructor]

Expand Down
2 changes: 1 addition & 1 deletion doc/saio/swift/object-server/3.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use = egg:swift#object
use = egg:swift#recon

[object-replicator]
vm_test_mode = yes
rsync_module = {replication_ip}::object{replication_port}

[object-reconstructor]

Expand Down
2 changes: 1 addition & 1 deletion doc/saio/swift/object-server/4.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use = egg:swift#object
use = egg:swift#recon

[object-replicator]
vm_test_mode = yes
rsync_module = {replication_ip}::object{replication_port}

[object-reconstructor]

Expand Down
35 changes: 35 additions & 0 deletions doc/source/deployment_guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,17 @@ node_timeout DEFAULT or 10 Request timeout to external services.
in the DEFAULT section, or 10 (though
other sections use 3 as the final
default).
rsync_module {replication_ip}::object
Format of the rsync module where the
replicator will send data. The
configuration value can include some
variables that will be extracted from
the ring. Variables must follow the
format {NAME} where NAME is one of:
ip, port, replication_ip,
replication_port, region, zone, device,
meta. See etc/rsyncd.conf-sample for
some examples.
================== ================= =======================================

[object-updater]
Expand Down Expand Up @@ -723,6 +734,18 @@ conn_timeout 0.5 Connection timeout to external
services
reclaim_age 604800 Time elapsed in seconds before a
container can be reclaimed
rsync_module {replication_ip}::container
Format of the rsync module where the
replicator will send data. The
configuration value can include some
variables that will be extracted from
the ring. Variables must follow the
format {NAME} where NAME is one of:
ip, port, replication_ip,
replication_port, region, zone,
device, meta. See
etc/rsyncd.conf-sample for some
examples.
================== ==================== ====================================

[container-updater]
Expand Down Expand Up @@ -850,6 +873,18 @@ 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 an
account can be reclaimed
rsync_module {replication_ip}::account
Format of the rsync module where the
replicator will send data. The
configuration value can include some
variables that will be extracted from
the ring. Variables must follow the
format {NAME} where NAME is one of:
ip, port, replication_ip,
replication_port, region, zone,
device, meta. See
etc/rsyncd.conf-sample for some
examples.
================== ================== ======================================

[account-auditor]
Expand Down
26 changes: 13 additions & 13 deletions doc/source/replication_network.rst
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ For SAIO replication

delete all configuration options in section [<*>-replicator]

#. Add configuration files for object-server, in /etc/swift/objec-server/
#. Add configuration files for object-server, in /etc/swift/object-server/

* 5.conf::

Expand All @@ -170,7 +170,7 @@ For SAIO replication
use = egg:swift#recon

[object-replicator]
vm_test_mode = yes
rsync_module = {replication_ip}::object{replication_port}

* 6.conf::

Expand All @@ -194,7 +194,7 @@ For SAIO replication
use = egg:swift#recon

[object-replicator]
vm_test_mode = yes
rsync_module = {replication_ip}::object{replication_port}

* 7.conf::

Expand All @@ -218,7 +218,7 @@ For SAIO replication
use = egg:swift#recon

[object-replicator]
vm_test_mode = yes
rsync_module = {replication_ip}::object{replication_port}

* 8.conf::

Expand All @@ -242,7 +242,7 @@ For SAIO replication
use = egg:swift#recon

[object-replicator]
vm_test_mode = yes
rsync_module = {replication_ip}::object{replication_port}

#. Add configuration files for container-server, in /etc/swift/container-server/

Expand All @@ -268,7 +268,7 @@ For SAIO replication
use = egg:swift#recon

[container-replicator]
vm_test_mode = yes
rsync_module = {replication_ip}::container{replication_port}

* 6.conf::

Expand All @@ -292,7 +292,7 @@ For SAIO replication
use = egg:swift#recon

[container-replicator]
vm_test_mode = yes
rsync_module = {replication_ip}::container{replication_port}

* 7.conf::

Expand All @@ -316,7 +316,7 @@ For SAIO replication
use = egg:swift#recon

[container-replicator]
vm_test_mode = yes
rsync_module = {replication_ip}::container{replication_port}

* 8.conf::

Expand All @@ -340,7 +340,7 @@ For SAIO replication
use = egg:swift#recon

[container-replicator]
vm_test_mode = yes
rsync_module = {replication_ip}::container{replication_port}

#. Add configuration files for account-server, in /etc/swift/account-server/

Expand All @@ -366,7 +366,7 @@ For SAIO replication
use = egg:swift#recon

[account-replicator]
vm_test_mode = yes
rsync_module = {replication_ip}::account{replication_port}

* 6.conf::

Expand All @@ -390,7 +390,7 @@ For SAIO replication
use = egg:swift#recon

[account-replicator]
vm_test_mode = yes
rsync_module = {replication_ip}::account{replication_port}

* 7.conf::

Expand All @@ -414,7 +414,7 @@ For SAIO replication
use = egg:swift#recon

[account-replicator]
vm_test_mode = yes
rsync_module = {replication_ip}::account{replication_port}

* 8.conf::

Expand All @@ -438,7 +438,7 @@ For SAIO replication
use = egg:swift#recon

[account-replicator]
vm_test_mode = yes
rsync_module = {replication_ip}::account{replication_port}


---------------------------------
Expand Down
5 changes: 4 additions & 1 deletion etc/account-server.conf-sample
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ use = egg:swift#recon
# log_level = INFO
# log_address = /dev/log
#
# vm_test_mode = no
# per_diff = 1000
# max_diffs = 100
# concurrency = 8
Expand All @@ -111,6 +110,10 @@ use = egg:swift#recon
# a different region than the local one.
# rsync_compress = no
#
# Format of the rysnc module where the replicator will send data. See
# etc/rsyncd.conf-sample for some usage examples.
# rsync_module = {replication_ip}::account
#
# recon_cache_path = /var/cache/swift

[account-auditor]
Expand Down
5 changes: 4 additions & 1 deletion etc/container-server.conf-sample
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ use = egg:swift#recon
# log_level = INFO
# log_address = /dev/log
#
# vm_test_mode = no
# per_diff = 1000
# max_diffs = 100
# concurrency = 8
Expand All @@ -120,6 +119,10 @@ use = egg:swift#recon
# a different region than the local one.
# rsync_compress = no
#
# Format of the rysnc module where the replicator will send data. See
# etc/rsyncd.conf-sample for some usage examples.
# rsync_module = {replication_ip}::container
#
# recon_cache_path = /var/cache/swift

[container-updater]
Expand Down
5 changes: 4 additions & 1 deletion etc/object-server.conf-sample
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ use = egg:swift#recon
# log_level = INFO
# log_address = /dev/log
#
# vm_test_mode = no
# daemonize = on
#
# Time in seconds to wait between replication passes
Expand Down Expand Up @@ -195,6 +194,10 @@ use = egg:swift#recon
# slow down the syncing process.
# rsync_compress = no
#
# Format of the rysnc module where the replicator will send data. See
# etc/rsyncd.conf-sample for some usage examples.
# rsync_module = {replication_ip}::object
#
# node_timeout = <whatever's in the DEFAULT section or 10>
# max duration of an http request; this is for REPLICATE finalization calls and
# so should be longer than node_timeout
Expand Down
Loading

0 comments on commit 241b68d

Please sign in to comment.