![]() |
Memcached Failover on CI3 - Need Help - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Memcached Failover on CI3 - Need Help (/showthread.php?tid=63726) |
Memcached Failover on CI3 - Need Help - flippman - 12-03-2015 I'm new to CI3 and I'm building a clustered Memcached session servers. According to the CI3 documentation, it is possible to use multiple Memcached session server but the author noted that the feature should be used on our own risk. It did not work for me as I expected and I am getting a "Session: Error while trying to obtain lock for ci_session:xxx" when I stopped the Memcached service on the first server. It seems like the second server:port is not being used as failover. Do you guys have any ideas or workarounds that I can use to make the failover work? Code: // localhost will be given higher priority (5) here, Documentation: https://www.codeigniter.com/user_guide/libraries/sessions.html#memcached-driver Thanks in advance! Rafael |