Skip to content

Commit

Permalink
Set tap_keepalive to 5 minutes in membase buckets.
Browse files Browse the repository at this point in the history
This allows us to re-use TAP queues if we name them.

Change-Id: Ia994ec6c47c2b32ec02653946abec921553125a0
Reviewed-on: http://review.membase.org/4701
Reviewed-by: Dustin Sallings <dustin@spy.net>
Tested-by: Dustin Sallings <dustin@spy.net>
  • Loading branch information
Sean Lynch authored and steveyen committed Feb 24, 2011
1 parent 5e49f69 commit 2e219a6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/ns_bucket.erl
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,21 @@ config_string(BucketName) ->
"tap_keepalive=~B;"
"tap_noop_interval=~B;"
"max_txn_size=~B;"
"max_size=~B;initfile=~s;dbname=~s",
"max_size=~B;"
"initfile=~s;"
"tap_keepalive=~B;"
"dbname=~s;",
[proplists:get_value(ht_size, BucketConfig),
proplists:get_value(ht_locks, BucketConfig),
proplists:get_value(db_shards, BucketConfig, 4),
proplists:get_value(tap_keepalive, BucketConfig, 0),
proplists:get_value(tap_noop_interval, BucketConfig, 20),
proplists:get_value(max_txn_size, BucketConfig, 1000),
MemQuota,
%% Five minutes, should be enough time for
%% vbucketmigrator to restart.
proplists:get_value(initfile, EngineConfig),
proplists:get_value(tap_keepalive, EngineConfig, 300),
DBName])),
{CFG, {MemQuota, DBName}};
memcached ->
Expand Down

0 comments on commit 2e219a6

Please sign in to comment.