aboutsummaryrefslogtreecommitdiff
path: root/sqitch/sqlite/deploy/agent_status_add_processor_count.sql
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2023-03-24 09:45:10 +0000
committerChristopher Baines <mail@cbaines.net>2023-03-24 09:51:28 +0000
commitd6ae42f19691267d915cd66174436f33debabec0 (patch)
treebdcac7bd56cb06a2a62631e72564c7a51716cbf3 /sqitch/sqlite/deploy/agent_status_add_processor_count.sql
parent024761d432ff84e197b49846c71ac34f5703df38 (diff)
downloadbuild-coordinator-d6ae42f19691267d915cd66174436f33debabec0.tar
build-coordinator-d6ae42f19691267d915cd66174436f33debabec0.tar.gz
Add processor count to the agent status
This is useful when interpreting the load information.
Diffstat (limited to 'sqitch/sqlite/deploy/agent_status_add_processor_count.sql')
-rw-r--r--sqitch/sqlite/deploy/agent_status_add_processor_count.sql15
1 files changed, 15 insertions, 0 deletions
diff --git a/sqitch/sqlite/deploy/agent_status_add_processor_count.sql b/sqitch/sqlite/deploy/agent_status_add_processor_count.sql
new file mode 100644
index 0000000..5618809
--- /dev/null
+++ b/sqitch/sqlite/deploy/agent_status_add_processor_count.sql
@@ -0,0 +1,15 @@
+-- Deploy guix-build-coordinator:agent_status_add_processor_count to sqlite
+
+BEGIN;
+
+DROP TABLE agent_status;
+
+CREATE TABLE agent_status (
+ agent_id TEXT PRIMARY KEY ASC REFERENCES agents (id),
+ timestamp DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ status TEXT NOT NULL,
+ load_average_1min INTEGER,
+ processor_count INTEGER
+);
+
+COMMIT;