Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

MongoDB server

Pete R Jemian edited this page Jul 12, 2022 · 10 revisions

MongoDB installation

APS (RedHat)

For the MongoDB server at APS beam lines, use dbbluesky1, dbbluesky2, ... (Contact the BCDA group for an assignment.)

Debian (Ubuntu, Linux Mint, ...)

For Linux OS using a Debian (or derivative such as Ubuntu or Linux Mint) distribution, follow here.

  • NAME="Ubuntu"
  • VERSION="19.10 (Eoan Ermine)"
  • ID=ubuntu
  • ID_LIKE=debian
  • PRETTY_NAME="Ubuntu 19.10"
  • VERSION_ID="19.10"

See instructions here for most recent version: https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-ubuntu/#install-mongodb-community-edition

  • execute all commands as root
  • assume mongodb not installed
wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add -
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list
apt-get update
apt-get install -y mongodb-org
systemctl start mongod
systemctl enable mongod

Databroker

Next, proceed with installation of a YAML configuration file that describes how Bluesky's databroker will connect with the MongoDB server. Read more: https://github.com/BCDA-APS/use_bluesky/blob/main/install/README.md#install-databroker-configuration-file