anchor.diff:      %% Infact, 5.0 and earlier, the auto_failover:make_persistent()
       %% code inadvertently removed max_nodes from the config when auto-failover
       %% was enabled.
  -    New2 = lists:keystore(max_count, 1, New1, {max_count, 1}),
  +    New2 = lists:keystore(?MAX_EVENTS_CONFIG_KEY, 1, New1,
  +                          {?MAX_EVENTS_CONFIG_KEY, ?DEFAULT_EVENTS_ALLOWED}),
       New3 = lists:keydelete(max_nodes, 1, New2),
       New = lists:keystore(failed_over_server_groups, 1, New3,
                            {failed_over_server_groups, []}),
  
positive.code:         true ->
              SGFO = proplists:get_value(?FAILOVER_SERVER_GROUP_CONFIG_KEY,
                                         Config),
              {Enabled, TimePeriod} = get_failover_on_disk_issues(Config),
              [{?DATA_DISK_ISSUES_CONFIG_KEY,
                {struct, [{enabled, Enabled}, {timePeriod, TimePeriod}]}},
               {failoverServerGroup, SGFO}];
          false ->
              []
      end.
  
negative.code: -define(DEFAULT_DATA_DISK_ISSUES_TIMEPERIOD, 120). %% seconds
  
  -define(FAILOVER_SERVER_GROUP_CONFIG_KEY, failover_server_group).
  
  -define(MAX_EVENTS_CONFIG_KEY, max_count).
  -define(MAX_EVENTS_ALLOWED, 3).
  -define(MIN_EVENTS_ALLOWED, 1).
  -define(DEFAULT_EVENTS_ALLOWED, 1).
  
  handle_settings_get(Req) ->
      {value, Config} = ns_config:search(ns_config:get(), auto_failover_cfg),
  