dormando wrote:
Yo,

I'm debating a small patch for 1.4.2 that would add (more) commandline
warnings for memcached. You'd of course only see most of them if you fire
it up without the -d option, but hopefully in the course of testing
someone tries that.

For exampple, if someone sets `-m 12` they'd get a warning saying the
amount of memory is too small, and they're likely to get out of memory
errors.

And if they set `-t 50` it would warn that having threads > num_cpus is
wasteful. I think a few of our frequent issues can be solved by having
memcached audibly warn when configured weird. I also want to add more
twiddles that can be used for foot-shooting.

Thoughts?

I think this is a great. Anything which helps users be self sufficient and not shoot themselves in the foot is a good idea. In fact, you could even say 'refuse to start' unless there is a --overridesafety type thing for say '-m 12' or '-t 200'.

It could even make sense (someday) to add some intelligence in the mix. i.e. "-t figureitoutforme".
- Matt

Reply via email to