| Aspera Sync |
259
Starting the Aspera Watch Service
Aspera Sync can be configured to use asperawatchd for fast synchronization of very large numbers of files without
scanning the directory. Aspera Sync can push files from a local directory, pull files from a remote directory, or create
a bi-directional session between two directories (as long as asperawatchd is properly configured to monitor both
directories).
To
push
files to a remote server using Aspera Watch Service, configure
asperawatchd
on the local host. The
remote server does not need to be configured. For instructions on starting asperawatchd for a push Aspera Sync, see
Starting Aspera Watch Services and Creating Watches
on page 211.
To
pull
files from a remote host, configure
asperawatchd
on the remote host. See the following steps for
configuration instructions. The local host does not need to be configured.
1.
On the remote server, configure asperawatchd database storage.
If you set default database storage, Aspera Sync uses asperawatchd for all pull requests to the server, whereas if
you set database storage for a specific user then asperawatchd is used only for pull requests by that user.
To configure the Watch Service database as the default, run the following command:
#asconfigurator -x
"set_node_data;async_watchd,redis:
hostname
:31415[:
domain
]"
To configure the database storage for a specific user, run the following command:
#asconfigurator -x
"set_user_data;user_name,
username
;async_watchd,redis:
hostname
:31415[:
domain
]"
2.
On the remote server, set up asperawatchd.
For instructions, see
Starting Aspera Watch Services and Creating Watches
on page 211.
Watch Service Configuration
The Aspera Watch Service configuration in the
<server>
section of
aspera.conf
includes the snapshot
database, snapshot frequency, and logging:
<server>
<rund>...</rund>
<watch>
<log_level>log</log_level>
<log_directory>AS_NULL</log_directory>
<db_spec>redis:
host
:31415:
domain
</db_spec>
<watchd>
<max_directories>1000000</max_directories>
<max_snapshots>10000</max_snapshots>
<snapshot_min_interval>3s</snapshot_min_interval>
<snapshot_min_changes>100</snapshot_min_changes>
<scan_threads>16</scan_threads>
</watchd>
<watchfolderd>...</watchfolderd>
</watch>
</server>
To view current settings without opening
aspera.conf
, run the following command and look for settings that start
with
watch
and
watchd
:
# /opt/aspera/bin/asuserdata -a
Note:
Logging and database settings apply to both the Watch Service and Watch Folders services.