Commit c5d5f3a
committed
Prevent massive amounts of outgoing stderr / stdout
We've noticed some bad resource usage patterns in production which
manifests as 100% CPU usage, split evenly between system and user.
My hypothesis is that people have written some infinite loop that
prints output. We are able to transfer that data from the process to the
worker to the coordinator/ui to nginx to the user. However, the user
can't actually consume 10+ MiB of output.
There's also a possibility that Docker has effectively an infinite
buffer for stdout/stderr. In that case, we might just be bloating up
memory somewhere.
This is intended as a first step, to find people that are legitimately
trying to produce a bunch of output. From there, we could potentially
tweak the code to allow people to opt-in to generating even more data.1 parent 2ba73e4 commit c5d5f3a
2 files changed
+74
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4055 | 4055 | | |
4056 | 4056 | | |
4057 | 4057 | | |
| 4058 | + | |
| 4059 | + | |
| 4060 | + | |
| 4061 | + | |
| 4062 | + | |
| 4063 | + | |
| 4064 | + | |
| 4065 | + | |
| 4066 | + | |
| 4067 | + | |
| 4068 | + | |
| 4069 | + | |
| 4070 | + | |
| 4071 | + | |
| 4072 | + | |
| 4073 | + | |
| 4074 | + | |
| 4075 | + | |
| 4076 | + | |
| 4077 | + | |
| 4078 | + | |
| 4079 | + | |
| 4080 | + | |
| 4081 | + | |
| 4082 | + | |
| 4083 | + | |
| 4084 | + | |
| 4085 | + | |
| 4086 | + | |
| 4087 | + | |
| 4088 | + | |
| 4089 | + | |
| 4090 | + | |
4058 | 4091 | | |
4059 | 4092 | | |
4060 | 4093 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
612 | 612 | | |
613 | 613 | | |
614 | 614 | | |
615 | | - | |
616 | | - | |
617 | | - | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
618 | 635 | | |
619 | 636 | | |
620 | | - | |
| 637 | + | |
621 | 638 | | |
622 | 639 | | |
623 | 640 | | |
624 | 641 | | |
625 | 642 | | |
626 | 643 | | |
627 | 644 | | |
| 645 | + | |
628 | 646 | | |
629 | 647 | | |
630 | 648 | | |
631 | 649 | | |
632 | 650 | | |
| 651 | + | |
633 | 652 | | |
634 | 653 | | |
635 | 654 | | |
| |||
1213 | 1232 | | |
1214 | 1233 | | |
1215 | 1234 | | |
| 1235 | + | |
| 1236 | + | |
1216 | 1237 | | |
1217 | 1238 | | |
1218 | 1239 | | |
| |||
1221 | 1242 | | |
1222 | 1243 | | |
1223 | 1244 | | |
| 1245 | + | |
1224 | 1246 | | |
1225 | 1247 | | |
| 1248 | + | |
| 1249 | + | |
1226 | 1250 | | |
1227 | 1251 | | |
1228 | 1252 | | |
1229 | 1253 | | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
1230 | 1260 | | |
1231 | 1261 | | |
1232 | 1262 | | |
1233 | 1263 | | |
1234 | 1264 | | |
| 1265 | + | |
| 1266 | + | |
1235 | 1267 | | |
1236 | 1268 | | |
1237 | 1269 | | |
| |||
1240 | 1272 | | |
1241 | 1273 | | |
1242 | 1274 | | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
1243 | 1280 | | |
1244 | 1281 | | |
1245 | 1282 | | |
| |||
0 commit comments