Jump to content

Community

KT Walrus

Command Line Upgrades

Recommended Posts

Please consider providing a command line PHP script to perform installs/upgrades in a cronjob (or as single interactive command). I can handle automating updating the PHP files, but it is a problem to upgrade the database (which resides on multiple servers in multiple datacenters) in a production environment.

I need to be able to perform upgrades of the database and the php files with minimal downtime, perhaps in the early mornings unattended. Ideally, upgrades could be performed in a rolling update to multiply PHP servers/MySQL databases. These services run in containers and rolling updates are easy to automate with the right upgrade system tasks. The upgrades can be tested in the development servers before being pushed to the production servers.

Share this post


Link to post
Share on other sites

These days it takes generally less than a minute to upgrade to the latest version using the Admin CP auto upgrader.

Share this post


Link to post
Share on other sites

Not certainly in that way. In the case of millions of users/topics/answers, the update time may take a long (for business) time. Of course, this also depends on the power of the application server and the database. But overall, the ability to have command-line tools would add a lot of administration, support and deployment abilities. As an example, it would be possible to describe in some manifest file a list with versions of applications/plug-ins and with some continuous integration tool builds an IPS test instance with needed additional stuff, proceed autotests for updated app branch, make deployment to production, etc.

Share this post


Link to post
Share on other sites
9 hours ago, Matt said:

These days it takes generally less than a minute to upgrade to the latest version using the Admin CP auto upgrader.

I don't mind doing ACP upgrades in the staging servers (for pre-deployment testing), but don't want to manually upgrade the production servers. Automating this process seems like a good thing to do to eliminate any downtime and to minimize the chance of error.

Share this post


Link to post
Share on other sites
36 minutes ago, KT Walrus said:

I don't mind doing ACP upgrades in the staging servers (for pre-deployment testing), but don't want to manually upgrade the production servers. Automating this process seems like a good thing to do to eliminate any downtime and to minimize the chance of error.

I would think you'd want to manually upgrade the Production servers, since if something did go wrong unless you built in error reporting, you wouldn't know until your customers came screaming at you that the site/forum was down...

Share this post


Link to post
Share on other sites

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...