Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docker-compose.yml: Increased pid_limit and added mem_limit #107

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Kvark1205
Copy link

Summary

  • Increased pid_limit to mattermost container which low value caused vary plugin crashes and unableing to use mmctl inside container

Commentary: In case of our mattermost server I can track by systemd-cgtop command that mattermost container using over 200 tasks. This low value on pid_limit caused vary plugins crashing accidentially and failing container healthcheck. This issues was very hard to investigate. I only discover this when I was needed to use mmctl and I was unable to run binary inside container with next error:

runtime/cgo: runtime/cgo: pthread_create failed: Resource temporarily unavailablepthread_create failed: Resource temporarily unavailable
  • Added memory limitation to mattermost container for preventing potential memory leaks

Commentary: This limitations were added to our mattermost server after several memory leaks during last year. Before upgrading to 7.1.3 several leaks was caused by mention 100+ users over @ALL command in channel, but this already fixed afaik. Recent leak that was on latest LTS 7.1.3 relase we ain't determined but we guessing it caused by playbooks plugin beacause of a lot of errors on consumtion memory peak.

Hope this information can help someone.

- Increased pid_limit to mattermost container which low value caused vary plugin crashes and unableing to use mmctl inside container
- Added memory limitation to mattermost container for preventing potential memory leaks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant