Hello, 
I have a this multi-server configuration : 
- 1 reverse proxy apache (load balancing) 
- 2 workers (same instance of owncloud) 
- 1 database 
- 1 NFS server plugged in a 10To LUN. 

Here is how I make my updates (I did the 7.0.4 yesterday) : 

In my 1st worker : 
Into the /var/www folder, I have a "php" symbolic link for the folder 
owncloud-7.0.3 (which is running before update) : 
- I download the 7.0.4 owncloud folder ; 
- I make my patches into this 7.0.4 folder ; 
- I copy the config.php file and the "theme" directory from 7.0.3 folder to 
7.0.4 folder ; 
- I copy my newly added apps folders from 7.0.3 to 7.0.4. 

When I'm ready : 
- I cut accesses (reverse proxy) for everyone except my IP address ; 
- I make a mysqldump ; 
- I change the symbolic link ("php") from 7.0.3 to 7.0.4 folder ; 
- I update the DB : /usr/bin/php php/console.php upgrade (this operation sets 
automatically owncloud in maintenance mode on and off) ; 
- I make a rsync (of my all /var/www) from my 1st worker to my 2nd worker ; 
- I make some tests with my account ; 
- I open the reverse proxy again. 

Offline time : 3-4 minutes depending of my tests. 

I don't know if it the best way but I use this method for all our biggest web 
applications (moodle, uportal, etc.) and we never had any problem. 
The advantage of the symbolic link + mysqldump is that I can revert back to the 
previous version easily if something is broken. 

If you have any question about my configuration, fell free to ask. 

Regards, 

----- Mail original -----

> Hello,

> I don't find detail about multi server update/upgrade in documentation.

> I recently update my Owncloud 7.0.3 to 7.0.4, without any problem. I have 2
> Owncloud servers (same instance), 1 database and HAproxy in front of
> Owncloud.
> For this update I set all servers in maintenance mode, and disable service in
> HAproxy. There was a little downtime.

> Can I update server after server without downtime for my users ?
> Do I have to run " occ upgrade" and update database schema on each server ?

> Antoine

> _______________________________________________
> User mailing list
> [email protected]
> http://mailman.owncloud.org/mailman/listinfo/user

-- 

Benjamin SECLIER 
Direction du Numérique - Université de Lorraine 
24-30 rue Lionnois - 54003 Nancy Cedex 
Tél. 03 83 68 53 84 
_______________________________________________
User mailing list
[email protected]
http://mailman.owncloud.org/mailman/listinfo/user

Reply via email to