Skip to content

Mandatory Configuration Steps for Relay Server


Configure a Shared Replica Set

In MongoDB, a shared replica set has to be configured:

  1. Open the MongoDB configuration file:

    C:\ProgramData\SEAL Systems\config\mongod.conf
    
  2. Add the following lines:

    replication:
      oplogSizeMB: 2048
      replSetName: p5
    

    Hint - oplogSizeMB

    We recommend setting oplogSizeMB to 5 % of the disk space available for MongoDB.

  3. Restart the following service:

    plossys service stop seal-mongodb
    plossys service start seal-mongodb
    

Initialize the Database

You have to initialize the database after configuring the shared replica set.

  1. Initialize the database:
& "C:\Program Files\MongoDB\Server\3.6\bin\mongo.exe" --ssl --sslAllowInvalidCertificates --sslAllowInvalidHostnames --eval "rs.initiate()"

Change the Printer Name (Only if relay-printer Already Exists in PLOSSYS 5)

The name of the relay printer must not match any printer name available in the target PLOSSYS 5 system! If a printer called relay-printer already exists in the PLOSSYS 5 system, execute the following steps:

  1. In the printer configuration file, relay-printer.yml, change the printer name relay-printer to a new name.

  2. In the server configuration file, relay-server.yml, replace relay-printer by the new printer name.


Import the System Configuration

  1. Open the system configuration file, relay-server.yml, in the installation directory of Relay Server.

  2. Replace all occurrences of <username> and <passsword> by an user name and password.

  3. Save your changes and close the file.

  4. Import the system configuration:

    plossys config import relay-server.yml --insecure
    

Import the Printer Configuration

  1. Open the printer configuration file, relay-printer.yml, in the installation directory of Relay Server.

  2. Replace all occurrences of <remote-plossys-server> by the server name or IP address of the target PLOSSYS 5 system. All output jobs received by the Relay Server will be forwarded to this system.

  3. Save your changes and close the file.

  4. Import the printer configuration. Replace <username> and <password> by the values specified when importing the system configuration:

    plossys printer import relay-printer.yml --insecure --user <username> --pass <password>
    

Back to top