parse-server icon indicating copy to clipboard operation
parse-server copied to clipboard

Advice on memory when running Parse Server inside a container?

Open AndrewLane opened this issue 10 years ago • 4 comments

Sorry if an issue wasn't the appropriate place to ask this, but I couldn't think of anything better. We are targeting running Parse Server in a Docker container, specifically with AWS's Elastic Beanstalk. In that configuration we need to configure the max memory for the container (specifically, containerDefinitions.memory in our Dockerrun.aws.json file). Any recommendation for what to set that value to in PROD? 1GB plenty? Or does it depend on the workload?

AndrewLane avatar Oct 31 '16 13:10 AndrewLane

1Gb should be plenty, the parse-server should take about 200/250Mb of RAM. If you see RAM spikes (above 700Mb), you should probably recycle the server

flovilmart avatar Oct 31 '16 14:10 flovilmart

Here's what our memory usage looks like over the last 72 hours on Heroku. We're running (4) 2x dynos (1gb ram). Heroku restarts dynos every 24 hours afaik.

screenshot 2016-11-02 11 30 57

alexblack avatar Nov 02 '16 18:11 alexblack

Why does the RAM usage vary so much? Because of cache? Will parse-server crash if not enough RAM is granted for things like caching or will it simply slow down/cache less?

noder199 avatar Nov 02 '16 19:11 noder199

I think the RAM usage of our instances vary based on usage, we have peak usage times in our app.

alexblack avatar Nov 02 '16 19:11 alexblack