reduce memory required for logmon, docker_logger and executor p… (#6341)

* reduce memory required for logmon, docker_logger and executor processes

* comment early importing
This commit is contained in:
Nick Ethier
2019-09-17 23:55:07 -04:00
committed by GitHub
parent 57850dd003
commit 404d2d4c98

11
main.go
View File

@@ -9,8 +9,15 @@ import (
"strings"
"text/tabwriter"
// These packages have init() funcs which check os.Args and drop directly
// into their command logic. This is because they are run as seperate
// processes along side of a task. By early importing them we can avoid
// additional code being imported and thus reserving memory
_ "github.com/hashicorp/nomad/client/logmon"
_ "github.com/hashicorp/nomad/drivers/docker/docklog"
_ "github.com/hashicorp/nomad/drivers/shared/executor"
"github.com/hashicorp/nomad/command"
"github.com/hashicorp/nomad/drivers/docker/docklog"
"github.com/hashicorp/nomad/version"
"github.com/mattn/go-colorable"
"github.com/mitchellh/cli"
@@ -38,7 +45,7 @@ var (
"server-join",
"server-members",
"syslog",
docklog.PluginName,
"docker_logger",
}
// aliases is the list of aliases we want users to be aware of. We hide