-
Notifications
You must be signed in to change notification settings - Fork 4
LapDevelopment_MongoDB
StephanOepen edited this page Aug 21, 2014
·
13 revisions
The database is stored on a dedicated partition (on the SSD RAID); to prepare and mount the filesystem:
mkfs.ext4 /dev/datavg/mongo
mount /var/lib/mongodb
Install the server, client, and libraries:
yum -y install mongodb mongodb-server libmongodb libmongodb-devel
In /etc/mongodb.conf, enable incoming connections from the ABEL-internal network and require authentication:
bind_ip = 127.0.0.1,10.110.0.132
auth = true
In /etc/init.d/mongod, declare NUMA policy (interleaving memory over all cpus) for the database daemon:
daemon [...] "numactl --interleave=all $exec [...]"
Finally, create a database user laportal with administrator rights:
mongo --authenticationDatabase admin
use admin
db.addUser( { user: "laportal", pwd: "????????", roles: [ "userAdminAnyDatabase" ] } )
For the time being, at least, we assume that all annotations (by all LAP users) share one database and one database user; to initially create the database and user:
mongo --verbose -u laportal -p '????????' admin
use lapstore
db.addUser({ user: "lapstore", pwd: "????????", roles: [ "readWrite" ] })
Home | Forum | Discussions | Events