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.

Default configuration in orientdb-dserver-config.xml:

  1. <handler class="com.orientechnologies.orient.server.hazelcast.OHazelcastPlugin">
  2. <parameters>
  3. <!-- <parameter name="alias" value="europe1" /> -->
  4. <parameter name="enabled" value="true" />
  5. <parameter name="configuration.db.default" value="${ORIENTDB_HOME}/config/default-distributed-db-config.json" />
  6. <parameter name="configuration.hazelcast" value="${ORIENTDB_HOME}/config/hazelcast.xml" />
  7. </parameters>
  8. </handler>