Playing with TerraCotta 2.7.0

Posted by skelter Tue, 14 Oct 2008 16:41:00 GMT

I am playing with Terracotta clustering, the way it should be: on different machines.

Obstacle 1 - Binding to non-localhost address

  1. edit top level tc-config.xml <server> entry to bind to the public address
  2. Add a server line to the ClusteredHelloWorld/tc-config.xml to specify the server at that address

Obstacle 2 - Remote terracotta admin console access

Solution:

  1. Double check that the RMI stubs handed out are pointing to the resolvable hostname and not localhost or myhostname.local. See this helpful blog on hostname resolution on linux
  2. Enable authentication. admin console reports a timeout, but you are able to telnet to the port just fine, ruling out firewall issues. Server’s jmx is apparently handing out stubs, but still no joy. Turn on authentication and make sure the properties are set up, and admin console will prompt you for a username and password. See terracotta’s jmx guide. Would be nice if admin console helped diagnose this.

Conclusion - promising

Got the HelloClusteredWorld example going on two different machines hitting the same cluster. It’s a brain-dead hammering of a clustered object so I can see some performance grief, but it seems to be working find. This looks very promising. I am going to have to try some non-trivial prototypes.

Next stop: learn about ehcache.

Posted in  | Tags  | no comments

Comments

(leave url/email »)

   Comment Markup Help Preview comment