MySQL 㧠slave ãè¤æ°å°ç«ã¦ã¦åç §åæ£ããã«ã¯ãHAProxy ãå©ç¨ãã¦ãã¼ããã©ã³ã¹ã¨åãé¢ããè¡ãã¨æ軽ã«ä½¿ãã¦ä¾¿å©ã§ãã option mysql-check ã¨ããè¨å®ã§ãHAProxy èªèº«ã mysqld ã«æ¥ç¶ãã¦ãã«ã¹ãã§ãã¯ãå¯è½ã§ãã listen mysql-slave bind 127.0.0.1:3307 mode tcp option mysql-check user haproxy balance roundrobin server slave1 192.168.1.11 check server slave2 192.168.1.12 check server slave3 192.168.1.13 checkãªã®ã§ããããã®è¨å®ã ã¨ä»¥ä¸ã®ããã«å°ã ä¸ä¾¿ãªãã¨ãããã¾ãã mysqldã«æ¥ç¶ã§ãããã©ããã®ã¿ãæ»æ´»ã®å¤æã«ãã¦ããã®ã§ãã¬ããªã±
{{#tags}}- {{label}}
{{/tags}}