Jetendo CMS rsync deployment enhanced
Jetendo CMS now has a new cache clearing mode where only the CFML components and functions are recreated, which takes much less time then re-building the other complex data structures in the cache.
This mode was created to make deployment of new code faster and more complete. I believe Railo had problems with permgen growing infinitely even with Java Agent enabled if you have any CFC / functions that stay in Application scope during a class change.
Additionally, it is now possible to deploy the core Jetendo CMS application from the test server to one or more target servers with a single click.
This new deploy process also clears the CFC / function cache at the same time.
The whole automated process takes just 11 seconds 2 seconds going from test server to my live server. Update 12/2/2013: I had a dns configuration mistake that was causing this to be much slower. Now it's nearly instantaneous!
It relies on Rsync, and this means it's very reliable / fast since rsync only sends what has changed, uses compression and the communication is done securely via SSH. Rsync is also configured to delete any extra files on the remote server. Leaving old code on the server is generally bad since it may have security problems. This deployment system helps you keep your server clean.
The system is also setup to automatically fix any filesystem permission problems that occur during the transfer.
Because rsync is using the --delay-updates option, none of the partially upload files can be read by the web servers during the transfer. It does a fast atomic rename after they are uploaded. This makes it much safer then FTP which easily causes corruption / temporary errors.
Compare this to using FTP or HTTP approach to deploying source code code, and you'll find it save a lot of time, and errors. It's very hard to use FTP in a team environment when you want to upload individual changes and you don't know what the rest of your team has changed. Jetendo's integration with Rsync and Git help you get a guarantee that the source code on the server matches the source code in your repo, and it does it much faster then FTP synchronization tools can.
In the future, this will be more useful when Jetendo officially supports High Availability Clustering.
Bookmark & Share
Most Popular Articles
- Mass virtual hosting security tip when using a reverse proxy to connect to other servers
- Solution for MariaDB Field 'xxx' doesn't have a default value
- How to lock Windows immediately upon smart card removal
- Stop using sleep mode with Windows Bitlocker for better security. Learn how to use hibernate in Windows 8.
- Planning a system to visually create responsive data-driven web page layouts & widgets in the Jetendo CMS browser interface
- Is Google Public DNS actually better then your ISP?
- Pros and Cons of CFML vs PHP and other languages
- My dog survived eating a box of Oreos