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) {
hash := New(shards, nil)
hash := New(50, nil)
var buckets []string
for i := 0; i < shards; i++ {

View File

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