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

Set up a cache cleaning service for EFS #656

Closed
alexwlchan opened this issue Jul 17, 2017 · 4 comments
Closed

Set up a cache cleaning service for EFS #656

alexwlchan opened this issue Jul 17, 2017 · 4 comments
Assignees

Comments

@alexwlchan
Copy link
Contributor

alexwlchan commented Jul 17, 2017

Related to #655.

Once we have Loris caching masters to EFS, we need to keep the cache relatively tidy to avoid running up big costs. We should create a service that cleans our EFS mounts for us. These scripts from the Loris repo are probably a good start:

https://github.com/loris-imageserver/loris/blob/development/bin/loris-cache_clean.sh
https://github.com/loris-imageserver/loris/blob/development/bin/loris-http_cache_clean.sh

@alexwlchan
Copy link
Contributor Author

We’re going to pair on this tomorrow.

@alexwlchan
Copy link
Contributor Author

Still to do on this: set up a scheduled task, which is blocked on hashicorp/terraform-provider-aws#977 being released.

@alexwlchan
Copy link
Contributor Author

(Terraform 1.10 is in RC1, so I assume this is imminent – I don’t think it’s worth writing this as a Lambda just to throw it away days later.)

@kenoir
Copy link
Contributor

kenoir commented Jul 28, 2017

Have manually added this as a scheduled task. We'll remove them when the next version of terraform is released.

@kenoir kenoir closed this as completed Jul 28, 2017
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

No branches or pull requests

3 participants