![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
|
I'm currently writing a service that we will want to throttle for some customers, so their database doesn't get hit too hard, but it's possible some might have faster servers so will be able to get away with having more than one process run at once, speeding response times. Consequently I was planning to have the ability to set the maximum number of processes that can be run at once, but enable this to be less than 1 - so that if it's say 0.1 then if a process runs for 1 second then it has to wait for 10 seconds before another can run. The question I can't really decide though is should I do it like this with just one flag, or should I have two flags - one for idle ratio and one for number of parallel processes? If two, then should two processes at once add on double the time for 'running' that one would, meaning it would have to wait longer? Has anybody else got any other novel ideas that could be implemented in this situation? |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |