Skip to content

Commit 3dfb931

Browse files
Merge pull request #106 from PanDAWMS/v0.0.29
V0.0.29
2 parents 920655d + 2d64ada commit 3dfb931

5 files changed

Lines changed: 39 additions & 8 deletions

File tree

schema/oracle/ATLAS_PANDA.sql

Lines changed: 11 additions & 6 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, 28);
38-
INSERT INTO "ATLAS_PANDA"."PANDADB_VERSION" VALUES ('JEDI', 0, 0, 28);
37+
INSERT INTO "ATLAS_PANDA"."PANDADB_VERSION" VALUES ('SERVER', 0, 0, 29);
38+
INSERT INTO "ATLAS_PANDA"."PANDADB_VERSION" VALUES ('JEDI', 0, 0, 29);
3939

4040
--------------------------------------------------------
4141
-- DDL for Sequence FILESTABLE4_ROW_ID_SEQ
@@ -203,7 +203,10 @@ CREATE TABLE "ATLAS_PANDA"."JEDI_DATASET_LOCALITY"
203203
"BLACKLISTED_READ" CHAR(1 BYTE),
204204
"BLACKLISTED_WRITE" CHAR(1 BYTE),
205205
"SPACE_EXPIRED" NUMBER(11,0),
206-
"SPACE_TIMESTAMP" TIMESTAMP (0)
206+
"SPACE_TIMESTAMP" TIMESTAMP (0),
207+
"DETAILED_STATUS" CLOB
208+
CONSTRAINT detailed_status_is_json
209+
CHECK ("DETAILED_STATUS" IS JSON) ENABLE
207210
) ;
208211

209212
COMMENT ON COLUMN "ATLAS_PANDA"."DDM_ENDPOINT"."DDM_ENDPOINT_NAME" IS 'DDM endpoint name';
@@ -219,6 +222,7 @@ CREATE TABLE "ATLAS_PANDA"."JEDI_DATASET_LOCALITY"
219222
COMMENT ON COLUMN "ATLAS_PANDA"."DDM_ENDPOINT"."BLACKLISTED_WRITE" IS 'Defines whether a DDM endpoint is blacklisted for write (Y/N)';
220223
COMMENT ON COLUMN "ATLAS_PANDA"."DDM_ENDPOINT"."SPACE_EXPIRED" IS 'Expired, used space in GB';
221224
COMMENT ON COLUMN "ATLAS_PANDA"."DDM_ENDPOINT"."SPACE_TIMESTAMP" IS 'Timestamp reported by Rucio for the SRM space values';
225+
COMMENT ON COLUMN "ATLAS_PANDA"."DDM_ENDPOINT"."DETAILED_STATUS" IS 'Endpoint-specific detailed status (JSON)';
222226
COMMENT ON TABLE "ATLAS_PANDA"."DDM_ENDPOINT" IS 'DDM/Rucio storage endpoint.Table needed for the "Configurator" agent. The table consolidate information from other sources (AGIS and Rucio ) and caches it so that Panda can easily retrieve it and use it for brokerage.';
223227

224228

@@ -691,9 +695,9 @@ CREATE TABLE "ATLAS_PANDA"."GLOBAL_SHARES_AUDIT"
691695
"MAXATTEMPT" NUMBER(3,0),
692696
"NEVENTS" NUMBER(10,0),
693697
"KEEPTRACK" NUMBER(1,0),
694-
"STARTEVENT" NUMBER(10,0),
695-
"ENDEVENT" NUMBER(10,0),
696-
"FIRSTEVENT" NUMBER(10,0),
698+
"STARTEVENT" NUMBER(11,0),
699+
"ENDEVENT" NUMBER(11,0),
700+
"FIRSTEVENT" NUMBER(11,0),
697701
"BOUNDARYID" NUMBER(11,0),
698702
"PANDAID" NUMBER(11,0),
699703
"FAILEDATTEMPT" NUMBER(3,0),
@@ -3066,6 +3070,7 @@ INTERVAL (NUMTOYMINTERVAL(1, 'MONTH')) (
30663070
);
30673071

30683072
CREATE INDEX mn_metrics_idx ON "ATLAS_PANDA"."WORKER_NODE_METRICS"("SITE", "HOST_NAME", "TIMESTAMP");
3073+
CREATE INDEX "WN_METRICS_TIMESTAMP_IDX" ON "ATLAS_PANDA"."WORKER_NODE_METRICS" ("TIMESTAMP");
30693074

30703075
-- Table Comment
30713076
COMMENT ON TABLE "ATLAS_PANDA"."WORKER_NODE_METRICS" IS 'Metrics related to a worker node';
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
-- patch to be used to upgrade from version 0.0.28
2+
CREATE INDEX wn_metrics_timestamp_idx ON doma_panda.worker_node_metrics ("timestamp");
3+
4+
ALTER TABLE doma_panda.ddm_endpoint
5+
ADD COLUMN IF NOT EXISTS detailed_status JSONB;
6+
7+
COMMENT ON COLUMN doma_panda.ddm_endpoint.detailed_status
8+
IS 'Endpoint-specific detailed status (JSON)';
9+
10+
11+
-- Update schema version
12+
UPDATE doma_panda.pandadb_version
13+
SET major = 0, minor = 0, patch = 29
14+
WHERE component = 'JEDI';
15+
16+
UPDATE doma_panda.pandadb_version
17+
SET major = 0, minor = 0, patch = 29
18+
WHERE component = 'SERVER';
19+
20+
commit;

schema/postgres/sqls/pg_PANDA_SCHEDULER_JOBS.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2491,6 +2491,7 @@ BEGIN
24912491
WHERE j."endtime" > NOW() - INTERVAL '1 day'
24922492
AND j."jobstatus" IN ('finished', 'failed')
24932493
AND j."modificationhost" NOT LIKE 'aipanda%'
2494+
AND j."modificationhost" NOT LIKE 'grid-job-%'
24942495
GROUP BY sc_slimmed."atlas_site", "worker_node"
24952496
),
24962497
harvester_stats AS (
@@ -2510,6 +2511,7 @@ BEGIN
25102511
JOIN sc_slimmed ON h."computingsite" = sc_slimmed."panda_queue"
25112512
WHERE h."endtime" > NOW() - INTERVAL '1 day'
25122513
AND h."status" IN ('finished', 'failed', 'cancelled')
2514+
AND h."nodeid" NOT LIKE 'grid-job-%'
25132515
GROUP BY sc_slimmed."atlas_site", "worker_node"
25142516
)
25152517
SELECT "atlas_site", "worker_node", "key", "stats" FROM pilot_stats

schema/postgres/sqls/pg_PANDA_TABLE.sql

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,8 @@ CREATE TABLE ddm_endpoint (
144144
space_expired bigint,
145145
space_timestamp timestamp,
146146
blacklisted_read char(1),
147-
blacklisted_write char(1)
147+
blacklisted_write char(1),
148+
detailed_status JSONB
148149
) ;
149150
COMMENT ON TABLE ddm_endpoint IS E'DDM/Rucio storage endpoint.Table needed for the "Configurator" agent. The table consolidate information from other sources (AGIS and Rucio ) and caches it so that Panda can easily retrieve it and use it for brokerage.';
150151
COMMENT ON COLUMN ddm_endpoint.blacklisted IS E'Defines whether a DDM endpoint is blacklisted or not (Y/N)';
@@ -160,6 +161,7 @@ COMMENT ON COLUMN ddm_endpoint.space_timestamp IS E'Timestamp reported by Rucio
160161
COMMENT ON COLUMN ddm_endpoint.space_total IS E'Total space of a DDM endpoint as reported by Rucio. Value in GB';
161162
COMMENT ON COLUMN ddm_endpoint.space_used IS E'Used space of a DDM endpoint as reported by Rucio. Value in GB';
162163
COMMENT ON COLUMN ddm_endpoint.type IS E'Type of spacetoken, e.g. DATADISK, LOCALGROUPDISK...';
164+
COMMENT ON COLUMN ddm_endpoint.detailed_status IS 'Endpoint-specific detailed status (JSON)';
163165
ALTER TABLE ddm_endpoint OWNER TO panda;
164166
CREATE INDEX ddm_endpoint_site_name_idx ON ddm_endpoint (site_name);
165167
ALTER TABLE ddm_endpoint ADD PRIMARY KEY (ddm_endpoint_name);
@@ -2995,6 +2997,8 @@ COMMENT ON COLUMN worker_node_metrics."key" IS 'Key of the metrics entry.';
29952997
COMMENT ON COLUMN worker_node_metrics."statistics" IS 'Metrics in json format.';
29962998

29972999
CREATE INDEX wn_metrics_idx ON worker_node_metrics ("site", "host_name", "timestamp");
3000+
CREATE INDEX wn_metrics_timestamp_idx ON worker_node_metrics ("timestamp");
3001+
29983002
ALTER TABLE worker_node_metrics OWNER TO panda;
29993003

30003004
CREATE TABLE error_descriptions (

schema/postgres/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.28
1+
0.0.29

0 commit comments

Comments
 (0)