[packagekit] Yum backend throttling
rnorwood at redhat.com
Thu Sep 27 09:22:30 PDT 2007
Tim Lauridsen <tla at rasmil.dk> writes:
> No conversion is needed, the self.yumbase.conf is a special class with
> getter & setter to set differnt kind of option of different speciel
> The class does the convertion.
> self.yumbase.conf.throttle is a special throttle option there take a
> lot of differnt values and parse them into something urlgrabber
> See details here (trottle option).
> So the
> self.yumbase.conf.throttle = "40%"
> should work right.
> the repos inherit the throttle from self.yumbase.conf.throttle, so
> there should be no need to specify it on each repo object, if we just
> set the base throttle before the repos is initialized.
Oh, ok. I assumed 'parse' was only done when the value was loaded from
the config file, but now I see how it works.
Is just setting it when yum is set up good enough, or does there need to
be a call to change the throttle while a transaction is running? IIRC
hughsie mentioned something about throttling down when the user is
'active', and throttling back up when she is inactive...but that may
have just been a pipe dream.
Red Hat, Inc.
"The Sage does nothing, yet nothing remains undone."
-Lao Tzu, Te Tao Ching
More information about the PackageKit