Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: tomcat clustering with Spring experiences

  1. #1
    Join Date
    Aug 2006
    Location
    Arequipa-Peru / South America
    Posts
    2,806

    Arrow tomcat clustering with Spring experiences

    Dear Members

    i am starting a project with Spring and i need your experience and knowledge

    it seems and is an option work with cluster with tomcat 5.5.# series

    this feature offer by tomcat is good, in performance, security etc etc?

    any experiences in this topic, is really need it and appreciate

    thanks in advanced
    - Manuel Jordan

    Kill Your Pride, Share Your Knowledge With All
    The Fear Of The LORD Is The Beginning Of Knowledge, But Fools Despise Wisdom And Discipline. Proverbs 1:7

    Blog


    Technical Reviewer of Apress

    • Pro SpringSource dm Server
    • Spring Enterprise Recipes: A Problem-Solution Approach
    • Spring Recipes: A Problem-Solution Approach, 2nd Edition
    • Pro Spring Integration
    • Pro Spring Batch
    • Pro Spring 3
    • Pro Spring MVC: With Web Flow
    • Pro Spring Security

  2. #2
    Join Date
    Nov 2005
    Location
    Reutlingen, Germany
    Posts
    2,098

    Default

    Before you even think about distributing your objects (which is what clustering means) you must consider the first law of distributed objects:
    Don't distribute your objects.
    The best scaling approach is always to have stateless services to which requests can be forwarded arbitrarily since no application state needs to be populated to every node in a cluster. You only need a load balancer selecting a server instance by servlet session so that a particular session is always handled by the same web server since that's application state you hardly can avoid in a web application. But with this approach the application (and the application server) is not even aware of multiple machines. They can be added arbitrarily, only the load balancer needs to be aware of them.

    Second I heard some rumors about Terracotta.

    Joerg
    This post can contain insufficient information.

  3. #3
    Join Date
    Aug 2006
    Location
    Arequipa-Peru / South America
    Posts
    2,806

    Thumbs up

    thanks so mcuh by the reply Jörg

    The best scaling approach is always to have stateless services to which requests can be forwarded arbitrarily since no application state needs to be populated to every node in a cluster.
    it sounds logic, so this would be for SWF a suicide

    You only need a load balancer selecting a server instance by servlet session so that a particular session is always handled by the same web server since that's application state you hardly can avoid in a web application.
    But with this approach the application (and the application server) is not even aware of multiple machines. They can be added arbitrarily, only the load balancer needs to be aware of them.
    mmm

    Second I heard some rumors about Terracotta.
    me too, but it is a software, and i heard good rumors about it, but tomcat comes with this how feature.

    tell me, which you use?

    and i forgot to say ,that the term "clustering" in our reunion of work, appear only how an idea in the classic storm of ideas

    tell me in which cases is nessary think or use clustering?

    thanks again

    best wishes
    - Manuel Jordan

    Kill Your Pride, Share Your Knowledge With All
    The Fear Of The LORD Is The Beginning Of Knowledge, But Fools Despise Wisdom And Discipline. Proverbs 1:7

    Blog


    Technical Reviewer of Apress

    • Pro SpringSource dm Server
    • Spring Enterprise Recipes: A Problem-Solution Approach
    • Spring Recipes: A Problem-Solution Approach, 2nd Edition
    • Pro Spring Integration
    • Pro Spring Batch
    • Pro Spring 3
    • Pro Spring MVC: With Web Flow
    • Pro Spring Security

  4. #4
    Join Date
    Nov 2005
    Location
    Reutlingen, Germany
    Posts
    2,098

    Default

    Quote Originally Posted by dr_pompeii View Post
    it sounds logic, so this would be for SWF a suicide
    SWF means Spring Web Flow, doesn't it? So why should you not be able to use it?

    Quote Originally Posted by dr_pompeii View Post
    me too, but it is a software, and i heard good rumors about it, but tomcat comes with this how feature.
    Tomcat only provides session replication which I want to convince you is a bad idea. There are other layers that might be needed to be kept in sync, e.g. a Hibernate 2nd level cache. That's where Terracotta can help as far as I understand.

    Quote Originally Posted by dr_pompeii View Post
    tell me, which you use?
    None. We use the load balancer approach and my application doesn't have to care about it.

    Joerg
    This post can contain insufficient information.

  5. #5
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,425

    Default

    Quote Originally Posted by Jörg Heinicke View Post
    SWF means Spring Web Flow, doesn't it? So why should you not be able to use it?
    I would presume this might be related to sticky sesssions?
    Barracuda Networks SSL VPN Lead Developer
    http://pramatr.wordpress.com
    http://twitter.com/karldmoore
    http://www.linkedin.com/in/karldmoore
    Any postings are my own opinion, and should not be attributed to my employer or clients.

  6. #6
    Join Date
    Nov 2005
    Location
    Reutlingen, Germany
    Posts
    2,098

    Default

    Quote Originally Posted by karldmoore View Post
    I would presume this might be related to sticky sesssions?
    Our load balancer sends each request of a particular session to the same application server. That's a rather standard functionality as far as I know.

    Joerg
    This post can contain insufficient information.

  7. #7
    Join Date
    Aug 2006
    Location
    Arequipa-Peru / South America
    Posts
    2,806

    Default

    hello guys

    thanks both you for your replies

    SWF means Spring Web Flow, doesn't it? So why should you not be able to use it?
    answer
    I would presume this might be related to sticky sesssions?
    yes, and i dont know about the behaviour of the flowscope in clustering

    Tomcat only provides session replication which I want to convince you is a bad idea.
    ok,you advice is important, thanks

    There are other layers that might be needed to be kept in sync, e.g. a Hibernate 2nd level cache. That's where Terracotta can help as far as I understand.
    ok terracota seems a better solution than tomcat, ok

    Our load balancer sends each request of a particular session to the same application server. That's a rather standard functionality as far as I know.
    tell me
    how did you do that?(bold part)
    if you can share a link to learn this, i appreciate

    regards

    and thanks for your help
    - Manuel Jordan

    Kill Your Pride, Share Your Knowledge With All
    The Fear Of The LORD Is The Beginning Of Knowledge, But Fools Despise Wisdom And Discipline. Proverbs 1:7

    Blog


    Technical Reviewer of Apress

    • Pro SpringSource dm Server
    • Spring Enterprise Recipes: A Problem-Solution Approach
    • Spring Recipes: A Problem-Solution Approach, 2nd Edition
    • Pro Spring Integration
    • Pro Spring Batch
    • Pro Spring 3
    • Pro Spring MVC: With Web Flow
    • Pro Spring Security

  8. #8
    Join Date
    Feb 2007
    Location
    Moscow, Russia
    Posts
    56

    Default

    how did you do that?(bold part)
    some hardware devices support it on TCP level
    and expensive ones - on HTTP level

    as a low-cost solution you can try software LB, e.g. http://www.caucho.com/resin-3.0/conf...ance.xtp#resin

  9. #9
    Join Date
    Nov 2005
    Location
    Reutlingen, Germany
    Posts
    2,098

    Default

    Quote Originally Posted by dr_pompeii View Post
    i dont know about the behaviour of the flowscope in clustering
    How is it kept on the server-side? Not in the session?

    Quote Originally Posted by dr_pompeii View Post
    Quote Originally Posted by Jörg Heinicke View Post
    Our load balancer sends each request of a particular session to the same application server.
    how did you do that?
    As I said I don't care about it - and I have no idea. The administrator set all this stuff up. That's the advantage: The application does not have to bother about the additional complexity and is scalable though.

    Joerg
    This post can contain insufficient information.

  10. #10
    Join Date
    Aug 2006
    Location
    Arequipa-Peru / South America
    Posts
    2,806

    Default

    How is it kept on the server-side? Not in the session?
    really i dont know in details, exists too flashscope

    As I said I don't care about it - and I have no idea. The administrator set all this stuff up. That's the advantage:
    auch
    - Manuel Jordan

    Kill Your Pride, Share Your Knowledge With All
    The Fear Of The LORD Is The Beginning Of Knowledge, But Fools Despise Wisdom And Discipline. Proverbs 1:7

    Blog


    Technical Reviewer of Apress

    • Pro SpringSource dm Server
    • Spring Enterprise Recipes: A Problem-Solution Approach
    • Spring Recipes: A Problem-Solution Approach, 2nd Edition
    • Pro Spring Integration
    • Pro Spring Batch
    • Pro Spring 3
    • Pro Spring MVC: With Web Flow
    • Pro Spring Security

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •