WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
[resolved] Amazon ElastiCache Integration ?? (11 posts)

  1. brvce
    Member
    Posted 2 years ago #

    Are there plans on integrating Amazon's new caching product, ElastiCache?

    It looks like a promising piece of the ever expanding speed & optimization puzzle.

  2. Nick Moline
    Member
    Posted 2 years ago #

    ElastiCache is just an Amazon run copy of Memcached (Much like Amazon RDS is just an Amazon run copy of either MySQL or Oracle), and as such any plugin that uses memcache will support ElastiCache out of the box.

    I setup a ElastiCache pool and connected W3 total cache to it yesterday with absolutely no problems.

  3. brvce
    Member
    Posted 2 years ago #

    Thanks Nick - can I ask how you 'connect ' them. Does W3 detect it somehow and add it to the drop down box or did you have to tweak something else.

    Bruce

  4. Nick Moline
    Member
    Posted 2 years ago #

    When you create an elasticache pool you are given a list of hostnames (one for each node you create), then simply select Memcached for the cache type in W3 Total Cache, and on the settings tab for the particular cache you are using Elasticache for, put the hosts that amazon gives you (with :11211 on each one, the standard Memcache port), comma separated

  5. brvce
    Member
    Posted 2 years ago #

    Thanks a bunch - appreciate it.

  6. TDF
    Member
    Posted 2 years ago #

    Maybe I'm misunderstanding, but W3TC will not let you choose memcache (it is grayed out) unless you install it on the server.

    @nickmoline, can you please explain the process of implementing ElastiCache... again.

  7. Nick Moline
    Member
    Posted 2 years ago #

    you don't need to have memcache installed, only the memcache pecl module in your php installation. Elasticache is a memcached server, nothing more nothing less. As long as you have the memcache pecl module installed in your php, the memcache option will be available on the W3TC dropdowns.

    You can install the pecl module with:

    pecl install memcache

    OR on an apt based system like debian or ubuntu

    apt-get install php5-memcache

  8. TDF
    Member
    Posted 2 years ago #

    Right, what I was thinking. Thanks @nickmoline.

  9. TDF
    Member
    Posted 2 years ago #

    Another question @nickmoline, if you don't mind.

    What do you think of ElastiCache performance/cost wise?

  10. TDF
    Member
    Posted 2 years ago #

    @nick,

    You say "I setup a ElastiCache pool and connected W3 total cache to it yesterday with absolutely no problems."

    However here is what AWS FAQs is saying:

    Can programs running on servers in my own data center access Amazon ElastiCache?

    No. Currently, all clients to an ElastiCache Cluster must be within the Amazon EC2 network, and authorized via security groups.

    I found out that the hard way. Digging into AWS, lunching instances, creating nodes, creating various security groups (firewalls), etc.

    It turns out you can use ElastiCache only if you host your site at Amazon EC2 network.

    Any thoughts?

  11. Scott Bressler
    Member
    Posted 2 years ago #

    I was also able to set up ElastiCache for a WP install running on EC2 with the Bitnami WP stack.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic