Skip to content

Configure the 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()"
    

Import system configuration

  1. Open the system configuration file relay-server.yml in your installation directory.

  2. Replace all occurrences of <username> and <passsword> with an username and password.

  3. Save your changes and close the file.

  4. Import the system configuration from your install directory:

    plossys config import relay-server.yml --insecure
    

Import printer configuration

  1. Open the printer configuration file relay-printer.yml in your installation directory.

  2. Replace all occurrences of <remote-plossys-server> with the hostname or ip address of the target PLOSSYS 5 system. All print 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:

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

    Please replace <username> and <password> with the values you chose in the section above.


Troubleshooting: Printer with name relay-printer already exists in the target PLOSSYS 5 system

The name of the relay printer must not match any printer name defined in the target PLOSSYS 5 system. If there is already a printer called relay-printer, you must execute the following steps:

  1. Change the printer name relay-printer in relay-printer.yml.

  2. In relay-server.yml replace relay-printer with the name you chose in step 1 for the printer.

  3. Import the configurations again:

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

Back to top