Skip to content

Commit 24b403e

Browse files
authored
Remove outdated autoscaling language (GoogleCloudPlatform#513)
* TopWikipediaSessions: remove outdated autoscaling language * DataflowPipelineWorkerPoolOptions
1 parent 8981893 commit 24b403e

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

examples/src/main/java/com/google/cloud/dataflow/examples/complete/TopWikipediaSessions.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,6 @@
6868
*
6969
* <p>The default input is {@code gs://dataflow-samples/wikipedia_edits/*.json} and can be
7070
* overridden with {@code --input}.
71-
*
72-
* <p>The input for this example is large enough that it's a good place to enable (experimental)
73-
* autoscaling:
74-
* <pre>{@code
75-
* --autoscalingAlgorithm=BASIC
76-
* --maxNumWorkers=20
77-
* }
78-
* </pre>
79-
* This will automatically scale the number of workers up over time until the job completes.
8071
*/
8172
public class TopWikipediaSessions {
8273
private static final String EXPORTED_WIKI_TABLE = "gs://dataflow-samples/wikipedia_edits/*.json";

sdk/src/main/java/com/google/cloud/dataflow/sdk/options/DataflowPipelineWorkerPoolOptions.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ public interface DataflowPipelineWorkerPoolOptions extends PipelineOptions {
4545
/**
4646
* Type of autoscaling algorithm to use.
4747
*/
48-
@Experimental(Experimental.Kind.AUTOSCALING)
4948
enum AutoscalingAlgorithmType {
5049
/** Use numWorkers machines. Do not autoscale the worker pool. */
5150
NONE("AUTOSCALING_ALGORITHM_NONE"),
@@ -69,7 +68,7 @@ public String getAlgorithm() {
6968
}
7069

7170
/**
72-
* [Experimental] The autoscaling algorithm to use for the workerpool.
71+
* The autoscaling algorithm to use for the workerpool.
7372
*
7473
* <ul>
7574
* <li>NONE: does not change the size of the worker pool.</li>
@@ -78,12 +77,11 @@ public String getAlgorithm() {
7877
* </li>
7978
* </ul>
8079
*/
81-
@Description("[Experimental] The autoscaling algorithm to use for the workerpool. "
80+
@Description("The autoscaling algorithm to use for the workerpool. "
8281
+ "NONE: does not change the size of the worker pool. "
8382
+ "BASIC (deprecated): autoscale the worker pool size up to maxNumWorkers until the job "
8483
+ "completes. "
8584
+ "THROUGHPUT_BASED: autoscale the workerpool based on throughput (up to maxNumWorkers).")
86-
@Experimental(Experimental.Kind.AUTOSCALING)
8785
AutoscalingAlgorithmType getAutoscalingAlgorithm();
8886
void setAutoscalingAlgorithm(AutoscalingAlgorithmType value);
8987

0 commit comments

Comments
 (0)