Hi all,
My forum is hitting the default limit of max_user_connections in mysql - currently set at 30.
I could not convince the service provider to up the connection limit for just one of my DB user ids.
The shared environment allows me to create up to 15 ids, each having a 30 connection limit.
My global max_connections is 150.
So you can see where i'm going. I'd like to create two (or N) ids
$config['db']['username'] = array ( 'dbXXXXXX', 'dbYYYYY' [,....]);
alternately to not break things
$config['db']['usernames'] = array ( 'dbXXXXXX', 'dbYYYYY' [,....]);
$config['db']['username'] = $config['db']['usernames'][0];
and rotate the incoming requests between them, either randomly or systematically based on the existence of the array.
would start the coding by requiring identical passwords - but that should probably be updated too.
I haven't looked into the code yet, so i'm not sure if this is the best data structure - but it is a descriptive enough (i hope).
Looks like this would live in Adapter.php
Has anybody tried this?
Worries? Comments? Gotchas?
Jokes are good too - since it is my first time asking a Q in here.
I'm also very old school unix/c/perl guy - so just learning php in case i typo'd something.
As an aside:
Yes i've tried hard to have them change the value.
Yes only XF is associated with that user - i peek/poke with another user id, another for wordpress, another for wiki.
Yes, i've asked the robots to slow down
- what have i missed?
Many Thanks
Pat
PS - the behavior when max_user_connections is triggered is a usually a broken picture embed - we like our pictures.
My forum is hitting the default limit of max_user_connections in mysql - currently set at 30.
I could not convince the service provider to up the connection limit for just one of my DB user ids.
The shared environment allows me to create up to 15 ids, each having a 30 connection limit.
My global max_connections is 150.
So you can see where i'm going. I'd like to create two (or N) ids
$config['db']['username'] = array ( 'dbXXXXXX', 'dbYYYYY' [,....]);
alternately to not break things
$config['db']['usernames'] = array ( 'dbXXXXXX', 'dbYYYYY' [,....]);
$config['db']['username'] = $config['db']['usernames'][0];
and rotate the incoming requests between them, either randomly or systematically based on the existence of the array.
would start the coding by requiring identical passwords - but that should probably be updated too.
I haven't looked into the code yet, so i'm not sure if this is the best data structure - but it is a descriptive enough (i hope).
Looks like this would live in Adapter.php
Has anybody tried this?
Worries? Comments? Gotchas?
Jokes are good too - since it is my first time asking a Q in here.
I'm also very old school unix/c/perl guy - so just learning php in case i typo'd something.
As an aside:
Yes i've tried hard to have them change the value.
Yes only XF is associated with that user - i peek/poke with another user id, another for wordpress, another for wiki.
Yes, i've asked the robots to slow down
- what have i missed?
Many Thanks
Pat
PS - the behavior when max_user_connections is triggered is a usually a broken picture embed - we like our pictures.