Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Aug 24, 2011 5:20 am 
Offline
Junior Member

Joined: Wed Jun 29, 2011 4:22 am
Posts: 42
Currently I host with Linode (Hurricane Electric).
But what if HE.net fails? Maybe I may purchase also Linode in UK?
How it may be organized, and also data replicated all the time?

Thanks,


Top
   
 Post subject:
PostPosted: Wed Aug 24, 2011 8:06 am 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
Synchronizing applications, configuration, and data between the two Linodes would be up to you, as would diverting/balancing incoming traffic as your application and availability needs dictate.

The cheap, quick, and easy tool for synchronization is rsync, along with changing DNS records to divert traffic as required. If databases are involved, it becomes more complicated.

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
 Post subject:
PostPosted: Mon Aug 29, 2011 2:39 pm 
Offline
Senior Newbie

Joined: Fri Feb 27, 2009 2:59 pm
Posts: 6
This thread has some relevant info.


Top
   
 Post subject:
PostPosted: Tue Aug 30, 2011 1:37 am 
Offline
Senior Member

Joined: Thu Oct 02, 2008 8:56 am
Posts: 99
Might not be what you are looking for, but what I do -

I have a development server at home configured almost identical to my linode. Same distribution (CentOS), same configurations (except where they have to be different), etc.

Nothing goes on my linode that hasn't first been on my development server. The way I upload to my linode is via rsync:

Code:
#!/bin/bash
dir=`echo $1 |sed -e s?"\/$"?""?`

echo ${dir}

test=`echo ${dir} |grep -c "^\/"`

if [ ${test} -eq 0 ]; then
  echo "Must be full path"
  exit 1
fi

if [ `echo ${dir} |grep -c "\/home\/"` -gt 0 ]; then
  exit 1
fi

dest=`echo ${dir} |sed -e s?"[^\/]*$"?""?`
echo ${dest}

rsync -avz --delete -e "ssh -i /path/to/my/rsync-key" ${dir} user@linode:${dest}


Obviously that needs to be tailored to your individual environment.

I use rsync over ssh and run sshd on a non standard high port number.

That way, no code is on my linode that isn't on my local devel box.
Once a night via cron, I do a reverse to grab content from the linode that was uploaded/created via the web applications I run so it is also backed up on my local devel server.

This includes database. First of every month, I do a full database dump and rename it to full.sql. Then once a day, I do a full database dump, take a diff from full.sql, and save it patch-date.sql

My devel box then grabs those by rsync, applies the patch on my local machine to reproduce the days full backup, and loads it into my devel box database.

This isn't fault tolerant in the sense that if a meteorite hit the Dallas location, I would still be serving requests - but it does mean that if something happened beyond a temporary outage, I could quickly be up and running again.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group