Joining running nodes should be in proper order?

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Joining running nodes should be in proper order?

吴磊
When I join nodes like this:
dev1/bin/riak-admin join dev2@127.0.0.1
dev1/bin/riak-admin join dev3@127.0.0.1

the ring has only 2 nodes: dev1 & dev2. I wait about 30 minutes,
nothing changed.
So I must join the ring nodes in some proper order?

_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Reply | Threaded
Open this post in threaded view
|

RE: Joining running nodes should be in proper order?

OJ Reeves
I've always gone about it the other way:

dev2/bin/riak-admin join dev1
dev3/bin/riak-admin join dev1

Hasn't failed me yet :-)

OJ

Sent from my Windows Phone From: 吴磊
Sent: Monday, 17 January 2011 8:46 PM
To: [hidden email]
Subject: Joining running nodes should be in proper order?
When I join nodes like this:
dev1/bin/riak-admin join dev2@127.0.0.1
dev1/bin/riak-admin join dev3@127.0.0.1

the ring has only 2 nodes: dev1 & dev2. I wait about 30 minutes,
nothing changed.
So I must join the ring nodes in some proper order?

_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Reply | Threaded
Open this post in threaded view
|

Re: Joining running nodes should be in proper order?

Jeremiah Peschka
+1 on what OJ is saying. 

The way you were first doing it is joining dev1 to a ring named [hidden email] and then attempting to join dev1 to a ring named [hidden email]

Jeremiah Peschka
Microsoft SQL Server MVP
MCITP: Database Developer, DBA


On Mon, Jan 17, 2011 at 7:00 AM, OJ Reeves <[hidden email]> wrote:
I've always gone about it the other way:

dev2/bin/riak-admin join dev1
dev3/bin/riak-admin join dev1

Hasn't failed me yet :-)

OJ

Sent from my Windows Phone From: 吴磊
Sent: Monday, 17 January 2011 8:46 PM
To: [hidden email]
Subject: Joining running nodes should be in proper order?
When I join nodes like this:
dev1/bin/riak-admin join [hidden email]
dev1/bin/riak-admin join [hidden email]

the ring has only 2 nodes: dev1 & dev2. I wait about 30 minutes,
nothing changed.
So I must join the ring nodes in some proper order?

_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Reply | Threaded
Open this post in threaded view
|

Re: Joining running nodes should be in proper order?

Sean Cribbs-2
It's best to use "riak-admin ringready" between joins to make sure all nodes agree on the ring.  It's possible that dev2 hadn't finished merging its ring with dev1's yet.

Sean Cribbs <[hidden email]>
Developer Advocate
Basho Technologies, Inc.

On Jan 17, 2011, at 8:39 AM, Jeremiah Peschka wrote:

+1 on what OJ is saying. 

The way you were first doing it is joining dev1 to a ring named [hidden email] and then attempting to join dev1 to a ring named [hidden email]

Jeremiah Peschka
Microsoft SQL Server MVP
MCITP: Database Developer, DBA


On Mon, Jan 17, 2011 at 7:00 AM, OJ Reeves <[hidden email]> wrote:
I've always gone about it the other way:

dev2/bin/riak-admin join dev1
dev3/bin/riak-admin join dev1

Hasn't failed me yet :-)

OJ

Sent from my Windows Phone From: 吴磊
Sent: Monday, 17 January 2011 8:46 PM
To: [hidden email]
Subject: Joining running nodes should be in proper order?
When I join nodes like this:
dev1/bin/riak-admin join [hidden email]
dev1/bin/riak-admin join [hidden email]

the ring has only 2 nodes: dev1 & dev2. I wait about 30 minutes,
nothing changed.
So I must join the ring nodes in some proper order?

_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Reply | Threaded
Open this post in threaded view
|

Re: Joining running nodes should be in proper order?

Denis Titoruk

17.01.2011, в 16:49, Sean Cribbs написал(а):

It's best to use "riak-admin ringready" between joins to make sure all nodes agree on the ring.  It's possible that dev2 hadn't finished merging its ring with dev1's yet.

Even regardless of existing active handoff transfers?
I mean should I wait for the end of existing transfers before join next new node to cluster or not?


Sean Cribbs <[hidden email]>
Developer Advocate
Basho Technologies, Inc.

On Jan 17, 2011, at 8:39 AM, Jeremiah Peschka wrote:

+1 on what OJ is saying. 

The way you were first doing it is joining dev1 to a ring named [hidden email] and then attempting to join dev1 to a ring named [hidden email]

Jeremiah Peschka
Microsoft SQL Server MVP
MCITP: Database Developer, DBA


On Mon, Jan 17, 2011 at 7:00 AM, OJ Reeves <[hidden email]> wrote:
I've always gone about it the other way:

dev2/bin/riak-admin join dev1
dev3/bin/riak-admin join dev1

Hasn't failed me yet :-)

OJ

Sent from my Windows Phone From: 吴磊
Sent: Monday, 17 January 2011 8:46 PM
To: [hidden email]
Subject: Joining running nodes should be in proper order?
When I join nodes like this:
dev1/bin/riak-admin join [hidden email]
dev1/bin/riak-admin join [hidden email]

the ring has only 2 nodes: dev1 & dev2. I wait about 30 minutes,
nothing changed.
So I must join the ring nodes in some proper order?

_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Reply | Threaded
Open this post in threaded view
|

Re: Joining running nodes should be in proper order?

Sean Cribbs-2
Yes, it's best to wait until handoff is done. In the described setup, however, it was a "developer" setup on a single machine, probably without any data in it.

Sean Cribbs <[hidden email]>
Developer Advocate
Basho Technologies, Inc.

On Jan 17, 2011, at 8:58 AM, Denis Titoruk wrote:


17.01.2011, в 16:49, Sean Cribbs написал(а):

It's best to use "riak-admin ringready" between joins to make sure all nodes agree on the ring.  It's possible that dev2 hadn't finished merging its ring with dev1's yet.

Even regardless of existing active handoff transfers?
I mean should I wait for the end of existing transfers before join next new node to cluster or not?


Sean Cribbs <[hidden email]>
Developer Advocate
Basho Technologies, Inc.


_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Reply | Threaded
Open this post in threaded view
|

Re: Joining running nodes should be in proper order?

bryan-basho
Administrator
In reply to this post by 吴磊
On Mon, Jan 17, 2011 at 5:46 AM, 吴磊 <[hidden email]> wrote:
> When I join nodes like this:
> dev1/bin/riak-admin join dev2@127.0.0.1
> dev1/bin/riak-admin join dev3@127.0.0.1
>
> the ring has only 2 nodes: dev1 & dev2. I wait about 30 minutes,
> nothing changed.

I ran into this bug last week as well.  I've filed an issue to track
its status.  You can follow it here:

https://issues.basho.com/show_bug.cgi?id=972

The solution, for now, as other people have suggested, is to run the
'join' on the nodes you are adding to the cluster, and pass them the
names of nodes already in the cluster.  So, in your example, use this
form instead:

    dev2/bin/riak-admin join dev1@127.0.0.1
    dev3/bin/riak-admin join dev1@127.0.0.1

-Bryan

_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com