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 committed 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.