fix(launcher): se default memory limit for query to unlimited

pull/17706/head
Lorenzo Affetti 2020-04-10 21:33:45 +02:00
parent 4bb34bb056
commit 6967cc2d58
No known key found for this signature in database
GPG Key ID: 76FFBBDF6F0ADC4C
1 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@ import (
"errors"
"fmt"
"io"
"math"
"net"
nethttp "net/http"
_ "net/http/pprof" // needed to add pprof to our binary.
@ -293,7 +294,7 @@ func buildLauncherCommand(l *Launcher, cmd *cobra.Command) {
{
DestP: &l.memoryBytesQuotaPerQuery,
Flag: "query-memory-bytes",
Default: 10 * 1024 * 1024, // 10MB
Default: math.MaxInt64,
Desc: "maximum number of bytes a query is allowed to use at any given time. This must be greater or equal to query-initial-memory-bytes",
},
{