Skip to content

Commit

Permalink
Increase number of default idle runners
Browse files Browse the repository at this point in the history
  • Loading branch information
matt2e committed Mar 8, 2024
1 parent 39d48ed commit 432b435
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ type Config struct {
RunnerTimeout time.Duration `help:"Runner heartbeat timeout." default:"10s"`
DeploymentReservationTimeout time.Duration `help:"Deployment reservation timeout." default:"120s"`
ArtefactChunkSize int `help:"Size of each chunk streamed to the client." default:"1048576"`
IdleRunners int `help:"Number of idle runners to keep around (not supported in production)." default:"1"`
IdleRunners int `help:"Number of idle runners to keep around (not supported in production)." default:"3"`
}

func (c *Config) SetDefaults() {
Expand Down
2 changes: 1 addition & 1 deletion cmd/ftl/cmd_serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ type serveCmd struct {
Background bool `help:"Run in the background." default:"false"`
Stop bool `help:"Stop the running FTL instance. Can be used to --background to restart the server" default:"false"`
StartupTimeout time.Duration `help:"Timeout for the server to start up." default:"20s"`
IdleRunners int `help:"Number of idle runners to keep around (not supported in production)." default:"1"`
IdleRunners int `help:"Number of idle runners to keep around (not supported in production)." default:"3"`
}

const ftlContainerName = "ftl-db-1"
Expand Down

0 comments on commit 432b435

Please sign in to comment.