Adding Dgraphs

You can add one or more additional Dgraphs on an already configured MDEX Engine server in your environment, by adjusting the AppConfig.xml file.

When you initially run the Deployment Template, it sets up an environment in which two Dgraphs are running on the same MDEX Engine server. You can optionally change this configuration and add or remove Dgraphs from this server.

To add a Dgraph to an MDEX Engine server:

  1. Add a line similar to the following <dgraph id="Dgraph3" host-id="MDEXHost" port="15001"> to the Dgraphs portion of the [appDir]/config/script/AppConfig.xml file.
  2. Make changes to the Dgraph Cluster block and the Dgraphs block, as shown in the following example. Add any new Dgraphs that you have provisioned to this block in order for a copy of the index to be pushed out to them during updates. In this abbreviated example of AppConfig.xml, three Dgraphs are configured on the same MDEX Engine server:
    <?xml version="1.0" encoding="UTF-8"?>
    <!--
      ####################################################
      # This file contains settings for an EAC application.
      ...
        ##################################################
        # Global variables
        #
      -->
      <app appName="MyApp" eacHost="PlatformServicesServer.MyCompany.com" eacPort="8888" 
      ...
      </app>
    
      <!--
        ###################################################
        # Servers/hosts
        ...
      -->
      <host id="ITLHost" hostName="PlatformServicesServer.MyCompany.com" port="8888" />
      <host id="MDEXHost" hostName="MDEXServer.MyCompany.com" port="8888" />
        <host id="webstudio" hostName="ToolsServer.MyCompany.com" port="8888" >
        <directories>
          <directory name="webstudio-report-dir">./reports</directory>
        </directories>
      </host>
    ...
      <!--
        ######################################################
        # Dgraph Cluster
        #
      -->
      <dgraph-cluster id="DgraphCluster" getDataInParallel="true">
        <dgraph ref="Dgraph1" />
        <dgraph ref="Dgraph2" />
        <dgraph ref="Dgraph3" />
      </dgraph-cluster>
      ....
      <!--
        ######################################################
        # Dgraphs
        #
      -->
      <dgraph id="Dgraph1" host-id="MDEXHost" port="15000">
       ....
      </dgraph>
    
      <dgraph id="Dgraph2" host-id="MDEXHost" port="15001">
       ....
      </dgraph>
     <dgraph id="Dgraph3" host-id="MDEXHost" port="15007">
       ....
      </dgraph>
    
    ....