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

cmd/bosun: download entire alerts dashboard at once #1112

Merged
merged 1 commit into from
Jun 30, 2015
Merged

Conversation

maddyblue
Copy link
Contributor

Previously, only a summary of each alert was downloaded. This was because
the entire struct was large (hundreds of megs) due to computations. Since
we have removed computations from the dashboard, we can now again download
the entire struct. The bug this new method prevents is that if an alert has
changed since the dashboard summary was downloaded, it will no longer show
up in the wrong place. The dashboard is now faster because it does not
download each alert when a group is expanded.

Testing with our production state file, this route went from 6K to 900K. A
substantial increase, but still small and fast enough to be fine.

fixes #1094

@captncraig
Copy link
Contributor

LGTM. What is wrong with the travis build?

maddyblue added a commit that referenced this pull request Jun 30, 2015
cmd/bosun: download entire alerts dashboard at once
@maddyblue maddyblue merged commit 9d2e8b6 into master Jun 30, 2015
@maddyblue maddyblue deleted the dashboard-perf branch June 30, 2015 04:53
Previously, only a summary of each alert was downloaded. This was because
the entire struct was large (hundreds of megs) due to computations. Since
we have removed computations from the dashboard, we can now again download
the entire struct. The bug this new method prevents is that if an alert has
changed since the dashboard summary was downloaded, it will no longer show
up in the wrong place. The dashboard is now faster because it does not
download each alert when a group is expanded.

Testing with our production state file, this route went from 6K to 900K. A
substantial increase, but still small and fast enough to be fine.

fixes #1094
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.

Improve dashboard performance
2 participants