mirror of
https://github.com/mailgun/groupcache.git
synced 2024-10-02 21:02:08 +00:00
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:
commit
8b25adc0f6
@ -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++ {
|
||||||
|
2
http.go
2
http.go
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user