Returns how many connections each process's pool holds.
Twice the node's request-worker count, and never fewer than four, so the
scheduler's cap and the pool agree — unless size names one
(persistence.poolSize, #2220), which is then the size, never below two:
the flush and the change-log pull each need one.
Parameters
workers: any
the node's request workers (workers.requestCount plus
workers.surfaceCount)
Optionalsize: any
the configured size; 0 or absent for the automatic one
Returns how many connections each process's pool holds.
Twice the node's request-worker count, and never fewer than four, so the scheduler's cap and the pool agree — unless
sizenames one (persistence.poolSize, #2220), which is then the size, never below two: the flush and the change-log pull each need one.