Best way to run a staging and production environment?
For example, I could upgrade to a later mod_perl version on the staging area, test out the websites to make sure they work, and if so, make the change on the production area. Is this possible? I read a post here about someone wanting to use UML for that purpose, but that thread ended with the advice that it was a bad idea to use UML for that purpose (mainly because of system resources, etc.).
Is there a good way to upgrade or change configurations without affecting active websites?
8 Replies
What I may do is keep a Gentoo box at home configured the same as my Linode and use that as my staging server. The only major disadvantage of this is that it is not REALLY the same, because any quirks caused by the UML subsystem on the real server would not show up on my home system (although I would think a problem like that would be rare).
Does anyone know of a case where a given Linux system did not behave the same on a Linode as it did on real hardware?
@kiomava:
Just an idea, maybe you could run the test stuff under a chroot area.
This is what I do. You can configure apache on the jail to run on a different port, then bind mount
mount --bind /var/www $yourjail/var/www
your webroot so the pages exist in both places.. works well for letting users/customers/etc test stuff out before you do the full upgrade.
Kenny
@wirehead:
Well, you could always use a UML linux kernel on your home box….
I had that thought a couple days ago… I wonder how much of a performance difference there is between the usermode Gentoo kernel and gentoodevsources.