Running Multiple LDM-s

It's possible to run multiple instances of an LDM system on a single computer. This article explains how and leaves the "why" to the reader.

It is assumed that the reader is familiar with the installation and configuration procedures for an LDM system. For each LDM system that you want to execute, build and install an LDM package with the following modifications:

  1. Choose a distinct user-account with its own name (e.g., ldm2) and home directory (e.g., /local/ldm2).
  2. Choose a distinct logging facility to use (e.g., local2) and modify the /etc/syslog.conf file appropriately.
  3. When executing the configure(1) script, use the --enable-logging=localn to set the logging facility.
  4. Decide on one of the following approaches for allowing connections from downstream sites:
    • Decide on a distinct IP address to use. This necessitates the use of a distinct network interface, which could be a real one (implemented in hardware) or a virtual one (implemented in software). When configuring the ldmadmin(1) configuration-file, etc/ldmadmin-pl.conf, use the $ip_addr variable to specify that IP address.
    • Select a distinct port on which the LDM server will listen. Use the "--enable-port=port" option of the configure script to configure the LDM to use that port. On the downstream hosts, do one of the following:
      • Use the optional ":port" field in REQUEST entries to specify to which port to connect.
      • Configure the downstream LDM to use the same port via the same "--enable-port=port" option of the configure script. This approach is recursive: further downstream sites will also need to be modified.