#I was wondering if it is possible for

1 messages ยท Page 1 of 1 (latest)

versed lagoon
abstract wasp
#

And it would require setting up cgroups ahead of time on the buildkit host

versed lagoon
#

Sneaky ๐Ÿ˜„ Is that a global setting i.e all builds would have those limits or configurable per build? If so, can we make it configurable via Dagger API?

abstract wasp
# versed lagoon Sneaky ๐Ÿ˜„ Is that a global setting i.e all builds would have those limits or con...

It would be per-build I believe. It's technically possible to expose it in the Dagger API but we have been generally hesitant to directly expose APIs like this that rely on something on the host being setup beforehand. The problem being that it results in queries that work on one host but not another. That being said, it probably would be possible to expose this, I just think we'd have to look into presenting as an API like "limit query to x cpus, N MB memory" rather than "have query use this cgroup setup ahead of time on the host"