How can I test that? I've repeated this test succesfully like this: first shell: I perform continuous ab test like this:
while true; do /usr/local/apache2/bin/ab -c 14 -n 5000 http://127.0.0.1/server-status; done second shell: I store the ScoreBoard to a file: while true; do wget http://10.12.80.1/server-status?auto -O - 2>/dev/null| grep Scoreboard >> /tmp/foo; done third shell: I do a graceful with two echos (before and after) using this command: echo "before graceful" >> /tmp/foo; /usr/local/apache2/bin/apachectl graceful; echo "after graceful" >> /tmp/foo; Then, on /tmp/foo you can find something like this: Scoreboard: WCCCCWCCCCCWCCC Scoreboard: _CC_CCCWCCCCCCC Scoreboard: CCCCCCCC_CCWCCC Scoreboard: WCCCCCC_C_CCC_C Scoreboard: CCCCCCCCCCCCCCW Scoreboard: CCCCCCCCC_CCW__ Scoreboard: CCCCCWCCCCCCCCC Scoreboard: CCCCCCCCCCCW_CC Scoreboard: __CCC_CCWCCCCCC Scoreboard: CCCCCCCWCCCCC__ Scoreboard: CCW__C_CCC__WC_ Scoreboard: C_CCCCCC_CCCWCC Scoreboard: CC_CCCC_C_CCCWC Scoreboard: CCCCWCCCCCCCCCC before graceful Scoreboard: ___CW_CW_CCCC_C Scoreboard: __WCCRCC_CCCCCC Scoreboard: __CCC_C_C_CWCCC Scoreboard: CC_CCCWCCC_CCCC Scoreboard: CCCCCC__CWCCWCC after graceful Scoreboard: WGGCC Scoreboard: RCCWC Scoreboard: WCCWC Scoreboard: WWCCC Scoreboard: CCWCW Scoreboard: CWCCC Scoreboard: CCCWC Scoreboard: CCCWW Scoreboard: CWCCC On Mon, Sep 8, 2008 at 6:00 PM, William A. Rowe, Jr. <[EMAIL PROTECTED]> wrote: > Jordi Prats wrote: >> >> Hi all, >> There's any way to formally propose this littler change to mod_status? >> >> Jordi >> >> On Mon, Aug 11, 2008 at 9:57 AM, Jordi Prats <[EMAIL PROTECTED]> >> wrote: >>> >>> On Fri, Aug 8, 2008 at 7:04 PM, William A. Rowe, Jr. >>> <[EMAIL PROTECTED]> wrote: >>>> >>>> Jordi Prats wrote: >>>>> >>>>> I don't know about other implications of changing this line. I've just >>>>> tested it using prefork both restarting and reloading apache. What do >>>>> you think about this little change? >>>> >>>> How's your proposed patch interact with a server using slots 1-16, >>>> 128-136 >>>> when they gracefully restart the server with a lower number of >>>> maxclients? >>>> >>> It works fine. For example: >>> >>> Using: >>> >>> MaxClients 15 >>> ServerLimit 15 >>> >>> Using ab like this: >>> >>> while true; do /usr/local/apache2/bin/ab -c 14 -n 5000 >>> http://127.0.0.1/server-status; done >>> >>> I get: >>> >>> slots: 15 CCCCCCCCCCCCCWC >>> >>> Then I gracefully restart apache using: >>> >>> MaxClients 5 >>> ServerLimit 15 >>> >>> Then I get: >>> >>> slots: 5 WWCCR > > I'm asking, if those workers are spread across clients. I'm not altogether > clear if those were reaped, or if they just happened to line up. > -- Jordi
