Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tk/export: introduce a configurable memory ballast #669

Merged
merged 2 commits into from
Feb 1, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
tk/export: hide the ballast flag
To signal that this is intended for experimental purposes.
  • Loading branch information
jvrplmlmn committed Jan 31, 2022
commit 2817b1918c4a97c0eefcae62074fc1183c026083
7 changes: 6 additions & 1 deletion cmd/tk/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package main

import (
"fmt"
"log"
"regexp"
"runtime"

Expand Down Expand Up @@ -38,7 +39,11 @@ func exportCmd() *cli.Command {
parallel := cmd.Flags().IntP("parallel", "p", 8, "Number of environments to process in parallel")
cachePath := cmd.Flags().StringP("cache-path", "c", "", "Local file path where cached evaluations should be stored")
cacheEnvs := cmd.Flags().StringArrayP("cache-envs", "e", nil, "Regexes which define which environment should be cached (if caching is enabled)")
ballastBytes := cmd.Flags().Int("mem-ballast-size-bytes", 0, "Size of memory ballast to allocate.")

ballastBytes := cmd.Flags().Int("mem-ballast-size-bytes", 0, "(Experimental) Size of memory ballast to allocate.")
if err := cmd.Flags().MarkHidden("mem-ballast-size-bytes"); err != nil {
log.Fatalf("Could not mark flag as hidden: %s", err)
}

vars := workflowFlags(cmd.Flags())
getJsonnetOpts := jsonnetFlags(cmd.Flags())
Expand Down