• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Memcached Failover on CI3 - Need Help

#1
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,
// compared to 192.0.2.1 with a weight of 1.
$config['sess_save_path'] = '192.168.1.2:11211:5,192.168.1.1:11211:1';

Documentation: https://www.codeigniter.com/user_guide/l...hed-driver

Thanks in advance!
Rafael
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.