Connection

Set the timeouts and the connection pools that Scops uses for the monitored databases and for its repository.

Settings, Connection with the Repository, Ports and Monitored databases groups

Before you begin

You need Manage Settings. The defaults are correct for most installations.

Change a setting

  1. Open Settings › Connection and change the value.

  2. Click Save in the header of its group.

  3. For Repository or Ports, restart ScopsApi, then ScopsWeb.

A change to Monitored databases applies to new connections within five minutes, with no restart.

Monitored databases

Each database has its own pool with these values.

SettingWhat it doesDefault
Connect timeoutThe wait for a new connection: 5 to 120 seconds.15 seconds
Query timeoutThe time before Scops cancels a query: 10 seconds to an hour. Nightly collections have a longer limit.30 seconds
Smallest poolIdle connections that stay open: 0 to 50. 2 with 400 databases is 800 idle sessions.0
Largest poolConnections to one database at the same time: 10 to 500.50
Connection lifetimeThe maximum age of a connection: 0 (no maximum) to 86,400 seconds.3,700 seconds

Repository

SettingWhat it doesDefault
Connect timeoutThe wait for a new connection: 5 to 120 seconds.15 seconds
Smallest poolIdle connections that stay open: 0 to 50.2
Largest poolConnections at the same time: 10 to 10,000. At start, ScopsApi raises a lower value to the number of databases + 100.50
Grow by, Shrink byConnections that the pool opens or closes at a time: 1 to 50.5
Connection lifetimeThe maximum age of a connection: 0 (no maximum) to 86,400 seconds.300 seconds
Check before useScops tests a pooled connection before it uses it.On

Ports

The Ports group has the three ports of Scops. See Change the ports.

Updated October 29, 2026