Configure the Relay Server¶
Configure a Shared Replica Set¶
In MongoDB, a shared replica set has to be configured:
-
Open the MongoDB configuration file:
C:\ProgramData\SEAL Systems\config\mongod.conf -
Add the following lines:
replication: oplogSizeMB: 2048 replSetName: p5Hint -
oplogSizeMBWe recommend setting
oplogSizeMBto 5 % of the disk space available for MongoDB. -
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.
-
Initialize the database:
& "C:\Program Files\MongoDB\Server\3.6\bin\mongo.exe" --ssl --sslAllowInvalidCertificates --sslAllowInvalidHostnames --eval "rs.initiate()"
Import system configuration¶
-
Open the system configuration file
relay-server.ymlin your installation directory. -
Replace all occurrences of
<username>and<passsword>with an username and password. -
Save your changes and close the file.
-
Import the system configuration from your install directory:
plossys config import relay-server.yml --insecure
Import printer configuration¶
-
Open the printer configuration file
relay-printer.ymlin your installation directory. -
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. -
Save your changes and close the file.
-
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:
-
Change the printer name
relay-printerinrelay-printer.yml. -
In
relay-server.ymlreplacerelay-printerwith the name you chose in step 1 for the printer. -
Import the configurations again:
plossys config import relay-server.yml --insecure plossys printer import relay-printer.yml --insecure --user <username> --pass <password>