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

Reduce and breakout MR processing #16

Merged
merged 1 commit into from
Jan 19, 2018
Merged

Conversation

jehartzog
Copy link
Collaborator

The amount of processing needed for the mongo MR operations is currently way out of hand. I'm running a smallish app with two servers and something under 200 DAL right now, and the MR operations are chewing through ~$50/month worth of CPU processing on AWS after only a few days of stored APM data.

This drops the processing requirement significantly, from some early data down to 20% of what it was before. And I'm guessing this will not significantly affect the real-time data usage, after all how many times do you look at a 3 hour aggregation to understand what happened in the last 3 hours?

@jehartzog
Copy link
Collaborator Author

Update, turns out this fixes an issue I saw with missing data before. About every 55 minutes, APM would drop data for a single minute for each server. It only showed up on the aggregations that used the 1 minute time interval.

I didn't really mind the dropped data since it wasn't significant, but the changes I made to reduce the CPU usage also happened to fix whatever was causing that issue.

image

Copy link
Owner

@lmachens lmachens left a comment

Choose a reason for hiding this comment

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

LGTM!

@lmachens lmachens merged commit 32bc0f5 into lmachens:master Jan 19, 2018
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