Gallery 2 - then, now, and the future?
scaturan
Joined: 2004-09-12
Posts: 1153 |
Posted: Sun, 2010-11-07 18:31 |
So I was looking through Google search results for "gallery2 hosting" and came across a post called "Gallery 2 sucks" at (vangel.3ezy.com/archives/62-Gallery2-Sucks.html) Quote:
Only artists and engineers can design technology that works. When they love their work they will maintain it and make it better, not keep honking how awesome their stuff is and its free years later. If authors of opensource and free of cost projects did stick to their plan someone could use it successfully instead of having the software keel and die at the crucial moments. Among other things, I read his frustration about the platform in general, how G2 was scrapped (except for security updates) in favor of Gallery v3, and how his G2 install (at the time of writing of his article) had over 200,000 items getting hammered with 200,000 hits an hour, and so forth including a rant about how his G2 code contribution being pulled off. I don't know if the guy is using his Dreamhost account for his G2 install, or some VPS/dedicated server - that could be contributing to his issues. But what are your thoughts about what he had to say? I'd be interested to know from Bharat, Valiant, Mindless and past G2 contributors. I know Joe7 runs a monstrous G2 install with plenty of custom tweaks not for the weak at heart. Here's my honest take on the article and Gallery 2 & 3 in general... I won't be migrating any of my G2 installs to G3 until its mature enough (performance, stability, etc..) and the upgrade path is well tested and proven to work, AND multisite is fully supported. The amount of G2 multisites I setup is about 15-20 every month - I have many users requesting G3 but I turned them down for the reasons I mentioned. I run a G3 install but still very sluggish. If I ever won the lottery, I would hire 2-3 developers well versed in Gallery 2 to develop patches & code/speed enhancements (not features) for the benefit of 100,000s of satisfied G2 users out there. Though I'm not sure if the core devs will allow those patches to make it the repository, but if that's the case, most likely G2 will need to be forked. =) my 2 cents. __________________________________________________________ |
|
Posts: 8339
this guy vangel?
its a shame when someone has a bad experience with something and has to rant about it publicly.
I happen to love the power of G2 and have learned the custom-built framework well enough to create modules and functionality as I need.
Been working on a cooliris interface for G2... which I think is pretty cool.
I likely won't do any G3 work until an embed API rolls out or a client requests it.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 1153
@suprsidr - I know you have several open-sourced G2 plugins under your belt. Now I know who to ask if I need a custom written G2 module like your Flash uploader & Cooliris interface for example to work in a multisite setup (cross domain issues?).
I have several ideas of my own, will definitely be in contact once I have the funds for it!
Posts: 16504
So much nicer than the post I've worked up and that I'm currently debating on posting
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 1153
go for it let's read it! :D
Posts: 1642
I ignored this as I only had one short phrase ... "the guy is an idiot".
Actually, I believe the mods should deactivate the link to his moronic blog post.
The blog is dated Feb 21 2010 but just two months before in Dec 2009, he was describing the G2 API as "Fabulous" claiming to have fully integrated it with CakePHP (http://gallery.menalto.com/node/93094). He was however too selfish to have ever shared this wonderful integration with anyone. (I suppose this is his choice). Like a brat, he spat his dummy because G2 does not watermark Gifs.
Later in August, he turns up saying he is a fan of G3 http://gallery.menalto.com/node/95629.
What a joke of a person and I repeat that I think the link should be deactivated and the thread locked.
Just my opinion.
--
dakanji.com
Posts: 27300
Too bad vangel (?) did not bring some of the issues to the proper place where he got good support before.
Was G2 mature enough for you @G2.0? For most is was not.
We believe that the performance in G3 out paces G2 in most if not all respects.
Upgrade path: Was there a upgrade from G1 to G2? NO. It was a migration same with G2 to G3.
Does it work...well that is proven as bharat has converted his G2 to G3: http://www.menalto.com/gallery/ redirects to http://www.menalto.com/photos/
I feel your reluctance to go to G3 as I have yet to do it. But have tested it a few times. The only issue I have is; I have not got the redirects with WP quite right. No time to fix & I am no redirect/rewrite expert.
As for mulitsite, time till tell. Multisite came about because of the monstrous size of G2. G3 does not have that issue. G2 multisite came long after G2.0 as well.
Some might feel that G3 is not for them. We are fine with that and the community with suprsidr leading the way in G2 support, G2 will live-on.
As far as I know there has only been a few commits by mindless, another behind the scenes developer. His last commit was only 4 weeks ago:
http://gallery.svn.sourceforge.net/viewvc/gallery/trunk/gallery2/modules/core/po/bg.po?sortby=log&r1=20978&r2=20977&pathrev=20978
The beauty of open source is you can create your own fork if development is not continuing in the direction or the speed in witch you wish it to go.
Find a developer that is willing to take charge of G2 and you and the community can make it happen.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 1153
thank you for the feedback, floridave - much appreciated!
Posts: 16504
I'd rather not start a flame war. If he does post in here. I'll post what I have written and smack his ass down. In short Dayo and Dave have made more intelligent comments than my nearly 1,200 word mostly rant.
Here's part of it replying to your comment and it's the constructive part of diatribe (some of which Dave has covered):
Features in G3, yeah, that's going to come with time. Performance, it's there. It's beating the pants of G2 on any server I've had it on. But if you are supporting a lot of stuff, I also certainly wouldn't look at upgrading just yet. Well I'd look and start investigating and testing, but probably would take my time in planning. Possibly providing G3 to new users, but I don't know what type of service you provide....
If G3 is sluggish on your site, hook up with Bharat either in the forums or in #gallery on IRC, there's probably something happening on the server, there's also a setting he's had a few people change on their sites that's made a big difference for them. I'd have to look for that in the forums. But it's most likely disk i/o.
As for someone maintaining G2. If someone wanted to roll with that ball I'm sure you'd have support. The core dev team just doesn't have the bandwidth to maintain it and G3 and G3 is a lot easier to work with and enhance. We've already got more modules and themes for G3 (before even it's initial release) than G2 had in it's first YEAR. For G2, while a fair number of community members contributed themes, few contributed modules and a lot of the time if they did, they (the developer) fell by the way side and it became the task of the dev team to keep them up to date. G3 is taking a different path.
<this may or may not be 100% true, but it's my take on it>
There will be the core product, all other themes and modules will be "3rd party" (whether developed by someone in the community or even a dev team member) and those will all be optional add ons having to be maintained by the author or community. I hate to compare it to Wordpress, but similar to that, lean and mean, low-impact install that have 100% of the functionality for 80% of the users and anything else is optional.
</this may or may not be 100% true, but it's my take on it>
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 1153
@nivekiam - thanks for the feedback! Once my new server is in place, I'm going for paid support with Bharat - I know it will be worth every penny because honestly, Databases and I/O optimization is not my cup of tea.
Posts: 1642
Vandal can step aside, that's fighting talk to a G2 fan.
Test Scenario 1
G2: 1 Background Image, 1 Standard Resize, 30 Thumbnails - Load Time 2.6s (Standard Resize loads up in 1.2s)
G3: 1 Standard Resize - Load Time 3.2s
Test Scenario 2
G2: 1 Background Image, 30 Square Thumbnails - Load Time 2.6s
G3: 9 Thumbnails (1 Thumbnail = approx 2 Square Thumbnails) - Load Time 3.4s
Both instances on the same server.
She has been called big, fat and ugly even by her developers and she has been spurned for the new little hot chick but there's life in the old lady yet and she knows tricks the svelte senorita can't even dream about.
She just needs some TLC and understanding as well as some, umm, slash and burn hacking of the code.
Yep, can't personally see any compelling reason to move to G3 at this point in time ... apart unfortunately, from abandonment and lack of support by the devs but rolled up my sleeves and starting learning up on it. For a new comer though, it is probably a different story.
--
dakanji.com
Posts: 27300
Dayo,
Please start a new thread for the speed issues as it is not related to this thread.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 1642
My post was a response to your statement that introduced the comparative performance angle earlier in the thread.
I'll think this is as relevant to the post as that was and I then go to talk about the future for me which is what the thread is about.
--
dakanji.com
Posts: 8339
@Dayo, I always have to unsubscribe the threads you're involved in.
I get like six copies of each of your posts.
Instead of editing your post five times, how about thinking about it and getting it right the first time.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 1642
I'll try to remember that as much as possible.
Well sometimes, after re-reading, somethings are better said in certain ways.
PS. You really should have sent a PM on that as it certainly isn't related to the thread topic.
--
dakanji.com
Posts: 20
wowo. i mean you guys never change huh ;)
just saw this post on a random google search.
cakephp component posted in 2008 http://bakery.cakephp.org/articles/Vangel/2010/04/19/rolling-you-own-gallery2-component
Cake had new people who went QC on the bakery and removed my article for awhile. I protested and saw it come back eventually. I went much further with integration including a brdige with FckEditor-cake-g2 to allow all my article posting to have image uploads be handled by G2. Super cool, i cant remember who wrote the Fck plugin. it was awesome. Anyway the project was scrapped so i stopped working on the rest of the integration and did not post the unfinished work to cake.
at the same time as my original post. Everything was good and great as long as there was not much on the site. speed, plugins features, bridge etc. But when the site started to become a success the nightmare began. And I am right here to stand by my word. Thank you for responding to me with your free support
Yes I hate G2 I still do. And I do love G3. Its all I ever wanted in G2 but never got. I am stuck on G2 at version 2.2 I cant upgrade becoz it fails miserably. Thanks anyway for a good job. But old is old. G3 was like starcraft 2... its around the corner but took forever.
EVerything I wanted in G2 is going to be in G3 and I am running an install of G3 for free host
My gallery is hosted on Dedicated Server. Its the only thing hosted on the server . 2GB RAM 150 GB HDD CentOS 5.4 with Intel Xeon. minimal but should be enough.
. Well I was gonna update my blog with new info on why I love G3 instead of a rant. But i see from replies above that things dont change eh.
I see the dev comments here and I realize how one sided you are not to acknowledge known problems. But I am here and I stand by what I said, idiotic rants as it may be. Thank you
Cheers!
Posts: 27300
Dayo,
Please use the 'preview' button when making replies to posts.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 27300
vangel,
Glad that G3 is working better for you.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 1642
@Dave & Wayne
I do use the preview button and sorry to for the frustrations caused by you receiving the notifications.
However perhaps you might also want to look into getting the notification system to work in a way where you receive one notification and nothing more until you visit the thread and frankly, it shouldn't be sending notifications for an edit in the first place anyway.
Besides, if someone posts a separate follow on post, you will have the same problem. I.E., it will be better to fix the problem at the source (the forum software).
--
dakanji.com
Posts: 16504
BINGO! The notifications that tire me out are when someone goes back and edits their information out after the problem is solved. I also tire of getting notifications when the subject it changed to reflect "solved" or "windows" or something like that. I click on the link and waste time because nothing with the thread has actually changed. When you're making your edits, I know what's going on.
I'm going to see if Bharat can make that change.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 7994
Yo. I feel your pain, I get a crapload of notifications (and can see the entire stream of somebody's edits sometimes ). I'll look into it.
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git
Posts: 7994
I just pushed a change to the site which only sends notifications once per comment; all subsequent edits don't show up in mail. It's hard to test this out properly, so if you see something going wrong let me know!
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git
Posts: 1642
Oops!
On the notifications, perhaps it might be worthwhile allowing people to opt into receiving notifications of edits of the first post in a thread. In this way, people can be kept up to date on long support threads when the OP goes in to add info to the first thread.
This will however probably mean that the "solved" notifications still get sent but I think it would not be such an issue if it is an opt in.
--
dakanji.com
Posts: 1642
You posted while I was composing (taking time to avoid edits)
--
dakanji.com
Posts: 8339
Yeah! problem fixed, Dayo - feel free to edit to your hearts content.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 1153
YESHHHHHHHHHHHHH!! my Gallery 3 now flies, baby! the culprit? MaxRequestsPerChild directive in httpd.conf
sluggish G3
MaxRequestsPerChild 12
FAST G3
MaxRequestsPerChild 0
have a look - http://pixi.me/gallery3/
looks like I'm going to busy, even more so that this is FLYING!
Posts: 7994
Oh wow. 12 is a tragically low number for MRPC. You might want to set it to something high instead of zero, though in case there are memory leaks in Apache2 or its extensions. Here on GMC I set it to 10000.
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git
Posts: 1153
@bharat: oops, didn't now about the memory leaks. thank you for the tip!
Posts: 1153
Pixelpipe drops support for Gallery 2 and 3 - now that's a bummer. iGallery (app for Apple mobile devices) is going nowhere, and it looks like ReGalAndroid (open source) is pickup just nicely. I have no doubts remote clients for Gallery 3 will become more and more abundant.
I really hope someone steps up and develops an app for the Apple iPod/iPad/iPhone platform that speaks REST and Gallery Remote (both supporting G2 and G3) - even its payware, I'm sure many folks would be interested - and just share their ROI as donation to the project. I'll even pay for the $99/annual fee on the table for any takers? http://developer.apple.com/programs/ios/
__________________________________________________________
liberate your photos with Gallery, make the switch today!
http://pixi.me/
Posts: 7994
I found the Pixelpipe post and replied to it. Let's see if they want some help.
There are multiple iPhone apps under development so far.. I think we'll have something pretty awesome soon.
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git
Posts: 20
I kept saying the same thing, but ofcourse who was listening. :/
Posts: 7994
@Dayo: I didn't see your post earlier with the web page speed tests. That site is so cool!
Some questions for you:
1) Are you using the "performance acceleration" caching in your G2? It looks like that's the case because the G2 page comes up *immediately*. We aren't doing any caching in Gallery 3 yet so it's not going to be quite as fast.
2) Are you using a PHP bytecode accelerator? That greatly reduces the G3 advantage of having less code.
Both #1 and #2 basically trade size for speed -- by caching frequent operations in memory we can serve them up really quickly. Gallery 3 is currently slightly trading speed for size in that we have a ton less code so we haven't written the caching layer yet. Caching comes at a cost, though -- we get inconsistencies when the cache is out of date, etc so I've been trying to avoid having one until I know we need it.
On the flip side, G3 is far less resource intensive on the server side so on shared hosting you won't hit all kinds of other problems that make ISPs hate G2. Given a little time, G3 should catch up to the performance level of G2. I'm hoping to do that without introducing a complex caching system, but if we have to cache, we'll cache.
Ok, here's the speed comparison for my production site. My site uses a bytecode accelerator and has a lot of beefy CPU. Even with caching, G3 is completely *done* loading everything before the G2 page is done.
http://www.webpagetest.org/video/view.php?id=101217_2f00e7ae56138ec21b420045feada80b8cde8b33
http://www.webpagetest.org/video/view.php?id=101217_c6272d647077697e7185452a6b45118aeffd4f62.slow
Anybody else want to make a movie for comparison?
---
Problems? Check gallery3/var/logs
file a bug/feature ticket | upgrade to the latest code! | hacking G3? join us on IRC!
Posts: 1642
Bharat
The link was a couple of months old when I posted it which in turn was about two months ago so I don't exactly remember what state my site was in then as I have been tinkering continually over the past year.
Basically, I had seen this YouTube Video from Google about cutting down latency and been hacking my G2 code to try to do this.
I found PageSpeed too intense so I went for YSlow and been working it until I managed to get an "A" grading on all my pages. I'll get round to taking it to the next level with PageSpeed at some point (trim down the Yahoo js file as most of it is not used etc).
As for your queries, I do use caching both within G2 and at the server level. I don't use a php opcode accelerator (I run php as cgi and not fastcgi so this is not possible anyway) but I do cache final html output using nginx so most requests are served directly without running any php at all. This drastically minimises my server load (running as plain cgi means php is only fired when specifically needed) and works well for me as the site does not change very often.
Also, you gave me some tips a while back on IRC which I used to bypass the image firewall. I actually wrote a module, which with some hacks, achieves this but due to some security concerns, I decided to pull it from general distribution. These were discussed with Valiant and he reckoned they were not particularly serious and fixing them could wait until whenever you guys can come up for some air on G3 ... probably sometime in 2020.
He is right that the vast majority G2 installs would not be vulnerable but as an aside, my Linode got breached through another php app on a similar vulnerability shortly after. Luckily caught it soon after the event (the exploit payload was in PHP 5.2 while I had upgraded to 5.3 and it started filling my logs with unexpected "deprecated" errors). More importantly, it was a responsible criminal that broke in (needed my server working as normal) rather than a teenage vandal.
Anyway, my site today has the following:
.
All in all, some of the stuff probably not suitable for the G3 target audience on a shared server but I reckoned that since I can get my server load down to a minimum and also get ~ 2 second load speeds, I'll rather stick with the power of G2 for now at least especially since it had taken years to set up and understand it. Also now that I am starting to understand the embed feature, I can see just how flexible and powerful it is.
To be honest though, I was surprised at the results I got as I just did it as a benchmark feeling I'll need to activate the Matrix Theme for a proper comparison. Thinking back since my post, I think I may have had the GoogleApps active then which would have skewed the results.
BTW, 8 Secs+ just to start rendering a page!! That is simply horrendous ... looks like there is a ton of latency to be slashed there.
Even the G3 page can do with some help as 8 Secs to complete rendering is not so good. Perhaps they are running off this same server which must have quite a bit of traffic. Time to look at Nginx?
--
dakanji.com
Posts: 28
Having a v3 Gallery as a bit of a playground I must say I am for now sticking with v2 for more serious work until the module and theme development do some serious catchups. Will v2 receive further security patches and version upgrades?
I am happy with Gallery. It is true that it may be messy to configure properly and it has caused me severe headaches over time, but, with experience and not being afraid of the software as such biting me, I feel I have a stable platform on the few sites I use it on.
| [url]www.hwaccess.net[/url] | [url]www.pds.hwaccess.net[/url] | Gallery http://www.homeworldshots.net |
Posts: 27300
Security updates, Yes, but with over few years of no security issues we doubt that any more will be found since we has a 3rd party security company investigate the software at major milestones.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 20
sticking to G2. G3 has security issues and having recently being alerted of "update now or die" I am going to wait till everything is resolved and no more surprises. Speed wise G3 is ok but probably because a lot of standard plugin in G2 are no longer in G3.
Posts: 16504
Where'd you see that "alert"?
____________________________________________
Like Gallery? Like the support? Donate now!
Posts: 20
you tell me sir http://gallery.menalto.com/gallery_3.0.1_released
Posts: 27300
is not "update now or die". In G2s infancy there was a few times we 'strongly recommended' you upgrade as well.
Your welcome to stick with G2 as it is still secure and supported by the community.
I will not put much effort into helping people who quote things that can't even be quoted?
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 20
Thanks Dave.
I did not ask for help. It wasn't my intention to "quote" but merely to indicate my reaction.
I will try to be more constructive next time.