anchor.diff:  
   leave_marker_path() ->
       path_config:component_path(data, "leave_marker").
  +
  +start_marker_path() ->
  +    path_config:component_path(data, "start_marker").
  
positive.code:     ?cluster_debug("Leaving cluster", []),
      timer:sleep(1000),
  
      remove_marker(leave_marker_path()),
      {ok, _} = ns_server_cluster_sup:start_ns_server(),
      ns_ports_setup:restart_memcached(),
      {noreply, State}.
  
  
  
  handle_info(Msg, State) ->
  
negative.code:             %% to terminate ns_server_sup is going to cause deadlock
              gen_server:cast(self(), leave);
          false ->
              case marker_exists(start_marker_path()) of
                  true ->
                      ?log_info("Found marker ~p. "
                                "Looks like we failed to restart ns_server after leave. "
                                "Will try again.", [start_marker_path()]),
                      gen_server:cast(self(), retry_start_after_leave);
                  false ->
                      ok
              end
      end,
      {ok, #state{}}.
  
  