You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2020/06/04 14:36:11 UTC

[GitHub] [beam] kamilwu commented on a change in pull request #11856: [BEAM-7505] SideInput Python Load Test job

kamilwu commented on a change in pull request #11856:
URL: https://github.com/apache/beam/pull/11856#discussion_r435308264



##########
File path: .test-infra/jenkins/job_LoadTests_SideInput_Python.groovy
##########
@@ -0,0 +1,187 @@
+/*
+ * 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 LoadTestsBuilder as loadTestsBuilder
+import PhraseTriggeringPostCommitBuilder
+import InfluxDBCredentialsHelper
+
+def now = new Date().format("MMddHHmmss", TimeZone.getTimeZone('UTC'))
+
+def loadTestConfigurations = { datasetName -> [
+        [
+                title          : 'SideInput Python Load test: 2gb-1kb-5workers-1window-1key-percent-dict',
+                test           : 'apache_beam.testing.load_tests.sideinput_test',
+                runner         : CommonTestProperties.Runner.DATAFLOW,
+                pipelineOptions: [
+                        job_name             : 'load-tests-python-dataflow-batch-sideinput-1-' + now,
+                        project              : 'apache-beam-testing',
+                        region               : 'us-central1',
+                        temp_location        : 'gs://temp-storage-for-perf-tests/loadtests',
+                        publish_to_big_query : true,
+                        metrics_dataset      : datasetName,
+                        metrics_table        : 'python_dataflow_batch_sideinput_1',
+                        influx_measurement   : 'python_batch_sideinput_1',
+                        input_options        : '\'{' +
+                                '"num_records": 2000000,' +
+                                '"key_size": 100,' +
+                                '"value_size": 900}\'',
+                        num_workers          : 5,
+                        autoscaling_algorithm: 'NONE',
+                        side_input_type      : 'dict',
+                        access_percentage    : 1,
+                ]
+        ],
+        [
+                title          : 'SideInput Python Load test: 2gb-1kb-5workers-1window-99key-percent-dict',
+                test           : 'apache_beam.testing.load_tests.sideinput_test',
+                runner         : CommonTestProperties.Runner.DATAFLOW,
+                pipelineOptions: [
+                        job_name             : 'load-tests-python-dataflow-batch-sideinput-2-' + now,
+                        project              : 'apache-beam-testing',
+                        region               : 'us-central1',
+                        temp_location        : 'gs://temp-storage-for-perf-tests/loadtests',
+                        publish_to_big_query : true,
+                        metrics_dataset      : datasetName,
+                        metrics_table        : 'python_dataflow_batch_sideinput_2',
+                        influx_measurement   : 'python_batch_sideinput_2',
+                        input_options        : '\'{' +
+                                '"num_records": 2000000,' +
+                                '"key_size": 100,' +
+                                '"value_size": 900}\'',
+                        num_workers          : 5,
+                        autoscaling_algorithm: 'NONE',
+                        side_input_type      : 'dict',
+                        access_percentage    : 99,
+                ]
+        ],
+        [
+                title          : 'SideInput Python Load test: 20gb-1kb-5workers-1window-first-iterable',
+                test           : 'apache_beam.testing.load_tests.sideinput_test',
+                runner         : CommonTestProperties.Runner.DATAFLOW,
+                pipelineOptions: [
+                        job_name             : 'load-tests-python-dataflow-batch-sideinput-3-' + now,
+                        project              : 'apache-beam-testing',
+                        region               : 'us-central1',
+                        temp_location        : 'gs://temp-storage-for-perf-tests/loadtests',
+                        publish_to_big_query : true,
+                        metrics_dataset      : datasetName,
+                        metrics_table        : 'python_dataflow_batch_sideinput_3',
+                        influx_measurement   : 'python_batch_sideinput_3',
+                        input_options        : '\'{' +
+                                '"num_records": 20000000,' +
+                                '"key_size": 100,' +
+                                '"value_size": 900}\'',
+                        num_workers          : 5,
+                        autoscaling_algorithm: 'NONE',
+                        side_input_type      : 'iter',
+                        access_percentage    : 1,
+                ]
+        ],
+        [
+                title          : 'SideInput Python Load test: 20gb-1kb-5workers-1window-iterable',
+                test           : 'apache_beam.testing.load_tests.sideinput_test',
+                runner         : CommonTestProperties.Runner.DATAFLOW,
+                pipelineOptions: [
+                        job_name             : 'load-tests-python-dataflow-batch-sideinput-4-' + now,
+                        project              : 'apache-beam-testing',
+                        region               : 'us-central1',
+                        temp_location        : 'gs://temp-storage-for-perf-tests/loadtests',
+                        publish_to_big_query : true,
+                        metrics_dataset      : datasetName,
+                        metrics_table        : 'python_dataflow_batch_sideinput_4',
+                        influx_measurement   : 'python_batch_sideinput_4',
+                        input_options        : '\'{' +
+                                '"num_records": 20000000,' +
+                                '"key_size": 100,' +
+                                '"value_size": 900}\'',
+                        num_workers          : 5,
+                        autoscaling_algorithm: 'NONE',
+                        side_input_type      : 'iter',
+                ]
+        ],
+        [
+                title          : 'SideInput Python Load test: 2gb-1kb-5workers-1window-first-list',

Review comment:
       Looks like even 10GB will be too much for lists. I get the following error:
   
   ```
   Workflow failed. Causes: S03:Impulse+Collect start time metrics+ParDo(SequenceSideInputTestDoFn)/ParDo(SequenceSideInputTestDoFn)+Collect end time metrics failed., The job failed because a work item has failed 4 times. 
   ...
   Root cause: The worker lost contact with the service.
   ```




----------------------------------------------------------------
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:
users@infra.apache.org