Skip to content

Docker compose files should set sensible ulimits for max file handles #256

@k-channon-PA

Description

@k-channon-PA

On some OSes/Docker versions, certain processes will try to enumerate all possible file handles when run in Docker. To prevent this causing a hang on start up if the user hasn't edited the Docker daemon config to limit the max number of file handles.

To avoid frustration, it's probably a good idea to set the max. file handle limits in the ulimits section of the relevant Docker Compose files in Munin.

In order to docker compose up the $/deploy/docker-compose.prod.yml file, I had to add ulimits to jm_proc, istore_proc, aeo_svdc_proc and zookeeper. Used a value of 65536 for both soft and hard limit.

There are many compose files though, so I think it's probably necessary to repeat this in all of them (or at least make some equivalent change take effect in all of them by whatever means)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions