Increasing connections to the database

  1. Open the configuration file with the command

sudo nano /etc/postgresql/11/main/postgresql.conf
  1. Press Ctrl+W, enter max_conn press Enter

  2. Change the value from 100 to 300

  3. press Ctrl+O to save, then Ctrl+X to exit.

  4. Restart Postgresql with the command:

sudo service postgresql restart