summaryrefslogtreecommitdiff
path: root/tests/fixtures/zuul-disk-accounting.conf
diff options
context:
space:
mode:
authorClint Byrum <clint@fewbar.com>2017-07-20 16:36:27 -0700
committerClint Byrum <clint@fewbar.com>2017-07-27 15:15:05 -0700
commitdc8a090c4cc5d68c60588c2778b60f6f918b9c1a (patch)
treeeb7c8548e92025e5d812dce580a9f991efb2eead /tests/fixtures/zuul-disk-accounting.conf
parented4a75ca160aef5429cb5320943bb3a976585aa5 (diff)
downloadzuul-dc8a090c4cc5d68c60588c2778b60f6f918b9c1a.tar.gz
Monitor job root and kill over limit jobs
If a job were to be pointed at an abnormally large git repository (or a maliciously large one), a clone would fill the disk. Or anything else that might happen that writes data onto the executor disk. We run a single thread periodically running du on the root of all jobs on this executor. This is called the DiskAccountant. We set a config item per executor of the limit per job. This won't actually save a server from a full disk if many thousands of concurrent changes are submitted, but this will prevent any accidental filling of the disk, and make malicious disk filling much harder. We also ignore hard links from the merge root, which will exempt bits cloned from the merge root from disk accounting. Change-Id: I415e5930cc3ebe2c7e1a84316e78578d6b9ecf30 Story: 2000879 Task: 3504
Diffstat (limited to 'tests/fixtures/zuul-disk-accounting.conf')
-rw-r--r--tests/fixtures/zuul-disk-accounting.conf28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/fixtures/zuul-disk-accounting.conf b/tests/fixtures/zuul-disk-accounting.conf
new file mode 100644
index 000000000..b0ae48e52
--- /dev/null
+++ b/tests/fixtures/zuul-disk-accounting.conf
@@ -0,0 +1,28 @@
+[gearman]
+server=127.0.0.1
+
+[scheduler]
+tenant_config=main.yaml
+
+[merger]
+git_dir=/tmp/zuul-test/merger-git
+git_user_email=zuul@example.com
+git_user_name=zuul
+zuul_url=http://zuul.example.com/p
+
+[executor]
+git_dir=/tmp/zuul-test/executor-git
+disk_limit_per_job=1
+
+[connection gerrit]
+driver=gerrit
+server=review.example.com
+user=jenkins
+sshkey=fake_id_rsa_path
+
+[connection smtp]
+driver=smtp
+server=localhost
+port=25
+default_from=zuul@example.com
+default_to=you@example.com