lowzyyy
Explanation of horizontal scale. Is it possible to autoscale?
Hi, i am writing a node js backend that will have worker thread for every user which will do endless loop work.
The nature of problem is that i dont know how many users i will get. Sometime it can be 3, or it can be 100, so i need possibility to have option to have dynamic number of threads.
Is it possible to get more threads or i have to limit lets say 10 threads per app and do the replicas? If i create 10 replicas with 10 threads, can i scale down or up if i get more users?
81 replies
How to change memory allocator for a container? (sharp package memory leak)
Hi, i am using sharp node package to convert images for my project but it seems that container ram memory increase with every convert request. The suggestion is to use another allocator (jemalloc) but i dont know how (and where) can i put this command before service start up?
I am guessing that his has to do with something about dockerfile but i am not a docker guy.
RUN apt-get update && apt-get install --force-yes -yy \
libjemalloc1 \
&& rm -rf /var/lib/apt/lists/*
# Change memory allocator to avoid leaks
ENV LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.1
12 replies
Puppeteer error crash: Failed to launch the browser process!
Project id: cc7f19a6-bd5b-4ec4-8b2c-4f69684f4cc4
My puppeteer application occasionally crash. Puppeteer is launched with
args: ["--no-sandbox"]
In that time of a crash i can see on metrics that app ram usage spike from 600mb to 1gb and i get this error log:
https://pastebin.com/9DK4Jqes46 replies