Skip to content

Commit

Permalink
conf: set core.lb.weighted_random_attempts to 8 by default
Browse files Browse the repository at this point in the history
Setting this to 8 is harmless, and provides better balancing on servers
with many rawx services.
  • Loading branch information
fvennetier committed May 3, 2021
1 parent 5ff3283 commit 63355fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ Used by `gcc`

> How many times shall we try to select a service using a weighted random algorithm, before switching to the shuffled selection. Increase this if you observe too many choices of low-score services while high-score services are available.
* default: **1**
* default: **8**
* type: guint
* cmake directive: *OIO_CORE_LB_WEIGHTED_RANDOM_ATTEMPTS*
* range: 1 -> 64000
Expand Down
2 changes: 1 addition & 1 deletion conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -1114,7 +1114,7 @@
{ "type": "uint", "name": "oio_lb_weighted_random_attempts",
"key": "core.lb.weighted_random_attempts",
"descr": "How many times shall we try to select a service using a weighted random algorithm, before switching to the shuffled selection. Increase this if you observe too many choices of low-score services while high-score services are available.",
"def": "1", "min": 1, "max": "64k"},
"def": "8", "min": 1, "max": "64k"},
{ "type": "monotonic", "name": "oio_lb_writer_lock_alert_delay",
"key": "core.lb.writer_lock_alert_delay",
"descr": "Dump the time spent while holding the global writer lock, when the lock is held for longer than this threshold (in microseconds).",
Expand Down

0 comments on commit 63355fb

Please sign in to comment.