diff options
author | Christopher Baines <mail@cbaines.net> | 2023-03-24 09:45:10 +0000 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2023-03-24 09:51:28 +0000 |
commit | d6ae42f19691267d915cd66174436f33debabec0 (patch) | |
tree | bdcac7bd56cb06a2a62631e72564c7a51716cbf3 /sqitch/sqlite/deploy/agent_status_add_processor_count.sql | |
parent | 024761d432ff84e197b49846c71ac34f5703df38 (diff) | |
download | build-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.sql | 15 |
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; |