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

performance(aws_collector): don't persist shortcut reports #3716

Merged
merged 1 commit into from Oct 21, 2019

Conversation

bboreham
Copy link
Collaborator

Shortcut reports are sent to update the UI quickly, on events like a container starting.

We don't need to persist them in the time-travel data since the same information will be covered by a regular report a few seconds later.

Shortcut reports are sent to update the UI quickly, on events like a
container starting. We don't need to persist them in the time-travel
data since the same information will be covered by a regular report a
few seconds later.
Copy link
Member

@rade rade left a comment

Choose a reason for hiding this comment

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

Does this change really gain much? After all, shortcut reports are very small.

I was wondering whether this make the UI less fluid when time-travelling, but then realised that, iirc, when time-travelling the short-cut reports will only reach the UI as part of the periodic UI update anyway, so a reduction in fluidity compared to live mode is already present in the current code. Correct? It might be worth elucidating that in a comment in the code or commit.

@bboreham
Copy link
Collaborator Author

bboreham commented Oct 19, 2019

S3 charges per write (and read) as well as for monthly storage. Also DynamoDB writes require provisioning.

I believe shortcut reports are sent immediately to the UI.

@rade
Copy link
Member

rade commented Oct 19, 2019

I believe shortcut reports are sent immediately to the UI.

Even when time-travelling?

@bboreham
Copy link
Collaborator Author

I was wondering whether this make the UI less fluid when time-travelling

Sorry I didn't read that last bit.

In time-travel mode, if you inch the time forward by one second you would be able to tell the difference.
I'm not sure I would call that "fluid" since it's quite hard to achieve such fine control, and a moderately-sized report will take a couple of seconds to render.
I don't think this is worth commenting.

@bboreham bboreham merged commit abefd96 into master Oct 21, 2019
@bboreham bboreham deleted the dont-save-shortcut-reports branch October 21, 2019 11:31
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.

None yet

2 participants