-
I run ejabberd in LXC. After upgrading the host system this morning, I started encountering very odd errors that I didn't understand as I have no experience with erlang (yet). I talked with a few friends, though, and they suggested that this issue might be caused by LXC not providing a count of my CPU's logical cores? I want to confirm that this is indeed an issue with LXC rather than ejabberd (or my ejabberd config) before popping into the LXC IRC channel and asking there. Any ideas or suggestions would be greatly appreciated!
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
So this indeed happens because erlang is not able to determine number of processors on that system (and i guess this is something with lxc, maybe erlang process can't access /proc or /sys here, or whatever it uses to determine that?). But this is also something that we can catch in ejabberd, there is couple places where we have similar code, i will try to patch it, for example i commited processone/eimp@48b289e with fix in eimp. |
Beta Was this translation helpful? Give feedback.
So it looks like my options are
erlang:system_info(logical_processors)
to returnunknown
with 2 being the better option, right?