596 Commits

Author SHA1 Message Date
Christian Weichel
96b2a36540 [ws-daemon] Support GIT_SSL_CAINFO 2022-04-28 18:47:14 +05:30
Pavel Tumik
f9531f3915 [ws-daemon] update log message to be unique 2022-04-28 09:47:14 +05:30
Thomas Schubart
3914677ae3 Speed up edit-compile-run loop 2022-04-27 03:44:12 +05:30
JenTing Hsiao
9886276a90 Fix typo
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-04-26 22:42:38 +05:30
Manuel Alejandro de Brito Fontes
9b2cbd255c [ws-daemon] Remove missing cpuacct.usage file log 2022-04-26 16:56:38 +05:30
Manuel Alejandro de Brito Fontes
9e2f4acb68 Fix check logic for I/O limits 2022-04-25 20:08:37 +05:30
Manuel Alejandro de Brito Fontes
1b88c8058e Update go modules 2022-04-25 15:52:37 +05:30
Manuel Alejandro de Brito Fontes
74c5ec3977 Errorf does not support error-wrapping directive 2022-04-25 15:52:37 +05:30
Manuel Alejandro de Brito Fontes
bfa4c16da4 [ws-daemon] Check blkio throttle exists 2022-04-22 20:57:35 +05:30
Christian Weichel
8dd76ed762 [ws-daemon] Support config reload for IO limits 2022-04-21 05:08:33 +05:30
Manuel Alejandro de Brito Fontes
c81c93bb2b Update go modules 2022-04-21 04:33:33 +05:30
Manuel Alejandro de Brito Fontes
84c717cfe0 Manually write IO limits rather than using a library 2022-04-21 04:33:33 +05:30
Manuel Alejandro de Brito Fontes
7e1b76f9df Update go modules 2022-04-21 00:52:33 +05:30
Manuel Alejandro de Brito Fontes
50778029b0 Add support for software arrays 2022-04-21 00:52:33 +05:30
Christian Weichel
3063631f20 [ws-daemon] Regularly update cgroup v1 IO limits 2022-04-21 00:52:33 +05:30
Manuel Alejandro de Brito Fontes
bdb45ab341 Refactor I/O limit annotation 2022-04-21 00:52:33 +05:30
Thomas Schubart
d1ca55d699 Evacuate cgroup with both shift methods 2022-04-20 02:54:32 +05:30
utam0k
d027ab96df ws-daemon: align to decide if cgroup v2. 2022-04-20 02:54:32 +05:30
Thomas Schubart
d31bb31072 Fix io imits not written after workspace stop 2022-04-19 19:50:32 +05:30
Manuel Alejandro de Brito Fontes
747a4f5b35 Add debug messages related to I/O limits 2022-04-19 18:46:32 +05:30
Manuel Alejandro de Brito Fontes
1a3a50b138 [ws-daemon] Only limit storage device classes 2022-04-19 18:46:32 +05:30
Manuel Alejandro de Brito Fontes
8600bbd00e Update go modules 2022-04-19 13:20:31 +05:30
Manuel Alejandro de Brito Fontes
28db115fda Revert "[ws-daemon] Fix CPU limit annotation"
This reverts commit 3819d9227e5c86982675e17deda1322a5834aaec.
2022-04-19 04:07:31 +05:30
Manuel Alejandro de Brito Fontes
35e74604a7 Revert "Fix variable type"
This reverts commit ffe6f4865bd598c15def69756e970bdef007a4e1.
2022-04-19 04:07:31 +05:30
Thomas Schubart
775c941415 Add additional logging for io limiting 2022-04-14 22:05:27 +05:30
Manuel Alejandro de Brito Fontes
3204dd7a18 [ws-daemon] Remove warning when cpu.stat does not exists 2022-04-14 20:59:27 +05:30
Christian Weichel
aabbe6156b [ws-daemon] Improve cgroup plugin activation count 2022-04-14 19:26:27 +05:30
Christian Weichel
f2d27875ca [ws-daemon] Apply IO limits continuosly 2022-04-13 16:58:26 +05:30
Christian Weichel
7f68f2374c [nsinsider] Make veth0 match container MTU 2022-04-13 15:43:26 +05:30
Manuel Alejandro de Brito Fontes
9fbd4bfd35 [supervisor] Configure new safe.directory setting 2022-04-13 13:20:26 +05:30
Christian Weichel
7853926dc0 [ws-daemon] Introduce IO limiting 2022-04-13 03:49:25 +05:30
Christian Weichel
94e147b90e [ws-daemon] Enable workspace IP forwarding
to make the new nftables setup work
2022-04-13 03:45:25 +05:30
Christian Weichel
274a435f11 [ws-daemon] Enable workspace IP forwarding
to make the new nftables setup work
2022-04-13 01:57:25 +05:30
utam0k
fa49f33dfa Use veth instead of slirp4netns while preventing impact on supervisor. 2022-04-11 16:07:24 +05:30
utam0k
f046782319 ws-dameon: implement the SetupPairVeths function. 2022-04-11 16:07:24 +05:30
Anton Kosyakov
b3ea6db43e Revert "ws-dameon: implement the SetupPairVeths function."
This reverts commit a960121dce48a80c3e5919f4fe7f056781ef9504.
2022-04-08 18:19:21 +05:30
Anton Kosyakov
5bdf47767e Revert "ws-daemon: Use a pair of veths instead of slirp4netns"
This reverts commit 4fef102695684ad3e98ed90c7f368d79aa1e304d.
2022-04-08 18:19:21 +05:30
utam0k
4fef102695 ws-daemon: Use a pair of veths instead of slirp4netns
Pod Network Namespace(ring1)
+------------------------------------------------+
|                                                |
|       Workspace Network Namesapce(ring2)       |
| +--------------------------------------------+ |
| |                                            | |
| |              default via veth0             | |
| |                                            | |
| |                                            | |
| |     +------+  +--------------+             | |
| |     |  lo  |  |    ceth0     | 10.0.2.2/24 | |
| |     +------+  +--^--------+--+             | |
| |                  |        |                | |
| +------------------+--------+----------------+ |
|                    |        |                  |
|                 +--+--------v--+               |
|   +-----------> |    veth0     | 10.0.2.1/24   |
|   |             +-----------+--+               |
|   |                         |                  |
|   |          +--------------v-----+            |
|   |          |                    |            |
|   |          |      nftables      |            |
|   |          |   (ip masquerade)  |            |
|   |          +--------------+-----+            |
|   |                         |                  |
|   |   +------+  +-----------v--+               |
|   |   |  lo  |  |     eth0     |               |
|   |   +------+  +--^--------+--+               |
|   |                |        |                  |
|   |          +-----+--------v-----+            |
|   |          |                    |            |
|   +----------+      nftables      |            |
| if with port | (port redirecter)  |            |
|              +-----^--------+-----+            |
|                    |        |                  |
+--------------------+--------+------------------+
                     |        |
                     |        |
                     |        v
                    o u t s i d e
2022-04-08 13:41:21 +05:30
utam0k
a960121dce ws-dameon: implement the SetupPairVeths function. 2022-04-08 13:41:21 +05:30
Thomas Schubart
3bf6664eac Use checkout location during content init 2022-04-08 00:29:21 +05:30
Thomas Schubart
bf08a52c97 Enable fuse device on cgroup v2 2022-04-04 07:39:17 +05:30
Christian Weichel
9d3669713b [ws-daemon] Remove tar file size limit 2022-03-31 13:58:14 +05:30
Manuel Alejandro de Brito Fontes
e894487df2 [ws-daemon] Configure readiness probe 2022-03-29 22:20:13 +05:30
Manuel Alejandro de Brito Fontes
698ad17d2b Update go dependencies 2022-03-27 20:56:10 +05:30
Prince Rachit Sinha
ffe6f4865b Fix variable type 2022-03-16 17:36:23 +05:30
Christian Weichel
3819d9227e [ws-daemon] Fix CPU limit annotation 2022-03-16 17:36:23 +05:30
Sven Efftinge
cc2f3b30fe [multi-repo] Support prebuilds on multi-repo setup 2022-03-10 15:46:17 +05:30
utam0k
f3a51dc6d6 ws-daemon: Align cgroupv2 decisions with others 2022-03-08 16:15:15 +05:30
utam0k
abe4adfca8 Disable cache reclaim when cgroup v2.
Because cache reclaim supports only when using cgroup v1.
2022-03-08 16:15:15 +05:30
Thomas Schubart
409fa7154f Ensure cgroup v2 cpu controller is enabled 2022-03-08 05:44:14 +05:30