Created
June 1, 2017 13:15
-
-
Save VvanGemert/ec681f12c51e25968c61172814bfc23e to your computer and use it in GitHub Desktop.
MongoDB Haproxy configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
listen mongodb *:27017 | |
balance source | |
mode tcp | |
option tcpka | |
option httpchk | |
server db01 127.0.0.1:27017 check port 27020 inter 5s | |
server db02 127.0.0.2:27017 check port 27020 inter 5s | |
server db03 127.0.0.3:27017 check port 27020 inter 5s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment