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

add nfs + es snapshots #66

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

mszubrycht-pythian
Copy link

This commit includes recipes to set up nfs server, mount the nfs share on all ES instances and set up an hourly snapshot cronjob of all ES indices. Tested on Ubuntu. Attributes will have to be tweaked for particular network addressing and distro-specific packages.

user 'root'
code <<-EOS
nfs_server_ip="#{node[:nfs_server][:address]}"
df -h | grep nfs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bash nitpick: if df -h | grep -q nfs. Using -q for a boolean grep is good because it exits after the first match.

I see that chef has a mount resource type. Will that work here?

@jonathandietz
Copy link
Contributor

We should use ES Curator instead of a custom script for backups.
https://github.com/elastic/curator
http://curator.readthedocs.org/en/latest/

@lesaux
Copy link
Contributor

lesaux commented Jun 22, 2015

I believe curator is just used to purge data in several different ways.
https://github.com/elastic/elasticsearch-cloud-aws
We are currently using it for ec2 auto-discovery, but this plugin can also be used to snapshot data to S3.

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

Successfully merging this pull request may close these issues.

6 participants