-
Notifications
You must be signed in to change notification settings - Fork 15
Description
I was just testing our MongoDB v17.0 release and Mongo wouldn't start. In fact i can't even read it's help or check it's version...:
root@mongodb ~# mongod --help
Illegal instruction
root@mongodb ~# mongod --version
Illegal instruction
After a bit of searching, I discovered a bug that sums up the situation. A comment from one of the devs notes that v5.0+ has specific CPU requirements.
Apparently, it could be recompiled to allow v5.0 to run on older x86_64 CPUs, although I'm not keen on doing that.
Another option is to stick with v4.4 for now?
I guess another option would be to provide 2 appliances, but 2 things; firstly I don't ahve a compatible CPU and I don't think that mongodb is popular enough for that. My inclination is to stick with v4 for now. We could perhaps have a script to upgrade?
FWIW on Linux to check if your CPU can run v5:
grep flags -m1 /proc/cpuinfo | grep avx
(FWIW, that will only check the first CPU core, but AFAIK, that's enough).