CouchDB: Unterschied zwischen den Versionen

Aus Hostsharing Wiki
Zur Navigation springen Zur Suche springen
(Update to 3.1.1)
Zeile 48: Zeile 48:
   set alert xyz00@h93.hostsharing.net
   set alert xyz00@h93.hostsharing.net
   set httpd port 38008 address localhost
   set httpd port 38008 address localhost
       allow couchdbadmin:chohNeub0Upie9foo3efieme
       allow couchdbadmin:<monit-passwort>
   check process couchdb with pidfile /home/pacs/xyz00/users/couchdb/couchdb/var/couchdb.pid
   check process couchdb with pidfile /home/pacs/xyz00/users/couchdb/couchdb/var/couchdb.pid
       start program "/home/pacs/xyz00/users/couchdb/couchdb/bin/couchdb.sh"
       start program "/home/pacs/xyz00/users/couchdb/couchdb/bin/couchdb.sh"
       stop program "/bin/bash -c '/bin/kill $( cat /home/pacs/xyz00/users/couchdb/couchdb/var/couchdb.pid )'"
       stop program "/bin/bash -c '/bin/kill $( cat /home/pacs/xyz00/users/couchdb/couchdb/var/couchdb.pid )'"

Version vom 20. Mai 2021, 10:47 Uhr

CouchDB

Mit Debian Buster wird CouchDB nicht mehr als Debian Paket auf allen unseren Managed Servern installiert sein.

Ein paar Notizen zum Selbstbau:

 wget https://downloads.apache.org/couchdb/source/3.1.1/apache-couchdb-3.1.1.tar.gz
 tar xzf apache-couchdb-3.1.1.tar.gz 
 cd apache-couchdb-3.1.1
 ./configure -c --spidermonkey-version 60
 make release
 mv rel/couchdb ..
 cd ..
 rm -rf apache-couchdb-3.1.1*

Konfiguration

In der Datei ~/couchdb/etc/local.ini:

 [chttpd]
 port = 35994
 bind_address = 127.0.0.1
 ...
 [admins]
 admin = mein-couch-admin-password

Startskript

 xyz00-couchdb@h00:~$ cat couchdb/bin/couchdb.sh 
 #!/bin/bash
 export ERL_EPMD_ADDRESS=127.0.0.1
 export ERL_EPMD_PORT=34369
 export HOME=/home/pacs/xyz00/users/couchdb
 export COUCHDB_BASE=$HOME/couchdb
 exec $COUCHDB_BASE/bin/couchdb > $COUCHDB_BASE/var/log/couchdb.log 2>&1 &
 echo $! > $COUCHDB_BASE/var/couchdb.pid

Monit

 xyz00-couchdb@h00:~$ cat .monitrc 
 set daemon 60 with start delay 120
 set logfile /home/pacs/xyz00/users/couchdb/monit/var/monit.log
 set idfile /home/pacs/xyz00/users/couchdb/monit/var/monit.id
 set statefile /home/pacs/xyz00/users/couchdb/monit/var/monit.state
 set mailserver localhost
 set mail-format { from: monit@xyz00.hostsharing.net }
 set alert xyz00@h93.hostsharing.net
 set httpd port 38008 address localhost
     allow couchdbadmin:<monit-passwort>
 check process couchdb with pidfile /home/pacs/xyz00/users/couchdb/couchdb/var/couchdb.pid
     start program "/home/pacs/xyz00/users/couchdb/couchdb/bin/couchdb.sh"
     stop program "/bin/bash -c '/bin/kill $( cat /home/pacs/xyz00/users/couchdb/couchdb/var/couchdb.pid )'"