-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
107 lines (71 loc) · 3.04 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
=====================================================
Ganeti using CouchDB as an alternative storage engine
=====================================================
General Notes
=============
A NoSQL approach to Ganeti, using Apache CouchDB as an alternative storage
solution along with the default filesystem engine.
The config.data file, the job queue, and the archive directory can be chosen
to be saved to the CouchDB server instead of the filesystem during cluster init:
$ gnt-cluster init --enabled-hypervisors=%hypervisors% --no-ssh-init \
--secondary-ip=%secondary_ip% (...) --backend_storage=%disk|couchdb% %CLUSTER_NAME%
If the CouchDB solution chosen, a different approach for the configuration management
will be followed.
For more information visit the following link:
http://<to-be-updated-soon>
Ganeti 2.7
==========
For installation instructions, read the INSTALL and the doc/install.rst
files.
For a brief introduction, read the ganeti(7) manpage and the other pages
it suggests.
CouchDB 1.5.0 package requirements
===================================
Installing Erlang/OTP from package manager
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
For CouchDB version 1.5.0 install Erlang/OTP R15B01 version
($ apt-cache show erlang | grep Version -> Version: 1:15.b.1-dfsg-4)
$ apt-get install erlang erlang-dev erlang-base erlang-base-hipe
CouchDB dependencies
~~~~~~~~~~~~~~~~~~~~
Also check aptitude couchdb packet dependencies ($ apt-cache show couchdb)
The following packages covers the default dependencies
$ apt-get install libssl0.9.8 libssl-dev zlib1g zlib1g-dev lsb-base \
ncurses-dev libncurses-dev unixodbc unixodbc-dev xsltproc libmozjs-dev \
libicu-dev libmozjs185-dev libmozjs185-1.0 libjs-jquery-form libnspr4 \
libnspr4-0d libnspr4-dev libcurl4-openssl-dev curl
Optional for building documentation
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$ apt-get install help2man python-sphinx texlive-latex-base texlive-latex-recommended \
texlive-latex-extra texlive-fonts-recommended texinfo
Python library for CouchDB
~~~~~~~~~~~~~~~~~~~~~~~~~~
$ pip install CouchDB
Installing and Configuring CouchDB
==================================
Installation
~~~~~~~~~~~~
$ cd /usr/local/src
$ wget http://apache.tsl.gr/couchdb/source/1.5.0/apache-couchdb-1.5.0.tar.gz
$ tar xzvf apache-couchdb-1.5.0.tar.gz
$ cd apache-couchdb-1.5.0/
$ ./configure --prefix=/usr
$ make && make check && make install
Setting permissions
~~~~~~~~~~~~~~~~~~~
$ /usr/sbin/adduser --system --home /usr/var/lib/couchdb --no-create-home \
--shell /bin/bash --group --gecos "CouchDB Administrator" couchdb
$ chown -R couchdb:couchdb /usr/etc/couchdb
$ chown -R couchdb:couchdb /usr/var/{lib,log,run}/couchdb
$ chmod 0770 /usr/etc/couchdb
$ chmod 0770 /usr/var/{lib,log,run}/couchdb
Start CouchDB manually
~~~~~~~~~~~~~~~~~~~~~~
$ couchdb /usr/bin/couchdb
Run CouchDB as a daemon
~~~~~~~~~~~~~~~~~~~~~~~
$ ln -s /usr/etc/init.d/couchdb /etc/init.d/couchdb
$ /etc/init.d/couchdb start
Start CouchDB on system start
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$ update-rc.d couchdb defaults