Skip to content

Instantly share code, notes, and snippets.

View ceroloy's full-sized avatar

Cemre Demirel ceroloy

  • Netherlands
View GitHub Profile
@ceroloy
ceroloy / prometheus_memory_utilization_investigation.md
Last active December 29, 2021 08:38
Prometheus Memory Usage Investigation

To understand the proper memory limits for Prometheus, we first need to observe the memory usage behavior of the deployment. After the increase in memory, we can clearly see the reported usage doesn't decrease but oscillate around new level. This is an unexpected behavior, and why the RSS memory is not released after the increase needs to be investigated. Keep in mind that this pattern was initially observed in only one region.

Current configuration:

  • Version 2.18.1
  • GoVersion go1.14.2
  • Prometheus Helm Chart: v11.5.0

Screenshot from 2021-10-29 10-51-10

@ceroloy
ceroloy / main.py
Last active December 27, 2019 11:26 — forked from schlamar/example.py
mplog: Python advanced multiprocessing logging.
import logging
import multiprocessing
import time
import mplog
FORMAT = '%(asctime)s - %(processName)s - %(levelname)s - %(message)s'
logging.basicConfig(level=logging.DEBUG, format=FORMAT)
existing_logger = logging.getLogger('x')