FAQ Search Today's Posts Mark Forums Read

» Linux Archive
Home
New Posts
Search
FAQ


Go Back   Linux Archive > Redhat > Fedora Infrastructure

 
 
LinkBack Thread Tools
 
Old 05-15-2008, 06:22 PM
"K.R. Foley"
 
Default download problem

susmit shannigrahi wrote:

we don't know this number (100) in the app...
Hence it needs to be a probability chosen out of the 53 (which we do
know).



No, Wait.

I can show if this is true for 100, this will be true for _any_ number.

* As we are generating a random number within 100, the probability of each
number being picked up is 1/100.

* So the probability of getting a number within 85 is always 85/100.


* Lets assume there are n requests to distribute.

* Whatever be the value of n, the random number's probability of being
in range <85
is 85/100.

* So out of n requests, n*85/100 requests will always be routed to X
irrespective of the value n.

* Lets say n=10..So X gets 10*85/100 = 8.5 requests.

* Lets say n=27 so X gets 27*85/100 = 22.95 requests.

* If n=1, then the probability that X will get that particular requests is 85%.

Correct?


Problem with this is that you never know n

--
kr

_______________________________________________
Fedora-infrastructure-list mailing list
Fedora-infrastructure-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-infrastructure-list
 
Old 05-15-2008, 06:30 PM
"susmit shannigrahi"
 
Default download problem

>>
> Problem with this is that you never know n


Hmm..let me think again..

--
Regards,
Susmit.

=============================================
ssh
0x86DD170A
http://www.fedoraproject.org/wiki/SusmitShannigrahi
=============================================

_______________________________________________
Fedora-infrastructure-list mailing list
Fedora-infrastructure-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-infrastructure-list
 
Old 05-15-2008, 06:44 PM
"susmit shannigrahi"
 
Default download problem

>> Problem with this is that you never know n

Why do we need to know n?
Whenever a request comes in, 85% chance is that it will go to X.
This is individually true for all requests.
So totally 85% req will go to X.





--
Regards,
Susmit.

=============================================
ssh
0x86DD170A
http://www.fedoraproject.org/wiki/SusmitShannigrahi
=============================================

_______________________________________________
Fedora-infrastructure-list mailing list
Fedora-infrastructure-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-infrastructure-list
 
Old 05-16-2008, 03:17 AM
"subhodip biswas"
 
Default download problem

can it be done like tihis !
it already detects that I am in india and routes me to nearest mirror
.why let the user choose among the three mirror so that if he gets a
421 he can switch to another one .(or may be suggested another one )
.I am talking of get fedora part only ..yum is working fine .

just a thought .

--
Regards
Subhodip Biswas

GPG key : FAEA34AB
Server : pgp.mit.edu
http://subhodipbiswas.wordpress.com
http:/www.fedoraproject.org/wiki/SubhodipBiswas

_______________________________________________
Fedora-infrastructure-list mailing list
Fedora-infrastructure-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-infrastructure-list
 
Old 05-19-2008, 12:16 AM
"K.R. Foley"
 
Default download problem

Matt Domsch wrote:

On Thu, May 15, 2008 at 10:04:51PM +1200, Nigel Jones wrote:

subhodip biswas wrote:

hi !
while trying to download F9 what I face is quite frustrating ..in fact
this can be faced by a lot of user in India .
while wbut mirror is down (temporarily ) and other cannot handle all
the load and bit torrent is quite slow .
clicking on i386 direct download always gives error 412 : too many
connected users .
any way of avoiding this .. I am currently downloading from a mirror
in USA and its quite slow.



Hi,

Going from what I know (someone might want to update me here):
We currently only have 3 mirrors in India
(http://mirrors.fedoraproject.org/), one is on a 45mbps link, while the
other two are on 5mbps and 2mbps links.


One thing MM would benefit from would be a weighted sampler.

Right now, it collects various lists of Hosts to return (same
netblock, same country, same continent, global). It shuffles (python random.shufle()) each of
the lists, then concatenates them, and sends that result to the end
user. However, this does not take into account that one mirror has a
45Mbps link, and another a 2Mbps; they would each get chosen
"randomly".

What I need is a replacement for random.shuffle() that takes a list of
tuples: (something, weight). And returns a list of somethings that
was generated with a statistical sampling based on weight.

Now, this is _probably_ a simple thing to do; my college number theory
professor would mock me for having not "just done it" myself, but hey
- I took that class _twice_ before passing it - I don't trust my
skills in this area to get it right.

Volunteers?




Perhaps something like the attached test program. I am new to python so
be gentle.


--
kr
_______________________________________________
Fedora-infrastructure-list mailing list
Fedora-infrastructure-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-infrastructure-list
 

Thread Tools




All times are GMT. The time now is 01:19 AM.

VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org