Forums

RSS RSS
Liferay and Clouds Flat View
Threads
Liferay and Clouds
amazon ec2 cloud computing google app engine paas platform as a service
4/19/09 11:59 AM
I just wanted to start a thread regarding Liferay and cloud computing environments. I'm wondering about the issues of running Liferay in a cloud computing environment such as:
  • Amazon EC2
  • Google App Engine

I'm especially interested in low cost cloud environments such as Google App Engine - for a small fry developer such as myself, it would be nice to have free usage up to a certain quota. I'm also interested in platform as a service offerings making it easy for me to install and get my application going. I would expect Liferay not to work on GAE as it is currently configured - unless someone can state otherwise.
Flag Flag
RE: Liferay and Clouds
amazon ami
6/27/09 9:51 AM as a reply to zzzz8 zzzz8.
Hi,

I am hasan, CTO of mPower Labs, a company working on Liferay for past 4 years.

We are successfully hosting Liferay on Amozon EC2 instances based on Ubuntu 9.04 Linux distro.

We have created the appropriate AMI with all out-of-the-box features.

Very soon, we'll be making our Amozon AMI public.

Now we are exploring the option of hosting Liferay on GAE.

Since this is a niche research area we are looking for like minded people to work together.

If you are interested, we'd like to work very closely with you.

Our plan is to launch our public Liferay AMI next month.

For any help feel free to contact me,

Ahmed Hasan
CTO, TransIT mPower Labs (P) Ltd.
info@mpowerglobal.com
mPower Global Inc.
A Liferay expert company.
Flag Flag
RE: Liferay and Clouds
liferay amazon gae
6/28/09 3:34 AM as a reply to Ahmed Hasan.
Hi!

From my expereince I do not see any problem with running Liferay on Amazon EC2 (of course, prepeare full-functional AMI require some additional effort).

But I'm very skeptic about Liferay on GAE - major problem I see here - is database level: Liferay strongly related to Hibernate, and GAE provided JPA & JDO interfaces to store data. Plus, GAE has limited support for JPA (not all features are supported) - mostly it is because it has non-SQL database in background.

But, in any case it will be very interesting to see any results in this direction. If you like - I can try to provide some support in this job
Flag Flag
RE: Liferay and Clouds
6/28/09 6:14 AM as a reply to Alexey Kakunin.
Hi,

It is going to be an exciting exercise to host Liferay on GAE.

I am trying to put the basic LR WAR file that comes bundled with HSQL. With all the dependency JAR files available within this WAR file, it should work. Still i am facing some initial hiccups (out of memory issues). I am trying to redeploy after increasing the size of some resources on the machine (though this is paid). I will update you once i am successful in this.

I agree with the challenges with database. One solution i am thinking of is to have a common database server hosted on Amazon EC2. We can make our LR application to point to that database. So, physically the database will be on a different server and LR will be hosted on GAE.

Will get back to you soon.
Flag Flag
RE: Liferay and Clouds
6/28/09 12:15 PM as a reply to Ahmed Hasan.
Hi!

Using some external DB - probably a way, but, without using own Google DB - I don't think running Liferay in GAE will have any practical reason - since, even with using scalability on Application-Server level (with using GAE) - we will lost it's scalability on DB level (provided then GAE DB is used)

Anyway - it is very interesting project and I will be happy to see any positive result!

Good luck in your job!

With best regards,
Alexey Kakunin
Flag Flag
RE: Liferay and Clouds
6/30/09 5:02 PM as a reply to Ahmed Hasan.
Unfortunately, I probably can't provide any immediate help right now since it was more of a genuine interest - and I don't have the necessary background in Liferay and GAE yet. I am planning to look into this in the future once I get my project to the point of integrating my Seam project with Liferay and GAE. Once I get to it, I'll post anything if I learn anything of interest that would help people.

And if you learn anything, please let us know! I'm sure many people would be interested!
Flag Flag
RE: Liferay and Clouds
6/30/09 5:04 PM as a reply to Alexey Kakunin.
Isn't Liferay moving to JPA soon - and in theory, shouldn't that work with Google DB then?
Flag Flag
RE: Liferay and Clouds
seam
7/5/09 9:27 AM as a reply to zzzz8 zzzz8.
Please, note, even it is possible to run RichFaces portlets under Liferay, Seam is not still fully supported and you may meet many problems with Seam and Liferay
Flag Flag
RE: Liferay and Clouds
7/5/09 10:15 PM as a reply to Alexey Kakunin.
Hmm, thanks for the info. I'm actually planning to use IceFaces rather than RichFaces. Nevertheless, are there any issues with Seam and Liferay I should know about? Liferay has been extremely vague in this area. Liferay says it's compatible with Seam, but I have to wonder if there are any issues with scope (conversation, etc.), page actions, etc. And I'm also planning to use JBpm and JBoss Cache. Maybe I'm getting myself in too deep with all these dependencies? emoticon
Flag Flag
RE: Liferay and Clouds
seam
7/6/09 7:18 AM as a reply to zzzz8 zzzz8.
I play with seam and liferay about year ago - major problem was - even I was able to make bi-injection working in Seam & Portlet, I was not able to store long-term conversations. It looks like - seam keep conversation info by passing conversation as argument between different url-requests - and this information missed then we work in portlet mode.

As example - you can also checks exadel seam demo: http://liferay.exadel.com/web/guest/home
For me it looks like it is not working (I cannot perform even search) - but, probably I miss something and it is already working well
Flag Flag
RE: Liferay and Clouds
7/6/09 1:38 PM as a reply to Alexey Kakunin.
Thanks for the link. I just tried the Exadel/Seam/Liferay demo and it does not work for me either. I cannot perform a search. Yikes. I wish someone from Liferay could write about this issue. I certainly don't want to use JBoss Portal and I want to keep using IceFaces. Hopefully, the new WebBeans spec will force everyone to adopt the Seam-like features and things will be much more compatible in the future - but it would still be nice to have Seam compatibility right now (who knows WebBeans will be fully implemented...).
Flag Flag
RE: Liferay and Clouds
8/23/09 11:43 PM as a reply to Ahmed Hasan.
Did you succeed in porting LR to GAE?
Cheers
Oliver
Flag Flag
RE: Liferay and Clouds
9/2/09 11:34 PM as a reply to Oliver Lauer.
It was an exercise in futile. Inspite of repeated attempts we could not succeed in putting LR on GAE.

For any help feel free to contact me,

Ahmed Hasan
CTO, TransIT mPower Labs (P) Ltd.
info@mpowerglobal.com
mPower Global Inc.
A Liferay expert company.
Flag Flag
RE: Liferay and Clouds
amazon ec2
9/4/09 3:55 PM as a reply to Ahmed Hasan.
Were you able to deploy liferay successfully on Amazon EC2 in a true clustered fashion using their loadbalancing, autoscaling features. We would love to know more.
Flag Flag
RE: Liferay and Clouds
9/8/09 3:34 AM as a reply to Ahmed Hasan.
is the liferay ami publicly available?
Flag Flag
RE: Liferay and Clouds
10/5/09 4:42 PM as a reply to Madhu Yadav.
Madhu Yadav:
is the liferay ami publicly available?


I don't know if it is publicly available. It is straight forward to build one using AMI command line tools. In our case, we deployed Liferay in Amazon EC2 with the following matrix and created our own bundles:

Debian
Liferay Portal SE (both 5.1.1 and 5.2.3)
OracleXE or MySQL
Tomcat 6.0.18
Flag Flag
RE: Liferay and Clouds
1/11/10 3:44 PM as a reply to Alexey Kakunin.
Hi Alexey,

It looks as though the Liferay/Seam/Richfaces portal is working again at the link you gave me... So that's a good sign.

BTW, I've been looking into Liferay 5.2.3/Seam 2.2 GA/ICEfaces 1.8.2/Facelets/JBoss 5.0.0GA (I'm not using the Liferay supplied JBoss package, but just following the instructions given in the administration guide to put the Liferay wars into JBoss 5 and the other instructions) and have gotten it to work. I used the Seam component showcase Liferay/JBoss deployment example in ICEfaces 1.8.2 as a template. I also used Seam gen to generate the war project - and after only making a few changes, I was able to get things to work.

I've been pleasantly surprised how well things are going. I'm doing a preliminary investigation on it and things seem to be working. Conversation propagation seems to be working fine - I used a simple example to test. I put <begin-conversation join="true"/> in my <page_name>.pages.xml file for the subsequent page. (Page navigation using pages.xml or <page_name>.pages.xml seems to be working). I have a button that executes a simple action that goes to the next page for the portlet. I check the conversation ID as I move from the first page to the second page and the conversation ID stays the same. So far, everything is working fine. I'm sure page parameters won't work because of the need to do POST requests instead of GET requests, but I can live without that feature for now. But simple things seem to be working fine. I'm sure as I go further along I'll find a few bugs, but I am pleasantly surprised for now. I have some hope.
Flag Flag
RE: Liferay and Clouds
1/12/10 2:15 AM as a reply to Madhu Yadav.
Flag Flag
RE: Liferay and Clouds
jpa gae
1/12/10 3:01 AM as a reply to zzzz8 zzzz8.
zzzz8 zzzz8:
Isn't Liferay moving to JPA soon - and in theory, shouldn't that work with Google DB then?


Yes, 5.3 should support JPA, but I'm still very sceptic about it - reading current documetation - only EclipseLink supported as JPA provider (even Hibernate is not working) - so, not sure it will work with GAE JPA provider - since it have too many restrictions
Flag Flag
RE: Liferay and Clouds
2/17/10 8:24 PM as a reply to Alexey Kakunin.
Thanks for your efforts. It will be really helpful..
Will let you know once I try it emoticon
Flag Flag
RE: Liferay and Clouds
7/15/10 6:35 PM as a reply to zzzz8 zzzz8.
Focus on it!!
Flag Flag
RE: Liferay and Clouds
8/18/10 10:59 AM as a reply to Frank Yu.
hi,

could you please tell me if teh following technology stack together will work on the amazon cloud or any other cloud liek azure, google, etc. priority on amazon and google.

Component Implementation
Presentation LifeRay Portal

Application server JBoss Server

Database MySQL

Development tools Eclipse or NetBeans

Operating System Red Hat Linux

Search software Lucene

Analytics Google Analytics

CMS Alfresco
Flag Flag
RE: Liferay and Clouds
8/18/10 11:40 AM as a reply to Jessica Irani.
Hi Jessica,

Liferay should work on Amazon (AWS) from what people have been describing. We have support for JBoss, MySQL, we use Lucene, we hook into Alfresco, and Google Analytics should work fine. So all in all, I don't see why this wouldn't work emoticon Eclipse/Netbeans would be a strictly developer-side thing and not related to the server, but both of those have been used very commonly with liferay as well. We also have a Liferay IDE now, which is simply eclipse with a specialized Liferay development plugin hook.

Good luck with setting up the stack!

Warm regards,
Sam
Flag Flag