In situations where an individual host is insufficient for your storage or performance needs, you can run OrientDB on multiple hosts distributing the load between them. Where the
server script starts OrientDB as an individual Server, the
dserver script does the same, while configuring Server to operate in a distributed environment.
OrientDB provides a
dserver.sh shell script for Linux operating systems and
dserver.bat batch file for the Windows operating system.
OrientDB manages most of its configuration options through various XML configuration files. However, there are a handful of environmental variables that it utilizes when starting the Server. When the script runs, it check these variables to determine whether any value has been set on them. In the event that it finds none, it instead sets a sensible default value.
On Linux, you can set the environmental variable using the
$ export ORIENTDB_HOME=/opt/orientdb/3.2.24/
The following environmental variables are used by
|XML configuration file for the server|
|Path to Java home directory, used when you have multiple installations of Java available on the host|
|current working directory||OrientDB installation directory|
|Path to Java properties file you want to use|
|Memory options, defaults to 2GB of heap|
|Path to the process id (|
|Default settings for OrientDB|
|Path to web resources, defaults to the interface to launch OrientDB Studio|
dserver.sh script also accepts argument. If one of the arguments is
debug, the script enables the following Java options
-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=1044. Any additional arguments are passed directly to the