如果进行异步复制,将源中的数据写入其在目标上的副本时,会发生时间延迟。可以设置警告和错误警报以在即将发生复制延迟或复制延迟超过复制点目标 (replication point objective, RPO) 时通知管理员。这些警报提示管理员检查网络问题、应用程序问题以及使用分析来检查存储设备的运行状况。
创建或编辑复制操作时可以设置复制延迟警报。
要设置复制延迟警报,请执行以下操作:
host_source:shares New_Project replication> action
host_source:shares New_Project action (uncommitted)> get
                 origin_pkg_id =
                        target = replication-target
                          pool = demo_pool
                       enabled = true
                    continuous = false
                 include_snaps = true
   retain_user_snaps_on_target = false
                         dedup = false
  include_clone_origin_as_data = false
                 max_bandwidth = unlimited
                    bytes_sent = 0
                estimated_size = 0
           estimated_time_left = 00:00:00
            average_throughput = 0B/s
                       use_ssl = true
                   compression = on
                   export_path =
                         state = idle
             state_description = Idle (no update in progress)
                export_pending = false
                       offline = false
                   next_update = Sync now
                   replica_lag = P1H30M
        replica_data_timestamp = Wed Feb 20 2019 12:12:05 GMT+0000 (UTC)
                     last_sync = Wed Feb 20 2019 22:32:59 GMT+0000 (UTC)
                      last_try = Wed Feb 20 2019 22:32:59 GMT+0000 (UTC)
                   last_result = success
      recovery_point_objective =
     replica_lag_warning_alert =
       replica_lag_error_alert =
		host_source:shares New_Project action (uncommitted)> set recovery_point_objective=50min
                         recovery_point_objective = 50 minutes (uncommitted)
host_source:shares New_Project action (uncommitted)> set replica_lag_warning_alert=50
                             replica_lag_warning = 50% (uncommitted)
host_source:shares New_Project action (uncommitted)> set replica_lag_error_alert=180
                     replica_lag_error = 180% (uncommitted)
			有关所有属性的说明,请参见复制操作属性。
host_source:shares New_Project action (uncommitted)> commit
host_source:shares New_Project action (uncommitted)> ls
.
.
                   replica_lag = P1H30M
        replica_data_timestamp = Wed Feb 20 2019 12:12:05 GMT+0000 (UTC)
                     last_sync = Wed Feb 20 2019 22:32:59 GMT+0000 (UTC)
                      last_try = Wed Feb 20 2019 22:32:59 GMT+0000 (UTC)
                   last_result = success
      recovery_point_objective = 50 minutes
     replica_lag_warning_alert = 50%
       replica_lag_error_alert = 180%