|
|
|
# CouchDB-Cluster
|
|
|
|
|
|
|
|
Erste nicht erfolgreiche Versuche unternahmen wir mit folgenden Anweisungen:
|
|
|
|
```
|
|
|
|
curl -X POST -H "Content-Type: application/json" http://127.0.0.1:5984/_cluster_setup -d '{"action": "enable_cluster", "bind_address":"0.0.0.0", "username": "admin", "password":"vakuum"}'
|
|
|
|
|
|
|
|
curl -X POST -H "Content-Type: application/json" http://admin:vakuum@127.0.0.1:5984/_cluster_setup -d '{"action": "enable_cluster", "bind_address":"0.0.0.0", "username": "admin", "vakuum":"vakuum", "port": 5984, "remote_node": "172.30.56.22", "remote_current_user": "admin", "remote_current_password": "vakuum" }'
|
|
|
|
|
|
|
|
curl -X POST -H "Content-Type: application/json" http://admin:vakuum@127.0.0.1:5984/_cluster_setup -d '{"action": "add_node", "host":"172.30.56.22", "port": 5984 , "username": "admin", "password":"vakuum"}'
|
|
|
|
|
|
|
|
curl -X POST -H "Content-Type: application/json" http://admin:vakuum@127.0.0.1:5984/_cluster_setup -d '{"action": "finish_cluster"}'
|
|
|
|
|
|
|
|
curl http://admin:vakuum@localhost:5984/_membership
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
Als vorläufiger »Haupt-Knoten« diente der Rechner »a73435«, auf dem alle
|
|
|
|
Anweisungen ausgeführt wurden. Als »Zweitknoten« diente »i75422« (Anweisungen 1
|
|
|
|
und 2).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|