i'm far away to use this complexes schemes, but when i read that, came up the question...
what happen if you just increase the maxconnection number?
then you can adjust it and you will never exceed the maxconnections of the database :)
does it make any sense?