Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Safe storage beyond Redunda #25

Open
tripleee opened this issue Jan 21, 2020 · 5 comments
Open

Safe storage beyond Redunda #25

tripleee opened this issue Jan 21, 2020 · 5 comments

Comments

@tripleee
Copy link
Member

The items we had in Redunda were lost. The instance is now back up but with a clean slate. Ideally, there should be a way to store the current state in multiple places (back up your backups!)

In particular, it would be nice to have a checkpoint feature to pull the current data out of a running client prior to rebooting its host and/or container before there is a crisis involving one or more of metasmoke, Redunda, and AWS.

@tripleee tripleee transferred this issue from Charcoal-SE/halflife Jan 23, 2020
@tripleee
Copy link
Member Author

tripleee commented Mar 4, 2020

There is now a simple nightly cron job pulsebackup on the EC2 instance where Halflife runs which copies the dot directory from the running instance to a local Git repository in pulsedata. I'll see about mirroring this repo to a proper place.

@tripleee tripleee closed this as completed Mar 4, 2020
@tripleee tripleee reopened this Mar 4, 2020
@tripleee
Copy link
Member Author

Just restored (most) notifications from yesterday from backups. The prestart script should be refactored to take a backup, stop the old instance, start a new instance in offline mode, copy in the backup, and only then restart the bot.

For what it's worth, I now have an offsite backup of the pulsedata Git repo, though the automation is probably still somewhat brittle.

@tripleee
Copy link
Member Author

(Or , of course, I should figure out how to get Redunda to do exactly this!)

@tripleee
Copy link
Member Author

Tangentially, reminder to self, how to get useful JSON diffs out of Git:

echo '*.json diff=json' >.gitattributes
git config diff.json.textconv 'jq .'

Adapted from https://t-a-w.blogspot.com/2016/05/sensible-git-diff-for-json-files.html

@tripleee
Copy link
Member Author

tripleee commented Apr 2, 2020

I have refactored the restart script to copy in a fresh version from backup but it still looks like Redunda is rolling back the fresh data to an older version. Not really in a place where I can experiment, and Redunda seems to be down anyway ... /-:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant