Common values for MaxServers/MinSpareServers/MinSpareServers/MinSpareServers

33 views
Skip to first unread message

Chimezie Ogbuji

unread,
May 17, 2013, 4:54:20 PM5/17/13
to ak...@googlegroups.com
I'm having issues with the akara processes shutting down after some
time. I want to rule out whether my MaxMin/etc server configuration
settings are to blame and was wondering if others who use akara on
production servers can share their settings for these values?

This is what I have

MaxServers = 3
MinSpareServers = 1
MinSpareServers = 2
MinSpareServers = 1000

The message in the log I see that leads me to think these settings
have something to do with it is:

May 17 20:26:31 akara[29276]: [INFO] Akara server shutting down.
May 17 20:26:31 akara[29276]: [INFO] Removed PID file '..etc..'

Which I only expect to see when I explicitly bring the server down

Thanks

-- Chime

Luis Miguel Morillas

unread,
May 18, 2013, 1:44:30 AM5/18/13
to ak...@googlegroups.com
2013/5/17 Chimezie Ogbuji <chim...@gmail.com>:
> I'm having issues with the akara processes shutting down after some
> time. I want to rule out whether my MaxMin/etc server configuration
> settings are to blame and was wondering if others who use akara on
> production servers can share their settings for these values?
>
> This is what I have
>
> MaxServers = 3
> MinSpareServers = 1
> MinSpareServers = 2
> MinSpareServers = 1000

Is this what you have?

MaxServers = 3
MinSpareServers = 1
MaxSpareServers = 2
MaxRequestsPerServer = 1000

luismiguel

>
> The message in the log I see that leads me to think these settings
> have something to do with it is:
>
> May 17 20:26:31 akara[29276]: [INFO] Akara server shutting down.
> May 17 20:26:31 akara[29276]: [INFO] Removed PID file '..etc..'
>
> Which I only expect to see when I explicitly bring the server down
>
> Thanks
>
> -- Chime
>
> --
> You received this message because you are subscribed to the Google Groups "akara" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to akara+un...@googlegroups.com.
> To post to this group, send email to ak...@googlegroups.com.
> Visit this group at http://groups.google.com/group/akara?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Uche Ogbuji

unread,
May 18, 2013, 9:49:21 AM5/18/13
to ak...@googlegroups.com
Hi Chimezie,

Wow those are really cranked down settings!  Here is what we use in production:

grep Servers akara.conf

    #  MaxServers: maximum number of servers to run at any one time
    MaxServers           = 150
    #  MinSpareServers: minimum number of spare servers
    MinSpareServers      =   5
    #  MaxSpareServers: maximum number of spare servers
    MaxSpareServers      =  10

Which I think matches the distributed defaults,

Yes, at MaxServers = 3 I can expect a lot of reaping and respawning, which might cause some thrashing behavior.

Another very important setting is:

    #  MaxRequestsPerServer: restart a server after this many requests
    MaxRequestsPerServer =   10

This is usually the first one to tweak for perf.  If you use a lot of lightweight processes, crank it up (100 - 300, perhaps).  If you use a more modest number of heavyweight processes, keep it low (10 - 30, perhaps).


--
Uche Ogbuji                       http://uche.ogbuji.net
Founding Partner, Zepheira        http://zepheira.com
http://wearekin.org
http://www.thenervousbreakdown.com/author/uogbuji/
http://copia.ogbuji.net
http://www.linkedin.com/in/ucheogbuji
http://twitter.com/uogbuji
Reply all
Reply to author
Forward
0 new messages