| Watch Folders and the Aspera Watch Service |
215
asconfigurator option
aspera.conf
setting
Description
Default
watchd_max_snapshots
<max_snapshots>
The number of snapshots that are
stored in the database before the
oldest are overwritten.
10000
watchd_snapshot_min_interval
<snapshot_min_interval>
The maximum amount of time
between snapshots. If this period
passes without the minimum number
of changes to trigger a snapshot, a
new snapshot is taken.
3s
watchd_snapshot_min_changes
<snapshot_min_changes>
The minimum number of changes
that trigger a snapshot. If this number
is reached before the snapshot
minimum interval passes, a new
snapshot is taken.
100
watchd_scan_threads
<scan_threads>
The number of threads to use to scan
the watched folder. More threads
increase the speed of the scan,
particularly for folders with large
numbers of files, but require more of
your computer's resources.
16
Setting Custom Watch Scan Periods
When a new subscription to a watch is created, it uses the default scan period of 30 minutes unless otherwise
specified. You can also modify the scan period of an existing subscription.
Set the Default Scan Period When Upgrading from 3.7.4 or earlier to 3.8.0 or later
To update the default scan period that is applied during the migration, run the following command:
# asconfigurator -x "set_server_data;watchd_scan_period,
value
"
Modify the Scan Period of an Existing Subscription
In the subscription model, you cannot update the scan period of an existing subscription. Instead, create a new
subscription and let the old one expire. To retrieve the configuration of the existing subscription, run the following
command:
# /opt/aspera/bin/aswatchadmin query-subscription
daemon
To create a new subscription and set the scan period, run the following command:
# /opt/aspera/bin/aswatchadmin subscribe
daemon
path
--scan-period=
seconds
Managing Watch Subscriptions
The Aspera Watch Service can watch the entire area of the file system to which the user has access. Individual
watches are created by subscribing to the service and specifying a portion of the file system to watch. Each
subscription can specify a scan period, database, and subscription expiration. When subscriptions overlap in the file
system, the shortest scan period is used to scan the shared area.
Watch subscriptions are managed by using the
aswatchadmin
command line utility.