Difference between revisions of "Infrastructure"
Jump to navigation
Jump to search
(mongodb 3.2 install) |
|||
Line 26: | Line 26: | ||
* perl -v | * perl -v | ||
** This is perl 5, version 20, subversion 2 (v5.20.2) built for x86_64-linux-gnu-thread-multi | ** This is perl 5, version 20, subversion 2 (v5.20.2) built for x86_64-linux-gnu-thread-multi | ||
+ | |||
+ | ==== Basic configuration ==== | ||
+ | |||
+ | * apt-get update | ||
+ | * apt-get upgrade | ||
+ | * apt-get install fail2ban | ||
+ | * apt-get install sudo | ||
+ | |||
+ | ==== Users ==== | ||
+ | |||
+ | * admin users with sudo access | ||
+ | * off user | ||
+ | |||
+ | ==== Product Opener dependencies ==== | ||
+ | |||
+ | ===== MongoDB ===== | ||
+ | |||
+ | See https://docs.mongodb.com/manual/tutorial/install-mongodb-on-debian/ | ||
+ | |||
+ | apt-get install mongodb | ||
+ | |||
+ | MongoDB shell version: 2.4.10 | ||
+ | |||
+ | service mongod stop | ||
+ | mv /var/lib/mongodb /home/mongodb | ||
+ | |||
+ | vi /etc/mongod.conf | ||
+ | <pre> | ||
+ | # dbPath: /var/lib/mongodb | ||
+ | dbPath: /home/mongodb | ||
+ | </pre> | ||
+ | |||
+ | service mongod start | ||
+ | |||
+ | Stars with some warnings: | ||
+ | |||
+ | <pre> | ||
+ | mongo | ||
+ | MongoDB shell version: 3.2.7 | ||
+ | connecting to: test | ||
+ | Server has startup warnings: | ||
+ | 2016-06-13T19:34:08.245+0200 I CONTROL [initandlisten] | ||
+ | 2016-06-13T19:34:08.246+0200 I CONTROL [initandlisten] ** WARNING: Cannot detect if NUMA interleaving is enabled. Failed to probe "/sys/devices/system/node/node1": Permission denied | ||
+ | 2016-06-13T19:34:08.246+0200 W CONTROL [initandlisten] | ||
+ | 2016-06-13T19:34:08.246+0200 W CONTROL [initandlisten] Failed to probe "/sys/kernel/mm/transparent_hugepage": Permission denied | ||
+ | 2016-06-13T19:34:08.246+0200 W CONTROL [initandlisten] | ||
+ | 2016-06-13T19:34:08.246+0200 W CONTROL [initandlisten] Failed to probe "/sys/kernel/mm/transparent_hugepage": Permission denied | ||
+ | 2016-06-13T19:34:08.246+0200 I CONTROL [initandlisten] | ||
+ | </pre> |
Revision as of 20:11, 13 June 2016
Infrastructure
This page describes the hardware/software infrastructure for the Open Food Facts + Open Beauty Facts projects.
New server install log
OFF and OBF have been hosted from 2012 to 2016 on a (now very old) OVH dedicated server that is also hosting other projects. On June 13th 2016, a new dedicated server has been ordered specifically for OFF and OBF.
Hardware
- E3-SAT-3 Intel Xeon E3 1245v2 4 c / 8 t 3.4 GHz+ 32 Go 2x 2 To SATA3 Soft 16* 40.00€ HT (SOIT 48.00€ TTC)
- http://www.soyoustart.com/fr/offres/e3-sat-3.xml
Server setup
- Order server and pay.
- Login to manager https://eu.soyoustart.com/manager
- Install server
- Debian 8.4 Stable Jessie
Server configuration
- uname -a
- Linux ns3362784.ip-37-187-74.eu 3.14.32-xxxx-grs-ipv6-64 #7 SMP Wed Jan 27 18:05:09 CET 2016 x86_64 GNU/Linux
- perl -v
- This is perl 5, version 20, subversion 2 (v5.20.2) built for x86_64-linux-gnu-thread-multi
Basic configuration
- apt-get update
- apt-get upgrade
- apt-get install fail2ban
- apt-get install sudo
Users
- admin users with sudo access
- off user
Product Opener dependencies
MongoDB
See https://docs.mongodb.com/manual/tutorial/install-mongodb-on-debian/
apt-get install mongodb
MongoDB shell version: 2.4.10
service mongod stop mv /var/lib/mongodb /home/mongodb
vi /etc/mongod.conf
# dbPath: /var/lib/mongodb dbPath: /home/mongodb
service mongod start
Stars with some warnings:
mongo MongoDB shell version: 3.2.7 connecting to: test Server has startup warnings: 2016-06-13T19:34:08.245+0200 I CONTROL [initandlisten] 2016-06-13T19:34:08.246+0200 I CONTROL [initandlisten] ** WARNING: Cannot detect if NUMA interleaving is enabled. Failed to probe "/sys/devices/system/node/node1": Permission denied 2016-06-13T19:34:08.246+0200 W CONTROL [initandlisten] 2016-06-13T19:34:08.246+0200 W CONTROL [initandlisten] Failed to probe "/sys/kernel/mm/transparent_hugepage": Permission denied 2016-06-13T19:34:08.246+0200 W CONTROL [initandlisten] 2016-06-13T19:34:08.246+0200 W CONTROL [initandlisten] Failed to probe "/sys/kernel/mm/transparent_hugepage": Permission denied 2016-06-13T19:34:08.246+0200 I CONTROL [initandlisten]