David
03/11/2021, 1:09 PMjohann
03/11/2021, 1:24 PMjohann
03/11/2021, 1:27 PMDavid
03/11/2021, 1:47 PMDavid
03/11/2021, 1:59 PMDavid
03/11/2021, 1:59 PMDavid
03/11/2021, 2:00 PMjohann
03/11/2021, 2:00 PMDavid
03/11/2021, 2:00 PMDavid
03/11/2021, 2:00 PMjohann
03/11/2021, 2:00 PMDavid
03/11/2021, 2:01 PMDavid
03/11/2021, 2:01 PMDavid
03/11/2021, 2:01 PM@solid(
tags={
'dagster-k8s/config': {
'container_config': {
'resources': {
'requests': { 'cpu': '1', 'memory': '1Gi' },
'limits': { 'cpu': '2', 'memory': '8Gi' },
}
},
},
},
required_resource_keys={'elasticsearch'},
output_defs=[DynamicOutputDefinition()]
)
johann
03/11/2021, 2:03 PMkubectl describe job
doesn’t show any of the added config?johann
03/11/2021, 2:04 PMDavid
03/11/2021, 2:06 PMDavid
03/11/2021, 2:06 PMDavid
03/11/2021, 2:07 PM@pipeline(
mode_defs=[
ModeDefinition(
resource_defs={
'elasticsearch': es_resource,
'elasticsearch_async': es_async_resource,
'io_manager': fs_io_manager,
'loop': loop_resource,
# 'gcs': gcs_resource,
},
executor_defs=default_executors + [celery_executor],
)
]
)
def aggregation_pipeline():
johann
03/11/2021, 2:07 PMK8sRunLauncher
, we only create one k8s job for the entire run, so the tag should be on the pipeline. Sorry about the confusionjohann
03/11/2021, 2:08 PMCeleryK8sRunLauncher
, we create a job per solid so you can vary resources at the solid leveljohann
03/11/2021, 2:11 PM