parser

Написать ответ на текущее сообщение

 

 
   команды управления поиском

и всё же как передать параметр --remove_failed_servers ?

AK666 19.11.2013 18:43

$memcache-connect-string[$.server[mmc-a2.local --server=mmc-b1.local --server=mmc-b2.local] 
			 $.remove_failed_servers(true)
			 $.binary-protocol(true) 
			 $.tcp-keepalive(true)
			 $.connect-timeout[5]]



  # open memcahed
  ^try{
	$mem[^memcached::open[$memcache-connect-string](0)] 
	$memb(true)
	^log[memcached.open OK]
  }{
	$exception.handled(true)
	$memb(false)
	^log[memcached.open | $exception.type | $exception.comment]
  }
2013-11-19 16:37:33: memcached.open | memcached | connect error: INVALID ARGUMENTS (38)
===

без $.remove_failed_servers(true)
$memcache-connect-string[$.server[mmc-a2.local --server=mmc-b1.local --server=mmc-b2.local] 
			 $.binary-protocol(true) 
			 $.tcp-keepalive(true)
			 $.connect-timeout[5]]



  # open memcahed
  ^try{
	$mem[^memcached::open[$memcache-connect-string](0)] 
	$memb(true)
	^log[memcached.open OK]
  }{
	$exception.handled(true)
	$memb(false)
	^log[memcached.open | $exception.type | $exception.comment]
  }
2013-11-19 16:39:37: memcached.open OK
===

с "неработающим" мемкешедом (mmc-off.local)
$memcache-connect-string[$.server[mmc-a2.local --server=mmc-b1.local --server=mmc-off.local] 
			 $.binary-protocol(true) 
			 $.tcp-keepalive(true)
			 $.connect-timeout[5]]



  # open memcahed
  ^try{
	$mem[^memcached::open[$memcache-connect-string](0)] 
	$memb(true)
	^log[memcached.open OK]
  }{
	$exception.handled(true)
	$memb(false)
	^log[memcached.open | $exception.type | $exception.comment]
  }
2013-11-19 16:41:57: memcached.open | memcached | connect error: SOME ERRORS WERE REPORTED (19)