BigMemory-Max - Increasing the number of nodes of Terracotta server

180 views
Skip to first unread message

mohds...@gmail.com

unread,
Jul 26, 2016, 4:52:36 AM7/26/16
to terracotta-oss
  1. What version of Terracotta Server you are currently using;
  2. Paste the configuration you are using;
  3. Providing JDK and OS versions maybe useful as well.

  1. What version of Terracotta Server you are currently using;4.3
  2. Paste the configuration you are using;
  3. Providing JDK and OS versions maybe useful as well.1.7

I am trying to run multiple nodes of Terracotta for BigMemoryMax using a trial version. I was able to run my test with EHcache and one Terracotta server/Node. How can I add more nodes to the cluster. Any links to an example will be helpful. 
I have tried to change the tc-config.xml by adding multiple server node but some how the TMC console is recognizing only one node in the cluster.

James House

unread,
Jul 26, 2016, 11:30:46 AM7/26/16
to terracotta-oss

Could you post the config you're using so we can review it?

Generally speaking, you need a tc-config.xml file that configures each server you will have be part of the TSA (cluster),  and then you need to start each server with that same config.


--
You received this message because you are subscribed to the Google Groups "terracotta-oss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to terracotta-os...@googlegroups.com.
To post to this group, send email to terraco...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/terracotta-oss/c8617c12-66e5-4b7c-84ea-a63cc2f1d3d2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

mohds...@gmail.com

unread,
Jul 27, 2016, 2:21:58 PM7/27/16
to terracotta-oss
Please find below the tc-config.xml containing 4 servers. Now when I run the four commands below one by one, I get one ACTIVE node and 3 Mirrors. 
How can I get multiple Active nodes? Also please direct me to some good multiple distributed node example.

TMC-DASHBOARD-Showing the problem
  • default-group
    • Region1TSA      
         
         Mirror 
    • Region2TSA      
         
         Mirror 
    • Region3TSA      
         
         Mirror 
    • Region4TSA      
         
         Active 


COMMANDS----
start-sample-server.bat  "terracotta" "G:\workspace\..\..\server\bin\start-tc-server.bat" -f "..\code-samples\example03-crud\tc-config-region-1.xml" -n Region1TSA
start-sample-server.bat  "terracotta" "G:\workspace\..\..\server\bin\start-tc-server.bat" -f "..\code-samples\example03-crud\tc-config-region-1.xml" -n Region2TSA
start-sample-server.bat  "terracotta" "G:\workspace\..\..\server\bin\start-tc-server.bat" -f "..\code-samples\example03-crud\tc-config-region-1.xml" -n Region3TSA
start-sample-server.bat  "terracotta" "G:\workspace\..\..\server\bin\start-tc-server.bat" -f "..\code-samples\example03-crud\tc-config-region-1.xml" -n Region4TSA

TC-CONFIG-XML
<tc:tc-config xmlns:tc="http://www.terracotta.org/config">
  <tc-properties>
    <!--<property name="l2.l1reconnect.timeout.millis" value="30000"/>-->
  </tc-properties>
  <servers>
    <server host="localhost" name="Region3TSA">
      <data>tsa-region-3/data</data>
      <logs>tsa-region-3/logs</logs>
      <index>tsa-region-3/index</index>
      <tsa-port>9710</tsa-port>
      <jmx-port>9720</jmx-port>
      <tsa-group-port>9730</tsa-group-port>
      <offheap>
        <enabled>true</enabled>
        <maxDataSize>1g</maxDataSize>
      </offheap>
    </server>
    <server host="localhost" name="Region4TSA">
      <data>tsa-region-4/data</data>
      <logs>tsa-region-4/logs</logs>
      <index>tsa-region-4/index</index>
      <tsa-port>9810</tsa-port>
      <jmx-port>9820</jmx-port>
      <tsa-group-port>9830</tsa-group-port>
      <offheap>
        <enabled>true</enabled>
        <maxDataSize>1g</maxDataSize>
      </offheap>
    </server>
    <server host="localhost" name="Region2TSA">
      <data>tsa-region-2/data</data>
      <logs>tsa-region-2/logs</logs>
      <index>tsa-region-2/index</index>
      <tsa-port>9610</tsa-port>
      <jmx-port>9620</jmx-port>
      <tsa-group-port>9630</tsa-group-port>
      <offheap>
        <enabled>true</enabled>
        <maxDataSize>1g</maxDataSize>
      </offheap>
    </server>
    <server host="localhost" name="Region1TSA">
      <data>tsa-region-1/data</data>
      <logs>tsa-region-1/logs</logs>
      <index>tsa-region-1/index</index>
      <tsa-port>9510</tsa-port>
      <jmx-port>9520</jmx-port>
      <tsa-group-port>9530</tsa-group-port>
      <offheap>
        <enabled>true</enabled>
        <maxDataSize>1g</maxDataSize>
      </offheap>
    </server>
    <restartable enabled="false"/>
  </servers>
  <clients>
    <logs>client-region-1</logs>
  </clients>
</tc:tc-config>

Anthony Dahanne

unread,
Jul 27, 2016, 3:44:42 PM7/27/16
to terracotta-oss
Hello,
You need to define 2 stripes (using the mirror group tag), and in each stripe, 2 nodes
try updating your tc-config.xml with this :


<tc:tc-config xmlns:tc="http://www.terracotta.org/config">
  <tc-properties>
    <!--<property name="l2.l1reconnect.timeout.millis" value="30000"/>-->
  </tc-properties>
  <servers>
<mirror-group group-name="StripeOne">
    <server host="localhost" name="Region3TSA">
      <data>tsa-region-3/data</data>
      <logs>tsa-region-3/logs</logs>
      <index>tsa-region-3/index</index>
      <tsa-port>9710</tsa-port>
      <jmx-port>9720</jmx-port>
      <tsa-group-port>9730</tsa-group-port>
      <offheap>
        <enabled>true</enabled>
        <maxDataSize>1g</maxDataSize>
      </offheap>
    </server>
    <server host="localhost" name="Region4TSA">
      <data>tsa-region-4/data</data>
      <logs>tsa-region-4/logs</logs>
      <index>tsa-region-4/index</index>
      <tsa-port>9810</tsa-port>
      <jmx-port>9820</jmx-port>
      <tsa-group-port>9830</tsa-group-port>
      <offheap>
        <enabled>true</enabled>
        <maxDataSize>1g</maxDataSize>
      </offheap>
    </server>
 </mirror-group>
 <mirror-group group-name="StripeTWO">
    <server host="localhost" name="Region2TSA">
      <data>tsa-region-2/data</data>
      <logs>tsa-region-2/logs</logs>
      <index>tsa-region-2/index</index>
      <tsa-port>9610</tsa-port>
      <jmx-port>9620</jmx-port>
      <tsa-group-port>9630</tsa-group-port>
      <offheap>
        <enabled>true</enabled>
        <maxDataSize>1g</maxDataSize>
      </offheap>
    </server>
    <server host="localhost" name="Region1TSA">
      <data>tsa-region-1/data</data>
      <logs>tsa-region-1/logs</logs>
      <index>tsa-region-1/index</index>
      <tsa-port>9510</tsa-port>
      <jmx-port>9520</jmx-port>
      <tsa-group-port>9530</tsa-group-port>
      <offheap>
        <enabled>true</enabled>
        <maxDataSize>1g</maxDataSize>
      </offheap>
    </server>
 </mirror-group>
    <restartable enabled="false"/>
  </servers>
  <clients>
    <logs>client-region-1</logs>
  </clients>
</tc:tc-config>


Anthony

mohds...@gmail.com

unread,
Jul 27, 2016, 7:23:06 PM7/27/16
to terracotta-oss
Thanks Anthony, could u also suggest the command to start the two active nodes, specifically do I need to pass on the server name with -n options twice for starting two active nodes

Fabien Sanglier

unread,
Jul 27, 2016, 7:58:26 PM7/27/16
to terraco...@googlegroups.com
Run the exact same commands as you did before, but this time since you applied Anthony configuration changes, you'll end up with 2 actives / 2 mirrors.

Fabien


On Wednesday, July 27, 2016, <mohds...@gmail.com> wrote:
Thanks Anthony, could u also suggest the command to start the two active nodes, specifically do I need to pass on the server name with -n options twice for starting two active nodes

--
You received this message because you are subscribed to the Google Groups "terracotta-oss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to terracotta-os...@googlegroups.com.
To post to this group, send email to terraco...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


--
Fabien Sanglier
fabiens...@gmail.com

Fabien Sanglier

unread,
Jul 27, 2016, 8:01:21 PM7/27/16
to terraco...@googlegroups.com
And you probably should delete the various data folders (tsa-region-3/data, etc) to start all the nodes clean with this new topology.
--
Fabien Sanglier
fabiens...@gmail.com

mohds...@gmail.com

unread,
Jul 28, 2016, 4:44:48 AM7/28/16
to terracotta-oss
Thanks a lot...Anthony and Fabien....I got it working....


On Tuesday, July 26, 2016 at 2:22:36 PM UTC+5:30, mohds...@gmail.com wrote:
Reply all
Reply to author
Forward
0 new messages