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

cost reduction #88

Open
1 of 2 tasks
mooreniemi opened this issue Feb 22, 2021 · 7 comments · Fixed by #92
Open
1 of 2 tasks

cost reduction #88

mooreniemi opened this issue Feb 22, 2021 · 7 comments · Fixed by #92
Assignees
Labels

Comments

@mooreniemi
Copy link
Owner

mooreniemi commented Feb 22, 2021

  • cloudfront to bring down data transfer cost
  • reduce database tier on heroku or switch off it?

References:

https://www.cloudzero.com/blog/reduce-data-transfer-costs
https://www.apptio.com/blog/aws-data-transfer-costs/

@mooreniemi
Copy link
Owner Author

mooreniemi commented Feb 24, 2021

I think CF images are caching...

cached

@mooreniemi
Copy link
Owner Author

@mooreniemi
Copy link
Owner Author

Hmm, CF looks to be way more expensive than S3, which I think is how it is listing out what I saw as data transfer before. I may want to move back off it.

tb_costs

@mooreniemi
Copy link
Owner Author

I need to check if we're using thumbnails for the overview view, I suspect not. That's likely a large cost driver given image sizes.

@mooreniemi
Copy link
Owner Author

mooreniemi commented Apr 3, 2021

Yeah, we were not using the :medium or :thumb. I switched to :medium for now. Some docs here: https://github.com/thoughtbot/paperclip/wiki/Thumbnail-Generation

@mooreniemi mooreniemi self-assigned this Apr 3, 2021
@mooreniemi
Copy link
Owner Author

mooreniemi commented Apr 5, 2021

Slightly more traffic but now downloaded bytes only 40% of what it was... This should bring CF down in cost to where S3 was before, and I think is acceptable.

Top graph is bytes, bottom is requests.

cf-decrease

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant