Skip to content

Commit

Permalink
reduce memory required for logmon, docker_logger and executor p… (#6341)
Browse files Browse the repository at this point in the history
* reduce memory required for logmon, docker_logger and executor processes

* comment early importing
  • Loading branch information
nickethier authored Sep 18, 2019
1 parent 57850dd commit 404d2d4
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 404d2d4

Please sign in to comment.