anchor.diff:                        io_lib:format(
                           "vb0=false;waitforwarmup=false;ht_size=~B;"
                           "ht_locks=~B;failpartialwarmup=false;"
  +                        "db_shards=~B;"
                           "shardpattern=%d/%b-%i.mb;"
                           "db_strategy=multiMTVBDB;"
                           "tap_keepalive=~B;"
  
positive.code:             {error, {invalid_bucket_name, BucketName}}
      end.
  
  new_bucket_default_params(membase) ->
      [{type, membase},
       {num_vbuckets,
        case (catch list_to_integer(os:getenv("VBUCKETS_NUM"))) of
            EnvBuckets when is_integer(EnvBuckets) -> EnvBuckets;
            _ -> 1024
        end},
       {num_replicas, 1},
       {ram_quota, 0},
       {ht_size, 3079},
       {tap_keepalive, 0},
       {tap_noop_interval, 20},
       {max_txn_size, 1000},
       {ht_locks, 5},
       {servers, []},
       {map, undefined}];
  new_bucket_default_params(memcached) ->
  
negative.code:                         "max_size=~B;initfile=~s;dbname=~s",
                          [proplists:get_value(ht_size, BucketConfig),
                           proplists:get_value(ht_locks, BucketConfig),
                           proplists:get_value(db_shards, BucketConfig),
                           proplists:get_value(tap_keepalive, BucketConfig, 0),
                           proplists:get_value(tap_noop_interval, BucketConfig, 20),
                           proplists:get_value(max_txn_size, BucketConfig, 1000),
  