Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 383642

Summary: Create a migration story for BETA OrionHub to 1.0 of OrionHub
Product: [ECD] Orion Reporter: Ken Walker <ken_walker>
Component: OrionHubAssignee: John Arthorne <john.arthorne>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: john.arthorne, webmaster
Version: 0.5   
Target Milestone: 1.0   
Hardware: All   
OS: All   
Whiteboard:

Description Ken Walker CLA 2012-06-27 09:36:43 EDT
At the moment OrionHub has over 5000 registered users however we may be deciding on a new format for registrations on the way to 1.0.  In discussing with John we might propose resetting all accounts on OrionHub when 1.0 goes public.

In order to not lose any user project information we should to provide a backup site running a server containing all the old information perhaps at a subdomain such as betaaccounts.orionhub.org to allow users to get at their data.
Comment 1 John Arthorne CLA 2012-08-31 09:10:11 EDT
Webmaster, would it be possible to use your front end proxy server to redirect a subdomain like beta.orionhub.org to a different port on orionhub.org. We could then keep the old server running on that port for say a month after the transition to enable people to access their old data. 

I know we never claimed to keep a copy of their data around but if we can do it with minimal extra work it would be nicer than giving our beta users a kick in the teeth.  I like this much better than just migrating all the data over to the new server at 1.0, because there are probably a few thousand inactive accounts where people gave it a spin and never came back.
Comment 2 Denis Roy CLA 2012-08-31 09:40:14 EDT
Yep, that shouldn't be a problem.
Comment 3 John Arthorne CLA 2012-10-01 09:38:03 EDT
Ok Denis, dumb question but how do we set this up? Should we just pick a different port to run the "old" server, and you will redirect requests from beta.orionhub.org to that port? We will be ready to do this in a couple of days.
Comment 4 Denis Roy CLA 2012-10-01 10:23:05 EDT
Set up your new instance, tell me which port it's on and I'll do the rest.
Comment 5 John Arthorne CLA 2012-10-18 22:54:07 EDT
Hi Denis, can you set up a redirect from backup.orionhub.org to orionhub.org:8090. We are planning to "switch" the old server to that port. We will then run the new server on the default 8080 port with the workspace in the large new partition you set up. We will aim to switch this over around noon EDT tomorrow (Oct 19).
Comment 6 John Arthorne CLA 2012-10-18 23:01:28 EDT
Todo for tomorrow:

Old server:
 - Shutdown server
 - Move install directory out of /current/eclipse
 - Change port in orion.ini
 - Disable account creation in orion.conf
 - Change virtual hosts argument in orion.conf (or maybe we just disable sites)

New server:
 - Update workspace location in upgrade.sh
Comment 7 Denis Roy CLA 2012-10-19 10:49:17 EDT
I don't have the cycles to do that, John.  Sorry.  Our typical upgrade process involves taking a backup of app and data, sandboxing the current setup, upgrading it, then doing the same process to the live version assuming all went well.
Comment 8 John Arthorne CLA 2012-10-19 11:07:50 EDT
Just to be clear, that "todo" list was for myself. All we're looking for from you is one new redirect:

backup.orionhub.org -> orionhub.org:8090

Does adding a redirect require all those steps? If so it is something you can schedule next week?
Comment 9 Denis Roy CLA 2012-10-19 11:17:39 EDT
Ah, ok.  It's in.  I'm assuming you wanted a proxypass, not a redirect, since port 8090 is not open to the world.

RewriteCond %{HTTP_HOST}   ^backup.orionhub.org$ [NC]
RewriteRule .* http://orionhub.org:8090 [P,L]
Comment 10 John Arthorne CLA 2012-10-19 16:20:38 EDT
Something's not working with the rewrite. We have a server running on port 8090, but any URL we request in the browser gets redirected to the same file. For example:

http://backup.orionhub.org/hello/world.txt

Gives us an HTML file
Comment 11 Denis Roy CLA 2012-10-19 16:33:09 EDT
That should have been:

    RewriteCond %{HTTP_HOST}   ^backup.orionhub.org$ [NC]
    RewriteRule ^/(.*) http://orionhub.org:8090/$1 [P,L]
Comment 12 John Arthorne CLA 2012-10-19 17:10:26 EDT
Much better, thanks Denis!

backup.orionhub.org is up and running.
Comment 13 John Arthorne CLA 2012-10-19 17:15:29 EDT
Actually it is running, but slow as molasses. We don't need the same QoS as orionhub.org, but could it be speeded up a bit? We're getting terrible timeout errors trying to use it.
Comment 14 Ken Walker CLA 2012-10-19 22:11:07 EDT
Actually it's a bit better now.  I wonder if the indexer is the issue on a fresh restart?
Comment 15 Denis Roy CLA 2012-10-21 14:41:32 EDT
It's all the same IP, so it gets the same QoS treatment as orionhub.org.

LOg in and check with top to see if anything is bogging down the machine.
Comment 16 John Arthorne CLA 2012-10-23 09:10:30 EDT
We're fine.