[Glass] Purge tranlogs?
Norbert Hartl
norbert at hartl.name
Fri Dec 20 15:07:35 PST 2013
May I assume you start a new tranlog every two hours before copying them to a new machine. I personally wouldn’t transfer a file that is still being written even if there is no random access regarding file position.
Furthermore what probably isn’t clear by now. A fullbackup as the name says contains everything you need. Having the tranlogs just closes the gap between backup time and now, right?
So I’m a little bit lazy. I have arranged schedules via cron. 30 minutes to midnight I start the cleanup handler for my business model. This removes old and obsolete stuff (producing dead objects). 5 minutes later I start an MFC and let that settle for 15 minutes because it is just marking and after that the gc thread kicks in removing the objects for real (removing dead objects). Then I start a full backup of the stone and compress it. A little while later the backup process comes visiting, collects the backups, encrypts and transfers them to a backup machine of the provider. That’s all. Imperfect but fine for me :)
Norbert
Am 20.12.2013 um 23:40 schrieb Dale K. Henrichs <dale.henrichs at gemtalksystems.com>:
> The issue here is what is your backup strategy ...the definition of an unneeded tranlog is defined by the last backup that you are keeping ... how many backups are your keeping and where are you keeping your backups ... it's a very good idea to do these things...for ss3 i copy tranlogs to a separate host every two hours and delete tranlogs that are 2 days old ... so I have some redundancy, but I am keeping my backups and tranlogs on a different machine .... there are relatively easy formulas, but there are a number of different solutions and there are tradeoffs as well ...
>
> My preference is for folks who are using GLASS to describe the different schemes that they are using and through the community develop the sets of scripts that work for different groups of communities ...
>
> I don't want to dictate how you set things up in production, but I am willing to dictate how you should set things to get started with GemStone:)
>
> Dale
>
> From: "Norbert Hartl" <norbert at hartl.name>
> To: "Mariano Martinez Peck" <marianopeck at gmail.com>
> Cc: "GemStone Seaside beta discussion" <glass at lists.gemtalksystems.com>
> Sent: Friday, December 20, 2013 1:19:03 PM
> Subject: Re: [Glass] Purge tranlogs?
>
>
> Am 18.12.2013 um 19:28 schrieb Mariano Martinez Peck <marianopeck at gmail.com>:
>
>
>
>
> On Sat, Dec 14, 2013 at 11:49 AM, Norbert Hartl <norbert at hartl.name>wrote:
>
> Am 13.12.2013 um 21:53 schrieb Mariano Martinez Peck <marianopeck at gmail.com>:
>
> Hi,
>
> Is that possible? They are taking some space in my laptop...
> I periodically make some backups from GemTools.
>
> You might find that script useful
>
> https://github.com/noha/stone-creator/blob/master/bin/delete-old-tranlogs.sh
>
>
>
> Thanks Norbert,
>
> That was pretty easy to use and clear. I could release my last 15GB of my HDD ;)
> I wonder if such a script could be included in /opt/gemstone/product/seaside/bin ?
>
> I wonder the side effects of removing the obsolete translogs. I guess not that much but I am not 100% clear of what that means exactly. Need to read more about it.
>
> I talked to James in Edinburgh about this and the conclusion is that there is a chance this goes wrong but the odds are very low. If you want to be save I think you need to do an explicit snapshot before invoking the script. James can tell it how it is exactly.
>
> Norbert
>
>
>
> _______________________________________________
> Glass mailing list
> Glass at lists.gemtalksystems.com
> http://lists.gemtalksystems.com/mailman/listinfo/glass
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20131221/3f27c98e/attachment-0001.html>
More information about the Glass
mailing list