changed default number of replicas in http pool hash ring to 50, and fixed hash ring benchmark

This commit is contained in:
Dvir Volk 2014-07-08 12:15:05 +03:00
parent 0ba15ac99c
commit 21fc61ac51
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 {