Skip to content

Commit

Permalink
Merge pull request #30 from EverythingMe/fix_replicas
Browse files Browse the repository at this point in the history
changed default number of replicas in http pool hash ring to 50
  • Loading branch information
nf committed Jul 8, 2014
2 parents 0ba15ac + 21fc61a commit 8b25adc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion consistenthash/consistenthash_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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++ {
Expand Down
2 changes: 1 addition & 1 deletion http.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8b25adc

Please sign in to comment.