• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

clustering jforum with Terracotta

 
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 work at Terracotta (http://www.terracotta.org) ? a cool open source technology that provides java clustering as a service of the runtime.

We use Jforums on our own forums and as part of a test, I clustered Jforums without changing any code by declaratively stating what needs to be clustered ?(see attachments)

Something like:
<roots>
<root>
<field-name>net.jforum.cache.DefaultCacheEngine.cache</field-name>
<root-name>theCache</root-name>
</root>
</roots>

Is anyone in the community today experiencing any pain today around JForum's existing clustering capabilities - if so please enumerate and we could see if solving the clustering problem with TerraCotta might be helpful or not. (To cluster with TC, you can download it at http://www.terracotta.org and exchange notes with me on how i set up the clustering with just config: tc-config.xml and no code changes) ...Cheers.


[originally posted on jforum.net by zeeiyer]
 
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
Wow, that's really great. I didn't know Terracotta, and is amazing to hear from you.

I have only used JBossTreeCache with JForum to allow it to run on a clustered environment (by distributing the cache among all nodes), and the problems we had at that time were only related to one or another class that wasn't serializable.

You think we can put some information about JForum + Terracotta in our Documentation page?

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
Yeah Terracotta clusters at the JVM level and does not employ Java serialization (so none of your classes need implement java.io.serializable to be network transportable). I didn't have to modify any code related to 2.1.6 (its the default build) to be able to cluster net.jforum.cache.DefaultCacheEngine.cache and its references, which i assumed held all of the state...

Wrt documenting it - sure - I am writing a blog and will also put together some documentation. Things are a bit hectic right now - so it might take a 3-4-few days
Cheers.

[originally posted on jforum.net by zeeiyer]
 
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
zeeiyer,
Can you send me details of how you setup cluster with terracotta? I wanna use it.

Thanks,
-Durgesh


[originally posted on jforum.net by durgeshagrawal]
 
Time is the best teacher, but unfortunately, it kills all of its students - Robin Williams. tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic