@@ -14,9 +14,39 @@ For troubleshooting Jenkins in particular it's often to helpful to ssh
14
14
in to the worker nodes and poke around the workspaces, see what
15
15
processes are running, that kind of thing.
16
16
17
- You can also delete files if we've run out of disk space, though our
18
- first line of defense on this is the "Clear Workspace" button in the
19
- Jenkins UI.
17
+ ## Monitoring disk space
18
+
19
+ A member of the Scala team should check the free disk space numbers
20
+ on all nodes about every 3 to 4 days. We should always have at
21
+ least 10G free on all nodes.
22
+
23
+ A quick way to keep an eye on disk space is by visiting
24
+ https://scala-ci.typesafe.com/computer/ . You'll need to launch
25
+ any offline nodes in order to get a disk space number.
26
+
27
+ All of the nodes have a tendency to gradually run out of space, and
28
+ it's also possible to have a temporary space issue, e.g. if a
29
+ community build is run on a lot of different Scala versions.
30
+
31
+ Tips for addressing gradually dwindling free space:
32
+
33
+ * on jenkins-worker-windows-publish, the usual culprit is
34
+ ` /home/tmp ` . ssh in and just blow away everything in there
35
+ (but not while a job is running!).
36
+ * on jenkins-master, the culprit may vary. Usually the problem
37
+ is under ` /var/lib/jenkins ` . Poke around with commands like
38
+ ` find ` and ` du ` and see where the space is going.
39
+ (A frequent culprit prior to fall 2016 was multi-gigabyte log
40
+ files generated by failed PR validation jobs, but we think
41
+ this was fixed by https://github.com/scala/scala-jenkins-infra/pull/183 .)
42
+
43
+ Tips for addressing a temporary free-space issue on the behemoths:
44
+
45
+ * Usually the problem is in ` /home/jenkins ` .
46
+ * You can use the "Clear Workspace" button in the Jenkins UI.
47
+ * Alternatively, on the command line, in ` /home/jenkins/workspace ` ,
48
+ you can blow away ` */{dbuild,clones,target}-* ` . (Not while a
49
+ community build job is running!)
20
50
21
51
## Updating the scala-jenkins-infra cookbook
22
52
0 commit comments