cmbi / mrs

Maarten's Retrieval Service
Boost Software License 1.0
0 stars 3 forks source link

Limit CPU use #40

Open jonblack opened 7 years ago

jonblack commented 7 years ago

MRS can take over a machine because there's no limit on memory or CPU use. This is particularly bad for memory use because it ends up using the swap drive, even on chelonium which has 128GB of memory.

Limit the number of threads to 32. This is a command-line option to mrs.

cbaakman commented 7 years ago

Perhaps #21 is related.

cbaakman commented 7 years ago

Command line arguments mrs server cannot be combined with --threads. We have to limit cpu usage in a different way. How about calling ulimit from within the docker container?

jonblack commented 7 years ago

There are docker options for this. I will look into it.