Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

picker: modify constants so donweights occur rarely #1266

Merged
merged 1 commit into from Jul 28, 2016

Conversation

LK4D4
Copy link
Contributor

@LK4D4 LK4D4 commented Jul 28, 2016

I'm trying to keep diffs relatively small, just enough to fix a situation with hard-crashed managers.
ping @aaronlehmann @stevvooe

@LK4D4 LK4D4 added this to the 1.12.1 milestone Jul 28, 2016
@stevvooe
Copy link
Contributor

@LK4D4 I have a branch I'm working on to address this. I think we need to change the default observation to be larger than 1.

I'm also going to steal your test.

@@ -165,7 +165,7 @@ const (
// See
// https://en.wikipedia.org/wiki/Exponential_smoothing#Basic_exponential_smoothing
// for details.
remoteWeightSmoothingFactor = 0.7
remoteWeightSmoothingFactor = 0.999
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, we want this around 0.5 or it will have no effect. Remove this line and we'll merge and then I'll submit a follow up.

@LK4D4
Copy link
Contributor Author

LK4D4 commented Jul 28, 2016

@stevvooe cool, thank you!

Signed-off-by: Alexander Morozov <lk4d4math@gmail.com>
@stevvooe
Copy link
Contributor

LGTM

@codecov-io
Copy link

codecov-io commented Jul 28, 2016

Current coverage is 54.82% (diff: 100%)

Merging #1266 into master will decrease coverage by 0.09%

@@             master      #1266   diff @@
==========================================
  Files            78         78          
  Lines         12418      12403    -15   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
- Hits           6820       6800    -20   
- Misses         4658       4660     +2   
- Partials        940        943     +3   

Sunburst

Powered by Codecov. Last update d2af29d...881bb2a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants