Throttle disk write to prevent etcd puking during upgrade
This commit is contained in:
18
clitools/pkg/controller/osimage/write_throttle_other.go
Normal file
18
clitools/pkg/controller/osimage/write_throttle_other.go
Normal file
@@ -0,0 +1,18 @@
|
||||
//go:build !linux
|
||||
|
||||
package osimage
|
||||
|
||||
import "context"
|
||||
|
||||
type adaptiveWriteController struct{}
|
||||
|
||||
func newAdaptiveWriteController(string) (*adaptiveWriteController, error) {
|
||||
return &adaptiveWriteController{}, nil
|
||||
}
|
||||
|
||||
func newNoopAdaptiveWriteController() *adaptiveWriteController {
|
||||
return &adaptiveWriteController{}
|
||||
}
|
||||
|
||||
func (c *adaptiveWriteController) Wait(ctx context.Context, n int) error { return nil }
|
||||
func (c *adaptiveWriteController) ObserveWrite(n int, dur interface{}) {}
|
||||
Reference in New Issue
Block a user