[
https://issues.apache.org/jira/browse/BEAM-12447?focusedWorklogId=738476&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-738476
]
ASF GitHub Bot logged work on BEAM-12447:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 09/Mar/22 01:16
Start Date: 09/Mar/22 01:16
Worklog Time Spent: 10m
Work Description: y1chi commented on a change in pull request #17032:
URL: https://github.com/apache/beam/pull/17032#discussion_r822208810
##########
File path: sdks/python/apache_beam/runners/portability/sdk_container_builder.py
##########
@@ -338,3 +345,24 @@ def _get_gcs_bucket_and_name(gcs_location):
def _make_tarfile(output_filename, source_dir):
with tarfile.open(output_filename, "w:gz") as tar:
tar.add(source_dir, arcname=SOURCE_FOLDER)
+
+ @staticmethod
+ def _get_cloud_build_machine_type_enum(machine_type: str):
+ if not machine_type:
+ return None
+ mappings = {
+ 'n1-highcpu-8': cloudbuild.BuildOptions.MachineTypeValueValuesEnum.
Review comment:
I've seen some docker exit code 137 error(seems to be OOM) when
prebuilding with large dependencies such as tfx.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 738476)
Time Spent: 3.5h (was: 3h 20m)
> SdkContainerImageBuilder should take machineType configs
> --------------------------------------------------------
>
> Key: BEAM-12447
> URL: https://issues.apache.org/jira/browse/BEAM-12447
> Project: Beam
> Issue Type: Improvement
> Components: runner-dataflow, sdk-py-core
> Reporter: Yichi Zhang
> Priority: P3
> Time Spent: 3.5h
> Remaining Estimate: 0h
>
> When prebuilding the python SDK container harness image with
> SdkContainerImageBuilder on google cloud build, it can run out of memory and
> fail the build with docker exit code 137. The default machineType is only
> n1-standard-1 and it is unlikely sufficient to build large images.
>
> The SdkContainerImageBuilder should take additional machineType configs to
> circumvent the docker OOM issue.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)