Devdocs main · MNTB wikis main · Up one level (only works on a non-FrontPage)
To put citadel into rotation:
On citadel:
- Ensure that citadel is running the same code as cnx
serverdiff(shell script) - Point citadel's data at depot:
sudo frontend.sh - Check that the data redirection worked:
check-servermode.sh
On cnx:
- Tell cnx to include citadel as a front end:
rotation add citadel.cnx.rice.edu:8080sudo /etc/init.d/squid reload
On citadel:
- Verify that citadel is in rotation:
tail -f /var/log/zope/cnx/Z2.log(watch for activity)
To return citadel to testing mode:
- Tell cnx to stop using citadel as a front end:
rotation remove citadel.cnx.rice.edu:8080sudo /etc/init.d/squid reload - Verify that citadel is out of rotation:
tail -f /var/log/zope/cnx/Z2.log(watch for lack of activity) - Point citadel's data at itself
sudo testing.sh - Check that the data redirection worked:
check-servermode.sh
To roll out a change to cnx using citadel temporarily:
- Be sure that citadel has no more than the desired changes active
serverdiff(shell script) - Point citadel's data at depot:
sudo frontend.sh - Check that the data redirection worked:
check-servermode.sh
- Tell cnx to use citadel as the only front end (log into cnx!):
rotation set citadel.cnx.rice.edu:8080sudo /etc/init.d/squid reload - Verify that cnx is out of rotation:
tail -f /var/log/squid/access.log(watch for activity)tail -f /var/log/zope/cnx/Z2.log(watch for lack of activity) - Make updates to cnx
- Restart Zope (if necessary) and hit http://cnx.rice.edu:8080/ in a browser to absorb the first slow page load.
- Have cnx use only itself as a front end again
/usr/local/sbin/rotation set cnx.rice.edu:8080sudo /etc/init.d/squid reload - Return citadel to testing mode (and verify, if desired)
sudo testing.sh