anchor.diff:      ns_cluster_membership:actual_active_nodes();
   bucket_nodes("@query") ->
       ns_cluster_membership:n1ql_active_nodes(ns_config:latest_config_marker());
  +bucket_nodes("@index-"++_) ->
  +    ns_cluster_membership:index_active_nodes(ns_config:latest_config_marker());
   bucket_nodes(Bucket) ->
       ns_bucket:live_bucket_nodes(Bucket).
   
   is_persistent("@query") ->
  +    false;
  +is_persistent("@index-"++_) ->
       false;
   is_persistent(BucketName) ->
       ns_bucket:is_persistent(BucketName).
  
positive.code:                            {name, <<"query_requests_5000ms">>},
                             {desc, <<"Number of queries that take longer than 5000 ms per second">>}]}]}]}].
  
  membase_stats_description(BucketId, AddQuery) ->
      [{struct,[{blockName,<<"Summary">>},
                {stats,
                 [{struct,[{title,<<"ops per second">>},
  
negative.code:                 {title,<<"streaming wakeups/sec">>},
                  {desc,<<"Rate of streaming request wakeups on port 8091">>}]}]}].
  
  base_stats_directory("@query", _, _) ->
      couchbase_query_stats_descriptions();
  base_stats_directory(BucketId, AddQuery, AddIndex) ->
      {ok, BucketConfig} = ns_bucket:get_bucket(BucketId),
      Base = case ns_bucket:bucket_type(BucketConfig) of
                 membase -> membase_stats_description(BucketId, AddQuery, AddIndex);
                 memcached -> memcached_stats_description()
             end,
      [{struct, server_resources_stats_description()} | Base].
  