-
Notifications
You must be signed in to change notification settings - Fork 49
Conversation
executor/runtime/docker/config.go
Outdated
"time" | ||
) | ||
|
||
const MinCfsBandwidth = 1000 |
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.
use const (
MinCfsBandwidth = 1000
MaxCfsBandwidth = 1000000
)
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.
actually, it appears these aren't used outside of this package. they should be locally scoped.
package docker | ||
|
||
import ( | ||
"github.com/stretchr/testify/assert" |
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.
goimports
@@ -4,11 +4,11 @@ import ( | |||
"bytes" | |||
"context" | |||
"errors" | |||
"github.com/Netflix/titus-executor/properties" |
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.
goimports.
685e273
to
a167dcd
Compare
Codecov Report
@@ Coverage Diff @@
## master #185 +/- ##
==========================================
+ Coverage 21.62% 31.49% +9.87%
==========================================
Files 66 67 +1
Lines 8393 8397 +4
==========================================
+ Hits 1815 2645 +830
+ Misses 6365 5433 -932
- Partials 213 319 +106
|
Pull Request Test Coverage Report for Build 2212
💛 - Coveralls |
a167dcd
to
a4c86d6
Compare
a4c86d6
to
ddb8fb8
Compare
Remove fallback logic to nanos on violation of CFS bandwidth configuration. Fail fast instead. This change also moves code for configuration out of the large
docker.go
file.