-
Notifications
You must be signed in to change notification settings - Fork 22
Conversation
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.
As an initial import, lgtm
Minor queries, and obviously we'll grow docs and build/install instr etc.
pkg/grpc/ksm.proto
Outdated
|
||
import "google/protobuf/empty.proto"; | ||
|
||
// To generate hyperstart.pb.go, run: |
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.
hyperstart.pb.go
? - presume that should be ksm.pb.go ?
@@ -0,0 +1,14 @@ | |||
syntax = "proto3"; | |||
|
|||
package ksm; |
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.
nit: early days - but I presume we will add a high level description in here.
I only notice as I think there is a place in ksm.pb.go
where it would be copied to on generation.
@@ -0,0 +1,481 @@ | |||
// | |||
// Copyright (c) 2017 Intel Corporation |
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.
A thought, as this is effectively a new project - maybe we should start to use the SPDX copyright commenting method rather than the full blown long winded one?
https://spdx.org/licenses/
https://patchwork.kernel.org/patch/10016189/
It is becoming more common and accepted.
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.
Done
bdaacd2
to
1f6c0c1
Compare
Only Kick for now. Signed-off-by: Samuel Ortiz <[email protected]>
Mostly copy pasted from clearcontainers/proxy Signed-off-by: Samuel Ortiz <[email protected]>
The throttler creates the gRPC service on a UNIX socket, and kicks the KSM throttling routine when receiving the Kick command. Signed-off-by: Samuel Ortiz <[email protected]>
Signed-off-by: Samuel Ortiz <[email protected]>
With locked revisions. Signed-off-by: Samuel Ortiz <[email protected]>
1f6c0c1
to
05d2b5a
Compare
Signed-off-by: Samuel Ortiz <[email protected]>
Again, copied from the original proxy KSM throttling implemenation. Signed-off-by: Samuel Ortiz <[email protected]>
Signed-off-by: Samuel Ortiz <[email protected]>
Changes Unknown when pulling a8ba9e3 on sameo:topic/initial-push into ** on kata-containers:master**. |
Signed-off-by: Samuel Ortiz <[email protected]>
Signed-off-by: Samuel Ortiz <[email protected]>
Signed-off-by: Samuel Ortiz <[email protected]>
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.
lgtm.
.ci/go-lint.sh
Outdated
# limitations under the License. | ||
# | ||
|
||
#!/bin/bash |
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.
This line is redundant as it's isn't the first - same comment applies to go-test.sh
.
go_import_path: github.com/kata-containers/ksm-throttler | ||
|
||
before_install: | ||
- go get github.com/mattn/goveralls |
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.
Just an idea, but how about trying out codecov.io instead? clearcontainers/jenkins#28 Or we could run both and see how they compare?
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.
Added
For now it is just a wrapper around the Kick gRPC method. Signed-off-by: Samuel Ortiz <[email protected]>
kicker only sends a Kick() call and returns. Signed-off-by: Samuel Ortiz <[email protected]>
Let's give it a try. Signed-off-by: Samuel Ortiz <[email protected]>
throttler.go:143: arg logLevel for printf verb %s of wrong type: *string Signed-off-by: Samuel Ortiz <[email protected]>
Signed-off-by: Samuel Ortiz <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #1 +/- ##
=========================================
Coverage ? 47.16%
=========================================
Files ? 2
Lines ? 405
Branches ? 0
=========================================
Hits ? 191
Misses ? 175
Partials ? 39
Continue to review full report at Codecov.
|
Changes Unknown when pulling 90dece9 on sameo:topic/initial-push into ** on kata-containers:master**. |
2 similar comments
Changes Unknown when pulling 90dece9 on sameo:topic/initial-push into ** on kata-containers:master**. |
Changes Unknown when pulling 90dece9 on sameo:topic/initial-push into ** on kata-containers:master**. |
Changes Unknown when pulling d86c1cf on sameo:topic/initial-push into ** on kata-containers:master**. |
Changes Unknown when pulling 8e8d3b7 on sameo:topic/initial-push into ** on kata-containers:master**. |
1 similar comment
Changes Unknown when pulling 8e8d3b7 on sameo:topic/initial-push into ** on kata-containers:master**. |
Changes Unknown when pulling 6ea86f1 on sameo:topic/initial-push into ** on kata-containers:master**. |
1 similar comment
Changes Unknown when pulling 6ea86f1 on sameo:topic/initial-push into ** on kata-containers:master**. |
dd1357c
to
692db52
Compare
.ci/setup.sh
Outdated
set -e | ||
|
||
cidir=$(dirname "$0") | ||
tests_repo="github.com/clearcontainers/tests" |
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.
Presumably this is just a temporary URL until we populate https://github.com/kata-containers/tests?
title_regex: 'WIP' | ||
labels: | ||
- do-not-merge | ||
- wip |
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.
FYI: I've just added these labels.
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.
Thanks.
@@ -0,0 +1,122 @@ | |||
VERSION := 0.1+ | |||
|
|||
PACKAGE = github.com/kata-containers/ksm-throttler |
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 github URL is used in a lot of places. It's not a blocker for this PR of course, but I wonder if we could standardise on something like .ci/self-url
that container this string and then have the Makefile
read that file. make
can then generate the value used in ksm-throttler.service.in
, and so on.
Signed-off-by: Samuel Ortiz <[email protected]>
692db52
to
8f30bc1
Compare
We don't need it for now. Signed-off-by: Samuel Ortiz <[email protected]>
Changes Unknown when pulling 8f30bc1 on sameo:topic/initial-push into ** on kata-containers:master**. |
2 similar comments
Changes Unknown when pulling 8f30bc1 on sameo:topic/initial-push into ** on kata-containers:master**. |
Changes Unknown when pulling 8f30bc1 on sameo:topic/initial-push into ** on kata-containers:master**. |
Changes Unknown when pulling b79782c on sameo:topic/initial-push into ** on kata-containers:master**. |
@@ -0,0 +1,46 @@ | |||
# Copyright (c) 2017 Intel Corporation |
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.
Do we want to keep that ?
@sameo that's a nice and huge first commit ! Even if there are some flaws (I am not saying there are some :) ), we can manage this later in follow up pull requests. |
This is complete now. |
Signed-off-by: Samuel Ortiz <[email protected]>
Signed-off-by: Samuel Ortiz <[email protected]>
f446d8d
to
a4008f2
Compare
Changes Unknown when pulling f446d8d on sameo:topic/initial-push into ** on kata-containers:master**. |
Changes Unknown when pulling a4008f2 on sameo:topic/initial-push into ** on kata-containers:master**. |
2 similar comments
Changes Unknown when pulling a4008f2 on sameo:topic/initial-push into ** on kata-containers:master**. |
Changes Unknown when pulling a4008f2 on sameo:topic/initial-push into ** on kata-containers:master**. |
@sameo you're gonna have to approve your own PR since it introduces the proxy team as approvers too. |
LGTM |
Mostly a refactor of the @clearcontainers/proxy KSM code, with:
TODO