From cb126a80cfa8502a582ee651f9e45c3b0d6f79f7 Mon Sep 17 00:00:00 2001 From: Nick White Date: Tue, 31 Mar 2020 16:54:11 +0100 Subject: Disable autoshutdown by default for bookpipeline, and update to ami 0.11 (which reenables it for spot instances) --- aws.go | 2 +- cmd/bookpipeline/main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aws.go b/aws.go index 1fbb68b..ecea193 100644 --- a/aws.go +++ b/aws.go @@ -447,7 +447,7 @@ func (a *AwsConn) StartInstances(n int) error { IamInstanceProfile: &ec2.IamInstanceProfileSpecification{ Arn: aws.String("arn:aws:iam::557852942063:instance-profile/pipeliner"), }, - ImageId: aws.String("ami-03b8203f86b8db97f"), + ImageId: aws.String("ami-0bc6ef6900f6da5d3"), InstanceType: aws.String("m5.large"), SecurityGroupIds: []*string{ aws.String("sg-0be8a3ab89e7136b9"), diff --git a/cmd/bookpipeline/main.go b/cmd/bookpipeline/main.go index dce1586..7b45541 100644 --- a/cmd/bookpipeline/main.go +++ b/cmd/bookpipeline/main.go @@ -675,7 +675,7 @@ func main() { noocr := flag.Bool("no", false, "disable ocr") noocrpg := flag.Bool("nop", false, "disable ocr on individual pages") noanalyse := flag.Bool("na", false, "disable analysis") - autoshutdown := flag.Bool("shutdown", true, "automatically shut down if no work has been available for 5 minutes") + autoshutdown := flag.Bool("shutdown", false, "automatically shut down if no work has been available for 5 minutes") flag.Usage = func() { fmt.Fprintf(flag.CommandLine.Output(), usage) -- cgit v1.2.1-24-ge1ad