ååãHAProxyã«ãããã§ã¤ã«ãªã¼ãã¼ãè¡ã£ãã®ã§ã ç¶ãã¦ä»åã¯èªåã§master,slaveã®åãæ¿ããè¡ãããã¨ããã§ããã ãã®åã«æåã§ã®åãæ¿ããè¡ãããã¨æãã¾ã(ï½ã»Ïã»Â´)ï½¼ï½¬ï½·ï½°ï¾ ä»åã®æ§æã¯ã¯masterï¼å°(server-idã¯10)ã slaveï¼å°æ§æ(slave1ã¯server-idã20,slave2ã¯server-idã30)ã®ã¬ããªã±ã¼ã·ã§ã³ãè¡ã£ã¦ããç°å¢ã§ã slaveãmasterã«å¤æ´ããmasterãslaveã«å¤æ´ãã¦ã¿ããã¨æãã¾ã(ã´âï½)bクï¾ï½¯! ãã®åã«æ³¨æç¹ã¨ãã¦ã次ã®ç¹ãããããã§ãã MySQLããã¥ã¡ã³ãããä¸é¨æç² http://dev.mysql.com/doc/refman/5.1/ja/replication-solutions-switch.html ã¹ã¬ã¼ãã --log-bin ã¯ããããã©ã --lo
{{#tags}}- {{label}}
{{/tags}}