243 Commits

Author SHA1 Message Date
Christian Weichel
5702a9c74c [iws] Prepare cgroup when prearing for user NS 2022-03-04 04:08:11 +05:30
Christian Weichel
b6a851ebda [ws-daemon] Add EvacuateCGroup support to IWS 2022-03-04 04:08:11 +05:30
Manuel Alejandro de Brito Fontes
a563242ef3 Update go dependencies 2022-03-03 18:46:10 +05:30
utam0k
dade734bf1 Clarify the size ot the cfs_period_us. 2022-02-28 21:37:07 +05:30
utam0k
be8c2f0b89 When cpu.cfs_quota_us is negative, it is always set to the maximum value.
https://elixir.bootlin.com/linux/v5.16/source/kernel/sched/core.c#L10292
2022-02-28 21:37:07 +05:30
utam0k
7524d3f9d2 Since max is not used in the cpu subsystem of cgroup, delete it. 2022-02-28 21:37:07 +05:30
utam0k
595339f4b9 Add some unit tests for the cpu subsystem of cgroup. 2022-02-28 21:37:07 +05:30
utam0k
2b47beeae3 Unify the values of each cgroup for units when reading them. 2022-02-28 21:37:07 +05:30
utam0k
1e7d5edbd9 Deal with when cpu.cfs_quota_us is negative 2022-02-28 21:37:07 +05:30
utam0k
e389d8d881 ws-daemon: Add a simple unit test for cputlimit. 2022-02-28 21:37:07 +05:30
Manuel Alejandro de Brito Fontes
a87a1c8fa9 [ws-daemon] Improve cache error handling 2022-02-23 16:21:03 +05:30
Thomas Schubart
7ca61843d0 Log parent quota 2022-02-22 23:46:03 +05:30
utam0k
572baded7d nsinsider: Match the usage of nsinsider to the current codebase. 2022-02-17 14:53:57 +01:00
utam0k
ba8b45c394 ws-daemon: Add the unit tests of readLimit(). 2022-02-13 16:50:34 +01:00
utam0k
db7f437bc2 ws-daemon: Add the unit tests of readCache(). 2022-02-13 16:50:34 +01:00
utam0k
ab9f9cc2b2 ws-daemon: Use ParseUint instead of ParseInt because the value of cgroup isn't negative. 2022-02-13 16:50:34 +01:00
Christian Weichel
1daa0db08f [ws-daemon] Add page-cache reclaim 2022-02-10 21:38:32 +01:00
Thomas Schubart
890f04c27d Log cfs values 2022-02-10 18:48:32 +01:00
Thomas Schubart
89950b798b Fix spelling mistake and use cpuLimit identifier 2022-02-09 17:37:31 +01:00
Christian Weichel
ee3bd40e8b [ws-daemon] Support git lfs 2022-02-09 15:40:30 +01:00
Christian Weichel
462e269689 [ws-daemon] Integrate new CPU limiter 2022-02-08 16:36:30 +01:00
Christian Weichel
f35229af62 [ws-daemon] Introduce new global CPU limiter 2022-02-08 16:36:30 +01:00
Mads Hartmann
dd8b5b728a Remove OWNERS related files
Fixes https://github.com/gitpod-io/ops/issues/844
2022-02-08 09:15:30 +01:00
Thomas Schubart
4eefd2ab71 Switch to our own libseccomp bindings 2022-02-04 08:46:26 +01:00
Thomas Schubart
155e88ca60 Log correct fs 2022-01-26 20:11:18 +01:00
Manuel Alejandro de Brito Fontes
7640c60b6f [installer] Do not start binaries in verbose mode 2022-01-25 16:53:17 +01:00
Manuel Alejandro de Brito Fontes
82d786e2bb Remove ws-scheduler 2022-01-24 20:08:17 +01:00
Thomas Schubart
c7ef974409 Switch to prometheus collectors package
The currently used functions have been deprecated.
2022-01-24 16:44:16 +01:00
utam0k
3f295e32ad ws-daemon: Name the magic exit code to make it common 2022-01-24 13:09:16 +01:00
Christian Weichel
990dd33e86 [content-init] Propagate sensible error messages
when the content initializer fails
2022-01-21 14:03:13 +01:00
Christian Weichel
0a47ea41ce [content-init] Ensure .gitpod path is available 2022-01-21 11:44:13 +01:00
Christian Weichel
5a3ecbbd23 Revert "[ws-daemon] Tune down findHostPID errors"
This reverts commit d0155607c3635bc331574f93bfa2ae3fedb2788d.
2022-01-20 12:12:12 +01:00
Kyle Brennan
cf89cc7618 [ws-daemon] log error for content init failures 2022-01-19 04:58:11 +01:00
utam0k
e443a70422 ws-daemon: add dependency for filepath-securejoin. 2022-01-18 18:42:11 +01:00
utam0k
99b5542b64 ws-daemon: Prevent unnecessary process creation by using lib of runc instead of cmd. 2022-01-18 18:42:11 +01:00
Christian Weichel
d0155607c3 [ws-daemon] Tune down findHostPID errors
because they're not really errors but rather a race between the proc
crawling during PID translation, and short-lived processes.
2022-01-18 15:07:11 +01:00
Manuel Alejandro de Brito Fontes
0681a4a35e [ws-manager] Improve workspaces PodAffinity 2022-01-18 09:29:11 +01:00
ArthurSens
37c2d1ea77 component/common-go/tracing: Add version tags to all spans
Signed-off-by: ArthurSens <arthursens2005@gmail.com>
2021-12-08 11:30:33 +01:00
Manuel Alejandro de Brito Fontes
1c0c677313 Update alpine to 3.15 2021-12-01 10:10:27 +01:00
Christian Weichel
5a566b9c7f [ws-daemon] Umount dangling mask mounts 2021-11-19 11:28:16 +01:00
Cornelius A. Ludmann
a7166daa72 Set version in Go components during build time 2021-11-11 10:23:08 +01:00
Gero Posmyk-Leinemann
2f55599b1e [ws-daemon] Make 'takeSnapshot' return early
The motivation here is to get the URL as identifiable attribute back to the caller so we can make this look re-entrant from the outside.
For backwards compatibilities sake, there is a "returnImmediately" flag on the call that needs to be set for the early return.
2021-11-04 12:18:12 +01:00
Simon Emms
a034b44076 [ws-daemon]: json marshal the FSShift value from the int to string value 2021-10-28 13:37:05 +02:00
Christian Weichel
cc38b8caff [workspacekit] Support workspace-wide netns 2021-10-26 20:42:04 +02:00
Christian Weichel
264331a1ae [nsenter] Move nsenter to common-go 2021-10-21 21:46:59 +02:00
Manuel Alejandro de Brito Fontes
1854bfae70 Update controller-runtime and k8s go dependencies 2021-10-14 12:14:01 -03:00
Manuel Alejandro de Brito Fontes
1eb8f86a7b Refactor GRPC TLS connection default 2021-10-12 16:09:59 -03:00
Simon Emms
64cb84b1cc [installer]: configure leeway to build installer 2021-10-12 10:44:59 -03:00
Christian Weichel
8efac73cba [prow] Add labels to OWNERS files 2021-10-12 09:01:58 -03:00
Prince Rachit Sinha
27a6a66dd0 Use OWI object to get all relevant fields 2021-10-08 06:51:55 -03:00