anchor.diff:              Error
       end.
   
  --define(MIN_BUCKET_QUOTA, 256).
   -define(MAX_DEFAULT_FTS_QUOTA, 512).
   
  +min_quota(kv) ->
  +    256;
   min_quota(index) ->
       256;
   min_quota(fts) ->
  
positive.code:     1024.
  
  check_service_quota(kv, Quota, Config) ->
      MinMemoryMB0 = ?MIN_BUCKET_QUOTA,
  
      BucketsQuota = get_total_buckets_ram_quota(Config) div ?MIB,
      MinMemoryMB = erlang:max(MinMemoryMB0, BucketsQuota),
      check_min_quota(kv, MinMemoryMB, Quota);
  check_service_quota(Service, Quota, _) ->
      check_min_quota(Service, min_quota(Service), Quota).
  
negative.code:             Quota
      end.
  
  calculate_default_quota(kv, Memory) ->
      (Memory * 3) div 5;
  calculate_default_quota(index, Memory) ->
      (Memory * 3) div 5;
  calculate_default_quota(fts, Memory) ->
      min(Memory div 5, ?MAX_DEFAULT_FTS_QUOTA);
  calculate_default_quota(cbas, Memory) ->
      Memory div 5.
  
  default_quotas(Services) ->
      %% this is actually bogus, because nodes can be heterogeneous; but that's
  