Low file descriptors limit (1024) with AMI or OVF images causes errors

Description

User Impact: Prometheus can fail with "Too many open files" error on AWS and OVF PMM2 Server
STR:

  1. Run AWS or OVF PMM2 server

  2. Check limits

Given result: Max open files 1024 4096 files
Expected result The limit should be increased.

Original report:
PMM instances deployed in AWS Marketplace, have very incompetent limits set for open file descriptors (1024) by default. This can fail prometheus  with Too many open files issues and can happen in many different work flows.

I have created two PMM instances one in AWS Market place and the other in docker containers. You can see the file descriptors limit set in both the environments and there is huge difference between them.

AWS Marketplace:

Docker container:

  Docker container has 1048576 where as AWS instance has 1024 which is far less than its counterpart.

 

Workaround: 

One needs to create an override file using systemctl edit as given below.

 Sample Error:

This limit needs to be as high as in docker container variant.

How to test

None

How to document

None

AFFECTED CS IDs

242066

Smart Checklist

Activity

Show:

Zoriana Stefanyshyn May 28, 2021 at 2:14 PM

Tested on latest OVF and AMI images. Fixed.

Zoriana Stefanyshyn May 28, 2021 at 9:36 AM

 please merge changes. I will check on new build images.

Vojtech Koval May 18, 2021 at 12:01 PM
Edited

Unable to setup AWS instance from the FB therefore I've moved it back to in progress

Done

Details

Assignee

Reporter

Priority

Components

Needs QA

Yes

Fix versions

Story Points

Affects versions

Environment

AWS Marketplace EC2
PMM 1.17

Smart Checklist

Created December 5, 2018 at 3:50 PM
Updated October 9, 2024 at 8:37 AM
Resolved May 28, 2021 at 2:14 PM