feat: update machinery to v1.10.14 and adjust Redis config (#4075)
Signed-off-by: Gaius <gaius.qi@gmail.com>
This commit is contained in:
parent
75083be195
commit
e23bd6627e
2
go.mod
2
go.mod
|
|
@ -23,7 +23,7 @@ require (
|
||||||
github.com/docker/docker v28.1.1+incompatible
|
github.com/docker/docker v28.1.1+incompatible
|
||||||
github.com/docker/go-connections v0.5.0
|
github.com/docker/go-connections v0.5.0
|
||||||
github.com/docker/go-units v0.4.0
|
github.com/docker/go-units v0.4.0
|
||||||
github.com/dragonflyoss/machinery v1.10.13
|
github.com/dragonflyoss/machinery v1.10.14
|
||||||
github.com/elastic/go-freelru v0.16.0
|
github.com/elastic/go-freelru v0.16.0
|
||||||
github.com/fsouza/fake-gcs-server v1.52.2
|
github.com/fsouza/fake-gcs-server v1.52.2
|
||||||
github.com/gaius-qi/ping v1.0.0
|
github.com/gaius-qi/ping v1.0.0
|
||||||
|
|
|
||||||
4
go.sum
4
go.sum
|
|
@ -441,8 +441,8 @@ github.com/docker/libtrust v0.0.0-20150114040149-fa567046d9b1 h1:ZClxb8laGDf5arX
|
||||||
github.com/docker/libtrust v0.0.0-20150114040149-fa567046d9b1/go.mod h1:cyGadeNEkKy96OOhEzfZl+yxihPEzKnqJwvfuSUqbZE=
|
github.com/docker/libtrust v0.0.0-20150114040149-fa567046d9b1/go.mod h1:cyGadeNEkKy96OOhEzfZl+yxihPEzKnqJwvfuSUqbZE=
|
||||||
github.com/docker/spdystream v0.0.0-20160310174837-449fdfce4d96/go.mod h1:Qh8CwZgvJUkLughtfhJv5dyTYa91l1fOUCrgjqmcifM=
|
github.com/docker/spdystream v0.0.0-20160310174837-449fdfce4d96/go.mod h1:Qh8CwZgvJUkLughtfhJv5dyTYa91l1fOUCrgjqmcifM=
|
||||||
github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815/go.mod h1:WwZ+bS3ebgob9U8Nd0kOddGdZWjyMGR8Wziv+TBNwSE=
|
github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815/go.mod h1:WwZ+bS3ebgob9U8Nd0kOddGdZWjyMGR8Wziv+TBNwSE=
|
||||||
github.com/dragonflyoss/machinery v1.10.13 h1:0iixzz4rn+oDIDHLz8sj5sQ5veTVg+Z1TOVKm2nnWv8=
|
github.com/dragonflyoss/machinery v1.10.14 h1:VoR+ti+PsradoaVTIBT8rC8afXkEIzBp4G/+5m32Nrc=
|
||||||
github.com/dragonflyoss/machinery v1.10.13/go.mod h1:YUhavio0FVIsY9e3mVrj7weroc08gWm1hiauPDu1S28=
|
github.com/dragonflyoss/machinery v1.10.14/go.mod h1:YUhavio0FVIsY9e3mVrj7weroc08gWm1hiauPDu1S28=
|
||||||
github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk=
|
github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk=
|
||||||
github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk=
|
github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk=
|
||||||
github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY=
|
github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY=
|
||||||
|
|
|
||||||
|
|
@ -40,12 +40,12 @@ const (
|
||||||
// Machinery server configuration.
|
// Machinery server configuration.
|
||||||
const (
|
const (
|
||||||
DefaultResultsExpireIn = 86400
|
DefaultResultsExpireIn = 86400
|
||||||
DefaultRedisMaxIdle = 0
|
DefaultRedisMaxIdle = 10
|
||||||
DefaultRedisMaxActive = 300
|
DefaultRedisMaxActive = 50
|
||||||
DefaultRedisIdleTimeout = 30
|
DefaultRedisIdleTimeout = 30
|
||||||
DefaultRedisReadTimeout = 60
|
DefaultRedisReadTimeout = 60
|
||||||
DefaultRedisWriteTimeout = 60
|
DefaultRedisWriteTimeout = 60
|
||||||
DefaultRedisConnectTimeout = 60
|
DefaultRedisConnectTimeout = 60
|
||||||
DefaultRedisNormalTasksPollPeriod = 2000
|
DefaultRedisNormalTasksPollPeriod = 2500
|
||||||
DefaultRedisDelayedTasksPollPeriod = 500
|
DefaultRedisDelayedTasksPollPeriod = 500
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue