Guest User

haproxy_config

a guest
Sep 19th, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.16 KB | None | 0 0
  1. global
  2. log /dev/log local0
  3. chroot /var/lib/haproxy
  4. ## ADDS THE HABILITY TO CONTROL SERVER LOCALLY - EG. DISABLE HOSTS DYNAMICALLY ##
  5. ## FOR REMOTE ADMIN WOULD BE > http://cbonte.github.io/haproxy-dconv/configuration-1.5.html#3.1-stats%20socket ##
  6. ## REMOTE SOCKET COMMANDS > http://cbonte.github.io/haproxy-dconv/configuration-1.5.html#9.2 ##
  7. stats socket /etc/haproxy/haproxysock level admin
  8. user haproxy
  9. group haproxy
  10. daemon
  11. tune.ssl.default-dh-param 2048
  12.  
  13. defaults
  14. log global
  15. mode http
  16. maxconn 300000
  17. option dontlognull
  18. option redispatch
  19. option tcplog
  20. timeout connect 10s
  21. timeout client 70m
  22. timeout server 70m
  23. timeout check 10s
  24. timeout queue 1m
  25. timeout http-request 10s
  26. errorfile 400 /usr/share/haproxy/400.http
  27. errorfile 403 /usr/share/haproxy/403.http
  28. errorfile 408 /usr/share/haproxy/408.http
  29. errorfile 500 /usr/share/haproxy/500.http
  30. errorfile 502 /usr/share/haproxy/502.http
  31. errorfile 503 /usr/share/haproxy/503.http
  32. errorfile 504 /usr/share/haproxy/504.http
  33.  
  34.  
  35. ## KEYSTONE SERVICES ##
  36. listen keystone_admin_backend
  37. bind 192.168.90.200:35357 ssl crt /etc/ssl/certs/openstack.nubeliucloud.com.pem
  38. balance roundrobin
  39. mode http
  40. http-request add-header X-ipn-forwarded-for %[src]
  41. option forwardfor
  42. option httpchk
  43. option httpclose
  44. reqadd X-Forwarded-Proto:\ https
  45. server sm01 192.168.90.10:35357 check inter 2000 rise 2 fall 5
  46. server sm02 192.168.90.11:35357 check inter 2000 rise 2 fall 5
  47.  
  48. listen keystone_auth_backend
  49. bind 192.168.90.200:5000 ssl crt /etc/ssl/certs/openstack.nubeliucloud.com.pem
  50. balance roundrobin
  51. mode http
  52. http-request add-header X-ipn-forwarded-for %[src]
  53. option forwardfor
  54. option httpchk
  55. option httpclose
  56. reqadd X-Forwarded-Proto:\ https
  57. server sm01 192.168.90.10:5000 check inter 2000 rise 2 fall 5
  58. server sm02 192.168.90.11:5000 check inter 2000 rise 2 fall 5
  59.  
  60.  
  61. ## NEUTRON SERVICES ##
  62. listen neutron_server_backend
  63. bind 192.168.90.200:9696 ssl crt /etc/ssl/certs/openstack.nubeliucloud.com.pem
  64. mode http
  65. http-request add-header X-ipn-forwarded-for %[src]
  66. option forwardfor
  67. option httpchk
  68. option httpclose
  69. reqadd X-Forwarded-Proto:\ https
  70. server sm01 192.168.90.10:9696 check inter 2000 rise 2 fall 5
  71. server sm02 192.168.90.11:9696 check inter 2000 rise 2 fall 5
  72.  
  73.  
  74. ## GLANCE SERVICES ##
  75. listen glance_api_backend
  76. bind 192.168.90.200:9292 ssl crt /etc/ssl/certs/openstack.nubeliucloud.com.pem
  77. balance roundrobin
  78. mode http
  79. http-request add-header X-ipn-forwarded-for %[src]
  80. option forwardfor
  81. option httpchk
  82. option httpclose
  83. reqadd X-Forwarded-Proto:\ https
  84. server sm01 192.168.90.10:9292 check inter 2000 rise 2 fall 5
  85. server sm02 192.168.90.11:9292 check inter 2000 rise 2 fall 5
  86.  
  87. listen glance_registry_backend
  88. bind 192.168.90.200:9191 ssl crt /etc/ssl/certs/openstack.com.pem
  89. mode tcp
  90. option tcpka
  91. balance roundrobin
  92. server sm01 192.168.90.10:9191 check inter 2000 rise 2 fall 5
  93. server sm02 192.168.90.11:9191 check inter 2000 rise 2 fall 5
  94.  
  95. ## NOVA SERVICES ##
  96. listen nova_VNC
  97. bind 192.168.90.200:6080 ssl crt /etc/ssl/certs/openstack.com.pem
  98. option tcpka
  99. mode tcp
  100. balance roundrobin
  101. server sm01 192.168.90.10:6080 check inter 2000 rise 2 fall 5
  102. server sm02 192.168.90.11:6080 check inter 2000 rise 2 fall 5
  103.  
  104.  
  105. listen nova_placement_backend
  106. bind 192.168.90.200:8778 ssl crt /etc/ssl/certs/openstack.com.pem
  107. option tcpka
  108. mode tcp
  109. balance roundrobin
  110. server sm01 192.168.90.10:8778 check inter 2000 rise 2 fall 5
  111. server sm02 192.168.90.11:8778 check inter 2000 rise 2 fall 5
  112.  
  113. listen nova_api_backend
  114. bind 192.168.90.200:8774 ssl crt /etc/ssl/certs/openstack.com.pem
  115. balance roundrobin
  116. mode http
  117. http-request add-header X-ipn-forwarded-for %[src]
  118. option forwardfor
  119. option httpchk
  120. option httpclose
  121. reqadd X-Forwarded-Proto:\ https
  122. server sm01 192.168.90.10:8774 check inter 2000 rise 2 fall 5
  123. server sm02 192.168.90.11:8774 check inter 2000 rise 2 fall 5
  124.  
  125. listen nova_metadata_api_backend
  126. bind 192.168.90.200:8775 ssl crt /etc/ssl/certs/openstack.com.pem
  127. balance roundrobin
  128. mode http
  129. http-request add-header X-ipn-forwarded-for %[src]
  130. option forwardfor
  131. option httpchk
  132. option httpclose
  133. reqadd X-Forwarded-Proto:\ https
  134. server sm01 192.168.90.10:8775 check inter 2000 rise 2 fall 5
  135. server sm02 192.168.90.11:8775 check inter 2000 rise 2 fall 5
  136.  
  137.  
  138. ## CINDER SERVICE ##
  139. listen cinder_api_backend
  140. bind 192.168.90.200:8776 ssl crt /etc/ssl/certs/openstack.com.pem
  141. balance roundrobin
  142. mode http
  143. http-request add-header X-ipn-forwarded-for %[src]
  144. option forwardfor
  145. option httpchk
  146. option httpclose
  147. reqadd X-Forwarded-Proto:\ https
  148. server sm01 192.168.90.10:8776 check inter 2000 rise 2 fall 5
  149. server sm02 192.168.90.11:8776 check inter 2000 rise 2 fall 5
  150.  
  151.  
  152. ## GALERA SERVICE ##
  153. listen galera
  154. bind 192.168.90.200:3306
  155. mode tcp
  156. option tcpka
  157. balance source
  158. option mysql-check user haproxy_check
  159. server sm01 192.168.90.10:3306 check inter 2000 rise 2 fall 5
  160. server sm02 192.168.90.11:3306 backup check inter 2000 rise 2 fall 5
  161. server sm03 192.168.90.12:3306 backup check inter 2000 rise 2 fall 5
  162.  
  163. ## MEMCACHED SERVICE ##
  164.  
  165. listen memcached
  166. bind 192.168.90.200:11211
  167. mode tcp
  168. option tcpka
  169. balance source
  170. maxconn 10000
  171. server sm01 192.168.90.10:11211 check inter 2000 rise 2 fall 5
  172. server sm02 192.168.90.11:11211 check inter 2000 rise 2 fall 5
  173. server sm03 192.168.90.12:11211 check inter 2000 rise 2 fall 5
  174.  
  175. ## REDIS SERVICE ##
  176.  
  177.  
  178.  
  179. ## HORIZON SERVICES ##
  180.  
  181. listen horizon
  182. bind 192.168.90.200:443 ssl crt /etc/ssl/certs/openstack.com.pem
  183. balance source
  184. mode http
  185. http-request add-header X-ipn-forwarded-for %[src]
  186. option forwardfor
  187. option httpchk
  188. option httpclose
  189. reqadd X-Forwarded-Proto:\ https
  190.  
  191. server sm01 192.168.90.10:80 cookie sm01 check inter 2000 rise 2 fall 5
  192. server sm02 192.168.90.11:80 cookie sm02 check inter 2000 rise 2 fall 5
  193.  
  194. ## MURANO SERVICES ##
  195. listen murano
  196. bind 192.168.90.200:8082
  197. option tcpka
  198. option httpchk
  199. balance roundrobin
  200. server sm01 192.168.90.10:8082 check inter 2000 rise 2 fall 5
  201. server sm02 192.168.90.11:8082 check inter 2000 rise 2 fall 5
  202.  
  203. ## CEILOMETER ##
  204.  
  205. ## HEAT ##
  206. listen heat
  207. bind 192.168.90.200:8000
  208. balance roundrobin
  209. mode http
  210. option httpchk
  211. option httpclose
  212.  
  213. server sm01 192.168.90.10:8000 check inter 2000 rise 2 fall 5
  214. server sm02 192.168.90.11:8000 check inter 2000 rise 2 fall 5
  215.  
  216. listen heat_engine
  217. bind 192.168.90.200:8004
  218. balance roundrobin
  219.  
  220. mode http
  221. option httpchk
  222. option httpclose
  223.  
  224. server sm01 192.168.90.10:8004 check inter 2000 rise 2 fall 5
  225. server sm02 192.168.90.11:8004 check inter 2000 rise 2 fall 5
  226.  
  227. ## BILLING API
  228.  
  229.  
  230. ## MONITORING API
  231.  
  232.  
  233. ## CAPACITY API
  234.  
  235.  
  236.  
  237. ## GNOCCHI API
  238.  
  239.  
  240. listen gnocchi_api
  241. bind 192.168.90.200:8041
  242. mode tcp
  243. option tcpka
  244. balance roundrobin
  245. maxconn 10000
  246.  
  247. server sm01 192.168.90.10:8042 check inter 2000 rise 2 fall 5
  248. server sm02 192.168.90.11:8042 check inter 2000 rise 2 fall 5
Advertisement
Add Comment
Please, Sign In to add comment