这是indexloc提供的服务,不要输入任何密码
Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Conversation

@madelynnblue
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?

madelynnblue added a commit that referenced this pull request Jun 30, 2015
cmd/bosun: download entire alerts dashboard at once
@madelynnblue madelynnblue merged commit 9d2e8b6 into master Jun 30, 2015
@madelynnblue madelynnblue 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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve dashboard performance

3 participants