File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2967,10 +2967,12 @@ CREATE TABLE "ATLAS_PANDA"."WORKER_NODE"(
29672967 "TOTAL_MEMORY" number(9,0),
29682968 "LAST_SEEN" date,
29692969 "TOTAL_LOCAL_DISK" number(9,0),
2970+ "CPU_MODEL_NORMALIZED" VARCHAR2(128 BYTE),
29702971 CONSTRAINT PK_WORKER_NODE PRIMARY KEY ("SITE", "HOST_NAME", "CPU_MODEL")
29712972)ORGANIZATION INDEX COMPRESS 1;
29722973
29732974CREATE INDEX IDX_WORKER_NODE_LAST_SEEN ON "ATLAS_PANDA"."WORKER_NODE"("LAST_SEEN");
2975+ CREATE INDEX "ATLAS_PANDA"."IDX_WORKER_NODE_CPU_MODEL_NORM" ON "ATLAS_PANDA"."WORKER_NODE" ("CPU_MODEL_NORMALIZED");
29742976
29752977-- Table Comment
29762978COMMENT ON TABLE "ATLAS_PANDA"."WORKER_NODE" IS 'Stores information about worker nodes seen by PanDA pilots';
@@ -3036,9 +3038,12 @@ CREATE TABLE "ATLAS_PANDA"."CPU_BENCHMARKS" (
30363038 "SITE" VARCHAR2(128),
30373039 "SCORE_PER_CORE" NUMBER(10,2),
30383040 "TIMESTAMP" DATE,
3039- "SOURCE" VARCHAR2(256)
3041+ "SOURCE" VARCHAR2(256),
3042+ "CPU_TYPE_NORMALIZED" VARCHAR2(128 BYTE)
30403043);
30413044
3045+ CREATE INDEX "ATLAS_PANDA"."IDX_WORKER_NODE_CPU_TYPE_NORM" ON "ATLAS_PANDA"."CPU_BENCHMARKS" ("CPU_TYPE_NORMALIZED");
3046+
30423047--------------------------------------------------------
30433048-- DDL for Table WORKER_NODE_METRICS
30443049--------------------------------------------------------
Original file line number Diff line number Diff line change 11-- patch to be used to upgrade from version 0.0.29
22-- Drop the old procedure
3- DROP PROCEDURE IF EXISTS doma_panda .update_worker_node_map ();
3+ DROP PROCEDURE IF EXISTS doma_panda .update_worker_node_map ();
44
55-- Drop the old table
66DROP TABLE IF EXISTS doma_panda .worker_node_map ;
@@ -87,3 +87,18 @@ ALTER PROCEDURE doma_panda.update_worker_node_metrics() OWNER TO panda;
8787SELECT cron .unschedule (
8888 (SELECT jobid FROM cron .job WHERE command = ' CALL doma_panda.update_worker_node_map()' )
8989);
90+
91+
92+ -- Add columns
93+ ALTER TABLE doma_panda .worker_node
94+ ADD COLUMN cpu_model_normalized VARCHAR (128 );
95+
96+ ALTER TABLE doma_panda .cpu_benchmarks
97+ ADD COLUMN cpu_type_normalized VARCHAR (128 );
98+
99+ -- Indices
100+ CREATE INDEX idx_worker_node_cpu_model_norm
101+ ON doma_panda .worker_node (cpu_model_normalized);
102+
103+ CREATE INDEX idx_worker_node_cpu_type_norm
104+ ON doma_panda .cpu_benchmarks (cpu_type_normalized);
Original file line number Diff line number Diff line change @@ -2885,10 +2885,12 @@ CREATE TABLE worker_node (
28852885 " total_memory" BIGINT ,
28862886 " last_seen" TIMESTAMP ,
28872887 " total_local_disk" BIGINT ,
2888+ " cpu_model_normalized" VARCHAR (128 ),
28882889 PRIMARY KEY (" site" , " host_name" , " cpu_model" )
28892890);
28902891
28912892CREATE INDEX idx_worker_node_last_seen ON worker_node (" last_seen" );
2893+ CREATE INDEX idx_worker_node_cpu_model_norm ON worker_node (" cpu_model_normalized" );
28922894
28932895COMMENT ON TABLE worker_node IS ' Stores information about worker nodes seen by PanDA pilots' ;
28942896COMMENT ON COLUMN worker_node."site" IS ' The name of the site (not PanDA queue) where the worker node is located.' ;
@@ -2964,10 +2966,12 @@ CREATE TABLE cpu_benchmarks (
29642966 " site" VARCHAR (128 ),
29652967 " score_per_core" NUMERIC (10 ,2 ),
29662968 " timestamp" TIMESTAMP ,
2967- " source" VARCHAR (256 )
2969+ " source" VARCHAR (256 ),
2970+ " cpu_type_normalized" VARCHAR (128 )
29682971);
29692972ALTER TABLE cpu_benchmarks OWNER TO panda;
29702973
2974+ CREATE INDEX idx_worker_node_cpu_type_norm ON cpu_benchmarks (" cpu_type_normalized" );
29712975
29722976CREATE TABLE worker_node_metrics (
29732977 " site" VARCHAR (128 ),
You can’t perform that action at this time.
0 commit comments