Large G2 Installation (6,600+ items) Upgrade Path

dasunst3r

Joined: 2009-03-25
Posts: 4
Posted: Sat, 2009-06-13 04:21

I noticed that there is now an importer for G2 data. Can someone enlighten me on the process in which G2 data gets transferred over to G3? Also, I have an album with 6,600+ items. Taking into consideration that I am on shared hosting, what would be the best way to upgrade? Thanks!

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sat, 2009-06-13 04:39

6600 items isn't very large actually.

My advice, try it and see how it goes. A quality shared host is going to be tremendously different than a low-end host. So your experience is going to vary widely.

If you have lots of problems, maybe go through the trouble of setting up G2 and G3 on your local machine, move/copy your G2 install to your local machine and import into G3 there, then move/copy your G3 install to your server.

I don't think anyone has made any tutorials for moving G3 around to different servers, etc, so watch your file system paths, permissions, configuration, etc....
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
dasunst3r

Joined: 2009-03-25
Posts: 4
Posted: Sat, 2009-06-13 04:48

The reason why I am asking about the importer and how it works is because I noticed that it uses G2's embed.php. Is 6,600 really not that big? Also, even if G3 falls flat on its face on the import process, my G2 installation will be untouched, right?

FYI: My hosting provider is DreamHost.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sat, 2009-06-13 05:17
Quote:
Is 6,600 really not that big?

http://codex.gallery2.org/Gallery2:Scalability

Quote:
Also, even if G3 falls flat on its face on the import process, my G2 installation will be untouched, right?

Correct, or at least when I played with it, it didn't. I'd be very surprised if it did anything other than read data from G2.

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sun, 2009-06-14 02:07

Gallery 3's importer won't change your Gallery 2 install in any way. If it does, it's a bug.
---
Problems? Check gallery3/var/logs before you post! and file bugs here!
Latest code/upgrading: http://codex.gallery2.org/Gallery3:Upgrading
Latest git: http://codex.gallery2.org/Gallery:Using_Git

 
ChrisJohnson00TA

Joined: 2004-03-15
Posts: 167
Posted: Sun, 2009-06-14 22:45

I'm also on DreamHost... I'm running close to 200,000 images on my site.

We'll see what happens :p

Edit: fail! Gallery requires PHP 5.2.3 or newer.

Dalitz ( my web server ) is running PHP Version 4.4.9

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sun, 2009-06-14 22:38

Surely Dreamhost has a recent version of PHP available? The importer should be able to handle a 200k import though I imagine it'll take quite a while. I'd be very curious to see what kind of performance issues Gallery3 has at that size.
---
Problems? Check gallery3/var/logs before you post! and file bugs here!
Latest code/upgrading: http://codex.gallery2.org/Gallery3:Upgrading
Latest git: http://codex.gallery2.org/Gallery:Using_Git

 
ChrisJohnson00TA

Joined: 2004-03-15
Posts: 167
Posted: Sun, 2009-06-14 22:48

bharat: just so I clearly understand... by installing G3, it won't actually modify my G2 install.. correct? (Meaning I can toast/delete my G3 install if needed) I'm concerned that G3 will want to move my 500gig worth of images and DH will get very upset with me :p

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sun, 2009-06-14 22:50

G3 won't affect your G2 install, so you can blow it away at any time. However G3 will make a *copy* of your G2 data and it's also an all-in-one deal which means that it imports your *entire* G2 with one click. So yes you'll need to (at least temporarily) double your disk consumption.

---
Problems? Check gallery3/var/logs before you post! and file bugs here!
Latest code/upgrading: http://codex.gallery2.org/Gallery3:Upgrading
Latest git: http://codex.gallery2.org/Gallery:Using_Git

 
ChrisJohnson00TA

Joined: 2004-03-15
Posts: 167
Posted: Sun, 2009-06-14 23:18

Sheesh! Good thing that dreamhost has "unlimited" storage... I'll put it to the test as soon as they upgrade PHP... opened a ticket with them to do so.

Do I need to be worried about scripts timing out, or anything special I should do?

Edit: DH upgraded to 5.2.6

 
ChrisJohnson00TA

Joined: 2004-03-15
Posts: 167
Posted: Mon, 2009-06-15 03:28

3 users
3 groups
1569 albums
196183 photos
381 movies
0 comments
0 tagged photos/movies/albums
Your most common thumbnail size in Gallery 2 is 150 pixels, but your Gallery 3 thumbnail size is set to 200 pixels. Using the same value will speed up your import.

40 Minutes into the migration and it's processed all the folders and 500 images...

This will take awhile :p

Edit: Most noteable issue so far, and probably a deal killer for my site is that G3 isn't processing my RAW images (I don't see where I can enable DCRAW anywhere)

Edit 2: Looks like I'm averaging 875 images an hour... at this rate.. only 220 more hours to go!

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2009-06-16 03:32

Try disabling the search and exif modules (you can do this while the import is running). That should speed things up slightly.
---
Problems? Check gallery3/var/logs before you post! and file bugs here!
Latest code/upgrading: http://codex.gallery2.org/Gallery3:Upgrading
Latest git: http://codex.gallery2.org/Gallery:Using_Git