Redis management on Heroku
<p>I have provisioned Redis To Go addon in Heroku for use with <a href="http://python-rq.org/" rel="nofollow">Redis Queue python library</a>.  My app is having some issue with the redis DB for the queue (namely max-memory problem).  The memory use stays really high even when all the work has been finished.  So I have been reading up on Redis and Redis Queue, and read all through <a href="https://devcenter.heroku.com/articles/heroku-redis" rel="nofollow">Heroku's Redis documentation</a>.</p>

<p>I want to use the command line interface, so I tried installing:</p>

<pre><code>heroku plugins:install heroku-redis
</code></pre>

<blockquote>
  <p>â¸    Not installing heroku-redis because it is already installed as a
  core plugin.</p>
</blockquote>

<p>OK so the redis to go installed a redis server with the config var <code>REDISTOGO_URL</code>, which I can confirm with <code>heroku config | grep REDIS</code>.  So then I tried to "promote" this instance:</p>

<pre><code>heroku redis:promote REDISTOGO_URL
</code></pre>

<blockquote>
  <p>â¸    No Redis instances found.</p>
</blockquote>

<p>and I get no results at all from <code>heroku redis:info -a appname</code></p>

<p>The important thing I am trying to do is change my <code>maxmemory-policy</code>, which you are able to do using <code>heroku redis</code>, but still I can't figure out how to do that.</p>

<p>Any help would be greatly appreciated.</p>

<p>Just for anyone using <a href="https://elements.heroku.com/addons/redistogo" rel="nofollow">Redis To Go</a>, I switched my Redis server to the free version of <a href="https://elements.heroku.com/addons/heroku-redis" rel="nofollow">Heroku Redis</a> and all the problems went away.  </p>

<p>Redis To Go was telling me in the console that it was using the <code>volatile-lru</code> eviction policy but it was still throwing errors for max memory and it wasn't clearing out max memory at all ( 8 MB memory use while doing nothing for hours ).</p>

<p>Using Heroku Redis there were no memory errors while doing even more work on the free tier. At Rest the Redis memory usage went down to below 1MB which is what I would expect.  Also no with Heroku Redis I am able to access the CLI using the <code>heroku redis</code> app.</p>

python memory heroku redis