Location
RequestDB is hosted on volhcb23.cern.ch.
Database diagram
All tables
mysql> use RequestDB;
Database changed
mysql> show tables;
Channel (ca. 120k records)
Table description
mysql> describe Channel;
mysql> select distinct Status from Channel;
Status |
Done |
Executing |
Failed |
Waiting |
Waiting13 |
Waiting18 |
Waiting2 |
Waiting20 |
Waiting27 |
Waiting28 |
Waiting38 |
Waiting5 |
Waiting6 |
Indexes
mysql> show index from Channel;
Table |
Non_unique |
Key_name |
Seq_in_index |
Column_name |
Collation |
Cardinality |
Sub_part |
Packed |
Null |
Index_type |
Comment |
Channel |
0 |
PRIMARY |
1 |
ChannelID |
A |
19 |
NULL |
NULL |
|
BTREE |
|
Channel |
0 |
PRIMARY |
2 |
FileID |
A |
117929 |
NULL |
NULL |
|
BTREE |
|
Channel |
1 |
ChannelID |
1 |
ChannelID |
A |
144 |
NULL |
NULL |
|
BTREE |
|
Channel |
1 |
Status |
1 |
Status |
A |
8 |
NULL |
NULL |
|
BTREE |
|
Channel |
1 |
SourceSE |
1 |
SourceSE |
A |
10 |
NULL |
NULL |
|
BTREE |
|
Channel |
1 |
TargetSE |
1 |
TargetSE |
A |
8 |
NULL |
NULL |
|
BTREE |
|
Typical record
mysql> select * from Channel limit 1;
Channels (49 records)
Table desciption
mysql> describe Channels;
mysql> select distinct Status from Channels;
The valid
Status
value could be also
InActive
.
Indexes
mysql> show index from Channels;
Table |
Non_unique |
Key_name |
Seq_in_index |
Column_name |
Collation |
Cardinality |
Sub_part |
Packed |
Null |
Index_type |
Comment |
Channels |
0 |
PRIMARY |
1 |
ChannelID |
A |
49 |
NULL |
NULL |
|
BTREE |
|
Channels |
0 |
PRIMARY |
2 |
SourceSite |
A |
49 |
NULL |
NULL |
|
BTREE |
|
Channels |
0 |
PRIMARY |
3 |
DestinationSite |
A |
49 |
NULL |
NULL |
|
BTREE |
|
All records
mysql> select * from Channels;
Datasets (empty!)
Table desciption
mysql> describe Datasets;
FTSReq (ca. 100k records)
Table description
mysql> describe FTSReq;
mysql> select distinct Status from FTSReq;
Status |
Finished |
Submitted |
Indexes
mysql> show index from FTSReq;
Table |
Non_unique |
Key_name |
Seq_in_index |
Column_name |
Collation |
Cardinality |
Sub_part |
Packed |
Null |
Index_type |
Comment |
FTSReq |
0 |
PRIMARY |
1 |
FTSReqID |
A |
123745 |
NULL |
NULL |
|
BTREE |
|
FTSReq |
0 |
PRIMARY |
2 |
ChannelID |
A |
123745 |
NULL |
NULL |
|
BTREE |
|
FTSReq |
1 |
ChannelID |
1 |
ChannelID |
A |
285 |
NULL |
NULL |
|
BTREE |
|
FTSReq |
1 |
Status |
1 |
Status |
A |
11 |
NULL |
NULL |
YES |
BTREE |
|
Typical record
mysql> select * from FTSReq limit 1;
FTSReqLogging (ca. 1M records)
Table description
mysql> describe FTSReqLogging;
Field |
Type |
Null |
Key |
Default |
Extra |
FTSReqID |
int(11) |
NO |
|
NULL |
|
Event |
varchar(100) |
YES |
|
NULL |
|
EventDateTime |
datetime |
YES |
|
NULL |
|
Indexes
Not present.
Typical record
mysql> select * from FTSReqLogging limit 10000, 1;
FileToCat (ca. 120k records)
Table description
mysql> describe FileToCat;
Field |
Type |
Null |
Key |
Default |
Extra |
FileID |
int(11) |
NO |
PRI |
NULL |
|
ChannelID |
int(11) |
NO |
PRI |
NULL |
|
LFN |
varchar(255) |
NO |
|
NULL |
|
PFN |
varchar(255) |
NO |
|
NULL |
|
SE |
varchar(255) |
NO |
|
NULL |
|
Status |
varchar(255) |
NO |
PRI |
Executing |
|
SubmitTime |
datetime |
NO |
|
NULL |
|
CompleteTime |
datetime |
YES |
|
NULL |
|
mysql> select distinct Status from FileToCat;
Indexes
mysql> show index from FileToCat;
Typical record
mysql> select * from FileToCat limit 10, 1;
FileID |
ChannelID |
LFN |
PFN |
SE |
Status |
SubmitTime |
CompleteTime |
1396855 |
43 |
/lhcb/data/2010/CHARMCONTROL.DST/00008384/0000/00008384_00000284_1.charmcontrol.dst |
srm://srm-lhcb.cern.ch:8443/srm/managerv2?SFN=/castor/cern.ch/grid/lhcb/data/2010/CHARMCONTROL.DST/00008384/0000/00008384_00000284_1.charmcontrol.dst |
CERN_M-DST |
Waiting |
2010-12-07 21:54:22 |
NULL |
FileToFTS (ca. 1.5M records)
Table description
mysql> describe FileToFTS;
Field |
Type |
Null |
Key |
Default |
Extra |
FileID |
int(11) |
NO |
PRI |
NULL |
|
FTSReqID |
varchar(64) |
NO |
PRI |
NULL |
|
ChannelID |
int(11) |
NO |
MUL |
NULL |
|
Status |
varchar(32) |
YES |
MUL |
Submitted |
|
Duration |
int(8) |
YES |
|
0 |
|
Reason |
varchar(511) |
YES |
|
NULL |
|
Retries |
int(8) |
YES |
|
0 |
|
FileSize |
int(11) |
YES |
|
0 |
|
SubmissionTime |
datetime |
YES |
|
NULL |
|
TerminalTime |
datetime |
YES |
|
NULL |
|
mysql> select distinct Status from FileToFTS;
Status |
Completed |
Failed |
Submitted |
Indexes
mysql> show index from FileToFTS;
Typical record
mysql> select * from FileToFTS limit 10, 1;
FileID |
FTSReqID |
ChannelID |
Status |
Duration |
Reason |
Retries |
FileSize |
SubmissionTime |
TerminalTime |
1396847 |
10113 |
36 |
Failed |
0 |
DESTINATION error during TRANSFER_PREPARATION phase: [NO_SPACE_LEFT] No space found with at least 44198739 bytes of unusedSize |
0 |
43150163 |
2010-12-19 02:51:16 |
2010-12-19 02:51:51 |
Files (ca. 50k records)
Table description
mysql> describe Files;
Field |
Type |
Null |
Key |
Default |
Extra |
SubRequestID |
int(11) |
NO |
|
NULL |
|
FileID |
int(11) |
NO |
PRI |
NULL |
auto_increment |
Status |
varchar(32) |
NO |
PRI |
New |
|
LFN |
varchar(255) |
YES |
|
NULL |
|
Size |
bigint(20) |
YES |
|
NULL |
|
PFN |
varchar(255) |
YES |
|
NULL |
|
GUID |
varchar(64) |
YES |
|
NULL |
|
Md5 |
varchar(32) |
YES |
|
NULL |
|
Addler |
varchar(32) |
YES |
|
NULL |
|
Attempt |
varchar(32) |
YES |
|
NULL |
|
Error |
varchar(255) |
YES |
|
NULL |
|
mysql> select distinct Status from Files;
Status |
Done |
Failed |
Scheduled |
Waiting |
Indexes
mysql> show index from Files;
Table |
Non_unique |
Key_name |
Seq_in_index |
Column_name |
Collation |
Cardinality |
Sub_part |
Packed |
Null |
Index_type |
Comment |
Files |
0 |
PRIMARY |
1 |
FileID |
A |
40902 |
NULL |
NULL |
|
BTREE |
|
Files |
0 |
PRIMARY |
2 |
Status |
A |
40902 |
NULL |
NULL |
|
BTREE |
|
Files |
1 |
Status |
1 |
Status |
A |
17 |
NULL |
NULL |
|
BTREE |
|
Typical record
mysql> select * from Files limit 40000, 1;
SubRequestID |
FileID |
Status |
LFN |
Size |
PFN |
GUID |
Md5 |
Addler |
Attempt |
Error |
2249344 |
1598703 |
Waiting |
/lhcb/MC/MC10/LOG/00009454/0001/00009454_00012262.tar.gz |
NULL |
NULL |
NULL |
NULL |
NULL |
1 |
NULL |
ReplicationTree (ca. 3M records)
Table description
mysql> describe ReplicationTree;
mysql> select distinct Strategy from ReplicationTree;
Indexes
Not present.
Typical record
mysql> select * from ReplicationTree limit 100, 1;
Requests (ca. 40k records)
Table description
mysql> describe Requests;
mysql> select distinct Status from Requests;
Status |
Done |
Receiving |
Waiting |
Indexes
mysql> show index from Requests;
Table |
Non_unique |
Key_name |
Seq_in_index |
Column_name |
Collation |
Cardinality |
Sub_part |
Packed |
Null |
Index_type |
Comment |
Requests |
0 |
PRIMARY |
1 |
RequestID |
A |
45117 |
NULL |
NULL |
|
BTREE |
|
Requests |
0 |
PRIMARY |
2 |
RequestName |
A |
45117 |
NULL |
NULL |
|
BTREE |
|
Requests |
0 |
PRIMARY |
3 |
Status |
A |
45117 |
NULL |
NULL |
|
BTREE |
|
Requests |
1 |
Status |
1 |
Status |
A |
4 |
NULL |
NULL |
|
BTREE |
|
Typical record
mysql> select * from Requests limit 40000, 1;
SubRequests (ca. 50k records)
Table description
mysql> describe SubRequests;
mysql> select distinct Status from SubRequests;
Status |
Assigned |
Done |
Waiting |
Indexes
mysql> show index from SubRequests;
Typical record
mysql> select * from SubRequests limit 40000, 1;
--
KrzysztofCiba - 15-Feb-2011