Apacheã®mod_proxy_balancerã使ãã¨ãã¯retryãè¨å®ãã¹ã
ãä»ä½ã£ã¦ãããµã¼ãã¹ã¯ãApacheã®mod_proxy_balancerã使ã£ã¦ãã¼ããã©ã³ã·ã³ã°ãã¦ãããããããããã¯ã¨ã³ãã®ãµã¼ãã¹ãµã¼ããä¸æ¦è½ã¨ãã¦ãã復帰ãããã¨ãã³ãã¯ã·ã§ã³ããã°ããã¤ãªãããªãã¨ããåé¡ã«æ©ãã§ããã1åãããæ¾ç½®ããã¨ã¤ãªããããã«ãªããã ãã©ã1åã¯çµæ§é·ãã
ãããããããªãã®ã§ã½ã¼ã¹ãèªãã§ã¿ãã¨ãããmod_proxy_balancer.cãçºããæããap_proxy_retry_workerã¨ããé¢æ°ãã³ãã¯ã·ã§ã³ã®å確ç«ããã¦ããã®ã§ã¯ãªããã¨æãããããããé¢æ°ã®å®ç¾©ãçºãã¦ã¿ãã¨ãç¾å¨æå»ãã¨ã©ã¼çºçæå»ã¨worker->retryã足ããæ°åããã大ãããã°workerã®statusããPROXY_WORKER_IN_ERRORã®ããããä¸ããã¦ããã ãã§ãã³ãã¯ã·ã§ã³ã®ç¢ºç«ãã©ãã®ããã®ãªãã¦é¢æ°ã¯ã¾ã£ããå¼ã°ãã¦ãªããããã§ãªã«ããªãã ãããããªããªã£ã¦ãã¾ããã°ããé ãæ±ãã¦ãã¾ã£ããããªãæ©ãã ããçµå±ãstatusãPROXY_WORKER_IN_ERRORã®éã¯ã¨ã©ã¼ç¶æ
ã¨ãããã¨ã§ã³ãã¯ã·ã§ã³ã®åæ¥ç¶ãããªãã®ã§ãã¿ã¤ã ã¢ã¦ãæéãçµéããããã®ããããä¸ããã¦ãããã ã¨æ°ã¥ããã
ãããã¾ã§ãããã°ããã¨ã¯ã©ãã§worker->retryãè¨å®ããã®ãã調ã¹ãã°ããã"mod_proxy_balancer retry"ã§ããã£ããmod_proxy_balancerのretryã¨ããã¨ã³ããªãä¸çªä¸ã«åºã¦ãã¦ããã®è¨è¿°éãBalancerMemberã«retry=3ã¨ãããªãã·ã§ã³ã追å ãã¦è©¦ãã¦ã¿ãã¨ããã§ããåé¡ã¯è§£æ±ºããã
ãããããmod_proxyのマニュアルã«ããããã«ProxyPassã®ã¨ããã§retryãè¨å®ãã¦ãåããªãããmod_proxy_balancerã®ãã¼ã¸ã«ã¯retryã¨ãtimeoutã¨ãã®è¨å®ã®è©±ã¯æ¸ãã¦ãªãããã©ãã辺ãèªãã°ããããäºãæ¸ãã¦ããã®ãããããããªãã£ãããã¶ããã©ããç¥ããªãã¨ãããªããµã¤ããç¥ã£ã¦ãªããã ãããªã¨ããæ°ãããã
ããã®ä»ãmod_proxyã®åé¡ã«é¢ãã¦ã¯ã 既知の問題およびHowToまとめã®ã¨ã³ããªãåèã«ãªã£ããç¾å¨ã§ã¯è§£æ±ºãã¦ããåé¡ãå¤ãããã©ãä¸åº¦ç®ãéãã¦ããã¦æã¯ãªãã