[ 
https://issues.apache.org/jira/browse/BEAM-12068?focusedWorklogId=611904&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-611904
 ]

ASF GitHub Bot logged work on BEAM-12068:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 18/Jun/21 20:55
            Start Date: 18/Jun/21 20:55
    Worklog Time Spent: 10m 
      Work Description: tysonjh commented on a change in pull request #15012:
URL: https://github.com/apache/beam/pull/15012#discussion_r653933151



##########
File path: .test-infra/jenkins/job_LoadTests_CoGBK_Dataflow_V2_Java11.groovy
##########
@@ -0,0 +1,260 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import CommonJobProperties as commonJobProperties
+import CommonTestProperties
+import LoadTestsBuilder as loadTestsBuilder
+import PhraseTriggeringPostCommitBuilder
+import CronJobBuilder
+import InfluxDBCredentialsHelper
+
+def loadTestConfigurations = { mode, isStreaming, datasetName ->
+  [
+    [
+      title          : 'Load test: CoGBK 2GB 100  byte records - single key',
+      test           : 'org.apache.beam.sdk.loadtests.CoGroupByKeyLoadTest',
+      runner         : CommonTestProperties.Runner.DATAFLOW,
+      pipelineOptions: [
+        project               : 'apache-beam-testing',
+        region                : 'us-central1',
+        appName               : 
"load_tests_Java11_Dataflow_V2_${mode}_CoGBK_1",
+        tempLocation          : 'gs://temp-storage-for-perf-tests/loadtests',
+        publishToBigQuery     : true,
+        bigQueryDataset       : datasetName,
+        bigQueryTable         : "java11_dataflow_v2_${mode}_CoGBK_1",
+        influxMeasurement     : "java_${mode}_cogbk_1",
+        influxTags            : """
+                                  {
+                                    "runnerVersion": "v2",
+                                    "jdk": "java11"
+                                  }
+                                """.trim().replaceAll("\\s", ""),
+        publishToInfluxDB     : true,
+        sourceOptions         : """
+          {
+            "numRecords": 20000000,
+            "keySizeBytes": 10,
+            "valueSizeBytes": 90,
+            "numHotKeys": 1
+          }
+        """.trim().replaceAll("\\s", ""),
+        coSourceOptions       : """
+              {
+                "numRecords": 2000000,
+                "keySizeBytes": 10,
+                "valueSizeBytes": 90,
+                "numHotKeys": 1000
+              }
+            """.trim().replaceAll("\\s", ""),
+        iterations            : 1,
+        numWorkers            : 5,
+        autoscalingAlgorithm  : "NONE",
+        streaming             : isStreaming
+      ]
+    ],
+    [
+      title          : 'Load test: CoGBK 2GB 100 byte records - multiple keys',
+      test           : 'org.apache.beam.sdk.loadtests.CoGroupByKeyLoadTest',
+      runner         : CommonTestProperties.Runner.DATAFLOW,
+      pipelineOptions: [
+        project               : 'apache-beam-testing',
+        region                : 'us-central1',
+        appName               : 
"load_tests_Java11_Dataflow_V2_${mode}_CoGBK_2",
+        tempLocation          : 'gs://temp-storage-for-perf-tests/loadtests',
+        publishToBigQuery     : true,
+        bigQueryDataset       : datasetName,
+        bigQueryTable         : "java11_dataflow_v2_${mode}_CoGBK_2",
+        influxMeasurement     : "java_${mode}_cogbk_2",
+        influxTags            : """
+                                  {
+                                    "runnerVersion": "v2",
+                                    "jdk": "java11"
+                                  }
+                                """.trim().replaceAll("\\s", ""),
+        publishToInfluxDB     : true,
+        sourceOptions         : """
+                  {
+                    "numRecords": 20000000,
+                    "keySizeBytes": 10,
+                    "valueSizeBytes": 90,
+                    "numHotKeys": 5
+                  }
+                """.trim().replaceAll("\\s", ""),
+        coSourceOptions       : """
+                          {
+                            "numRecords": 2000000,
+                            "keySizeBytes": 10,
+                            "valueSizeBytes": 90,
+                            "numHotKeys": 1000
+                          }
+                        """.trim().replaceAll("\\s", ""),
+        iterations            : 1,
+        numWorkers            : 5,
+        autoscalingAlgorithm  : "NONE",
+        streaming             : isStreaming
+      ]
+    ],
+    [
+
+      title          : 'Load test: CoGBK 2GB reiteration 10kB value',
+      test           : 'org.apache.beam.sdk.loadtests.CoGroupByKeyLoadTest',
+      runner         : CommonTestProperties.Runner.DATAFLOW,
+      pipelineOptions: [
+        project               : 'apache-beam-testing',
+        region                : 'us-central1',
+        appName               : 
"load_tests_Java11_Dataflow_V2_${mode}_CoGBK_3",
+        tempLocation          : 'gs://temp-storage-for-perf-tests/loadtests',
+        publishToBigQuery     : true,
+        bigQueryDataset       : datasetName,
+        bigQueryTable         : "java11_dataflow_v2_${mode}_CoGBK_3",
+        influxMeasurement     : "java_${mode}_cogbk_3",
+        influxTags            : """
+                                  {
+                                    "runnerVersion": "v2",
+                                    "jdk": "java11"
+                                  }
+                                """.trim().replaceAll("\\s", ""),
+        publishToInfluxDB     : true,
+        sourceOptions         : """
+                              {
+                                "numRecords": 2000000,
+                                "keySizeBytes": 10,
+                                "valueSizeBytes": 90,
+                                "numHotKeys": 200000
+                              }
+                            """.trim().replaceAll("\\s", ""),
+        coSourceOptions       : """
+                              {
+                                "numRecords": 2000000,
+                                "keySizeBytes": 10,
+                                "valueSizeBytes": 90,
+                                "numHotKeys": 1000
+                              }
+                            """.trim().replaceAll("\\s", ""),
+        iterations            : 4,
+        numWorkers            : 5,
+        autoscalingAlgorithm  : "NONE",
+        streaming             : isStreaming
+      ]
+
+    ],
+    [
+      title          : 'Load test: CoGBK 2GB reiteration 2MB value',
+      test           : 'org.apache.beam.sdk.loadtests.CoGroupByKeyLoadTest',
+      runner         : CommonTestProperties.Runner.DATAFLOW,
+      pipelineOptions: [
+        project               : 'apache-beam-testing',
+        region                : 'us-central1',
+        appName               : 
"load_tests_Java11_Dataflow_V2_${mode}_CoGBK_4",
+        tempLocation          : 'gs://temp-storage-for-perf-tests/loadtests',
+        publishToBigQuery     : true,
+        bigQueryDataset       : datasetName,
+        bigQueryTable         : "java11_dataflow_v2_${mode}_CoGBK_4",
+        influxMeasurement     : "java_${mode}_cogbk_4",
+        influxTags            : """
+                                  {
+                                    "runnerVersion": "v2",
+                                    "jdk": "java11"
+                                  }
+                                """.trim().replaceAll("\\s", ""),
+        publishToInfluxDB     : true,
+        sourceOptions         : """
+                              {
+                                "numRecords": 2000000,
+                                "keySizeBytes": 10,
+                                "valueSizeBytes": 90,
+                                "numHotKeys": 1000
+                              }
+                            """.trim().replaceAll("\\s", ""),
+        coSourceOptions       : """
+                              {
+                                "numRecords": 2000000,
+                                "keySizeBytes": 10,
+                                "valueSizeBytes": 90,
+                                "numHotKeys": 1000
+                              }
+                            """.trim().replaceAll("\\s", ""),
+        iterations            : 4,
+        numWorkers            : 5,
+        autoscalingAlgorithm  : "NONE",
+        streaming             : isStreaming
+      ]
+    ]
+  ].each { test -> test.pipelineOptions.putAll(additionalPipelineArgs) }
+}
+
+def final JOB_SPECIFIC_SWITCHES = [
+  '-Prunner.version="V2"',
+  '-PcompileAndRunTestsWithJava11',

Review comment:
       Yes, Gradle consumes it. There are a few different places that use it, 
one is for picking the proper SDK container image, another is for actually 
compiling the code.
   
   e.g. 
https://github.com/apache/beam/blob/9418994e11dbede889b508c91261ec2092f2d8a7/runners/google-cloud-dataflow-java/build.gradle#L257




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 611904)
    Time Spent: 1h  (was: 50m)

> Run Dataflow performance benchmarks on Java 11
> ----------------------------------------------
>
>                 Key: BEAM-12068
>                 URL: https://issues.apache.org/jira/browse/BEAM-12068
>             Project: Beam
>          Issue Type: Improvement
>          Components: testing
>            Reporter: Tyson Hamilton
>            Assignee: Benjamin Gonzalez
>            Priority: P2
>              Labels: stale-P2
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> Dataflow should have the following tests running on Java 11 (runner V2) for 
> tracking performance of both batch and streaming pipelines:
>  * GBK variants
>  * coGBK variants
>  * ParDo variants
> The variants can be found in the 'Performance tests metrics' section of 
> [http://metrics.beam.apache.org/]
> The tests should report metrics to these dashboards. The task here is to 
> configure the existing tests to also run on runner v2, not introduce new 
> tests.
>  
> cwiki entry on load tests: 
> [https://cwiki.apache.org/confluence/display/BEAM/Contribution+Testing+Guide#ContributionTestingGuide-TestsofCoreApacheBeamOperations]
>  
> cwiki entry on how metrics are collected: 
> [https://cwiki.apache.org/confluence/display/BEAM/Test+Results+Monitoring]
>  
> jenkins config for a load test: 
> [https://github.com/apache/beam/blob/master/.test-infra/jenkins/job_LoadTests_ParDo_Java.groovy]
>  
> java file for that load test: 
> [https://github.com/apache/beam/blob/master/sdks/java/testing/load-tests/src/main/java/org/apache/beam/sdk/loadtests/ParDoLoadTest.java]
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to