OrientDB Manual 1.7.8

Distributed Architecture Plugin

Java class: com.orientechnologies.orient.server.hazelcast.OHazelcastPlugin

Introduction

This is part of Distributed Architecture. Configure a distributed clustered architecture. This task is configured as a Server handler. The task can be configured easily by changing these parameters:

  • enabled: Enable the plugin: true to enable, false to disable it.
  • configuration.hazelcast: The location of the Hazelcast configuration file (hazelcast.xml).
  • alias: An alias for the current node within the cluster name. Default value is the IP address and port for OrientDB on this node.
  • configuration.db.default: The location of a file that describes, using JSON syntax, the synchronization configuration of the various clusters in the database.
  • conflict.resolver.impl: The fully-qualified name of a class implementing OReplicationConflictResolver, used to resolve distributed conflicts.
  • alignment.startup: Whether to enable periodic database alignment check. trueor false.
  • alignment.timer: The delay (in milliseconds) between successive database alignment checks.

Default configuration in orientdb-dserver-config.xml:

   <handler class="com.orientechnologies.orient.server.hazelcast.OHazelcastPlugin">
      <parameters>
         <!-- <parameter name="alias" value="europe1" /> -->
         <parameter name="enabled" value="true" />
         <parameter name="configuration.db.default" value="${ORIENTDB_HOME}/config/default-distributed-db-config.json" />
         <parameter name="configuration.hazelcast" value="${ORIENTDB_HOME}/config/hazelcast.xml" />
         <parameter name="alignment.startup" value="true" />
         <parameter name="alignment.timer" value="120000" />
         <parameter name="conflict.resolver.impl" value="com.orientechnologies.orient.server.distributed.conflict.ODefaultReplicationConflictResolver" />
      </parameters>
   </handler>