[ https://issues.apache.org/jira/browse/BEAM-6144?focusedWorklogId=175832&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-175832 ]
ASF GitHub Bot logged work on BEAM-6144: ---------------------------------------- Author: ASF GitHub Bot Created on: 16/Dec/18 16:29 Start Date: 16/Dec/18 16:29 Worklog Time Spent: 10m Work Description: bramp commented on a change in pull request #7149: [BEAM-6144] Add support for the autoscaling flags to the GO SDK. URL: https://github.com/apache/beam/pull/7149#discussion_r241986912 ########## File path: sdks/go/pkg/beam/runners/dataflow/dataflowlib/job.go ########## @@ -140,6 +144,18 @@ func Translate(p *pb.Pipeline, opts *JobOptions, workerURL, jarURL, modelURL str if opts.NumWorkers > 0 { job.Environment.WorkerPools[0].NumWorkers = opts.NumWorkers } + if opts.Algorithm != "" { + settings := &df.AutoscalingSettings{ + Algorithm: map[string]string{ + "NONE": "AUTOSCALING_ALGORITHM_NONE", + "THROUGHPUT_BASED": "AUTOSCALING_ALGORITHM_BASIC", + }[opts.Algorithm], + } + if opts.MaxNumWorkers > 0 { Review comment: Refactored so that can be set independently. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 175832) Time Spent: 0.5h (was: 20m) > Add support for the autoscalingAlgorithm flag > --------------------------------------------- > > Key: BEAM-6144 > URL: https://issues.apache.org/jira/browse/BEAM-6144 > Project: Beam > Issue Type: Improvement > Components: sdk-go > Reporter: Andrew Brampton > Assignee: Robert Burke > Priority: Minor > Time Spent: 0.5h > Remaining Estimate: 0h > > The go SDK does not support the --autoscalingAlgorithm and --maxNumWorkers > flags, like the Java and Python SDKs. Add support for this. -- This message was sent by Atlassian JIRA (v7.6.3#76005)