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

re: Better Manage the Stats Set #48

Merged
merged 3 commits into from
May 22, 2013

Conversation

dcartoon
Copy link

This set of changes should address this issue. It allows the user to specify data lifespan(in minutes, default: 30). The lifespan affects how much data is kept in Redis, and it also controls how much data is pulled for the memory chart.

Let me know what you think, I'm happy to make any changes.

Dan Cartoon added 3 commits April 14, 2013 17:38
We have to use before(:each) rather than before(:all), or our test
doubles don't end up being properly configured(Get "unexpected message"
errors for every example besides the first that uses redis).

This also caught me by surprise, but the reference is here:
https://github.com/rspec/rspec-mocks#use-beforeeach-not-beforeall
Now supports passing the amount of sample data to keep in Redis.  The
default is 180 samples, which at 10 seconds/sample is half an hour's
worth of samples.

The dashboard now uses this amount when starting up to determine how
much data to request from the server.  In addition, the worker will now
clean up any excess samples from Redis.  Clean up is currently done
every time a sample is written(since Redis operations are cheap), but
this could be done less frequently if necessary.
The end-user can now specify how long data should be kept.  This also
controls how much data is pulled for the chart.

This should be a little more intuitive than specifying the number of
samples to keep.
@steelThread
Copy link
Owner

Thanks @dcartoon, I'll do a review in the next couple of days.

@steelThread
Copy link
Owner

Don't worry about it, I'll make the changes. Thanks for the contribution.

steelThread added a commit that referenced this pull request May 22, 2013
@steelThread steelThread merged commit a4cc10f into steelThread:master May 22, 2013
@steelThread steelThread mentioned this pull request Sep 6, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants