X

TimesTen In-Memory Database
for Extreme Performance

How to Install ZooKeeper for TimesTen Scaleout

Jenny Bloom
Product Manager

TimesTen Scaleout allows a single database to span multiple hosts. Each host will run at least one TimesTen instance. To keep track of the status of all the instances, TimesTen Scaleout uses Apache ZooKeeper. ZooKeeper serves as a membership service for TimesTen Scaleout.

The Apache ZooKeeper distribution is packaged with the TimesTen software. For production use you should have at least 3 ZooKeeper servers, but for this demonstration only 1 server is configured. The Apache ZooKeeper membership service used by TimesTen Scaleout does require Java release 1.8 (JDK 8) or greater on the ZooKeeper server.

 

Follow these steps to install ZooKeeper and configure ZooKeeper members:

  • Create a directory where you want to put the ZooKeeper installation and unpack ZooKeeper into that directory
$ mkdir -p /grid/membership
$ tar -zvxf /grid/sw/tt18.1.1.1.0/3rdparty/zookeeper-3.4.10.tar.gz -C /grid/membership
  • Configure the ZooKeeper server. Create the following conf/zoo.cfg file in the location where you’ve untarred the ZooKeeper software, but replace ttgridvm with your local machine host name.
% vi /grid/membership/zookeeper-3.4.10/conf/zoo.cfg
tickTime=250
initLimit=40
syncLimit=12
dataDir=/grid/membership/data
clientPort=2181
autopurge.snapRetainCount=3
autopurge.purgeInterval=1
server.1=ttgridvm:2888:3888
  • Start the ZooKeeper membership server.
$ /grid/membership/zookeeper-3.4.10/bin/zkServer.sh start
   ZooKeeper JMX enabled by default
   Using config: /grid/zookeeper/zookeeper-3.4.10/bin/../conf/zoo.cfg
   Starting zookeeper ... STARTED
$
  • TimesTen Scaleout needs to know where the ZooKeeper server is. This is done through client membership configuration file.   This membership client configuration contains server.x and clientPort parameter values that was in the zoo.cfg file.  For this demo, the client membership configuration file is /grid/membership/membership.conf.

 

$ vi /grid/membership/membership.conf

Servers ttgridvm.oracle.net!2181

 

If you need further information on ZooKeeper installation and membership configuration, please see TimesTen Documentation.You are now ready for the next step in the quickstart blog.

Disclaimer: These are my personal thoughts and do not represent Oracle's official viewpoint in any way, shape, or form.

Be the first to comment

Comments ( 0 )
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.