1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-11-29 23:07:40 +02:00

Use Ubser's maxproc to treat CPU quotas

This commit is contained in:
DarthSim
2021-10-20 18:00:34 +06:00
parent 80331cd94e
commit 48e255e9d1
3 changed files with 6 additions and 0 deletions

View File

@@ -9,6 +9,7 @@ import (
"time"
log "github.com/sirupsen/logrus"
"go.uber.org/automaxprocs/maxprocs"
"github.com/imgproxy/imgproxy/v3/config"
"github.com/imgproxy/imgproxy/v3/errorreport"
@@ -27,6 +28,8 @@ func initialize() error {
return err
}
maxprocs.Set(maxprocs.Logger(log.Debugf))
if err := config.Configure(); err != nil {
return err
}