Conversation
BryonLewis
left a comment
There was a problem hiding this comment.
I could confirm using the redis-cli MONITOR inside the container that it was properly being used to cache data from django-large-image.
I don't know if this is going to solve all memory usage issues. Using docker stats <container name> I tried both with and without redis with both the Elevation and Imagery data.
Without redis I could see nearly 10-12GB of memory usage when zooming in and out (very close and dragging around)
With redis it was closer to 7-8GB. I didn't have a repeatable test so these results may vary. It's good at least that we have it connected to the redis service because before I don't think it was doing anything.
There was a problem hiding this comment.
We have the ability to just make changes to django_large_image, since this is the only project using it. Let's use this opportunity to add new Django settings to django_large_image to configure these properties, without having to mess with the app load order.
Alright, I wasn't sure if it was appropriate but if we're the only users, we might as well. Should we just default to redis if the |
|
We want to use settings to configure Django things, so Then, our project just sets these in in |
Our current prod deployment is not able to serve raster tiles because the Heroku web dyno exceeds its memory threshold trying to respond to those tile requests. The requests receive a
503 Service Unavailableresponse and the layer does not appear on the map.In an effort to offload the
large_imagecache from the web dyno, this PR specifies thatlarge_imageshould use redis for its cache.EDIT: The section below no longer applies. I had done that at first, but now the cache backend can be declared with settings.