summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorJames E. Blair <jim@acmegating.com>2021-09-13 16:20:01 -0700
committerJames E. Blair <jim@acmegating.com>2021-09-27 11:54:33 -0700
commit7d7d2f9f2ace827ae1976ae2f8f54e99c7848fef (patch)
tree47f78742e5fbf771dabd713f26abfbb74a20b8cc /etc
parent0928c397937da4129122b00d2288e582bc46aabc (diff)
downloadzuul-7d7d2f9f2ace827ae1976ae2f8f54e99c7848fef.tar.gz
Remove time database
We can obtain the same information from the SQL database now, so do that and remove the filesystem-based time database. This will help support multiple schedulers (as they will all have access to the same data). Nothing in the scheduler uses the state directory anymore, so clean up the docs around that. The executor still has a state dir where it may install ansible-related files. The SQL query was rather slow in practice because it created a temporary table since it was filtering mostly by buildset fields then sorting by build.id. We can sort by buildset.id and get nearly the same results (equally valid from our perspective) much faster. In some configurations under postgres, we may see a performance variation in the run-time of the query. In order to keep the time estimation out of the critical path of job launches, we perform the SQL query asynchronously. We may be able to remove this added bit of complexity once the scale-out-scheduler work is finished (and/or we we further define/restrict our database requirements). Change-Id: Id3c64be7a05c9edc849e698200411ad436a1334d
Diffstat (limited to 'etc')
-rw-r--r--etc/zuul.conf-sample1
1 files changed, 0 insertions, 1 deletions
diff --git a/etc/zuul.conf-sample b/etc/zuul.conf-sample
index 040eef826..d0db70453 100644
--- a/etc/zuul.conf-sample
+++ b/etc/zuul.conf-sample
@@ -25,7 +25,6 @@ password=secret
tenant_config=/etc/zuul/main.yaml
log_config=/etc/zuul/logging.conf
pidfile=/var/run/zuul/zuul.pid
-state_dir=/var/lib/zuul
prometheus_port=9091
;prometheus_addr=0.0.0.0