[
https://issues.apache.org/jira/browse/AIRFLOW-1633?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tao Feng reassigned AIRFLOW-1633:
---------------------------------
Assignee: Tao Feng
> docker_operator needs a way to set shm_size
> -------------------------------------------
>
> Key: AIRFLOW-1633
> URL: https://issues.apache.org/jira/browse/AIRFLOW-1633
> Project: Apache Airflow
> Issue Type: Improvement
> Reporter: Gregory Benison
> Assignee: Tao Feng
> Priority: Major
>
> The "docker run" command line client has an option "--shm-size" that allows
> setting the size of /dev/shm in the container. The "docker" package - on
> which docker_operator is based - does provide an interface for setting this
> property; docker.utils.create_host_config() has a "shm_size" argument that
> defaults to None. However docker_operator calls that method in a way that
> does not provide a mechanism for accessing that argument:
> {noformat}
> self.container = self.cli.create_container(
> command=self.get_command(),
> cpu_shares=cpu_shares,
> environment=self.environment,
>
> host_config=self.cli.create_host_config(binds=self.volumes,
>
> network_mode=self.network_mode),
> image=image,
> mem_limit=self.mem_limit,
> user=self.user
> )
> {noformat}
> It would be useful to provide a way to pass the "shm_size" option to the call
> to create_host_config(). Actually create_host_config() has a large number of
> options that can't be controlled through docker_operator - perhaps it would
> make sense to find a way to expose all or most of them.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)