gotosocial/vendor/github.com
Daniele Sluijters acc333c40b
[feature] Inherit resource limits from cgroups (#1336)
When GTS is running in a container runtime which has configured CPU or
memory limits or under an init system that uses cgroups to impose CPU
and memory limits the values the Go runtime sees for GOMAXPROCS and
GOMEMLIMIT are still based on the host resources, not the cgroup.

At least for the throttling middlewares which use GOMAXPROCS to
configure their queue size, this can result in GTS running with values
too big compared to the resources that will actuall be available to it.

This introduces 2 dependencies which can pick up resource contraints
from the current cgroup and tune the Go runtime accordingly. This should
result in the different queues being appropriately sized and in general
more predictable performance. These dependencies are a no-op on
non-Linux systems or if running in a cgroup that doesn't set a limit on
CPU or memory.

The automatic tuning of GOMEMLIMIT can be disabled by either explicitly
setting GOMEMLIMIT yourself or by setting AUTOMEMLIMIT=off. The
automatic tuning of GOMAXPROCS can similarly be counteracted by setting
GOMAXPROCS yourself.
2023-01-17 20:59:04 +00:00
..
abema/go-mp4 [chore]: Bump github.com/abema/go-mp4 from 0.8.0 to 0.9.0 (#1287) 2023-01-02 12:10:35 +00:00
aymerick/douceur
buckket/go-blurhash migrate go version to 1.17 (#203) 2021-09-10 14:42:14 +02:00
cilium/ebpf [feature] Inherit resource limits from cgroups (#1336) 2023-01-17 20:59:04 +00:00
containerd/cgroups [feature] Inherit resource limits from cgroups (#1336) 2023-01-17 20:59:04 +00:00
coreos [feature] Inherit resource limits from cgroups (#1336) 2023-01-17 20:59:04 +00:00
cornelk/hashmap [chore] bump gruf/go-store to v2 (#953) 2022-11-05 11:10:19 +00:00
davecgh/go-spew
disintegration/imaging [bugfix] Fix thumbnails not taking exif rotation into account (#746) 2022-08-10 14:05:14 +02:00
docker/go-units [feature] Inherit resource limits from cgroups (#1336) 2023-01-17 20:59:04 +00:00
dsoprea [bugfix] Fix images not being processed correctly sometimes (#437) 2022-03-21 19:46:51 +01:00
dustin/go-humanize [feature] S3 support (#674) 2022-07-03 12:08:30 +02:00
fsnotify/fsnotify [chore]: Bump github.com/spf13/viper from 1.13.0 to 1.14.0 (#1003) 2022-11-08 11:30:29 +01:00
gin-contrib [chore] update dependencies, bump to Go 1.19.1 (#826) 2022-09-28 18:30:40 +01:00
gin-gonic/gin [chore]: Bump github.com/gin-gonic/gin from 1.8.1 to 1.8.2 (#1286) 2022-12-27 08:29:42 +00:00
go-errors/errors Update dependencies (#333) 2021-11-27 15:26:58 +01:00
go-fed/httpsig move to ssb gofed fork (#298) 2021-11-13 17:29:43 +01:00
go-jose/go-jose/v3 [chore]: Bump github.com/coreos/go-oidc/v3 from 3.4.0 to 3.5.0 (#1322) 2023-01-09 08:23:49 +00:00
go-playground [chore] Bump github.com/go-playground/validator/v10 from 10.11.0 to 10.11.1 (#980) 2022-11-07 11:19:50 +01:00
go-xmlfmt/xmlfmt Upstep Go dependencies (#340) 2021-12-12 15:47:51 +01:00
goccy/go-json [chore] update dependencies, bump to Go 1.19.1 (#826) 2022-09-28 18:30:40 +01:00
godbus/dbus/v5 [feature] Inherit resource limits from cgroups (#1336) 2023-01-17 20:59:04 +00:00
gogo/protobuf [feature] Inherit resource limits from cgroups (#1336) 2023-01-17 20:59:04 +00:00
golang [chore] bump gruf/go-store to v2 (#953) 2022-11-05 11:10:19 +00:00
golang-jwt/jwt migrate go version to 1.17 (#203) 2021-09-10 14:42:14 +02:00
google/uuid migrate go version to 1.17 (#203) 2021-09-10 14:42:14 +02:00
gorilla [feature] Add opt-in RSS feed for account's latest Public posts (#897) 2022-10-08 14:00:39 +02:00
h2non/filetype Update dependencies (#333) 2021-11-27 15:26:58 +01:00
hashicorp/hcl Implement Cobra CLI tooling, Viper config tooling (#336) 2021-12-07 13:31:39 +01:00
inconshreveable/mousetrap [chore] update dependencies, bump to Go 1.19.1 (#826) 2022-09-28 18:30:40 +01:00
jackc [chore] update dependencies, bump to Go 1.19.1 (#826) 2022-09-28 18:30:40 +01:00
jinzhu/inflection migrate go version to 1.17 (#203) 2021-09-10 14:42:14 +02:00
json-iterator/go Update dependencies (#333) 2021-11-27 15:26:58 +01:00
kballard/go-shellquote Add SQLite support, fix un-thread-safe DB caches, small performance f… (#172) 2021-08-29 16:41:41 +02:00
KimMachineGun/automemlimit [feature] Inherit resource limits from cgroups (#1336) 2023-01-17 20:59:04 +00:00
klauspost [chore] bump gruf/go-store to v2 (#953) 2022-11-05 11:10:19 +00:00
leodido/go-urn migrate go version to 1.17 (#203) 2021-09-10 14:42:14 +02:00
magiconair/properties [chore] Update all but bun libraries (#526) 2022-05-02 15:05:18 +02:00
mattn/go-isatty migrate go version to 1.17 (#203) 2021-09-10 14:42:14 +02:00
microcosm-cc/bluemonday [chore]: Bump github.com/microcosm-cc/bluemonday from 1.0.20 to 1.0.21 (#1004) 2022-11-08 11:11:35 +01:00
miekg/dns [chore] update dependencies, bump to Go 1.19.1 (#826) 2022-09-28 18:30:40 +01:00
minio [chore]: Bump github.com/minio/minio-go/v7 from 7.0.44 to 7.0.47 (#1348) 2023-01-16 10:29:47 +01:00
mitchellh/mapstructure [chore] update dependencies, bump to Go 1.19.1 (#826) 2022-09-28 18:30:40 +01:00
modern-go Update dependencies (#333) 2021-11-27 15:26:58 +01:00
oklog/ulid
opencontainers/runtime-spec [feature] Inherit resource limits from cgroups (#1336) 2023-01-17 20:59:04 +00:00
pelletier/go-toml [chore]: Bump github.com/gin-gonic/gin from 1.8.1 to 1.8.2 (#1286) 2022-12-27 08:29:42 +00:00
pkg/errors [feature] add rate limit middleware (#741) 2022-08-31 12:06:14 +02:00
pmezard/go-difflib
quasoft/memstore
remyoudompheng/bigfft migrate go version to 1.17 (#203) 2021-09-10 14:42:14 +02:00
robfig/cron/v3 [feature] Clean up/uncache remote media (#407) 2022-03-07 11:08:26 +01:00
rs/xid [chore] update dependencies, bump to Go 1.19.1 (#826) 2022-09-28 18:30:40 +01:00
sirupsen/logrus [chore] update dependencies, bump to Go 1.19.1 (#826) 2022-09-28 18:30:40 +01:00
spf13 [chore]: Bump github.com/spf13/viper from 1.13.0 to 1.14.0 (#1003) 2022-11-08 11:30:29 +01:00
stretchr/testify [chore] Test fixes (#788) 2022-08-31 17:31:21 +02:00
subosito/gotenv [chore] update dependencies, bump to Go 1.19.1 (#826) 2022-09-28 18:30:40 +01:00
superseriousbusiness [feature] media: add webp support (#1155) 2022-12-06 14:15:25 +01:00
tdewolff [chore] Bump github.com/tdewolff/minify/v2 from 2.12.1 to 2.12.4 (#985) 2022-11-07 11:24:09 +01:00
tmthrgd/go-hex
ugorji/go/codec [chore] Update all but bun libraries (#526) 2022-05-02 15:05:18 +02:00
ulule/limiter/v3 [feature] add rate limit middleware (#741) 2022-08-31 12:06:14 +02:00
uptrace/bun [chore] Bump database dependencies (#1164) 2022-11-28 11:19:39 +01:00
vmihailenco Update dependencies (#333) 2021-11-27 15:26:58 +01:00
wagslane/go-password-validator migrate go version to 1.17 (#203) 2021-09-10 14:42:14 +02:00
yuin/goldmark [chore/bugfix] Switch markdown from blackfriday to goldmark (#1267) 2022-12-16 12:20:22 +01:00