Skip to content

Commit c7f5880

Browse files
Merge pull request #97 from PanDAWMS/0.0.26
[ATLASPANDA-1386] DB updates to worker node table
2 parents c1a9d21 + e1215c1 commit c7f5880

File tree

4 files changed

+26
-7
lines changed

4 files changed

+26
-7
lines changed

schema/oracle/ATLAS_PANDA.sql

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
-- IMPORTANT: Please always update to up2date version
3535
--------------------------------------------------------
3636

37-
INSERT INTO "ATLAS_PANDA"."PANDADB_VERSION" VALUES ('SERVER', 0, 0, 25);
38-
INSERT INTO "ATLAS_PANDA"."PANDADB_VERSION" VALUES ('JEDI', 0, 0, 25);
37+
INSERT INTO "ATLAS_PANDA"."PANDADB_VERSION" VALUES ('SERVER', 0, 0, 26);
38+
INSERT INTO "ATLAS_PANDA"."PANDADB_VERSION" VALUES ('JEDI', 0, 0, 26);
3939

4040
--------------------------------------------------------
4141
-- DDL for Sequence FILESTABLE4_ROW_ID_SEQ
@@ -2954,6 +2954,7 @@ CREATE TABLE "ATLAS_PANDA"."WORKER_NODE"(
29542954
"CLOCK_SPEED" number(9,2),
29552955
"TOTAL_MEMORY" number(9,0),
29562956
"LAST_SEEN" date,
2957+
"TOTAL_LOCAL_DISK" number(9,0),
29572958
CONSTRAINT PK_WORKER_NODE PRIMARY KEY ("SITE", "HOST_NAME", "CPU_MODEL")
29582959
)ORGANIZATION INDEX COMPRESS 1;
29592960

@@ -2972,11 +2973,10 @@ COMMENT ON COLUMN "ATLAS_PANDA"."WORKER_NODE"."CORES_PER_SOCKET" IS 'Number of C
29722973
COMMENT ON COLUMN "ATLAS_PANDA"."WORKER_NODE"."THREADS_PER_CORE" IS 'Number of threads per CPU core.';
29732974
COMMENT ON COLUMN "ATLAS_PANDA"."WORKER_NODE"."CPU_ARCHITECTURE" IS 'The CPU architecture (e.g., x86_64, ARM).';
29742975
COMMENT ON COLUMN "ATLAS_PANDA"."WORKER_NODE"."CPU_ARCHITECTURE_LEVEL" IS 'The specific level/version of the CPU architecture.';
2975-
COMMENT ON COLUMN "ATLAS_PANDA"."WORKER_NODE"."CLOCK_SPEED" IS 'Clock speed of the CPU in GHz.';
2976+
COMMENT ON COLUMN "ATLAS_PANDA"."WORKER_NODE"."CLOCK_SPEED" IS 'Clock speed of the CPU in MHz.';
29762977
COMMENT ON COLUMN "ATLAS_PANDA"."WORKER_NODE"."TOTAL_MEMORY" IS 'Total amount of RAM in MB.';
29772978
COMMENT ON COLUMN "ATLAS_PANDA"."WORKER_NODE"."LAST_SEEN" IS 'Timestamp of the last time the worker node was active.';
2978-
2979-
2979+
COMMENT ON COLUMN "ATLAS_PANDA"."WORKER_NODE"."TOTAL_LOCAL_DISK" IS 'Total local disk in GB.';
29802980
--------------------------------------------------------
29812981
-- DDL for Table CPU_BENCHMARKS
29822982
--------------------------------------------------------
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
-- patch to be used to upgrade from version 0.0.25
2+
ALTER TABLE doma_panda.worker_node
3+
ADD COLUMN total_local_disk BIGINT;
4+
5+
COMMENT ON COLUMN doma_panda.worker_node.clock_speed IS E'Clock speed of the CPU in MHz.';
6+
COMMENT ON COLUMN doma_panda.worker_node.total_local_disk IS E'Total local disk in GB.';
7+
8+
UPDATE doma_panda.pandadb_version
9+
SET major=0, minor=0, patch=26
10+
WHERE component='JEDI';
11+
12+
UPDATE doma_panda.pandadb_version
13+
SET major=0, minor=0, patch=26
14+
WHERE component='SERVER';
15+
16+
COMMIT;

schema/postgres/sqls/pg_PANDA_TABLE.sql

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2871,6 +2871,7 @@ CREATE TABLE worker_node (
28712871
"clock_speed" NUMERIC(9,2),
28722872
"total_memory" BIGINT,
28732873
"last_seen" TIMESTAMP,
2874+
"total_local_disk" BIGINT,
28742875
PRIMARY KEY ("site", "host_name", "cpu_model")
28752876
);
28762877

@@ -2886,9 +2887,11 @@ COMMENT ON COLUMN worker_node."cores_per_socket" IS 'Number of CPU cores per phy
28862887
COMMENT ON COLUMN worker_node."threads_per_core" IS 'Number of threads per CPU core.';
28872888
COMMENT ON COLUMN worker_node."cpu_architecture" IS 'The CPU architecture (e.g., x86_64, ARM).';
28882889
COMMENT ON COLUMN worker_node."cpu_architecture_level" IS 'The specific level/version of the CPU architecture.';
2889-
COMMENT ON COLUMN worker_node."clock_speed" IS 'Clock speed of the CPU in GHz.';
2890+
COMMENT ON COLUMN worker_node."clock_speed" IS 'Clock speed of the CPU in MHz.';
28902891
COMMENT ON COLUMN worker_node."total_memory" IS 'Total amount of RAM in MB.';
28912892
COMMENT ON COLUMN worker_node."last_seen" IS 'Timestamp of the last time the worker node was active.';
2893+
COMMENT ON COLUMN worker_node."total_local_disk" IS 'Total local disk in GB.';
2894+
28922895

28932896
ALTER TABLE worker_node OWNER TO panda;
28942897

schema/postgres/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.25
1+
0.0.26

0 commit comments

Comments
 (0)