Each Primary Server on PostgreSQL can consume up to 500 database connections. If you want to add more than one Primary Server, you should change the property values in the postgresql.conf file.
For the embedded database, the postgresql.conf file is available at the following location:
On Windows: %ZENSERVER_HOME%\database\pgsql\data
On Linux: /etc/opt/microfocus/zenworks/datamodel/
Use the following formula to calculate the property values.
max_connections = Number of primary severs * 500
max_prepared_transactions = Number of primary severs * 500
After changing the property values in postgresql.conf, restart the ZENworks and PostgreSQL service.
To restart the PostgreSQL service:
On Windows: To start the service, perform the following:
Press Windows + R keys.
Type services.msc.
Search for the Micro Focus ZENworks Embedded Datastore - PostgreSQL service.
Right-click the option and then select Restart.
On Linux: To start the service, run the systemctl restart zenpostgresql.service command.