Mandatory Configuration Steps for Relay Server¶
Configure a Shared Replica Set¶
In MongoDB, a shared replica set has to be configured:
-
Open the MongoDB configuration file:
/opt/seal/etc/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:
sudo mongo --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:
-
In the printer configuration file,
relay-printer.yml, change the printer namerelay-printerto a new name. -
In the server configuration file,
relay-server.yml, replacerelay-printerby the new printer name.
Import the System Configuration¶
-
Open the system configuration file,
relay-server.yml, in the installation directory of Relay Server. -
Replace all occurrences of
<username>and<passsword>by an user name and password. -
Save your changes and close the file.
-
Import the system configuration:
plossys config import relay-server.yml --insecure
Import the Printer Configuration¶
-
Open the printer configuration file,
relay-printer.yml, in the installation directory of Relay Server. -
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. -
Save your changes and close the file.
-
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>