Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Feb 24, 2020. It is now read-only.

Conversation

@borqosky
Copy link
Contributor

@borqosky borqosky commented May 6, 2016

New statistics for load average and boot/stop time measure of container.
Differences are measured in a nanoseconds. Godeps updated as well.

@borqosky borqosky force-pushed the rkt_monitor_new_metrics branch from a23af4c to 5836509 Compare May 9, 2016 07:08
@borqosky borqosky changed the title tests: rkt-monitor add new statistics [WIP]tests: rkt-monitor add new statistics May 9, 2016
@borqosky borqosky force-pushed the rkt_monitor_new_metrics branch from 5836509 to cbaa7f0 Compare May 9, 2016 07:40
@borqosky borqosky changed the title [WIP]tests: rkt-monitor add new statistics tests: rkt-monitor add new statistics May 9, 2016
@borqosky borqosky force-pushed the rkt_monitor_new_metrics branch from cbaa7f0 to 4135c59 Compare May 10, 2016 09:55
@borqosky
Copy link
Contributor Author

related with #2556 , @dgonyeo : review request

fmt.Fprintf(os.Stderr, "cleanup failed: %v\n", err)
}

containerStoped := time.Now()
Copy link
Contributor

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

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stoped -> Stopped

@jellonek
Copy link
Contributor

LGTM

1 similar comment
@pskrzyns
Copy link
Contributor

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
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

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 ;-)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ping @woodbor

@cgonyeo
Copy link
Member

cgonyeo commented May 10, 2016

LGTM

@borqosky borqosky force-pushed the rkt_monitor_new_metrics branch from 4135c59 to 328c2f7 Compare May 11, 2016 09:32
borqosky pushed a commit to intelsdi-x/rkt that referenced this pull request May 12, 2016
Follow rkt#2587. Add flag for command validatr as well
borqosky pushed a commit to intelsdi-x/rkt that referenced this pull request May 12, 2016
Follow rkt#2587. Add flag for command validatr as well
borqosky pushed a commit to intelsdi-x/rkt that referenced this pull request May 12, 2016
Follow rkt#2587. Add flag for command validate as well
borqosky pushed a commit to intelsdi-x/rkt that referenced this pull request May 12, 2016
Follow rkt#2587. Add flag for command validate as well
@jonboulle jonboulle added this to the v1.6.0 milestone May 12, 2016

loadAvg, err := load.Avg()

containerStoping := time.Now()
Copy link
Contributor

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?

@borqosky borqosky force-pushed the rkt_monitor_new_metrics branch 2 times, most recently from 36a22f6 to 8dd70d9 Compare May 12, 2016 14:44
@iaguis
Copy link
Member

iaguis commented May 12, 2016

Not ready yet, moving.

@iaguis iaguis modified the milestones: v1.7.0, v1.6.0 May 12, 2016
@borqosky borqosky force-pushed the rkt_monitor_new_metrics branch from 8dd70d9 to efe17ae Compare May 13, 2016 10:48
@borqosky
Copy link
Contributor Author

@iaguis @jonboulle : IMHO, it's really difficult to find why gofmt is failing (there is no output), and that's because -s flag is used during make unit-check. gofmt without any flags on local didn't return any errors

@jellonek
Copy link
Contributor

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 rkt?

At Intel we have new guy who already prepared such doc. Are You interested in this?
(info about such required gofmt parameters would be quite useful in this doc, among other common pitfalls).

@borqosky borqosky force-pushed the rkt_monitor_new_metrics branch 2 times, most recently from eef17a8 to 8f17481 Compare May 17, 2016 12:13
@borqosky borqosky changed the title tests: rkt-monitor add new statistics [WIP]tests: rkt-monitor add new statistics May 18, 2016
@borqosky borqosky force-pushed the rkt_monitor_new_metrics branch from 0c2ff0a to 24bb810 Compare May 19, 2016 11:41
@pskrzyns
Copy link
Contributor

Needs some additional work

@borqosky borqosky force-pushed the rkt_monitor_new_metrics branch from 24bb810 to f4257f8 Compare May 20, 2016 08:59
@borqosky borqosky changed the title [WIP]tests: rkt-monitor add new statistics tests: rkt-monitor add new statistics May 20, 2016
@borqosky
Copy link
Contributor Author

borqosky commented May 20, 2016

@dgonyeo : review request

@jonboulle
Copy link
Contributor

@lucab mind doing a review?

},
{
"ImportPath": "github.com/shirou/gopsutil/load",
"Comment": "v2.0.0-10-g9ef3410",
Copy link
Member

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?

Copy link
Member

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.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dgonyeo Please do

@lucab
Copy link
Member

lucab commented May 20, 2016

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.

flagDuration string
flagShowOutput bool
saveToCsv bool
repetitionNumber int
Copy link
Member

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?

Wlodzimierz Borkowski added 3 commits May 25, 2016 10:10
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.
@jonboulle
Copy link
Contributor

LGTM, we can follow up with anything necessary. Thanks for the patch @woodbor !

@jonboulle jonboulle merged commit 26e62f5 into rkt:master May 26, 2016
@mzylowski mzylowski deleted the rkt_monitor_new_metrics branch August 1, 2016 14:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants