Splitting the Web Server and Database Server

After facing an issue with not enough memory on a Rackspace 512MB standard node, we have decided to split the web server and database server. It turns out to be quite an easy operation.

Something I have learned is that, at the start of deployment of web applications, we should have edited the host name in /etc/hosts. It will make switching database server much easier. That is something I wish someone had told me about the problem with having everything pointing to localhost.

I have used this command in bash shell to find and replace string in files. I hope that it will be helpful for you.

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *