Sessions Failover with PHP-memcache against memcached

前端 未结 3 1706
有刺的猬
有刺的猬 2021-02-08 05:38

Colleagues!

I\'m running php 5.3 (5.3.8) with memcache (2.2.6) client library (http://pecl.php.net/package/memcache) to deal with memcached server. My goal is to have f

3条回答
  •  余生分开走
    2021-02-08 06:30

    You must change the hash strategy

    Change your config to

    memcache.hash_strategy  consistent
    

    When you make the hash strategy to consistent memcache copies the data across multiple servers. If one of the servers is down, it retries to copy it on the next request.

提交回复
热议问题