diff --git a/.changelog/14875.txt b/.changelog/14875.txt new file mode 100644 index 000000000..bef53c031 --- /dev/null +++ b/.changelog/14875.txt @@ -0,0 +1,3 @@ +```release-note:improvement +docker: improve memory usage for docker_logger +``` diff --git a/main.go b/main.go index 8fadcfa8f..baeefc107 100644 --- a/main.go +++ b/main.go @@ -12,11 +12,13 @@ import ( // These packages have init() funcs which check os.Args and drop directly // into their command logic. This is because they are run as separate // processes along side of a task. By early importing them we can avoid - // additional code being imported and thus reserving memory + // additional code being imported and thus reserving memory. _ "github.com/hashicorp/nomad/client/logmon" - "github.com/hashicorp/nomad/command" _ "github.com/hashicorp/nomad/drivers/docker/docklog" _ "github.com/hashicorp/nomad/drivers/shared/executor" + + // Don't move any other code imports above the import block above! + "github.com/hashicorp/nomad/command" "github.com/hashicorp/nomad/version" "github.com/mitchellh/cli" "github.com/sean-/seed"