diff options
author | Wolfy-J <[email protected]> | 2020-10-26 21:25:33 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2020-10-26 21:25:33 +0300 |
commit | 722584b153c009612ccbaf1fb7a9911f7afae476 (patch) | |
tree | d9fab8f2fbee3737668caf4657affab605fb4146 /pool.go | |
parent | 6d3bd7d47aa9d08847eecfb241298f323aae05ca (diff) |
- lazy load test
Diffstat (limited to 'pool.go')
-rwxr-xr-x | pool.go | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -75,10 +75,8 @@ type Config struct { // worker handle as many tasks as it can. MaxJobs int64 - // Deferred flag enables slower working mode which inits empty worker ahead of every request. Useful to debug - // applications with heavy bootload phase. Do not use at production. It is also keeps pool without any workers - // until first request. - Deferred bool + // HeavyLoad flag creates new fresh worker before every request. + HeavyLoad bool // AllocateTimeout defines for how long pool will be waiting for a worker to // be freed to handle the task. Defaults to 60s. |