Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2014
864
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.22 KB | None | 0 0
  1. 503 Service Unavailable
  2. No server is available to handle this request
  3.  
  4. option httpchk GET /web/
  5.  
  6. #---------------------------------------------------------------------
  7. # Example configuration for a possible web application. See the
  8. # full configuration options online.
  9. #
  10. # http://haproxy.1wt.eu/download/1.4/doc/configuration.txt
  11. #
  12. #---------------------------------------------------------------------
  13.  
  14. #---------------------------------------------------------------------
  15. # Global settings
  16. #---------------------------------------------------------------------
  17. global
  18. # to have these messages end up in /var/log/haproxy.log you will
  19. # need to:
  20. #
  21. # 1) configure syslog to accept network log events. This is done
  22. # by adding the '-r' option to the SYSLOGD_OPTIONS in
  23. # /etc/sysconfig/syslog
  24. #
  25. # 2) configure local2 events to go to the /var/log/haproxy.log
  26. # file. A line like the following can be added to
  27. # /etc/sysconfig/syslog
  28. #
  29. # local2.* /var/log/haproxy.log
  30. #
  31. #log 127.0.0.1 local2
  32.  
  33. maxconn 256
  34.  
  35. # turn on stats unix socket
  36. stats socket /var/lib/openshift/53cf023e500446e8e40000b6/haproxy//run/stats level admin
  37.  
  38. #---------------------------------------------------------------------
  39. # common defaults that all the 'listen' and 'backend' sections will
  40. # use if not designated in their block
  41. #---------------------------------------------------------------------
  42. defaults
  43. mode http
  44. log global
  45. option httplog
  46. option dontlognull
  47. option http-server-close
  48. #option forwardfor except 127.0.0.0/8
  49. option redispatch
  50. retries 3
  51. timeout http-request 10s
  52. timeout queue 1m
  53. timeout connect 10s
  54. timeout client 1m
  55. timeout server 1m
  56. timeout http-keep-alive 10s
  57. timeout check 10s
  58. maxconn 128
  59.  
  60. listen stats 127.6.152.3:8080
  61. mode http
  62. stats enable
  63. stats uri /
  64.  
  65. listen express 127.6.152.2:8080
  66.  
  67. cookie GEAR insert indirect nocache
  68. option httpchk GET /
  69.  
  70. balance leastconn
  71. server local-gear 127.6.152.1:8080 check fall 2 rise 3 inter 2000 cookie local-53cf023e500446e8e40000b6
  72. 66,4 Bot
  73.  
  74. ==> app-root/logs/haproxy.log <==
  75. [WARNING] 202/234012 (389054) : Server express/local-gear is DOWN for maintenance.
  76. [WARNING] 202/234013 (389054) : Server express/local-gear is DOWN for maintenance.
  77. [WARNING] 202/234017 (422420) : config : log format ignored for proxy 'stats' since it has no log address.
  78. [WARNING] 202/234017 (422420) : config : log format ignored for proxy 'express' since it has no log address.
  79. [WARNING] 202/234018 (422420) : Server express/local-gear is DOWN, reason: Layer7 wrong status, code: 404, info: "Not Found", check duration: 905ms. 0 active and 0 backup servers left. 0 sessions active, 0 requeued, 0 remaining in queue.
  80. [ALERT] 202/234018 (422420) : proxy 'express' has no server available!
  81. [WARNING] 202/234021 (422420) : Server express/local-gear is DOWN for maintenance.
  82. [WARNING] 202/234025 (422420) : Server express/local-gear is UP (leaving maintenance).
  83. [WARNING] 202/234027 (422420) : Server express/local-gear is DOWN, reason: Layer7 wrong status, code: 404, info: "Not Found", check duration: 279ms. 0 active and 0 backup servers left. 0 sessions active, 0 requeued, 0 remaining in queue.
  84. [ALERT] 202/234027 (422420) : proxy 'express' has no server available!
  85.  
  86. ==> app-root/logs/php.log <==
  87. - - - [22/Jul/2014:23:40:38 -0400] "GET / HTTP/1.0" 404 554 "-" "-"
  88. - - - [22/Jul/2014:23:40:40 -0400] "GET / HTTP/1.0" 404 554 "-" "-"
  89. - - - [22/Jul/2014:23:40:42 -0400] "GET / HTTP/1.0" 404 554 "-" "-"
  90. - - - [22/Jul/2014:23:40:44 -0400] "GET / HTTP/1.0" 404 554 "-" "-"
  91. - - - [22/Jul/2014:23:40:47 -0400] "GET / HTTP/1.0" 404 554 "-" "-"
  92. - - - [22/Jul/2014:23:40:49 -0400] "GET / HTTP/1.0" 404 554 "-" "-"
  93. - - - [22/Jul/2014:23:40:51 -0400] "GET / HTTP/1.0" 404 554 "-" "-"
  94. - - - [22/Jul/2014:23:40:53 -0400] "GET / HTTP/1.0" 404 554 "-" "-"
  95. - - - [22/Jul/2014:23:40:55 -0400] "GET / HTTP/1.0" 404 554 "-" "-"
  96. - - - [22/Jul/2014:23:40:58 -0400] "GET / HTTP/1.0" 404 554 "-" "-"
  97.  
  98. ==> app-root/logs/haproxy_ctld.log <==
  99. I, [2014-07-22T20:31:57.655534 #446960] INFO -- : Starting haproxy_ctld
  100. I, [2014-07-22T23:04:34.918141 #355794] INFO -- : Starting haproxy_ctld
  101. I, [2014-07-22T23:11:13.815573 #368500] INFO -- : Starting haproxy_ctld
  102. I, [2014-07-22T23:13:54.502196 #373865] INFO -- : Starting haproxy_ctld
  103. I, [2014-07-22T23:15:19.110173 #376596] INFO -- : Starting haproxy_ctld
  104. I, [2014-07-22T23:40:18.395416 #422460] INFO -- : Starting haproxy_ctld
  105.  
  106. ==> app-root/logs/php.log <==
  107. - - - [22/Jul/2014:23:41:00 -0400] "GET / HTTP/1.0" 404 554 "-" "-"
  108. - - - [22/Jul/2014:23:41:02 -0400] "GET / HTTP/1.0" 404 554 "-" "-"
  109. - - - [22/Jul/2014:23:41:04 -0400] "GET / HTTP/1.0" 404 554 "-" "-"
  110. - - - [22/Jul/2014:23:41:06 -0400] "GET / HTTP/1.0" 404 554 "-" "-"
  111. - - - [22/Jul/2014:23:41:09 -0400] "GET / HTTP/1.0" 404 554 "-" "-"
  112. - - - [22/Jul/2014:23:41:11 -0400] "GET / HTTP/1.0" 404 554 "-" "-"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement