Merge pull request #30 from EverythingMe/fix_replicas

changed default number of replicas in http pool hash ring to 50
This commit is contained in:
Andrew Gerrand 2014-07-09 07:38:46 +10:00
commit 8b25adc0f6
2 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,7 @@ func BenchmarkGet512(b *testing.B) { benchmarkGet(b, 512) }
func benchmarkGet(b *testing.B, shards int) { func benchmarkGet(b *testing.B, shards int) {
hash := New(shards, nil) hash := New(50, nil)
var buckets []string var buckets []string
for i := 0; i < shards; i++ { for i := 0; i < shards; i++ {

View File

@ -33,7 +33,7 @@ import (
const defaultBasePath = "/_groupcache/" const defaultBasePath = "/_groupcache/"
// TODO: make this configurable as well. // TODO: make this configurable as well.
const defaultReplicas = 3 const defaultReplicas = 50
// HTTPPool implements PeerPicker for a pool of HTTP peers. // HTTPPool implements PeerPicker for a pool of HTTP peers.
type HTTPPool struct { type HTTPPool struct {