node-postgres icon indicating copy to clipboard operation
node-postgres copied to clipboard

how is pool size computed?

Open Cariaga opened this issue 3 years ago • 0 comments

if i have 225 connection limit on database and my server could spin 2-10 nodejs apps

const pool = new Pool(user:  username,
      password: pass,
      host: host,
      database: db,
      max: ??, << what should be the input here? the maximum of the database or divide  255 by the number of nodejs?
      port: 5432,
    });

Cariaga avatar May 27 '22 06:05 Cariaga