Access Keys:
Skip to content (Access Key - 0)


SIP Rhino Configuration Files (2.4.0)

Print this page

Configuration files for the Rhino SIP benchmark tests

The following configuration files were in place during the Rhino benchmark tests:

config_variables

#Tue Apr 14 11:24:30 NZST 2015
SAVANNA_MCAST_END=224.0.101.8
RHINO_SERVER_STORE_PASS=changeit
SNAPSHOT_BASEPORT=42000
MAX_NEW_SIZE=1024m
RHINO_SSL_PORT=1203
RHINO_CLIENT_STORE_PASS=changeit
RHINO_PASSWORD=password
JAVA_HOME=/opt/java/jdk1.7.0_71
LOCALIPS="127.0.0.1 [0\:0\:0\:0\:0\:0\:0\:1%1] 192.168.0.127 [fe80\:0\:0\:0\:f66d\:4ff\:fed9\:f8c4%2]"
MANAGEMENT_DATABASE_HOST=localhost
MANAGEMENT_DATABASE_PASSWORD=12
JVM_ARCH=64
RHINO_CLIENT_KEY_PASS=changeit
SAVANNA_MCAST_START=224.0.101.1
RHINO_BASE=/home/user/leliel/rhino
SAVANNA_CLUSTER_ADDR=224.0.101.1
RHINO_SERVER_KEY_PASS=changeit
RHINO_WATCHDOG_THREADS_THRESHOLD=50
NEW_SIZE=1024m
MANAGEMENT_DATABASE_NAME=performance_test
RMI_MBEAN_REGISTRY_PORT=1199
MANAGEMENT_DATABASE_USER=postgres
HEAP_SIZE=8192m
RHINO_WATCHDOG_DUMPTHREADS=/home/user/leliel/rhino/node-101/dumpthreads.sh
JMX_SERVICE_PORT=1202
RHINO_USERNAME=admin
RHINO_CLUSTERING=/home/user/leliel/rhino/node-101/clustering.sh
NODE_ID=101
RHINO_WATCHDOG_STUCK_INTERVAL=45000
SAVANNA_CLUSTER_ID=101
RHINO_WORK_DIR=/home/user/leliel/rhino/node-101/work
RHINO_HOME=/home/user/leliel/rhino/node-101
FILE_URL=file\:
MANAGEMENT_DATABASE_PORT=5432

rhino-config.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE rhino-config PUBLIC "-//Open Cloud Ltd.//DTD Rhino Config 2.4.0//EN" "http://www.opencloud.com/dtd/rhino-config_2_4_0.dtd">
<rhino-config>
  <file-locations>
    <temp-dir>${RHINO_WORK_DIR}/tmp</temp-dir>
    <deployment-dir save="False">${RHINO_WORK_DIR}/deployments</deployment-dir>
    <state-dir>${RHINO_WORK_DIR}/state</state-dir>
    <per-machine-mlet-conf>file:${RHINO_CONFIG_DIR}/permachine-mlet.conf</per-machine-mlet-conf>
    <per-node-mlet-conf>file:${RHINO_CONFIG_DIR}/pernode-mlet.conf</per-node-mlet-conf>
    <savanna-base-url>file:${RHINO_CONFIG_DIR}/savanna/cluster.properties</savanna-base-url>
    <security-policy-file>${RHINO_CONFIG_DIR}/rhino.policy</security-policy-file>
  </file-locations>

  <cluster-group>rhino-cluster</cluster-group>
  <admin-group>rhino-admin</admin-group>

  <!-- State exchange configuration. This may be different on each node if
       desired. -->
  <state-exchange>
        <!-- TCP port range to accept state-exchange connections on. Ports are
             tried in order until one is successfully bound, so this range can
             safely be the same on all nodes even when there are multiple nodes
             per physical machine) -->
        <min-port>6000</min-port>
        <max-port>6099</max-port>

        <!-- Maximum bandwidth per node for state exchange during initial
             cluster boot. This defaults to 8MB/s to avoid completely
             saturating a 100Mbit connection. If you are using 1000Mbit,
             consider increasing this. -->
        <boot-rate-limit>8000000</boot-rate-limit>

        <!-- Maximum bandwidth per node for state exchange when the cluster is
             active. This defaults to 4MB/s to avoid interfering with the
             extracting node's normal operation, but can be increased.-->
        <active-rate-limit>4000000</active-rate-limit>

        <!-- Optional address to bind to. If omitted, determined automatically by Savanna -->
        <!-- <override-address>1.2.3.4</override-address> -->
  </state-exchange>

  <activity-handler>
    <group-name>rhino-ah</group-name>
  </activity-handler>

  <persistence-resources>
    <replicated-sbbs>DomainedMemoryDatabase</replicated-sbbs>
    <non-replicated-sbbs>LocalMemoryDatabase</non-replicated-sbbs>
    <profiles>ProfileDatabase</profiles>
    <resource-adaptors>DomainedMemoryDatabase</resource-adaptors>
    <default-shutdown-flush-timeout>60000</default-shutdown-flush-timeout>
  </persistence-resources>

  <!--
    Example replication domain configuration. 
    
    This example splits the cluster into several 2-node domain pairs for the purposes of
    service state replication. This example does not cover replication domaining for writeable
    profiles.
  -->
  <!--
  <domain name="domain-1" nodes="101,102">
    <memdb-resource>DomainedMemoryDatabase</memdb-resource>
    <ah-resource>rhino-ah</ah-resource>
  </domain>
  <domain name="domain-2" nodes="201,202">
    <memdb-resource>DomainedMemoryDatabase</memdb-resource>
    <ah-resource>rhino-ah</ah-resource>
  </domain>
  <domain name="domain-3" nodes="301,302">
    <memdb-resource>DomainedMemoryDatabase</memdb-resource>
    <ah-resource>rhino-ah</ah-resource>
  </domain>
  <domain name="domain-4" nodes="401,402">
    <memdb-resource>DomainedMemoryDatabase</memdb-resource>
    <ah-resource>rhino-ah</ah-resource>
  </domain> 
  -->

  <rhino-monitoring>
    <group-name>rhino-monitoring</group-name>
    <message-id>19999</message-id>
    <sample-generations>6</sample-generations>
    <sample-generation-rollover>5000</sample-generation-rollover>
    <stats-session-timer>20000</stats-session-timer>
    <heartbeat-period>5000</heartbeat-period>
    <direct-min-port>17400</direct-min-port>
    <direct-max-port>17699</direct-max-port>
  </rhino-monitoring>

  <query-is-alive>
    <scan-period>180000</scan-period>
    <threshold>150000</threshold>
    <maximum-batch-size>128</maximum-batch-size>
  </query-is-alive>

  <timer-facility>
    <timer-resolution>10</timer-resolution>
    <timer-common-duration>32000</timer-common-duration>
    <timer-max-duration>180000</timer-max-duration>
    <timer-default-timeout>1000</timer-default-timeout>
  </timer-facility>

  <usage-facility>
    <max-service-usage-parameter-sets>1000</max-service-usage-parameter-sets>
    <max-resource-adaptor-entity-usage-parameter-sets>1000</max-resource-adaptor-entity-usage-parameter-sets>
    <max-profile-table-usage-parameter-sets>1000</max-profile-table-usage-parameter-sets>
  </usage-facility>

  <default-component-log4j-include>
    <sbb-log4j-include included="False"/>
    <ra-log4j-include included="True"/>
    <library-log4j-include included="True"/>
  </default-component-log4j-include>

  <byte-array-buffer-pool>
    <!-- 10Mb of small buffers -->
    <small-buffer-size>128</small-buffer-size>
    <small-buffer-pool-capacity>81920</small-buffer-pool-capacity>
    <!-- 10Mb of large buffers -->
    <large-buffer-size>1024</large-buffer-size>
    <large-buffer-pool-capacity>10240</large-buffer-pool-capacity>
    <!-- large buffers used if bounded buffer of size 1792 bytes or greater requested -->
    <large-buffer-selection-multiple>1.75</large-buffer-selection-multiple>
  </byte-array-buffer-pool>

  <ocbb-resources>
    <!--
      Note: the names of the following resources must not be changed as the
      core system depends on their presence:
        LocalMemoryDatabase
        ReplicatedMemoryDatabase
        ManagementDatabase

      Additionally, the SIP example services depend on the presence of the
      JDBCResource resource.

      Other resource names are referenced only by other elements in this
      configuration file and so may be modified as needed.
    -->


    <memdb-local>
      <jndi-name>LocalMemoryDatabase</jndi-name>
      <committed-size>100M</committed-size>
      <stripe-count>8</stripe-count>
      <uses-state-pool>true</uses-state-pool>
    </memdb-local>

    <memdb>
      <jndi-name>ReplicatedMemoryDatabase</jndi-name>
      <message-id>10002</message-id>
      <group-name>rhino-db</group-name>
      <committed-size>200M</committed-size>
      <resync-rate>100000</resync-rate>
      <stripe-count>16</stripe-count>
      <uses-state-pool>true</uses-state-pool>
    </memdb>

    <memdb>
      <jndi-name>DomainedMemoryDatabase</jndi-name>
      <message-id>10005</message-id>
      <group-name>rhino-db</group-name>
      <committed-size>200M</committed-size>
      <resync-rate>100000</resync-rate>
      <stripe-count>16</stripe-count>
      <uses-state-pool>true</uses-state-pool>
    </memdb>

    <!-- Begin PostgreSQL configuration.
         To use Oracle Database rather than PostgreSQL, comment out this
         section and uncomment the Oracle Database section below. -->
    <memdb>
      <jndi-name>ManagementDatabase</jndi-name>
      <message-id>10003</message-id>
      <group-name>rhino-management</group-name>
      <committed-size>150M</committed-size>
      <resync-rate>100000</resync-rate>
      <stripe-count>1</stripe-count>
      <uses-state-pool>false</uses-state-pool>
      <persistence>
        <persistence-instance>
          <datasource-class>org.postgresql.ds.PGSimpleDataSource</datasource-class>
          <dbid>rhino_management</dbid>
          <parameter>
            <param-name>serverName</param-name>
            <param-type>java.lang.String</param-type>
            <param-value>${MANAGEMENT_DATABASE_HOST}</param-value>
          </parameter>
          <parameter>
            <param-name>portNumber</param-name>
            <param-type>java.lang.Integer</param-type>
            <param-value>${MANAGEMENT_DATABASE_PORT}</param-value>
          </parameter>
          <parameter>
            <param-name>databaseName</param-name>
            <param-type>java.lang.String</param-type>
            <param-value>${MANAGEMENT_DATABASE_NAME}</param-value>
          </parameter>
          <parameter>
            <param-name>user</param-name>
            <param-type>java.lang.String</param-type>
            <param-value>${MANAGEMENT_DATABASE_USER}</param-value>
          </parameter>
          <parameter>
            <param-name>password</param-name>
            <param-type>java.lang.String</param-type>
            <param-value>${MANAGEMENT_DATABASE_PASSWORD}</param-value>
          </parameter>
          <parameter>
            <param-name>loginTimeout</param-name>
            <param-type>java.lang.Integer</param-type>
            <param-value>30</param-value>
          </parameter>
          <parameter>
            <param-name>prepareThreshold</param-name>
            <param-type>java.lang.Integer</param-type>
            <param-value>1</param-value>
          </parameter>
        </persistence-instance>
      </persistence>
    </memdb>

    <memdb>
      <jndi-name>ProfileDatabase</jndi-name>
      <message-id>10004</message-id>
      <group-name>rhino-db</group-name>
      <committed-size>100M</committed-size>
      <resync-rate>100000</resync-rate>
      <stripe-count>1</stripe-count>
      <uses-state-pool>false</uses-state-pool>
      <persistence>
        <persistence-instance>
          <datasource-class>org.postgresql.ds.PGSimpleDataSource</datasource-class>
          <dbid>rhino_profiles</dbid>
          <parameter>
            <param-name>serverName</param-name>
            <param-type>java.lang.String</param-type>
            <param-value>${MANAGEMENT_DATABASE_HOST}</param-value>
          </parameter>
          <parameter>
            <param-name>portNumber</param-name>
            <param-type>java.lang.Integer</param-type>
            <param-value>${MANAGEMENT_DATABASE_PORT}</param-value>
          </parameter>
          <parameter>
            <param-name>databaseName</param-name>
            <param-type>java.lang.String</param-type>
            <param-value>${MANAGEMENT_DATABASE_NAME}</param-value>
          </parameter>
          <parameter>
            <param-name>user</param-name>
            <param-type>java.lang.String</param-type>
            <param-value>${MANAGEMENT_DATABASE_USER}</param-value>
          </parameter>
          <parameter>
            <param-name>password</param-name>
            <param-type>java.lang.String</param-type>
            <param-value>${MANAGEMENT_DATABASE_PASSWORD}</param-value>
          </parameter>
          <parameter>
            <param-name>loginTimeout</param-name>
            <param-type>java.lang.Integer</param-type>
            <param-value>30</param-value>
          </parameter>
          <parameter>
            <param-name>prepareThreshold</param-name>
            <param-type>java.lang.Integer</param-type>
            <param-value>1</param-value>
          </parameter>
        </persistence-instance>
      </persistence>
    </memdb>

    <jdbc>
      <jndi-name>JDBCResource</jndi-name>
      <datasource-class>org.postgresql.ds.PGSimpleDataSource</datasource-class>
      <parameter>
        <param-name>serverName</param-name>
        <param-type>java.lang.String</param-type>
        <param-value>${MANAGEMENT_DATABASE_HOST}</param-value>
      </parameter>
      <parameter>
        <param-name>portNumber</param-name>
        <param-type>java.lang.Integer</param-type>
        <param-value>${MANAGEMENT_DATABASE_PORT}</param-value>
      </parameter>
      <parameter>
        <param-name>databaseName</param-name>
        <param-type>java.lang.String</param-type>
        <param-value>${MANAGEMENT_DATABASE_NAME}</param-value>
      </parameter>
      <parameter>
        <param-name>user</param-name>
        <param-type>java.lang.String</param-type>
        <param-value>${MANAGEMENT_DATABASE_USER}</param-value>
      </parameter>
      <parameter>
        <param-name>password</param-name>
        <param-type>java.lang.String</param-type>
        <param-value>${MANAGEMENT_DATABASE_PASSWORD}</param-value>
      </parameter>
      <parameter>
        <param-name>loginTimeout</param-name>
        <param-type>java.lang.Integer</param-type>
        <param-value>30</param-value>
      </parameter>
      <parameter>
        <param-name>prepareThreshold</param-name>
        <param-type>java.lang.Integer</param-type>
        <param-value>5</param-value>
      </parameter>
      <connection-pool>
        <max-connections>15</max-connections>
        <max-pool-size>15</max-pool-size>
        <max-idle-time>600</max-idle-time>
        <idle-check-interval>30</idle-check-interval>
        <connection-pool-timeout>5000</connection-pool-timeout>
      </connection-pool>
    </jdbc>
    <!-- End of PostgreSQL configuration. -->


    <!-- Begin Oracle Database configuration.
         To use Oracle Database rather than PostgreSQL, comment out the
         PostgreSQL section above and uncomment the section below. -->
    <!--
    <memdb>
      <jndi-name>ManagementDatabase</jndi-name>
      <message-id>10003</message-id>
      <group-name>rhino-management</group-name>
      <committed-size>150M</committed-size>
      <resync-rate>100000</resync-rate>
      <stripe-count>1</stripe-count>
      <uses-state-pool>false</uses-state-pool>
      <persistence>
        <persistence-instance>
          <datasource-class>oracle.jdbc.pool.OracleDataSource</datasource-class>
          <dbid>rhino_management</dbid>
          <parameter>
            <param-name>URL</param-name>
            <param-type>java.lang.String</param-type>
            <param-value>jdbc:oracle:thin:@${MANAGEMENT_DATABASE_HOST}:${MANAGEMENT_DATABASE_PORT}:${MANAGEMENT_DATABASE_NAME}</param-value>
          </parameter>
          <parameter>
            <param-name>user</param-name>
            <param-type>java.lang.String</param-type>
            <param-value>${MANAGEMENT_DATABASE_USER}</param-value>
          </parameter>
          <parameter>
            <param-name>password</param-name>
            <param-type>java.lang.String</param-type>
            <param-value>${MANAGEMENT_DATABASE_PASSWORD}</param-value>
          </parameter>
          <parameter>
            <param-name>loginTimeout</param-name>
            <param-type>java.lang.Integer</param-type>
            <param-value>30</param-value>
          </parameter>
        </persistence-instance>
      </persistence>
    </memdb>

    <memdb>
      <jndi-name>ProfileDatabase</jndi-name>
      <message-id>10004</message-id>
      <group-name>rhino-db</group-name>
      <committed-size>100M</committed-size>
      <resync-rate>100000</resync-rate>
      <stripe-count>1</stripe-count>
      <uses-state-pool>false</uses-state-pool>
      <persistence>
        <persistence-instance>
          <datasource-class>oracle.jdbc.pool.OracleDataSource</datasource-class>
          <dbid>rhino_profiles</dbid>
          <parameter>
            <param-name>URL</param-name>
            <param-type>java.lang.String</param-type>
            <param-value>jdbc:oracle:thin:@${MANAGEMENT_DATABASE_HOST}:${MANAGEMENT_DATABASE_PORT}:${MANAGEMENT_DATABASE_NAME}</param-value>
          </parameter>
          <parameter>
            <param-name>user</param-name>
            <param-type>java.lang.String</param-type>
            <param-value>${MANAGEMENT_DATABASE_USER}</param-value>
          </parameter>
          <parameter>
            <param-name>password</param-name>
            <param-type>java.lang.String</param-type>
            <param-value>${MANAGEMENT_DATABASE_PASSWORD}</param-value>
          </parameter>
          <parameter>
            <param-name>loginTimeout</param-name>
            <param-type>java.lang.Integer</param-type>
            <param-value>30</param-value>
          </parameter>
        </persistence-instance>
      </persistence>
    </memdb>

    <jdbc>
      <jndi-name>JDBCResource</jndi-name>
      <datasource-class>oracle.jdbc.pool.OracleDataSource</datasource-class>
      <parameter>
        <param-name>URL</param-name>
        <param-type>java.lang.String</param-type>
        <param-value>jdbc:oracle:thin:@${MANAGEMENT_DATABASE_HOST}:${MANAGEMENT_DATABASE_PORT}:${MANAGEMENT_DATABASE_NAME}</param-value>
      </parameter>
      <parameter>
        <param-name>user</param-name>
        <param-type>java.lang.String</param-type>
        <param-value>${MANAGEMENT_DATABASE_USER}</param-value>
      </parameter>
      <parameter>
        <param-name>password</param-name>
        <param-type>java.lang.String</param-type>
        <param-value>${MANAGEMENT_DATABASE_PASSWORD}</param-value>
      </parameter>
      <parameter>
        <param-name>loginTimeout</param-name>
        <param-type>java.lang.Integer</param-type>
        <param-value>30</param-value>
      </parameter>
      <connection-pool>
        <max-connections>15</max-connections>
        <max-pool-size>15</max-pool-size>
        <max-idle-time>600</max-idle-time>
        <idle-check-interval>30</idle-check-interval>
        <connection-pool-timeout>5000</connection-pool-timeout>
      </connection-pool>
    </jdbc>
    -->
    <!-- End of Oracle Database configuration. -->
  </ocbb-resources>

  <ejb-resources>
  </ejb-resources>
</rhino-config>
Adaptavist Theme Builder Powered by Atlassian Confluence