Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
dcdb
dcdb
Commits
3455eb84
Commit
3455eb84
authored
Aug 10, 2020
by
Alessio Netti
Browse files
Updates to documentation and minor fixes
parent
777a70c2
Changes
2
Hide whitespace changes
Inline
Side-by-side
tools/README.md
View file @
3455eb84
...
...
@@ -156,9 +156,10 @@ The currently supported operations are *delta*, *delta_t*, *derivative* and *int
> NOTE        Quoting of the dcdbquery command in the shell might be required to ensure proper parsing
when using sensor operations.
> NOTE 2       By default, the dcdbquery tool only returns data for sensors that are correctly
published. This check can be bypassed by using the *-d* option.
> NOTE 2       When using the *-j* option to query sensors for specific jobs, the *<Start>* and
*<End>* arguments are omitted, since they are inferred automatically from the job's start and end times.
## Examples <a name="dcdbqueryexamples"></a>
...
...
@@ -196,7 +197,7 @@ Sensor,Time,Value
Visualizing the delta_t for the successive readings of a DRAM power sensor:
```
bash
dcdbquery -h 127.0.0.1 "delta_t(/
sng/
i01/r01/c01/s09/DRAM_POWER)" now-2h now
dcdbquery -h 127.0.0.1 "delta_t(/i01/r01/c01/s09/DRAM_POWER)" now-2h now
```
Sample output:
...
...
@@ -227,7 +228,7 @@ Sensor,Time,Delta_t
Visualizing an unpublished sensor containing job-aggregated performance metrics:
```
bash
dcdbquery -h 127.0.0.1
-d
/job800745/FLOPS now-20m now
dcdbquery -h 127.0.0.1 /job800745/FLOPS now-20m now
```
Sample output:
...
...
@@ -248,6 +249,45 @@ Sensor,Time,Value
/job800745/FLOPS,2020-08-04T10:16:00.000722000,32887149173
```
---
Visualizing all of the *DRAM_POWER* sensor readings for the compute nodes on which job 781742 was running, throughout its runtime:
```
bash
dcdbquery -h 127.0.0.1 -j 781742 DRAM_POWER
```
Sample output:
```
dcdbquery 0.4.144-g777a70c (libdcdb 0.4.144-g777a70c)
Sensor,Time,Value
/i01/r01/c01/s11/DRAM_POWER,2020-08-10T07:28:00.001173000,22
/i01/r01/c01/s11/DRAM_POWER,2020-08-10T07:30:00.000168000,19
/i01/r01/c01/s11/DRAM_POWER,2020-08-10T07:32:00.000867000,20
/i01/r01/c01/s11/DRAM_POWER,2020-08-10T07:34:00.000446000,20
/i01/r01/c01/s11/DRAM_POWER,2020-08-10T07:36:00.000098000,20
/i01/r01/c01/s11/DRAM_POWER,2020-08-10T07:38:00.000814000,21
/i01/r01/c01/s11/DRAM_POWER,2020-08-10T07:40:00.000843000,21
/i01/r01/c01/s11/DRAM_POWER,2020-08-10T07:42:00.000090000,22
/i01/r01/c01/s11/DRAM_POWER,2020-08-10T07:44:00.000408000,21
/i01/r01/c01/s11/DRAM_POWER,2020-08-10T07:46:00.000086000,19
/i01/r01/c01/s11/DRAM_POWER,2020-08-10T07:48:00.000440000,20
Sensor,Time,Value
/i01/r01/c01/s12/DRAM_POWER,2020-08-10T07:28:00.001173000,20
/i01/r01/c01/s12/DRAM_POWER,2020-08-10T07:30:00.000168000,20
/i01/r01/c01/s12/DRAM_POWER,2020-08-10T07:32:00.000867000,21
/i01/r01/c01/s12/DRAM_POWER,2020-08-10T07:34:00.000446000,21
/i01/r01/c01/s12/DRAM_POWER,2020-08-10T07:36:00.000098000,21
/i01/r01/c01/s12/DRAM_POWER,2020-08-10T07:38:00.000814000,21
/i01/r01/c01/s12/DRAM_POWER,2020-08-10T07:40:00.000843000,21
/i01/r01/c01/s12/DRAM_POWER,2020-08-10T07:42:00.000090000,21
/i01/r01/c01/s12/DRAM_POWER,2020-08-10T07:44:00.000408000,20
/i01/r01/c01/s12/DRAM_POWER,2020-08-10T07:46:00.000086000,21
/i01/r01/c01/s12/DRAM_POWER,2020-08-10T07:48:00.000440000,20
```
# The dcdbslurmjob Tool <a name="dcdbconfig"></a>
The *dcdbslurmjob* tool allows to manually insert job information in the Apache Cassandra database. Its syntax is the
...
...
tools/dcdbslurmjob/dcdbslurmjob.cpp
View file @
3455eb84
...
...
@@ -447,7 +447,7 @@ int main(int argc, char** argv) {
retCode
=
1
;
goto
exit
;
}
}
while
(
!
done
&&
getTimestamp
()
-
startTs
<
S_TO_NS
(
timeout
));
}
while
(
!
done
&&
getTimestamp
()
-
startTs
<
(
uint64_t
)
S_TO_NS
(
timeout
));
}
//hasta la vista
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment