Re: How to change max simultaneous connection parameter in mysql.

2013-04-02 Thread spameden
2013/3/24 Reindl Harald h.rei...@thelounge.net



 Am 24.03.2013 05:20, schrieb spameden:
  2013/3/19 Rick James rja...@yahoo-inc.com:
  you never have hosted a large site
  Check my email address before saying that.
 
  :D

 as said, big company does not have only geniusses


I do not judge only on 1 parameter, Rick has been constantly helping here
and I'm pretty sure he has more knowledge on MySQL than you.



  20 may be low, but 100 is rather high.
  Never use apache2 it has so many problems under load..

 if you are too supid to configure it yes


Ever heard about Slow HTTP DoS attack?



  The best combo is php5-fpm+nginx.
  Handles loads of users at once if well tuned

 Apache 2.4 handles the load of 600 parallel executed
 php-scripts from our own CMS-system


Nginx serves static content way better than apache2 (did few benchmarks
already).

nginx+php5-fpm handles better load than apache2-prefork+mod_php

you can google benchmarks if you dont trust me

also nginx eats much less memory than apache2

php5-fpm can be tuned as well to suit your needs if you have lots of
dynamic content


 maybe you guys should learn what a opcode-cache is and
 how to compile and optimize software (binaries and config)

 o'rly?


Re: How to change max simultaneous connection parameter in mysql.

2013-04-02 Thread Reindl Harald


Am 02.04.2013 16:09, schrieb spameden:
 2013/3/24 Reindl Harald h.rei...@thelounge.net 
 mailto:h.rei...@thelounge.net

 Am 24.03.2013 05:20, schrieb spameden:
  2013/3/19 Rick James rja...@yahoo-inc.com 
 mailto:rja...@yahoo-inc.com:
  you never have hosted a large site
  Check my email address before saying that.
 
  :D
 
 as said, big company does not have only geniusses

 I do not judge only on 1 parameter, Rick has been constantly helping here and 
 I'm pretty sure he has more knowledge
 on MySQL than you.

but the MySQL knowledge alone is not enough in context of a webserver
not to say irrelevant

  20 may be low, but 100 is rather high.
  Never use apache2 it has so many problems under load..
 
 if you are too supid to configure it yes
 
 Ever heard about Slow HTTP DoS attack?

my config says yes as i heard about many things because it is my daily job

0 0 LOGtcp  --  eth0   *  !local-network/24  
0.0.0.0/0multiport dports
80,443 tcpflags: 0x17/0x02 #conn src/32  50 limit: avg 100/hour burst 5 LOG 
flags 0 level 7 prefix Firewall
Slowloris: 
0 0 DROP   tcp  --  eth0   *  !local-network/24  
0.0.0.0/0multiport dports
80,443 tcpflags: 0x17/0x02 #conn src/32  50



signature.asc
Description: OpenPGP digital signature


Re: How to change max simultaneous connection parameter in mysql.

2013-04-02 Thread Reindl Harald


Am 02.04.2013 22:56, schrieb Rick James:
 I hear that nginx is very fast for a certain class of web serving.  

yes

 But what happens if a web page needs to do a SELECT?  

what should happen?

 Is nginx single-threaded, thereby sitting idle waiting for the SELECT? 

why should it do that?

 And, should you run 8 nginx web servers on an 8-core box?

why should you do that?

http://en.wikipedia.org/wiki/Nginx
nginx uses an asynchronous event-driven approach to handling requests

 -Original Message-
 From: spameden [mailto:spame...@gmail.com]
 Sent: Tuesday, April 02, 2013 7:10 AM
 To: Reindl Harald
 Cc: mysql@lists.mysql.com
 Subject: Re: How to change max simultaneous connection parameter in
 mysql.

 2013/3/24 Reindl Harald h.rei...@thelounge.net



 Am 24.03.2013 05:20, schrieb spameden:
 2013/3/19 Rick James rja...@yahoo-inc.com:
 you never have hosted a large site
 Check my email address before saying that.

 :D

 as said, big company does not have only geniusses


 I do not judge only on 1 parameter, Rick has been constantly helping
 here and I'm pretty sure he has more knowledge on MySQL than you.



 20 may be low, but 100 is rather high.
 Never use apache2 it has so many problems under load..

 if you are too supid to configure it yes


 Ever heard about Slow HTTP DoS attack?



 The best combo is php5-fpm+nginx.
 Handles loads of users at once if well tuned

 Apache 2.4 handles the load of 600 parallel executed php-scripts from
 our own CMS-system


 Nginx serves static content way better than apache2 (did few benchmarks
 already).

 nginx+php5-fpm handles better load than apache2-prefork+mod_php

 you can google benchmarks if you dont trust me

 also nginx eats much less memory than apache2

 php5-fpm can be tuned as well to suit your needs if you have lots of
 dynamic content


 maybe you guys should learn what a opcode-cache is and how to compile
 and optimize software (binaries and config)

 o'rly?



signature.asc
Description: OpenPGP digital signature


RE: How to change max simultaneous connection parameter in mysql.

2013-04-02 Thread Rick James
(Thanks for the comment, spameden.)
Well, I was going to drop the thread, but he baited me.  I _do_ know something 
about web serving...

Should I recount the number of times I have traced a database meltdown back to 
MaxClients being too big?  They are _ugly_ meltdowns -- hundreds of 
point-queries stumbling over themselves, flooding the slowlog with queries that 
should never take more than milliseconds.  More and more db requests come in, 
non finishing, thereby stalling the web server threads, etc.

Another point to make -- once a web server (Apache or...) has saturated the CPU 
(or other shared resource), there is really no advantage, only disadvantage, in 
starting more web pages.  The will simply contend for the saturated resource, 
thereby slowing down _all_ threads.  It is better (at this point) to queue up 
(or drop) further requests, thereby giving the CPU a chance to actually finish 
something.

Yet another point...  If
   [ SUM(MaxClients) over the web servers you have ] 
   [ SUM(max_connections) over the Slaves ],
then you are threatening to have mysql refuse connections; this probably leads 
to broken web pages, maybe even 404s or 500s.  Granted, you have (at least) 3 
choices: decrease MaxClients, increase max_connections, or add more Slaves.  If 
mysql has most of max_connections _actively_ running querieds, then it is 
probably stumbling badly, so I vote against increasing that.  Adding a Slave 
cannot be done 'instantly'.  That leaves decreasing MaxClients, which is quick 
and easy.  Furthermore, the SE (in one of the meltdowns) killed Apache; this 
led to a prompt clear up of all the issues -- poor web response, mysql melting 
down, etc.

Sometimes less is better!

 -Original Message-
 From: Reindl Harald [mailto:h.rei...@thelounge.net]
 Sent: Tuesday, April 02, 2013 8:29 AM
 To: mysql@lists.mysql.com
 Subject: Re: How to change max simultaneous connection parameter in
 mysql.
 
 
 
 Am 02.04.2013 16:09, schrieb spameden:
  2013/3/24 Reindl Harald h.rei...@thelounge.net
  mailto:h.rei...@thelounge.net
 
  Am 24.03.2013 05:20, schrieb spameden:
   2013/3/19 Rick James rja...@yahoo-inc.com
 mailto:rja...@yahoo-inc.com:
   you never have hosted a large site
   Check my email address before saying that.
  
   :D
 
  as said, big company does not have only geniusses
 
  I do not judge only on 1 parameter, Rick has been constantly helping
  here and I'm pretty sure he has more knowledge on MySQL than you.
 
 but the MySQL knowledge alone is not enough in context of a webserver
 not to say irrelevant
 
   20 may be low, but 100 is rather high.
   Never use apache2 it has so many problems under load..
 
  if you are too supid to configure it yes
 
  Ever heard about Slow HTTP DoS attack?
 
 my config says yes as i heard about many things because it is my daily
 job
 
 0 0 LOGtcp  --  eth0   *  !local-network/24
 0.0.0.0/0multiport dports
 80,443 tcpflags: 0x17/0x02 #conn src/32  50 limit: avg 100/hour burst
 5 LOG flags 0 level 7 prefix Firewall
 Slowloris: 
 0 0 DROP   tcp  --  eth0   *  !local-network/24
 0.0.0.0/0multiport dports
 80,443 tcpflags: 0x17/0x02 #conn src/32  50


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/mysql



Re: How to change max simultaneous connection parameter in mysql.

2013-04-02 Thread Reindl Harald


Am 02.04.2013 23:15, schrieb Rick James:
 SELECT is not performed in the same thread as nginx; it is performed in 
 another process, or even (in big web setups) in a different host.  Therefore, 
 nginx would be in some form of wait state, thereby not really using the CPU.

tell me something new

 -Original Message-
 From: Reindl Harald [mailto:h.rei...@thelounge.net]
 Sent: Tuesday, April 02, 2013 2:00 PM
 To: mysql@lists.mysql.com
 Subject: Re: How to change max simultaneous connection parameter in
 mysql.



 Am 02.04.2013 22:56, schrieb Rick James:
 I hear that nginx is very fast for a certain class of web serving.

 yes

 But what happens if a web page needs to do a SELECT?

 what should happen?

 Is nginx single-threaded, thereby sitting idle waiting for the
 SELECT?

 why should it do that?

 And, should you run 8 nginx web servers on an 8-core box?

 why should you do that?

 http://en.wikipedia.org/wiki/Nginx
 nginx uses an asynchronous event-driven approach to handling requests

 -Original Message-
 From: spameden [mailto:spame...@gmail.com]
 Sent: Tuesday, April 02, 2013 7:10 AM
 To: Reindl Harald
 Cc: mysql@lists.mysql.com
 Subject: Re: How to change max simultaneous connection parameter in
 mysql.

 2013/3/24 Reindl Harald h.rei...@thelounge.net



 Am 24.03.2013 05:20, schrieb spameden:
 2013/3/19 Rick James rja...@yahoo-inc.com:
 you never have hosted a large site
 Check my email address before saying that.

 :D

 as said, big company does not have only geniusses


 I do not judge only on 1 parameter, Rick has been constantly helping
 here and I'm pretty sure he has more knowledge on MySQL than you.



 20 may be low, but 100 is rather high.
 Never use apache2 it has so many problems under load..

 if you are too supid to configure it yes


 Ever heard about Slow HTTP DoS attack?



 The best combo is php5-fpm+nginx.
 Handles loads of users at once if well tuned

 Apache 2.4 handles the load of 600 parallel executed php-scripts
 from our own CMS-system


 Nginx serves static content way better than apache2 (did few
 benchmarks already).

 nginx+php5-fpm handles better load than apache2-prefork+mod_php

 you can google benchmarks if you dont trust me

 also nginx eats much less memory than apache2

 php5-fpm can be tuned as well to suit your needs if you have lots of
 dynamic content


 maybe you guys should learn what a opcode-cache is and how to
 compile and optimize software (binaries and config)

 o'rly?



signature.asc
Description: OpenPGP digital signature


RE: How to change max simultaneous connection parameter in mysql.

2013-04-02 Thread Rick James
SELECT is not performed in the same thread as nginx; it is performed in another 
process, or even (in big web setups) in a different host.  Therefore, nginx 
would be in some form of wait state, thereby not really using the CPU.

 -Original Message-
 From: Reindl Harald [mailto:h.rei...@thelounge.net]
 Sent: Tuesday, April 02, 2013 2:00 PM
 To: mysql@lists.mysql.com
 Subject: Re: How to change max simultaneous connection parameter in
 mysql.
 
 
 
 Am 02.04.2013 22:56, schrieb Rick James:
  I hear that nginx is very fast for a certain class of web serving.
 
 yes
 
  But what happens if a web page needs to do a SELECT?
 
 what should happen?
 
  Is nginx single-threaded, thereby sitting idle waiting for the
 SELECT?
 
 why should it do that?
 
  And, should you run 8 nginx web servers on an 8-core box?
 
 why should you do that?
 
 http://en.wikipedia.org/wiki/Nginx
 nginx uses an asynchronous event-driven approach to handling requests
 
  -Original Message-
  From: spameden [mailto:spame...@gmail.com]
  Sent: Tuesday, April 02, 2013 7:10 AM
  To: Reindl Harald
  Cc: mysql@lists.mysql.com
  Subject: Re: How to change max simultaneous connection parameter in
  mysql.
 
  2013/3/24 Reindl Harald h.rei...@thelounge.net
 
 
 
  Am 24.03.2013 05:20, schrieb spameden:
  2013/3/19 Rick James rja...@yahoo-inc.com:
  you never have hosted a large site
  Check my email address before saying that.
 
  :D
 
  as said, big company does not have only geniusses
 
 
  I do not judge only on 1 parameter, Rick has been constantly helping
  here and I'm pretty sure he has more knowledge on MySQL than you.
 
 
 
  20 may be low, but 100 is rather high.
  Never use apache2 it has so many problems under load..
 
  if you are too supid to configure it yes
 
 
  Ever heard about Slow HTTP DoS attack?
 
 
 
  The best combo is php5-fpm+nginx.
  Handles loads of users at once if well tuned
 
  Apache 2.4 handles the load of 600 parallel executed php-scripts
  from our own CMS-system
 
 
  Nginx serves static content way better than apache2 (did few
  benchmarks already).
 
  nginx+php5-fpm handles better load than apache2-prefork+mod_php
 
  you can google benchmarks if you dont trust me
 
  also nginx eats much less memory than apache2
 
  php5-fpm can be tuned as well to suit your needs if you have lots of
  dynamic content
 
 
  maybe you guys should learn what a opcode-cache is and how to
  compile and optimize software (binaries and config)
 
  o'rly?


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/mysql



RE: How to change max simultaneous connection parameter in mysql.

2013-04-02 Thread Rick James
I hear that nginx is very fast for a certain class of web serving.  But what 
happens if a web page needs to do a SELECT?  Is nginx single-threaded, thereby 
sitting idle waiting for the SELECT?  And, should you run 8 nginx web servers 
on an 8-core box?

 -Original Message-
 From: spameden [mailto:spame...@gmail.com]
 Sent: Tuesday, April 02, 2013 7:10 AM
 To: Reindl Harald
 Cc: mysql@lists.mysql.com
 Subject: Re: How to change max simultaneous connection parameter in
 mysql.
 
 2013/3/24 Reindl Harald h.rei...@thelounge.net
 
 
 
  Am 24.03.2013 05:20, schrieb spameden:
   2013/3/19 Rick James rja...@yahoo-inc.com:
   you never have hosted a large site
   Check my email address before saying that.
  
   :D
 
  as said, big company does not have only geniusses
 
 
 I do not judge only on 1 parameter, Rick has been constantly helping
 here and I'm pretty sure he has more knowledge on MySQL than you.
 
 
 
   20 may be low, but 100 is rather high.
   Never use apache2 it has so many problems under load..
 
  if you are too supid to configure it yes
 
 
 Ever heard about Slow HTTP DoS attack?
 
 
 
   The best combo is php5-fpm+nginx.
   Handles loads of users at once if well tuned
 
  Apache 2.4 handles the load of 600 parallel executed php-scripts from
  our own CMS-system
 
 
 Nginx serves static content way better than apache2 (did few benchmarks
 already).
 
 nginx+php5-fpm handles better load than apache2-prefork+mod_php
 
 you can google benchmarks if you dont trust me
 
 also nginx eats much less memory than apache2
 
 php5-fpm can be tuned as well to suit your needs if you have lots of
 dynamic content
 
 
  maybe you guys should learn what a opcode-cache is and how to compile
  and optimize software (binaries and config)
 
  o'rly?

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/mysql



Re: How to change max simultaneous connection parameter in mysql.

2013-04-02 Thread spameden
2013/4/3 Rick James rja...@yahoo-inc.com

 SELECT is not performed in the same thread as nginx; it is performed in
 another process, or even (in big web setups) in a different host.
  Therefore, nginx would be in some form of wait state, thereby not really
 using the CPU.


ofc select is not performed in nginx thread, nginx acts as a proxying
server and just passes the request to the backend

it's entirely depends on your backend how fast it's gonna process certain
SELECT and ofc depends on what kind of database you've got

if backend takes too long to respond nginx just shows 502 error with
timeout from backend (by default: 30s).

good practice is to have multiple backends behind load balancer, so under
huge load no single request would be lost.



  -Original Message-
  From: Reindl Harald [mailto:h.rei...@thelounge.net]
  Sent: Tuesday, April 02, 2013 2:00 PM
  To: mysql@lists.mysql.com
  Subject: Re: How to change max simultaneous connection parameter in
  mysql.
 
 
 
  Am 02.04.2013 22:56, schrieb Rick James:
   I hear that nginx is very fast for a certain class of web serving.
 
  yes
 
   But what happens if a web page needs to do a SELECT?
 
  what should happen?
 
   Is nginx single-threaded, thereby sitting idle waiting for the
  SELECT?


nginx is multi threaded and it supports SMP architecture, there is main
process which controls everything and nginx configuration can be reloaded
with zero downtime.

I saw multiple test where under load (simple DDoS simulation attack like
there where 40k bots hitting the site at once) nginx+php5-fpm dropped much
less requests than apache2 + mod_php.

apache2 is so bad at eating memory and system resources.


 
  why should it do that?
 
   And, should you run 8 nginx web servers on an 8-core box?


no, you just tune

worker_processes 8;


  why should you do that?
 
  http://en.wikipedia.org/wiki/Nginx
  nginx uses an asynchronous event-driven approach to handling requests
 
   -Original Message-
   From: spameden [mailto:spame...@gmail.com]
   Sent: Tuesday, April 02, 2013 7:10 AM
   To: Reindl Harald
   Cc: mysql@lists.mysql.com
   Subject: Re: How to change max simultaneous connection parameter in
   mysql.
  
   2013/3/24 Reindl Harald h.rei...@thelounge.net
  
  
  
   Am 24.03.2013 05:20, schrieb spameden:
   2013/3/19 Rick James rja...@yahoo-inc.com:
   you never have hosted a large site
   Check my email address before saying that.
  
   :D
  
   as said, big company does not have only geniusses
  
  
   I do not judge only on 1 parameter, Rick has been constantly helping
   here and I'm pretty sure he has more knowledge on MySQL than you.
  
  
  
   20 may be low, but 100 is rather high.
   Never use apache2 it has so many problems under load..
  
   if you are too supid to configure it yes
  
  
   Ever heard about Slow HTTP DoS attack?
  
  
  
   The best combo is php5-fpm+nginx.
   Handles loads of users at once if well tuned
  
   Apache 2.4 handles the load of 600 parallel executed php-scripts
   from our own CMS-system
  
  
   Nginx serves static content way better than apache2 (did few
   benchmarks already).
  
   nginx+php5-fpm handles better load than apache2-prefork+mod_php
  
   you can google benchmarks if you dont trust me
  
   also nginx eats much less memory than apache2
  
   php5-fpm can be tuned as well to suit your needs if you have lots of
   dynamic content
  
  
   maybe you guys should learn what a opcode-cache is and how to
   compile and optimize software (binaries and config)
  
   o'rly?


 --
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:http://lists.mysql.com/mysql




Re: How to change max simultaneous connection parameter in mysql.

2013-04-02 Thread Reindl Harald


Am 02.04.2013 23:14, schrieb Rick James:
 (Thanks for the comment, spameden.)
 Well, I was going to drop the thread, but he baited me.  I _do_ know 
 something about web serving...

maybe

 Should I recount the number of times I have traced a database meltdown back 
 to MaxClients being too big?  They are _ugly_ meltdowns -- hundreds of 
 point-queries stumbling over themselves, flooding the slowlog with queries 
 that should never take more than milliseconds.  More and more db requests 
 come in, non finishing, thereby stalling the web server threads, etc.

been there, done that
it is a matter of the application design to avoid deadlocks in such cases

 Another point to make -- once a web server (Apache or...) has saturated the 
 CPU (or other shared resource), there is really no advantage, only 
 disadvantage, in starting more web pages.  The will simply contend for the 
 saturated resource, thereby slowing down _all_ threads.  It is better (at 
 this point) to queue up (or drop) further requests, thereby giving the CPU a 
 chance to actually finish something.

but with 20-100 requests a webserver these days is NOT saturated
MaxClients 20 is laughable

i had a high trafic site with MaxClients set to 500, driven with our CMS-system
teh CPU load was at 80% and the page got damned slow because you have to wait
before your images could be loaded

after raise MacClients to 600 it ran smooth, the CPU was around 85%
again: 20-100 MaxClients is laughable and only suiteable for a
dedicated, low-powered machine hosting only one domain

 Yet another point...  If
[ SUM(MaxClients) over the web servers you have ] 
[ SUM(max_connections) over the Slaves ],
 then you are threatening to have mysql refuse connections

no, my db-layer is traing again for some times and the chance to get a free slot
because other workers are serving images is proven in practice damned high


 
 -Original Message-
 From: Reindl Harald [mailto:h.rei...@thelounge.net]
 Sent: Tuesday, April 02, 2013 8:29 AM
 To: mysql@lists.mysql.com
 Subject: Re: How to change max simultaneous connection parameter in
 mysql.



 Am 02.04.2013 16:09, schrieb spameden:
 2013/3/24 Reindl Harald h.rei...@thelounge.net
 mailto:h.rei...@thelounge.net

 Am 24.03.2013 05:20, schrieb spameden:
  2013/3/19 Rick James rja...@yahoo-inc.com
 mailto:rja...@yahoo-inc.com:
  you never have hosted a large site
  Check my email address before saying that.
 
  :D

 as said, big company does not have only geniusses

 I do not judge only on 1 parameter, Rick has been constantly helping
 here and I'm pretty sure he has more knowledge on MySQL than you.

 but the MySQL knowledge alone is not enough in context of a webserver
 not to say irrelevant

  20 may be low, but 100 is rather high.
  Never use apache2 it has so many problems under load..

 if you are too supid to configure it yes

 Ever heard about Slow HTTP DoS attack?

 my config says yes as i heard about many things because it is my daily
 job

 0 0 LOGtcp  --  eth0   *  !local-network/24
 0.0.0.0/0multiport dports
 80,443 tcpflags: 0x17/0x02 #conn src/32  50 limit: avg 100/hour burst
 5 LOG flags 0 level 7 prefix Firewall
 Slowloris: 
 0 0 DROP   tcp  --  eth0   *  !local-network/24
 0.0.0.0/0multiport dports
 80,443 tcpflags: 0x17/0x02 #conn src/32  50



signature.asc
Description: OpenPGP digital signature


Re: How to change max simultaneous connection parameter in mysql.

2013-03-24 Thread Reindl Harald


Am 24.03.2013 05:20, schrieb spameden:
 2013/3/19 Rick James rja...@yahoo-inc.com:
 you never have hosted a large site
 Check my email address before saying that.
 
 :D

as said, big company does not have only geniusses

 20 may be low, but 100 is rather high.
 Never use apache2 it has so many problems under load..

if you are too supid to configure it yes

 The best combo is php5-fpm+nginx.
 Handles loads of users at once if well tuned

Apache 2.4 handles the load of 600 parallel executed
php-scripts from our own CMS-system

maybe you guys should learn what a opcode-cache is and
how to compile and optimize software (binaries and config)



signature.asc
Description: OpenPGP digital signature


Re: How to change max simultaneous connection parameter in mysql.

2013-03-24 Thread Manuel Arostegui
2013/3/24 Reindl Harald h.rei...@thelounge.net



 Am 24.03.2013 05:20, schrieb spameden:
  2013/3/19 Rick James rja...@yahoo-inc.com:
  you never have hosted a large site
  Check my email address before saying that.
 
  :D

 as said, big company does not have only geniusses

  20 may be low, but 100 is rather high.
  Never use apache2 it has so many problems under load..

 if you are too supid to configure it yes

  The best combo is php5-fpm+nginx.
  Handles loads of users at once if well tuned

 Apache 2.4 handles the load of 600 parallel executed
 php-scripts from our own CMS-system

 maybe you guys should learn what a opcode-cache is and
 how to compile and optimize software (binaries and config)


And maybe you should learn some good manners.


Re: How to change max simultaneous connection parameter in mysql.

2013-03-23 Thread spameden
2013/3/19 Rick James rja...@yahoo-inc.com:
 you never have hosted a large site
 Check my email address before saying that.

:D


 20 may be low, but 100 is rather high.

Never use apache2 it has so many problems under load..

The best combo is php5-fpm+nginx.

Handles loads of users at once if well tuned.


 -Original Message-
 From: Reindl Harald [mailto:h.rei...@thelounge.net]
 Sent: Monday, March 18, 2013 1:36 PM
 To: mysql@lists.mysql.com
 Subject: Re: How to change max simultaneous connection parameter in
 mysql.



 Am 18.03.2013 21:01, schrieb Rick James:
  20 is plenty if your pages run fast enough

 it is not
 you never have hosted a large site

  Excess clients after MaxClients are queued in Apache

 so what - it doe snot help you
 been there, done that

 if you have some hundret USERS at the same time any every of them is
 requesting the same page with a lot of images you are simply DEAD with
 a limit of
 20 in your configuration

  If the 20 are consuming resources (eg cpu/disk) it is better to queue
  the excess than to have everybody stumbling over each other.

 if your server can not serve more than 20 simultaionous requests you
 are not doing any serious things

 sorry, 20 can be done with any crappy notebook these days

  In MySQL, the excess clients beyond max_connections are give an
 error.
 
  -Original Message-
  From: Reindl Harald [mailto:h.rei...@thelounge.net]
  Sent: Monday, March 18, 2013 12:15 PM
  To: mysql@lists.mysql.com
  Subject: Re: How to change max simultaneous connection parameter in
  mysql.
 
 
 
  Am 18.03.2013 19:26, schrieb Rick James:
  If you are running Apache with MaxClients set too high, that can
  cause the problem.
 
  too high is relative
 
  That Apache setting should be something like 20.  (Other web
 servers
  have similar settings.)
 
  20 is a laughable value as long you are not hosting only sites with
  no users at all
 
  i have seen MaxClients 500 be critical while the hardware was not
  overloaded and we had THOUSANDS of users which liked to get the
  website with all it's images, no way with stupid settings of 20
 which
  means only ONE USER at the same time can fetch a single page with
  images and stylesheets


 --
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:http://lists.mysql.com/mysql


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/mysql



Re: How to change max simultaneous connection parameter in mysql.

2013-03-19 Thread Reindl Harald


Am 19.03.2013 01:18, schrieb Rick James:
 you never have hosted a large site
 Check my email address before saying that.

yahoo - so what

this is a large enough copmany that i am still sure you
never was allowed to touch a webserver for production

 20 may be low, but 100 is rather high

you do relly not understand it

* i had a project with a large amoutn of parallel users
* the MaxClients was up to 400
* the page-loading was UNACCEPTABLE slow
* after raise up the limit to 600 it got acceptable
* yes the hardware was able to satisfy the requests
* yes you need a LOT of memory and CPU

so please get rid of your i386 and stop to explain me the world

 -Original Message-
 From: Reindl Harald [mailto:h.rei...@thelounge.net]
 Sent: Monday, March 18, 2013 1:36 PM
 To: mysql@lists.mysql.com
 Subject: Re: How to change max simultaneous connection parameter in
 mysql.



 Am 18.03.2013 21:01, schrieb Rick James:
 20 is plenty if your pages run fast enough

 it is not
 you never have hosted a large site

 Excess clients after MaxClients are queued in Apache

 so what - it doe snot help you
 been there, done that

 if you have some hundret USERS at the same time any every of them is
 requesting the same page with a lot of images you are simply DEAD with
 a limit of
 20 in your configuration

 If the 20 are consuming resources (eg cpu/disk) it is better to queue
 the excess than to have everybody stumbling over each other.

 if your server can not serve more than 20 simultaionous requests you
 are not doing any serious things

 sorry, 20 can be done with any crappy notebook these days

 In MySQL, the excess clients beyond max_connections are give an
 error.

 -Original Message-
 From: Reindl Harald [mailto:h.rei...@thelounge.net]
 Sent: Monday, March 18, 2013 12:15 PM
 To: mysql@lists.mysql.com
 Subject: Re: How to change max simultaneous connection parameter in
 mysql.



 Am 18.03.2013 19:26, schrieb Rick James:
 If you are running Apache with MaxClients set too high, that can
 cause the problem.

 too high is relative

 That Apache setting should be something like 20.  (Other web
 servers
 have similar settings.)

 20 is a laughable value as long you are not hosting only sites with
 no users at all

 i have seen MaxClients 500 be critical while the hardware was not
 overloaded and we had THOUSANDS of users which liked to get the
 website with all it's images, no way with stupid settings of 20
 which
 means only ONE USER at the same time can fetch a single page with
 images and stylesheets



signature.asc
Description: OpenPGP digital signature


Re: How to change max simultaneous connection parameter in mysql.

2013-03-18 Thread Reindl Harald


Am 18.03.2013 19:26, schrieb Rick James:
 If you are running Apache with MaxClients set too high, that can cause the 
 problem.  

too high is relative

 That Apache setting should be something like 20.  (Other web servers have 
 similar settings.)

20 is a laughable value as long you are not hosting only
sites with no users at all

i have seen MaxClients 500 be critical while the hardware
was not overloaded and we had THOUSANDS of users which liked
to get the website with all it's images, no way with stupid
settings of 20 which means only ONE USER at the same time
can fetch a single page with images and stylesheets




signature.asc
Description: OpenPGP digital signature


RE: How to change max simultaneous connection parameter in mysql.

2013-03-18 Thread Rick James
20 is plenty if your pages run fast enough.
Excess clients after MaxClients are queued in Apache.  If the 20 are consuming 
resources (eg cpu/disk) it is better to queue the excess than to have everybody 
stumbling over each other.
In MySQL, the excess clients beyond max_connections are give an error.

 -Original Message-
 From: Reindl Harald [mailto:h.rei...@thelounge.net]
 Sent: Monday, March 18, 2013 12:15 PM
 To: mysql@lists.mysql.com
 Subject: Re: How to change max simultaneous connection parameter in
 mysql.
 
 
 
 Am 18.03.2013 19:26, schrieb Rick James:
  If you are running Apache with MaxClients set too high, that can
 cause the problem.
 
 too high is relative
 
  That Apache setting should be something like 20.  (Other web servers
  have similar settings.)
 
 20 is a laughable value as long you are not hosting only sites with no
 users at all
 
 i have seen MaxClients 500 be critical while the hardware was not
 overloaded and we had THOUSANDS of users which liked to get the website
 with all it's images, no way with stupid settings of 20 which means
 only ONE USER at the same time can fetch a single page with images and
 stylesheets
 


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/mysql



Re: How to change max simultaneous connection parameter in mysql.

2013-03-18 Thread Reindl Harald


Am 18.03.2013 21:01, schrieb Rick James:
 20 is plenty if your pages run fast enough

it is not
you never have hosted a large site

 Excess clients after MaxClients are queued in Apache

so what - it doe snot help you
been there, done that

if you have some hundret USERS at the same time
any every of them is requesting the same page with
a lot of images you are simply DEAD with a limit of
20 in your configuration

 If the 20 are consuming resources (eg cpu/disk) it is better to queue the 
 excess 
 than to have everybody stumbling over each other.

if your server can not serve more than 20 simultaionous
requests you are not doing any serious things

sorry, 20 can be done with any crappy notebook these days

 In MySQL, the excess clients beyond max_connections are give an error.
 
 -Original Message-
 From: Reindl Harald [mailto:h.rei...@thelounge.net]
 Sent: Monday, March 18, 2013 12:15 PM
 To: mysql@lists.mysql.com
 Subject: Re: How to change max simultaneous connection parameter in
 mysql.



 Am 18.03.2013 19:26, schrieb Rick James:
 If you are running Apache with MaxClients set too high, that can
 cause the problem.

 too high is relative

 That Apache setting should be something like 20.  (Other web servers
 have similar settings.)

 20 is a laughable value as long you are not hosting only sites with no
 users at all

 i have seen MaxClients 500 be critical while the hardware was not
 overloaded and we had THOUSANDS of users which liked to get the website
 with all it's images, no way with stupid settings of 20 which means
 only ONE USER at the same time can fetch a single page with images and
 stylesheets



signature.asc
Description: OpenPGP digital signature


Re: How to change max simultaneous connection parameter in mysql.

2013-03-18 Thread Noel Butler
On Mon, 2013-03-18 at 21:35 +0100, Reindl Harald wrote:

 
 Am 18.03.2013 21:01, schrieb Rick James:
  20 is plenty if your pages run fast enough



 
 if your server can not serve more than 20 simultaionous
 requests you are not doing any serious things
 


or he's using a 286 




signature.asc
Description: This is a digitally signed message part


RE: How to change max simultaneous connection parameter in mysql.

2013-03-18 Thread Rick James
If you are running Apache with MaxClients set too high, that can cause the 
problem.  That Apache setting should be something like 20.  (Other web servers 
have similar settings.)

 -Original Message-
 From: Igor Shevtsov [mailto:nixofort...@gmail.com]
 Sent: Saturday, March 16, 2013 1:45 AM
 To: mysql@lists.mysql.com
 Subject: Re: How to change max simultaneous connection parameter in
 mysql.
 
 Hi Kevin,
 In your MySQL client pls execute:
 SET GLOBAL max_connections = 200;
 To Make the change permanent you can edit /etc/my.cnf or whatever MySQL
 config file you you've got in your system Look for this line
 max_connections under [mysqld] secction, add it if it's not in the
 config. make sure it looks like:
 max_connections = 200
 
 No MySQL restart required
 Cheers,
 Igor
 
 
 
 On 16/03/13 07:39, Manuel Arostegui wrote:
  2013/3/16 Kevin Peterson qh.res...@gmail.com
 
  I am using PHP along with mysql. Mysql default configuration allows
  to have 100 simultaneous connection which I want to chane to 200.
 Please help.
 
 
  If you're reaching too many connections quite often, this change can
  imply memory problems in your server. If you are close to get your
  server to swap...be careful with this parameter as any swapping will
  affect your performance.
 
  Manuel.
 
 
 
 
 
 
 --
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:http://lists.mysql.com/mysql


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/mysql



RE: How to change max simultaneous connection parameter in mysql.

2013-03-18 Thread Rick James
 you never have hosted a large site
Check my email address before saying that.

20 may be low, but 100 is rather high.

 -Original Message-
 From: Reindl Harald [mailto:h.rei...@thelounge.net]
 Sent: Monday, March 18, 2013 1:36 PM
 To: mysql@lists.mysql.com
 Subject: Re: How to change max simultaneous connection parameter in
 mysql.
 
 
 
 Am 18.03.2013 21:01, schrieb Rick James:
  20 is plenty if your pages run fast enough
 
 it is not
 you never have hosted a large site
 
  Excess clients after MaxClients are queued in Apache
 
 so what - it doe snot help you
 been there, done that
 
 if you have some hundret USERS at the same time any every of them is
 requesting the same page with a lot of images you are simply DEAD with
 a limit of
 20 in your configuration
 
  If the 20 are consuming resources (eg cpu/disk) it is better to queue
  the excess than to have everybody stumbling over each other.
 
 if your server can not serve more than 20 simultaionous requests you
 are not doing any serious things
 
 sorry, 20 can be done with any crappy notebook these days
 
  In MySQL, the excess clients beyond max_connections are give an
 error.
 
  -Original Message-
  From: Reindl Harald [mailto:h.rei...@thelounge.net]
  Sent: Monday, March 18, 2013 12:15 PM
  To: mysql@lists.mysql.com
  Subject: Re: How to change max simultaneous connection parameter in
  mysql.
 
 
 
  Am 18.03.2013 19:26, schrieb Rick James:
  If you are running Apache with MaxClients set too high, that can
  cause the problem.
 
  too high is relative
 
  That Apache setting should be something like 20.  (Other web
 servers
  have similar settings.)
 
  20 is a laughable value as long you are not hosting only sites with
  no users at all
 
  i have seen MaxClients 500 be critical while the hardware was not
  overloaded and we had THOUSANDS of users which liked to get the
  website with all it's images, no way with stupid settings of 20
 which
  means only ONE USER at the same time can fetch a single page with
  images and stylesheets


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/mysql



Re: How to change max simultaneous connection parameter in mysql.

2013-03-16 Thread Manuel Arostegui
2013/3/16 Kevin Peterson qh.res...@gmail.com

 I am using PHP along with mysql. Mysql default configuration allows to
 have 100 simultaneous connection which I want to chane to 200. Please help.



If you're reaching too many connections quite often, this change can imply
memory problems in your server. If you are close to get your server to
swap...be careful with this parameter as any swapping will affect your
performance.

Manuel.




-- 
Manuel Aróstegui
Systems Team
tuenti.com


Re: How to change max simultaneous connection parameter in mysql.

2013-03-16 Thread Igor Shevtsov

Hi Kevin,
In your MySQL client pls execute:
SET GLOBAL max_connections = 200;
To Make the change permanent you can edit /etc/my.cnf or whatever MySQL 
config file you you've got in your system
Look for this line max_connections under [mysqld] secction, add it if 
it's not in the config. make sure it looks like:

max_connections = 200

No MySQL restart required
Cheers,
Igor



On 16/03/13 07:39, Manuel Arostegui wrote:

2013/3/16 Kevin Peterson qh.res...@gmail.com


I am using PHP along with mysql. Mysql default configuration allows to
have 100 simultaneous connection which I want to chane to 200. Please help.



If you're reaching too many connections quite often, this change can imply
memory problems in your server. If you are close to get your server to
swap...be careful with this parameter as any swapping will affect your
performance.

Manuel.







--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/mysql