gitea/routers/api/actions
Giteabot b1ad8ccb73
Reduce memory usage for chunked artifact uploads to MinIO (#31325) (#31338)
Backport #31325 by @bohde

When using the MinIO storage driver for Actions Artifacts, we found that
the chunked artifact required significantly more memory usage to both
upload and merge than the local storage driver. This seems to be related
to hardcoding a value of `-1` for the size to the MinIO client [which
has a warning about memory usage in the respective
docs](https://pkg.go.dev/github.com/minio/minio-go/v7#Client.PutObject).
Specifying the size in both the upload and merge case reduces memory
usage of the MinIO client.

Co-authored-by: Rowan Bohde <rowan.bohde@gmail.com>
Co-authored-by: Kyle D <kdumontnu@gmail.com>
2024-06-12 16:25:46 +02:00
..
ping Upgrade Go 1.22 and upgrade dependency (#29869) 2024-03-17 15:40:05 +00:00
runner Remove deprecated stuff for runners (#30930) (#30931) 2024-05-10 16:57:30 +08:00
actions.go Refactor web package and context package (#25298) 2023-06-18 09:59:09 +02:00
artifact.pb.go Actions Artifacts v4 backend (#28965) 2024-03-02 09:12:17 +00:00
artifact.proto Actions Artifacts v4 backend (#28965) 2024-03-02 09:12:17 +00:00
artifacts_chunks.go Reduce memory usage for chunked artifact uploads to MinIO (#31325) (#31338) 2024-06-12 16:25:46 +02:00
artifacts_utils.go Actions Artifacts v4 backend (#28965) 2024-03-02 09:12:17 +00:00
artifacts.go Refactor AppURL usage (#30885) (#30891) 2024-05-08 13:34:43 +00:00
artifactsv4.go Refactor AppURL usage (#30885) (#30891) 2024-05-08 13:34:43 +00:00