使用memcached的故障轉移服務器,我試圖建立一個強大的memcached的配置與node-memcached驅動程序的應用程序的NodeJS,但它似乎沒有一臺服務器去世使用指定的故障轉移服務器。在應用程序的NodeJS
我的本地試驗進展如下:
殼
memcached -p 11212
節點
MC = require('memcached')
c = new MC('localhost:11211', //this process does not exist
{failOverServers: ['localhost:11212']})
c.get('foo', console.log) //this will eventually time out
c.get('foo', console.log) //repeat 5 or 6 times to exceed the retries number
//wait until all the connection errors appear in the console
//at this point, the failover server should be in use
c.get('foo', console.log) //this still times out :(
什麼可能我們做錯了任何想法?
php.ini?你在說什麼? : - | – fortran 2014-10-07 15:41:13