I’m a big fan of MongoDB but contrary to its “humongous” orientation, I like to think small as in ARM-based SBCs like the Raspberry Pi or ODROID-C2 and DBs under a terabyte 😉 You can get a lot of power out of tiny inexpensive computers and USB disk drives! You can find my blog entries, below, for getting 32-bit MongoDB 3.0 working on R-Pi and 64-bit, MongoDB 3.2 working under ArchLinux ARM on ODROID-C2.
I had seen MongoDB community requests for a 64-bit ARM version and even a mention that there was “official experimental” development going on – including the efficient WiredTiger storage engine. I recently perused the MongoDB Community Edition documentation for version 3.4 and saw a download option for “Ubuntu 16.04 Linux 64-bit ARM 64” on the MongoDB Download Center. Ubuntu 16.04 is the default Linux supplied with the ODROID-C2 🙂 You can purchase a bare ODROID-C2 for US$40 at Hardkernel. Micro SD card or EMMC module with preinstalled Ubuntu Linux is extra.
Click more for installation instructions.
[UPDATE 03/2018] Check out this blog post for instructions on installing MongoDB 3.6 under Ubuntu 16.04.3.
Installing version 3.4 on the ODROID-C2 under Ubuntu is way easy! You can find instructions in the MongoDB 3.4 installation guide.
Get to a command prompt with a “sudo” user. Get the GPG key, add the MongoDB repository, and install the package:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 \ --recv 0C49F3730359A14518585931BC711F9BA15703C6 echo "deb [ arch=amd64,arm64,ppc64el,s390x ] \ http://repo.mongodb.com/apt/ubuntu xenial/mongodb-enterprise/3.4 multiverse" \ | sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list sudo apt-get update sudo apt-get install -y mongodb-enterprise
You can check out the version installed:
mongod --version db version v3.4.1 git version: 5e103c4f5583e2566a45d740225dc250baacfbd7 OpenSSL version: OpenSSL 1.0.2g 1 Mar 2016 allocator: tcmalloc modules: enterprise build environment: distmod: ubuntu1604 distarch: aarch64 target_arch: aarch64
Check out my cluster of ODROID-C2s running MongoDB in this blog post.