i want limit pool size amount of cpus. how can know amount of cores in cpu elixir?
you can use system.schedulers_online/0 number of available schedulers. defaults number of cores.
this can configured on boot +s
flag http://erlang.org/doc/man/erl.html#+s
if need number of cores can use:
:erlang.system_info(:logical_processors_available)
you can see option (and many others) on http://www1.erlang.org/doc/man/erlang.html#system_info-1
Comments
Post a Comment