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

Problem with Postgresql 13 on a K8s Cluster #3722

Open
alihoda opened this issue Mar 2, 2024 · 1 comment
Open

Problem with Postgresql 13 on a K8s Cluster #3722

alihoda opened this issue Mar 2, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@alihoda
Copy link

alihoda commented Mar 2, 2024

Describe the Bug:
We had deployed golart (v0.31.1) and a postgresql 11 on our k8s cluster. Everything was good till we upgraded the postgresql to version 13. After about two days we realized that the postgresql usage memory is going up. After some digging, we saw this in goalert log: goalert-web-9c5cc6f9-llkfd tw-03 web time="2024-02-18T04:18:54Z" level=error AuthSystemComponent=Engine Trigger=INTERVAL error="parse error response: invalid character '<' looking for beginning of value".

Steps to Reproduce:

  1. A postgresql 13 on k8s
  2. A goalert instance on k8s

Expected Behavior:
Works like when postgresql version is 11.

Observed Behavior:
Postgresql crashed because of ram oom.

Application Version:
Using golart v0.31.1 docker image.

@alihoda alihoda added the bug Something isn't working label Mar 2, 2024
@mastercactapus
Copy link
Member

This is a known issue with Postgres on Linux:
https://github.com/target/goalert/blob/master/docs/getting-started.md#database

Note: If you are using default install of Postgres on Debian (maybe others) you may run into an issue where the OOM (out of memory) killer terminates the supervisor process. More information along with steps to resolve can be found here.

https://www.postgresql.org/docs/current/kernel-resources.html#LINUX-MEMORY-OVERCOMMIT

The default virtual memory behavior on Linux is not optimal for PostgreSQL. Because of the way that the kernel implements memory overcommit, the kernel might terminate the PostgreSQL postmaster (the supervisor server process) if the memory demands of either PostgreSQL or another process cause the system to run out of virtual memory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants