[Lift] Re: Lift newbie - Horizontal scaling of Lift servers

2009-02-28 Thread marius d.



On Mar 1, 2:21 am, David Pollak  wrote:
> On Sat, Feb 28, 2009 at 2:37 PM, Ikai Lan  wrote:
>
> > Hi,
>
> > I'm looking to learn Lift coming from working with Ruby on Rails for a
> > while and I've been voraciously consuming the documentation and
> > tutorials that are available on the internet. There are a few things I
> > really like about Lift so far:
>
> > -  Out of the box Comet support
> > - Rapid development (incremental compiles are awesome)
> > - Being able to design without having to think of the request/response
> > cycle*
>
> > I'm putting an asterisk on the last item because I'm a bit confused
> > how this will work in a production application running two or more
> > load balanced Lift instances of the same application.
>
> You need a load balancer that's either JSESSIONID aware or can be tuned to
> work with Lift's feature that re-writes URLs in such a way that it's easy to
> have a load balancer send the requests back to the specific server that
> houses the Lift session.
>
> > The fact that
> > form processing can happen without inspecting GET/POST params or
> > dealing with data that needs to life longer than a standard request
> > cycle is pretty neat, but it raises questions about horizontal
> > scalability. Where is the session data stored?
>
> In the app server where the session was initialized.
>
> > If it is in-memory by
> > default, are there any best practices for sharing session data across
> > application servers, or is the recommended solution to use load
> > balancer affinity?
>
> The latter.
>
> With all this being said, I have significant operational experience with the
> highest volume RoR powered site.  A quad-core Intel/AMD box running Lift
> could have handled all of its traffic.  So, unless you're expecting to have
> significantly more traffic than Twitter... unless you're site is saturating
> a gigabit ethernet card, you can run it on a single server with Lift.

If I may I would add ... unless you want redundancy.

>
> Thanks,
>
> David
>
>
>
> > Ikai
>
> --
> Lift, the simply functional web frameworkhttp://liftweb.net
> Beginning Scalahttp://www.apress.com/book/view/1430219890
> Follow me:http://twitter.com/dpp
> Git some:http://github.com/dpp
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Issue with http://liftweb.net site design (IE7 / Opera 9.63)

2009-02-28 Thread Jorge Ortiz
Done.

--j

On Sat, Feb 28, 2009 at 3:15 AM, Tim Perrett wrote:

>
> Guys,
>
> I've just committed the CSS patches for liftweb.net - I've also
> updated some of the content.
>
> Can someone get that onto the live box please?
>
> I've checked it in Opera, FF, Safari and IE7
>
> Thanks
>
> Tim
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Lift newbie - Horizontal scaling of Lift servers

2009-02-28 Thread David Pollak
On Sat, Feb 28, 2009 at 2:37 PM, Ikai Lan  wrote:

>
> Hi,
>
> I'm looking to learn Lift coming from working with Ruby on Rails for a
> while and I've been voraciously consuming the documentation and
> tutorials that are available on the internet. There are a few things I
> really like about Lift so far:
>
> -  Out of the box Comet support
> - Rapid development (incremental compiles are awesome)
> - Being able to design without having to think of the request/response
> cycle*
>
> I'm putting an asterisk on the last item because I'm a bit confused
> how this will work in a production application running two or more
> load balanced Lift instances of the same application.


You need a load balancer that's either JSESSIONID aware or can be tuned to
work with Lift's feature that re-writes URLs in such a way that it's easy to
have a load balancer send the requests back to the specific server that
houses the Lift session.


> The fact that
> form processing can happen without inspecting GET/POST params or
> dealing with data that needs to life longer than a standard request
> cycle is pretty neat, but it raises questions about horizontal
> scalability. Where is the session data stored?


In the app server where the session was initialized.


> If it is in-memory by
> default, are there any best practices for sharing session data across
> application servers, or is the recommended solution to use load
> balancer affinity?


The latter.

With all this being said, I have significant operational experience with the
highest volume RoR powered site.  A quad-core Intel/AMD box running Lift
could have handled all of its traffic.  So, unless you're expecting to have
significantly more traffic than Twitter... unless you're site is saturating
a gigabit ethernet card, you can run it on a single server with Lift.

Thanks,

David

>
>
> Ikai
>
> >
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Lift newbie - Horizontal scaling of Lift servers

2009-02-28 Thread Ikai Lan

Hi,

I'm looking to learn Lift coming from working with Ruby on Rails for a
while and I've been voraciously consuming the documentation and
tutorials that are available on the internet. There are a few things I
really like about Lift so far:

-  Out of the box Comet support
- Rapid development (incremental compiles are awesome)
- Being able to design without having to think of the request/response
cycle*

I'm putting an asterisk on the last item because I'm a bit confused
how this will work in a production application running two or more
load balanced Lift instances of the same application. The fact that
form processing can happen without inspecting GET/POST params or
dealing with data that needs to life longer than a standard request
cycle is pretty neat, but it raises questions about horizontal
scalability. Where is the session data stored? If it is in-memory by
default, are there any best practices for sharing session data across
application servers, or is the recommended solution to use load
balancer affinity?

Ikai

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Configurable JQuery Version?

2009-02-28 Thread marius d.

GC stuff is not dependent on the underlying JS library.

On Feb 28, 7:36 pm, Tim Perrett  wrote:
> Ah right excellent - I was not sure if any of the new GC stuff
> *needed* that version or not hence my reason for asking :-)
>
> Cheers, Tim
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Configurable JQuery Version?

2009-02-28 Thread Tim Perrett

Ah right excellent - I was not sure if any of the new GC stuff
*needed* that version or not hence my reason for asking :-)

Cheers, Tim
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: OS X lift installer

2009-02-28 Thread David Pollak
On Sat, Feb 28, 2009 at 8:21 AM, Josh Suereth wrote:

> I feel obligated to note that this was indeed an issue with maven itself.
> I believe it's fixed in the most recent release of Maven (2.0.10) [see
> here  ].  Please upgrade and
> let me know if it continues so I can open many JIRAs!
>

Yep.  Worked.

Thanks!



>
> -Josh
>
> On Sat, Feb 28, 2009 at 11:14 AM, David Pollak <
> feeder.of.the.be...@gmail.com> wrote:
>
>>
>>
>> On Sat, Feb 28, 2009 at 2:19 AM, Josh Suereth 
>> wrote:
>>
>>>
>>>
>>> On Fri, Feb 27, 2009 at 5:14 PM, David Pollak <
>>> feeder.of.the.be...@gmail.com> wrote:
>>>


 On Fri, Feb 27, 2009 at 2:03 PM, Jon Hancock wrote:

>
> thanks.  based on your above mention that maven is web aware and some
> comment I read from David Pollak that his demo didn't go so well when
> he lacked an internet connection, is it the case that I have to always
> have a working internet connect to use maven/lift?


 When Maven works the way it is supposed to, you do not need to be online
 when you use it, but you do have to be online when you do an initial build
 so that all the JARs can be downloaded.

 I have had issues recently with the Maven-Scala plugin, but that is a
 defect, not the correct behavior.

>>>
>>> Please do tell! (I'd would like to add the issues to our
>>> integration/regression tests)
>>>
>>
>> I have had repeated failures trying to run the latest plugin in -o
>> (offline) mode.  The plugin seems to ignore the parameter and try to go out
>> to the internet to get resources and then it complains that the sites are
>> not available and blacklists them... then the mvn -o jetty:run fails.  It
>> was a complete (okay, maybe a semi) disaster then I tried to give a demo @
>> SalesForce last week.
>>
>> I'm hoping to get this issue resolved before 3/8 when I get to spend 12
>> hours on a flight from SF to London and would like some of those hours to be
>> productive.
>>
>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>> --
>> Lift, the simply functional web framework http://liftweb.net
>> Beginning Scala http://www.apress.com/book/view/1430219890
>> Follow me: http://twitter.com/dpp
>> Git some: http://github.com/dpp
>>
>>
>>
>
> >
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: OS X lift installer

2009-02-28 Thread Josh Suereth
I feel obligated to note that this was indeed an issue with maven itself.  I
believe it's fixed in the most recent release of Maven (2.0.10) [see
here].  Please upgrade and
let me know if it continues so I can open many JIRAs!

-Josh

On Sat, Feb 28, 2009 at 11:14 AM, David Pollak <
feeder.of.the.be...@gmail.com> wrote:

>
>
> On Sat, Feb 28, 2009 at 2:19 AM, Josh Suereth wrote:
>
>>
>>
>> On Fri, Feb 27, 2009 at 5:14 PM, David Pollak <
>> feeder.of.the.be...@gmail.com> wrote:
>>
>>>
>>>
>>> On Fri, Feb 27, 2009 at 2:03 PM, Jon Hancock wrote:
>>>

 thanks.  based on your above mention that maven is web aware and some
 comment I read from David Pollak that his demo didn't go so well when
 he lacked an internet connection, is it the case that I have to always
 have a working internet connect to use maven/lift?
>>>
>>>
>>> When Maven works the way it is supposed to, you do not need to be online
>>> when you use it, but you do have to be online when you do an initial build
>>> so that all the JARs can be downloaded.
>>>
>>> I have had issues recently with the Maven-Scala plugin, but that is a
>>> defect, not the correct behavior.
>>>
>>
>> Please do tell! (I'd would like to add the issues to our
>> integration/regression tests)
>>
>
> I have had repeated failures trying to run the latest plugin in -o
> (offline) mode.  The plugin seems to ignore the parameter and try to go out
> to the internet to get resources and then it complains that the sites are
> not available and blacklists them... then the mvn -o jetty:run fails.  It
> was a complete (okay, maybe a semi) disaster then I tried to give a demo @
> SalesForce last week.
>
> I'm hoping to get this issue resolved before 3/8 when I get to spend 12
> hours on a flight from SF to London and would like some of those hours to be
> productive.
>
>
>>
>>
>>
>>
>>
>
>
> --
> Lift, the simply functional web framework http://liftweb.net
> Beginning Scala http://www.apress.com/book/view/1430219890
> Follow me: http://twitter.com/dpp
> Git some: http://github.com/dpp
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: OS X lift installer

2009-02-28 Thread David Pollak
On Sat, Feb 28, 2009 at 2:19 AM, Josh Suereth wrote:

>
>
> On Fri, Feb 27, 2009 at 5:14 PM, David Pollak <
> feeder.of.the.be...@gmail.com> wrote:
>
>>
>>
>> On Fri, Feb 27, 2009 at 2:03 PM, Jon Hancock wrote:
>>
>>>
>>> thanks.  based on your above mention that maven is web aware and some
>>> comment I read from David Pollak that his demo didn't go so well when
>>> he lacked an internet connection, is it the case that I have to always
>>> have a working internet connect to use maven/lift?
>>
>>
>> When Maven works the way it is supposed to, you do not need to be online
>> when you use it, but you do have to be online when you do an initial build
>> so that all the JARs can be downloaded.
>>
>> I have had issues recently with the Maven-Scala plugin, but that is a
>> defect, not the correct behavior.
>>
>
> Please do tell! (I'd would like to add the issues to our
> integration/regression tests)
>

I have had repeated failures trying to run the latest plugin in -o (offline)
mode.  The plugin seems to ignore the parameter and try to go out to the
internet to get resources and then it complains that the sites are not
available and blacklists them... then the mvn -o jetty:run fails.  It was a
complete (okay, maybe a semi) disaster then I tried to give a demo @
SalesForce last week.

I'm hoping to get this issue resolved before 3/8 when I get to spend 12
hours on a flight from SF to London and would like some of those hours to be
productive.


>
>
>
> >
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Configurable JQuery Version?

2009-02-28 Thread David Pollak
On Sat, Feb 28, 2009 at 6:00 AM, Tim Perrett wrote:

>
> Guys,
>
> I have a lift app that since our 1.3.2 update has broken a bunch of
> stuff. Id imagine im not the only person in this pickle and wonder if
> there is a way we could possibly make JQuery a configurable version?
>
> Perhaps LiftRules.jqueryVersion ?
>
> Thoughts?


jQuery 1.3.2 is the "classpath" version... the one that Lift can serve
without any external files.

You can choose to serve whatever version of jQuery you want by changing the

[Lift] Configurable JQuery Version?

2009-02-28 Thread Tim Perrett

Guys,

I have a lift app that since our 1.3.2 update has broken a bunch of
stuff. Id imagine im not the only person in this pickle and wonder if
there is a way we could possibly make JQuery a configurable version?

Perhaps LiftRules.jqueryVersion ?

Thoughts?

Cheers, Tim
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Issue with http://liftweb.net site design (IE7 / Opera 9.63)

2009-02-28 Thread Tim Perrett

Guys,

I've just committed the CSS patches for liftweb.net - I've also
updated some of the content.

Can someone get that onto the live box please?

I've checked it in Opera, FF, Safari and IE7

Thanks

Tim
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: OS X lift installer

2009-02-28 Thread Josh Suereth
On Fri, Feb 27, 2009 at 5:14 PM, David Pollak  wrote:

>
>
> On Fri, Feb 27, 2009 at 2:03 PM, Jon Hancock wrote:
>
>>
>> thanks.  based on your above mention that maven is web aware and some
>> comment I read from David Pollak that his demo didn't go so well when
>> he lacked an internet connection, is it the case that I have to always
>> have a working internet connect to use maven/lift?
>
>
> When Maven works the way it is supposed to, you do not need to be online
> when you use it, but you do have to be online when you do an initial build
> so that all the JARs can be downloaded.
>
> I have had issues recently with the Maven-Scala plugin, but that is a
> defect, not the correct behavior.
>

Please do tell! (I'd would like to add the issues to our
integration/regression tests)

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---