Win a copy of Pro Spring MVC with WebFlux: Web Development in Spring Framework 5 and Spring Boot 2 this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

Load Balancing The Cache Amongst a Web Server Cluster

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Rafael,

How would you recommend configuring jforum in terms of using cache if I am to load balance the coad across multiple servers. For instance, lets say there are 3 web servers and a db server. If all 3 web servers are running their own version of the cache, that would screw things up. However, would certain cache be ok...like message posts? I want to speed up the application as much as possible without getting it into trouble across many servers.

Brakker
[originally posted on jforum.net by coolbreeze]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, jboss cache is suposed to handle that. It will multicast the instances to all nodes, when necessary. However, looks like you don't like this approach, but for all I have seen, people use exactly this approach.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I will test this approach and see how it works out.

I think this is a great approach, but I just wondered how efficient it is or if it has been tested at all.

Thanks,

Brakker
[originally posted on jforum.net by coolbreeze]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We are trying to achieve the same thing, could you please give us additional details on how you achieved this. Thanks!
[originally posted on jforum.net by mallikamt]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This should be added as an FAQ.

:?
[originally posted on jforum.net by Cadillac]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
:-).... do u have the final answer ?... reading in the forums it looks like JBossCache could be use but it is not that simple...

and what about the configuration updated trough the Admin Control Pannel... they are going to the config-custom.conf that is read only when the application starts... therefore if u update something such as Max. avatar width u should restart all the other installations to make them read the config-custom.conf....
[originally posted on jforum.net by pasta.bolognese]
 
Hot dog! An advertiser loves us THIS much:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic