Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion manila/share/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,14 @@
help='This value, specified in seconds, determines how often '
'the share manager will poll for the health '
'(replica_state) of each replica instance.'),
cfg.IntOpt('replica_snapshot_state_update_interval',
default=59,
help="This value, specified in seconds, determines how often "
"the share manager will poll for the transition statuses "
"of each replica's snapshot instances. It is most likely "
"a good idea to choose an interval different from "
"'replica_state_update_interval' with a big least common "
"multiple."),
cfg.IntOpt('migration_driver_continue_update_interval',
default=60,
help='This value, specified in seconds, determines how often '
Expand Down Expand Up @@ -3986,7 +3994,8 @@ def delete_replicated_snapshot(self, context, snapshot_id,
self.db.share_snapshot_instance_update(
context, instance['id'], instance)

@periodic_task.periodic_task(spacing=CONF.replica_state_update_interval)
@periodic_task.periodic_task(
spacing=CONF.replica_snapshot_state_update_interval)
@utils.require_driver_initialized
def periodic_share_replica_snapshot_update(self, context):
LOG.debug("Updating status of share replica snapshots.")
Expand Down