Hi all,

I'm not sure if this is duplicating functionality that wasn't functional or
not, but here are the changes I've made to the latest snapshot to support
the functionality I was requesting.  This is an output of a 'diff -C 3' of
my changes to dumpstats.c .  Can one of the devs weigh in on whether this
is duplicate or not?

*** /root/downloads/haproxy/haproxy-ss-20130416/src/dumpstats.c 2013-04-15
13:50:33.000000000 -0700
--- /root/backups/dumpstats.c   2013-04-18 13:53:16.591678957 -0700
***************
*** 2109,2114 ****
--- 2109,2116 ----

                if ((sv->state & SRV_MAINTAIN) || (ref->state &
SRV_MAINTAIN))
                        chunk_appendf(&trash, "<tr class=\"maintain\">");
+               else if (sv->eweight == 0)
+                       chunk_appendf(&trash, "<tr class=\"maintain2\">");
                else
                        chunk_appendf(&trash,
                                      "<tr class=\"%s%d\">",
***************
*** 3061,3066 ****
--- 3063,3069 ----
                      ".backup5 {background: #90b0e0;}\n"  /* NOLB state
shows same as going down */
                      ".backup6 {background: #e0e0e0;}\n"
                      ".maintain        {background: #c07820;}\n"
+                     ".maintain2       {background: #0067FF;}\n"
                      ".rls      {letter-spacing: 0.2em; margin-right:
1px;}\n" /* right letter spacing (used for grouping digits) */
                      "\n"
                      "a.px:link {color: #ffff40; text-decoration: none;}"
***************
*** 3147,3152 ****
--- 3150,3157 ----
                      "<td class=\"active6\"></td><td
class=\"noborder\">not checked </td>"
                      "</tr><tr>\n"
                      "<td class=\"maintain\"></td><td class=\"noborder\"
colspan=\"3\">active or backup DOWN for maintenance (MAINT) &nbsp;</td>"
+                     "</tr><tr>\n"
+                     "<td class=\"maintain2\"></td><td class=\"noborder\"
colspan=\"3\">active or backup SOFT STOPPED for maintenance (MAINT)
&nbsp;</td>"
                      "</tr></table>\n"
                      "Note: UP with load-balancing disabled is reported as
\"NOLB\"."
                      "</td>"

Regards,
Geoff


On Tue, Apr 9, 2013 at 11:22 AM, Geoff Bucar <[email protected]> wrote:

> Hi everyone,
>
> Since I have implemented haproxy and started training my staff on
> management, a request for additional colours in the web interface for 'soft
> stopped' servers was brought up.  I was wondering how hard that would be to
> implement as I've had one of my staff soft stop a server, not realize it
> and forget about it.  This led to confusion as another tech came along and
> stopped the other system which led to no requests being serviced.  As a
> work around, I've told them to ensure the weight is '1' on all servers that
> should be serving content, but as we all know something like that can be
> missed pretty easily.  Thanks for your time!
>
> Regards,
> Geoff
>

Reply via email to