diff options
Diffstat (limited to 'zarb-ml/mageia-discuss/20120312/006708.html')
-rw-r--r-- | zarb-ml/mageia-discuss/20120312/006708.html | 160 |
1 files changed, 160 insertions, 0 deletions
diff --git a/zarb-ml/mageia-discuss/20120312/006708.html b/zarb-ml/mageia-discuss/20120312/006708.html new file mode 100644 index 000000000..d23557b91 --- /dev/null +++ b/zarb-ml/mageia-discuss/20120312/006708.html @@ -0,0 +1,160 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> +<HTML> + <HEAD> + <TITLE> [Mageia-discuss] How to prune urpmi-proxy cache? + </TITLE> + <LINK REL="Index" HREF="index.html" > + <LINK REL="made" HREF="mailto:mageia-discuss%40mageia.org?Subject=Re%3A%20%5BMageia-discuss%5D%20How%20to%20prune%20urpmi-proxy%20cache%3F&In-Reply-To=%3C201203121059.37167.fri%40tribun.eu%3E"> + <META NAME="robots" CONTENT="index,nofollow"> + <META http-equiv="Content-Type" content="text/html; charset=us-ascii"> + <LINK REL="Previous" HREF="006703.html"> + <LINK REL="Next" HREF="006716.html"> + </HEAD> + <BODY BGCOLOR="#ffffff"> + <H1>[Mageia-discuss] How to prune urpmi-proxy cache?</H1> + <B>Morgan Leijström</B> + <A HREF="mailto:mageia-discuss%40mageia.org?Subject=Re%3A%20%5BMageia-discuss%5D%20How%20to%20prune%20urpmi-proxy%20cache%3F&In-Reply-To=%3C201203121059.37167.fri%40tribun.eu%3E" + TITLE="[Mageia-discuss] How to prune urpmi-proxy cache?">fri at tribun.eu + </A><BR> + <I>Mon Mar 12 10:59:37 CET 2012</I> + <P><UL> + <LI>Previous message: <A HREF="006703.html">[Mageia-discuss] How to prune urpmi-proxy cache? +</A></li> + <LI>Next message: <A HREF="006716.html">[Mageia-discuss] How to prune urpmi-proxy cache? +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#6708">[ date ]</a> + <a href="thread.html#6708">[ thread ]</a> + <a href="subject.html#6708">[ subject ]</a> + <a href="author.html#6708">[ author ]</a> + </LI> + </UL> + <HR> +<!--beginarticle--> +<PRE>måndagen den 12 mars 2012 07.49.42 skrev Maarten Vanraes: +><i> Op maandag 12 maart 2012 02:07:46 schreef Morgan Leijström: +</I>><i> > Cauldron updates makes urpmi-proxy cache grow pretty big. +</I>><i> > +</I>><i> > Any idea how to automatically or semi automatically prune +</I>><i> > +</I>><i> > /var/cache/urpmi-proxy ? +</I>><i> > +</I>><i> > Something along the line +</I>><i> > "delete all but the latest versions of same package" +</I>><i> > +</I>><i> > +</I>><i> > Maybe there is some tool used for similar task that can be used/hacked? +</I>><i> > +</I>><i> > +</I>><i> > Another idea is to compare contents of urpmi-proxy cache against mirror +</I>><i> > and delete files not present on mirror. (especially thinking of +</I>><i> > cauldron release) +</I>><i> > +</I>><i> > +</I>><i> > ( About urpmi-proxy +</I>><i> > <A HREF="https://wiki.mageia.org/en/Urpmi-proxy">https://wiki.mageia.org/en/Urpmi-proxy</A> +</I>><i> > <A HREF="https://forums.mageia.org/en/viewtopic.php?f=8&t=1770">https://forums.mageia.org/en/viewtopic.php?f=8&t=1770</A> +</I>><i> > +</I>><i> > ) +</I>><i> +</I>><i> While this is a feature not present yet, but on the TODO file of +</I>><i> urpmi-proxy: +</I> +Nice :) + +><i> I've been thinking along these lines: +</I>><i> +</I>><i> 1) delete older versions of the same file in the same directories +</I> +That is the best. + +( I wonder if it shold be possible to keep old versions, but if any client +needs it it will simply be downloaded again, and i guess it will not happen +very often. skip list seems overkill. ) + + +><i> 2) give a configurable max size and delete the older files if the size is +</I>><i> reached +</I> +Yes. Size per folder or whole urpmi-proxy, or both? + + +><i> 3) give a configurable time limit and delete all files older than this one +</I>><i> (in a cronjob) +</I> +That should be able to be set by folder, i.e i want to give mga1 2 years, (to +facilitate new installs or reinstalls) but cauldron only a couple months. + + +How would theese be combined? + +Idea to alow any content until max size is reached, and then prioritise: + +If size of folder is too large, then + remove old versions until size is under limit + if no more old versions, then + remove eldest files until size is under limit + +Easiets to apply per folder only + +Will be complicated to apply globally +Maybe by "outer control loop" that adjust down max size per folder if total +limit is reached. ) + +So if the OP suddenly realise he need more space for other thinks he can just +adjust down urpmi-proxy max size and trigger the cleaning, and all he will get +space easily, prioritising is taken care of. + +... i will stop fantasising now... + +><i> that being said, there are a couple of things you can do: +</I>><i> A) do a find with a time limit and remove the older files +</I> +><i> B) rsync with a mirror (with --delete option) +</I> +It must not download packages not already present, thus: + +><i> C) rsync with a mirror (but find some option to only delete the removed +</I>><i> files and nothing else) +</I> +><i> for A) i likely can make a quick shell script to do that, but i think +</I>><i> rsyncing with could be the quickest way... +</I>><i> +</I>><i> which would you prefer? +</I> +C - with some check so it do not remove all files if the mirror have some +problem or is offline making it look completely empty.... + + +For the imminent need i simply opened the folders in GIU file browser, sorted +on size and manually clicked the old version of the 20 largest packages in +each folder, saved a gigabyte. + +So i am good for now. +Just thinking about the future for me and other users. + +-- +Morgan Leijström +</PRE> + + +<!--endarticle--> + <HR> + <P><UL> + <!--threads--> + <LI>Previous message: <A HREF="006703.html">[Mageia-discuss] How to prune urpmi-proxy cache? +</A></li> + <LI>Next message: <A HREF="006716.html">[Mageia-discuss] How to prune urpmi-proxy cache? +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#6708">[ date ]</a> + <a href="thread.html#6708">[ thread ]</a> + <a href="subject.html#6708">[ subject ]</a> + <a href="author.html#6708">[ author ]</a> + </LI> + </UL> + +<hr> +<a href="https://www.mageia.org/mailman/listinfo/mageia-discuss">More information about the Mageia-discuss +mailing list</a><br> +</body></html> |