anchor.diff:  
   computed_stats_lazy_proplist("@system") ->
       [];
  +computed_stats_lazy_proplist("@index") ->
  +    Z2 = fun (StatNameA, StatNameB, Combiner) ->
  +                 {Combiner, [StatNameA, StatNameB]}
  +         end,
  +    RemainingIndexRam = Z2(<<"index_memory_used">>, <<"index_memory_quota">>,
  +                           fun (Used, Quota) ->
  +                                   try Quota - Used
  +                                   catch error:badarith -> 0
  +                                   end
  +                           end),
  +    [{<<"index_remaining_ram">>, RemainingIndexRam}];
   computed_stats_lazy_proplist("@query") ->
       Z2 = fun (StatNameA, StatNameB, Combiner) ->
                    {Combiner, [StatNameA, StatNameB]}
  
positive.code:                membase -> membase_stats_description(BucketId, AddQuery, IndexNodes, FtsNodes);
                 memcached -> memcached_stats_description()
             end,
      [{struct, server_resources_stats_description()} | Base].
  
  parse_add_index_param(Param, Params) ->
      case proplists:get_value(Param, Params) of
  
negative.code:                 {desc,<<"Number of streaming requests on port 8091 now idle">>}]},
         {struct,[{name,<<"hibernated_waked">>},
                  {title,<<"streaming wakeups/sec">>},
                  {desc,<<"Rate of streaming request wakeups on port 8091">>}]}
         | (case IndexNodes of
                [] ->
                    [];
                _ ->
                    [{struct,[{name,<<"index_ram_percent">>},
                              {title,<<"Max Index RAM Used %">>},
                              {desc,<<"Percentage of Index RAM in use across all indexes on this server">>}]},
                     {struct,[{name,<<"index_remaining_ram">>},
                              {title,<<"remaining index ram">>},
                              {desc,<<"Amount of index RAM available on this server">>}]}]
            end)]}].
  
  base_stats_directory(BucketId, AddQuery, IndexNodes, FtsNodes) ->
      {ok, BucketConfig} = ns_bucket:get_bucket(BucketId),
  