Create Agent to delete Debug Files

1 view
Skip to first unread message

Phil -- wbtc.fr --

unread,
Nov 24, 2010, 2:18:51 PM11/24/10
to in-por...@googlegroups.com
Hi,

I came to the situation of having 2Gb of debug files on a website, because we used debug while we were in dev. and they stayed in system/cache

I'd suggest to create an agent to clear debug_* files that are older than 1 week.

Phil.

Alexander Obuhovich

unread,
Nov 24, 2010, 3:31:50 PM11/24/10
to in-por...@googlegroups.com
We can actually adjust agent, that now deletes unused images from /system/images and /system/images/pending folders to do clean up here too. Maybe we need to rename it too.
--
Best Regards,

http://www.in-portal.com
http://www.alex-time.com

Phil -- wbtc.fr --

unread,
Nov 24, 2010, 3:56:40 PM11/24/10
to in-por...@googlegroups.com
yup, why not doing a global clean up agent, we could name it "Cinderella Clean Up" :-)

2010/11/24 Alexander Obuhovich <aik....@gmail.com>

Dmitry Andrejev

unread,
Nov 28, 2010, 10:06:15 PM11/28/10
to in-por...@googlegroups.com
I am for creating a separate Agent that will handle Debug clean up once a day or so since in some cases we might want to disable Delete Image Agents, plus it's not a good practice to have a Regular Event (in images now) that will manage the data outside of it's scope.

I would call new Agent as check_system_integrity OR clean_system_data and start with teaching it to clean old Debug files and then running Optimize on Tables SQL (one by one) once a day. There are other things we can do with it down on the road depending on time.

What you think?

DA
--


Best regards,

Dmitry A.

Alexander Obuhovich

unread,
Nov 29, 2010, 2:16:43 AM11/29/10
to in-por...@googlegroups.com
Ok about separate agent. Then "optimize_system_performance" would be the right name.

Dmitry A.

unread,
Nov 30, 2010, 1:24:08 PM11/30/10
to In-Portal Development Team
Here is a new task for this feature request:


939: New Agent to perform System Cleanup and Optimize Performance

http://tracker.in-portal.org/view.php?id=939


DA

On Nov 29, 1:16 am, Alexander Obuhovich <aik.b...@gmail.com> wrote:
> Ok about separate agent. Then "optimize_system_performance" would be the
> right name.
>
> On Mon, Nov 29, 2010 at 5:06 AM, Dmitry Andrejev <dandre...@gmail.com>wrote:
>
>
>
>
>
>
>
>
>
> > I am for creating a separate Agent that will handle Debug clean up once a
> > day or so since in some cases we might want to disable Delete Image Agents,
> > plus it's not a good practice to have a Regular Event (in images now) that
> > will manage the data outside of it's scope.
>
> > I would call new Agent as check_system_integrity OR clean_system_data and
> > start with teaching it to clean old Debug files and then running Optimize on
> > Tables SQL (one by one) once a day. There are other things we can do with it
> > down on the road depending on time.
>
> > What you think?
>
> > DA
>
> > On Wed, Nov 24, 2010 at 2:56 PM, Phil -- wbtc.fr -- <p...@wbtc.fr> wrote:
>
> >> yup, why not doing a global clean up agent, we could name it "Cinderella
> >> Clean Up" :-)
>
> >> 2010/11/24 Alexander Obuhovich <aik.b...@gmail.com>
>
> >> We can actually adjust agent, that now deletes unused images from
> >>> /system/images and /system/images/pending folders to do clean up here too.
> >>> Maybe we need to rename it too.
>
Reply all
Reply to author
Forward
0 new messages