[PHP] Re: Random mirrors and download quota

2002-08-11 Thread B.C. Lance
how about using the counter to store an id of the mirrors instead of randomly picking one? this will provide you a sequential traverse through all mirror sites. if there are 10 sites, the counter will always be from 0 -> 9. this way each mirror site will have equal share on hits. so if the cou

[PHP] Re: Random mirrors and download quota

2002-08-11 Thread Julio Nobrega
Seems good to me, only this part: > and it will be checked if the mirror is randomly selected and > if it is above 1200, will randomly select another server It's better to select those under 1200 right from the start. If you have 10 servers, you might make 9 checks before selecting the last on