Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>Note: While this does work, @btucker pointed out that it allows any Heroku-hosted app to access your ElastiCache cluster. I do not recommend using this solution.</strong></p> <p>Yes you can. The setup is similar to the guide Heroku has on <a href="https://devcenter.heroku.com/articles/amazon_rds" rel="nofollow">Amazon RDS</a>. The steps that differ go like this:</p> <ol> <li>Follow the "<a href="http://docs.amazonwebservices.com/AmazonElastiCache/latest/GettingStartedGuide/Welcome.html" rel="nofollow">Get Started with Amazon ElastiCache</a>" guide to create a cache cluster and node</li> <li>Install the <a href="http://aws.amazon.com/developertools/2310261897259567" rel="nofollow">ElastiCache Command Line Toolkit</a></li> <li><p>Allow Heroku's servers ingress to your ElastiCache cluster like the RDS guide explains but replace the <code>rds-</code> commands with <code>elasticache-</code> ones:</p> <pre><code>elasticache-authorize-cache-security-group-ingress \ --cache-security-group-name default \ --ec2-security-group-name default \ --ec2-security-group-owner-id 098166147350 \ # If your AWS_CREDENTIAL_FILE environment setting is configured, # this option is not necessary. --aws-credential-file ../credential-file-path.template </code></pre></li> <li><p>Set a Heroku config value for your production app with your cluster's hostname:</p> <pre><code>heroku config:set MEMCACHE_SERVERS=elasticachehostname.amazonaws.com </code></pre></li> </ol> <p>After that, follow the <a href="https://devcenter.heroku.com/articles/memcache#rails-setup" rel="nofollow">Memcache Rails setup</a>, and you're set.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload