You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jclouds.apache.org by David Bosschaert <da...@gmail.com> on 2014/07/22 14:55:39 UTC
Cleaning up 'jclouds-script-{somenumber}' files
Hi all,
I see that jclouds leaves quite a lot of 'jclouds-scripts-32938740'
files in the home directory of my cloud nodes. They seem to be created
by compute.runScriptOnNode(...) API calls.
I was wondering what the best way is to clean these up. Or is there an
automatic process that gets rid of these files after some time?
Thanks,
David
Re: Cleaning up 'jclouds-script-{somenumber}' files
Posted by Chris Custine <ch...@gmail.com>.
Hi David,
I don’t think you are doing anything wrong, I think the reason they do not get cleaned is because it is possible to run them in the background and you might have dependencies between the scripts. That is just a guess, and there may not be a specific reason. It might be possible to clean the ones that are blocking and have a more controlled lifecycle. IIRC they are all located in the /tmp directory, so this may be something trivial and worth adding.
--
Chris Custine
On July 22, 2014 at 10:34:45 AM, David Bosschaert (david.bosschaert@gmail.com) wrote:
On 22 July 2014 17:22, Andrew Phillips <an...@apache.org> wrote:
>> I was wondering what the best way is to clean these up. Or is there an
>> automatic process that gets rid of these files after some time?
>
>
> Not as far as I am aware. Have you tried something like a cron job that
> deletes these at intervals?
Yeah, a cron job could work but obviously it should not delete the
ones that are still in use :)
I guess the proper question is, is it normal that these files are left
after script execution or am I doing something wrong which causes them
to be left there?
Cheers,
David
Re: Cleaning up 'jclouds-script-{somenumber}' files
Posted by David Bosschaert <da...@gmail.com>.
On 22 July 2014 17:22, Andrew Phillips <an...@apache.org> wrote:
>> I was wondering what the best way is to clean these up. Or is there an
>> automatic process that gets rid of these files after some time?
>
>
> Not as far as I am aware. Have you tried something like a cron job that
> deletes these at intervals?
Yeah, a cron job could work but obviously it should not delete the
ones that are still in use :)
I guess the proper question is, is it normal that these files are left
after script execution or am I doing something wrong which causes them
to be left there?
Cheers,
David
Re: Cleaning up 'jclouds-script-{somenumber}' files
Posted by Andrew Phillips <an...@apache.org>.
> I was wondering what the best way is to clean these up. Or is there an
> automatic process that gets rid of these files after some time?
Not as far as I am aware. Have you tried something like a cron job
that deletes these at intervals?
ap