-
Notifications
You must be signed in to change notification settings - Fork 881
tests: rkt-monitor add new statistics #2587
Conversation
a23af4c to
5836509
Compare
5836509 to
cbaa7f0
Compare
cbaa7f0 to
4135c59
Compare
tests/rkt-monitor/main.go
Outdated
| fmt.Fprintf(os.Stderr, "cleanup failed: %v\n", err) | ||
| } | ||
|
|
||
| containerStoped := time.Now() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice if you will add there empty line as in L158
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Stoped -> Stopped
|
LGTM |
1 similar comment
|
LGTM |
| systemd(18515): seconds alive: 9 avg CPU: 0.000000% avg Mem: 4 mB peak Mem: 4 mB | ||
| systemd-journal(18517): seconds alive: 9 avg CPU: 88.397098% avg Mem: 7 mB peak Mem: 7 mB | ||
| worker(18521): seconds alive: 9 avg CPU: 7.330367% avg Mem: 5 mB peak Mem: 6 mB | ||
| load average in a container: Load1: 0.390000 Load5: 0.120000 Load15: 0.080000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The string doesn't match up with what's printed below.. did you run it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getUsage grab statistics not every time in the same order - IMHO that's why strings don't match each other.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just mean the format of the string here https://github.com/coreos/rkt/pull/2587/files#diff-07b54b89d53b286f0316e52cfcec59afR183 is different, which suggests that you artificially created these outputs rather than running the code ;-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ping @woodbor
|
LGTM |
4135c59 to
328c2f7
Compare
Follow rkt#2587. Add flag for command validatr as well
Follow rkt#2587. Add flag for command validatr as well
Follow rkt#2587. Add flag for command validate as well
Follow rkt#2587. Add flag for command validate as well
tests/rkt-monitor/main.go
Outdated
|
|
||
| loadAvg, err := load.Avg() | ||
|
|
||
| containerStoping := time.Now() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also Stoping -> Stopping
do you just want to close this PR in favour of your other one?
36a22f6 to
8dd70d9
Compare
|
Not ready yet, moving. |
8dd70d9 to
efe17ae
Compare
|
@iaguis @jonboulle : IMHO, it's really difficult to find why |
|
IMO this deserves for note somewhere in docs. Do we have any docs about hacking/devel, with description how to prepare initial setup for developer machine targeted to work on At Intel we have new guy who already prepared such doc. Are You interested in this? |
eef17a8 to
8f17481
Compare
0c2ff0a to
24bb810
Compare
|
Needs some additional work |
24bb810 to
f4257f8
Compare
|
@dgonyeo : review request |
|
@lucab mind doing a review? |
| }, | ||
| { | ||
| "ImportPath": "github.com/shirou/gopsutil/load", | ||
| "Comment": "v2.0.0-10-g9ef3410", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any reason why we need this specific commit? If so, can we ask upstream to tag a release with this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's the version of gopsutil already packaged with rkt. Looking now, it appears that gopsutil does have tagged releases, so we should switch to using that. If @woodbor doesn't want to make the switch in this PR I can put together a separate one to switch the version used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dgonyeo Please do
|
From my side, just a bunch of non-major comments inline. I'm not tagging it as reviewed here, as it is my understanding that @dgonyeo will then take care of landing it. |
tests/rkt-monitor/main.go
Outdated
| flagDuration string | ||
| flagShowOutput bool | ||
| saveToCsv bool | ||
| repetitionNumber int |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe prepend these added variables with flag to be consistent with the other flag variables?
New statistics for load average and boot/stop time measure of container. Diferences are measured in a nanoseconds. Godeps updated as well. Change network from 'host' to 'default-restricted' since kvm flavor can't create this type.
Save data to csv - useful for plot a graph of usage. Add a flag command for additional validation. Fix some docs regarding to rkt-monitor.
f4257f8 to
e828bb5
Compare
|
LGTM, we can follow up with anything necessary. Thanks for the patch @woodbor ! |
New statistics for load average and boot/stop time measure of container.
Differences are measured in a nanoseconds. Godeps updated as well.