https://kotlinlang.org logo
Title
n

Nikky

12/14/2020, 9:34 AM
how can i run my application with a limited number of cores? i seem to run into a weird issue on google cloud run probably related to having only 2 vCores
w

wasyl

12/14/2020, 9:42 AM
We used to have issues with 1 core, overall you can override some defaults by setting system properties like
<http://kotlinx.coroutines.io|kotlinx.coroutines.io>.parallelism
,
kotlinx.coroutines.scheduler
and
kotlinx.coroutines.default.parallelism
. There’s bunch more, I’m not sure if there’s any extensive documentation about them but I also didn’t search
n

Nikky

12/14/2020, 10:14 AM
hmm, it might just be easier to launch my code in a virtual machine with limited cores