Skip to content

Creating a 2-node cluster with couchdb 2.1 never works #978

@harald-d

Description

@harald-d

I tried to create a 2-node cluster multiple times (both on windows and ubuntu) and it never worked. I did exactly as described in the official documentation here:
http://docs.couchdb.org/en/latest/cluster/setup.html#the-cluster-setup-api

Expected Behavior

When i finish the cluster-configuration of the two nodes, i expect to create a database on node1, which should show up on node2. Verification on both nodes via fauxton fails also "internal server error" - that happens both under linux and windows with version 2.1

Current Behavior

I configure both CouchDB via API

node1: (10.0.0.1)
1. POST {"action": "enable_cluster", "bind_address":"0.0.0.0", "username": "admin", "password":"mypassword", "node_count":"2"}

2. POST {"action": "enable_cluster", "bind_address":"0.0.0.0", "username": "admin", "password":"mypassword", "port": 5984, "node_count": "2", "remote_node": "10.0.0.2", "remote_current_user": "admin", "remote_current_password": "mypassword" }

3. POST {"action": "add_node", "host":"10.0.0.2", "port": "5984", "username": "admin", "password":"mypassword"}

4. POST {"action": "finish_cluster"}

Membership-Status:
{"all_nodes":["couchdb@localhost"],"cluster_nodes":["couchdb@10.0.0.2","couchdb@localhost"]}

node2(10.0.0.2)
same configuration as node1, but IP address for other node changes to 10.0.0.1

Membership-Status:
{"all_nodes":["couchdb@localhost"],"cluster_nodes":["couchdb@10.0.0.1","couchdb@localhost"]}

I never defined a zone - is this mandatory for the cluster to work ?
Is there another recommended way to test if the cluster is working ? The goal is to create a 2-node cluster where one node can fail and the dbs continue to operate via node2.

Your Environment

Tried on Windows 10, Windows Server 2016, Ubuntu 14.04
CouchDB 2.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions