source: trunk/Monitoring/doc/README @ 937

Last change on this file since 937 was 937, checked in by jripsl, 11 years ago

Create AMQP queue on supervisor side if not exists already.

File size: 2.9 KB
Line 
1- installation instructions
2        - LibIGCM AMQP agent installation
3                - see CNClient/README
4        - Broker installation
5                - see Broker/README
6        - Supervisor installation
7                - check if EPEL repository is configured, if not, do steps below
8                        - for CENTOS 6
9                          (from http://www.tecmint.com/how-to-enable-epel-repository-for-rhel-centos-6-5/)
10                                - wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
11                                - rpm -ivh epel-release-6-8.noarch.rpm
12                - Python installation
13                        - if python version < 2.6, do
14                                - yum install python26
15                                - yum install python26-devel
16                        - yum install python-devel
17                        - yum install sqlite
18                        - yum install sqlite-devel
19                        - yum install python-sqlite
20                - Virtualenv installation
21                        - mkdir /opt/src
22                        - cd /opt/src/
23                        - wget http://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.10.1.tar.gz
24                        - tar xzvf virtualenv-1.10.1.tar.gz
25                        - rm virtualenv-1.10.1.tar.gz
26                        - cd /opt/src/virtualenv-1.10.1
27                        - check if python use the 2.6 version with
28                                - python -V
29                        - yum install python-pip
30                        - /usr/bin/python virtualenv.py --distribute --unzip-setuptools /opt/python2.6_ve
31                        - source /opt/python2.6_ve/bin/activate
32                - Python PYPI libraries installation
33                        - procedure (as root)
34                                - cd /opt
35                                - cd python2.6_ve/
36                                - cd bin
37                                - source activate
38                                - pip install <package name>
39                        - packages list
40                                - pika     # RabbitMQ client library
41                                - networkx # graph library
42                                - #pip amqplib # not used for now
43                - Prodiguer library installation
44                        - dependencies (PYPI packages)
45                                -
46                                        - yum install gcc
47                                        - yum install postgresql-devel
48                                        - pip install psycopg2
49                                                - doesn't work (Error: pg_config executable not found)
50                                                        - solution is
51                                                                - yum install python-psycopg2.x86_64
52                                                                - yum install libpqxx-devel
53                                                                - yum install python-devel
54                                                                - pip install psycopg2
55                                                                        - works
56                                        - pip install Sqlalchemy
57                                        - pip install elixir
58                                        - pip install simplejson
59                                - notes
60                                        - some Elixir/SQLAlchemy versions are not compatible.
61                                                - to be sure, you can use version below which are compatible
62                                                        - Elixir-0.7.1-py2.6.egg-info
63                                                        - SQLAlchemy-0.7.8-py2.6.egg-info
64                                                - to install specific version with pip, do
65                                                        - pip install SQLAlchemy==0.7.8
66                        - Prodiguer package
67                                - mkdir -p /opt/supervisor/prodiguer_lib
68                                - cd /opt/supervisor/prodiguer_lib
69                                - svn co svn+ssh://<login here>@forge.ipsl.jussieu.fr/ipsl/forge/projets/prodiguer/svn/sw/src/python/trunk/prodiguer_shared/src
70                - Supervisor python script installation
71                        - mkdir /opt/supervisor/local_db
72                        - mkdir /opt/supervisor/log
73                        - svn co svn+ssh://<login here>@forge.ipsl.jussieu.fr/ipsl/forge/projets/libigcm/svn/trunk/Monitoring
74                        - edit "watch" script and edit line below accordingly
75                                - sys.path.append("<snapshot_dir>/src")
76                        - smon/repo_io.py
77                                - sys.path.append("<snapshot_dir>/src")
78        - test
79                - connectivity test
80                        - run command below on supervisor
81                                - telnet pp-db-dev.private.ipsl.fr 5432
Note: See TracBrowser for help on using the repository browser.