src-d / engine-deprecated

[DISCONTINUED] Go to https://github.com/src-d/sourced-ce/
https://docs.sourced.tech/engine
Apache License 2.0
217 stars 26 forks source link

Add cpu limits to gitbase container #452

Closed carlosms closed 5 years ago

carlosms commented 5 years ago

Fix #279.

Queries like select * from files order by... can freeze the system. It's happened to me a few times, and I've had to reboot my laptop. This PR adds a limit on the container access to the host CPU.

I chose a limit of 75% a bit arbitrarily. After playing around with a few values it seemed like the sweet spot.