Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Configuration with backup node
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Sergey Rudenko  
View profile  
 More options Nov 12 2012, 1:55 am
From: Sergey Rudenko <ser...@rudenko.net>
Date: Sun, 11 Nov 2012 22:55:18 -0800 (PST)
Local: Mon, Nov 12 2012 1:55 am
Subject: Configuration with backup node

Hello,
I want to create a ckuster with the following configuration:

- Node A is first node in cluster, and it will be used as backup node
- Node A does not serve SQL queries
- Node B and C are 'working' nodes - they will be under load and will
receive SQL queries
- If B or C crashed, they will receive SST transfer from A only (I suppose
it contains the most consistent data)
- If A crashed, it will receive SST from B or C.

What value of  'wsrep_urls' I need to have on each node?

My suggestion:

A:

> gcomm:// - at start to form a cluster
> gcomm://B,gcomm://C - after cluster start

> B,C:
> gcomm://A

Is my suggestion right or not?
Thanks.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alex Yurchenko  
View profile  
 More options Nov 12 2012, 5:06 am
From: Alex Yurchenko <alexey.yurche...@codership.com>
Date: Mon, 12 Nov 2012 12:06:26 +0200
Local: Mon, Nov 12 2012 5:06 am
Subject: Re: [percona-group] Configuration with backup node
On 2012-11-12 08:55, Sergey Rudenko wrote:

Hi,

It is right. But it only facilitates reconnection to the cluster. After
that the donor will be chosen automatically.

If you want to configure A as a donor for B and C, you ALSO need

A:
wsrep_node_name="nodeA"

B,C:
wsrep_sst_donor="nodeA"

I take it is does not matter who will be a donor for A, so that will
suffice.

Regards,
Alex

--
Alexey Yurchenko,
Codership Oy, www.codership.com
Skype: alexey.yurchenko, Phone: +358-400-516-011


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sergey Rudenko  
View profile  
 More options Nov 12 2012, 5:42 am
From: Sergey Rudenko <ser...@rudenko.net>
Date: Mon, 12 Nov 2012 02:42:59 -0800 (PST)
Local: Mon, Nov 12 2012 5:42 am
Subject: Re: [percona-group] Configuration with backup node

Thanks a lot, got it.

Some additional questions:

1) Is it good practice or not - by your opinion? (to have a
backup/reference node)

2) Am I right in my actions regarding to setting wsrep_urls?
- I start a cluster with 'gcomm://' on Node A
- then join B and C to cluster
- then change wsrep_urls on Node A to 'gcomm://B,gcomm://C' and restart it

Are these actions exactly correct or may be is there a better way?

Sorry but it's really difficult to understand a mechanism of cluster URLs =)
A lot of howto's about PXC/Galera advise just to leave 'gcomm://' on 1st
node, but if I understood right, it's a way to split-brain.
So, I'm a little bit confused with this issue.

Please help.
Thanks in advance.

понедельник, 12 ноября 2012 г., 14:06:30 UTC+4 пользователь Alexey
Yurchenko написал:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alex Yurchenko  
View profile  
 More options Nov 12 2012, 6:07 am
From: Alex Yurchenko <alexey.yurche...@codership.com>
Date: Mon, 12 Nov 2012 13:06:56 +0200
Local: Mon, Nov 12 2012 6:06 am
Subject: Re: [percona-group] Configuration with backup node
On 2012-11-12 12:42, Sergey Rudenko wrote:

> Thanks a lot, got it.

> Some additional questions:

> 1) Is it good practice or not - by your opinion? (to have a
> backup/reference node)

If you can afford it - definitely yes.

> 2) Am I right in my actions regarding to setting wsrep_urls?
> - I start a cluster with 'gcomm://' on Node A

If we're talking about wsrep_urls parameter, then I'd do

wsrep_urls=gcomm://B,gcomm://C,gcomm://

this way you would not need to restart it below, only remove gcomm://
part (you need to restart it only because mysqld_safe needs to be
restarted to read new wsrep_urls value).

> - then join B and C to cluster
> - then change wsrep_urls on Node A to 'gcomm://B,gcomm://C' and
> restart it
> Are these actions exactly correct or may be is there a better way?

Well, see above. And don't forget to specify ports in wsrep_urls.

> Sorry but it's really difficult to understand a mechanism of cluster
> URLs =)
> A lot of howto's about PXC/Galera advise just to leave 'gcomm://' on
> 1st
> node, but if I understood right, it's a way to split-brain.

No, it is not split-brain, but "split-cluster" which is even worse (a
node forms a separate cluster of his own). Never leave gcomm:// in
configuration. It is only for bootstrapping the cluster.

--
Alexey Yurchenko,
Codership Oy, www.codership.com
Skype: alexey.yurchenko, Phone: +358-400-516-011

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sergey Rudenko  
View profile  
 More options Nov 12 2012, 6:51 am
From: Sergey Rudenko <ser...@rudenko.net>
Date: Mon, 12 Nov 2012 03:51:25 -0800 (PST)
Local: Mon, Nov 12 2012 6:51 am
Subject: Re: [percona-group] Configuration with backup node

Thanks again.

No, it is not split-brain, but "split-cluster" which is even worse (a

> node forms a separate cluster of his own). Never leave gcomm:// in
> configuration. It is only for bootstrapping the cluster.

How can I automatically detect  a 'split-cluster' event in this case?
By monitoring of 'wsrep_cluster_size' on each node?
Or is there some other params like 'cluster_id'?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alex Yurchenko  
View profile  
 More options Nov 12 2012, 7:14 am
From: Alex Yurchenko <alexey.yurche...@codership.com>
Date: Mon, 12 Nov 2012 14:14:40 +0200
Local: Mon, Nov 12 2012 7:14 am
Subject: Re: [percona-group] Configuration with backup node
On 2012-11-12 13:51, Sergey Rudenko wrote:

> Thanks again.

> No, it is not split-brain, but "split-cluster" which is even worse (a
>> node forms a separate cluster of his own). Never leave gcomm:// in
>> configuration. It is only for bootstrapping the cluster.

> How can I automatically detect  a 'split-cluster' event in this case?
> By monitoring of 'wsrep_cluster_size' on each node?

Mostly yes.

> Or is there some other params like 'cluster_id'?

Depending on how the node was restarted, cluster UUID and even
transaction sequence number may be preserved - in order to allow quick
resync with the cluster bypassing SST. So it is definitely not the means
to detect cluster divergence.

--
Alexey Yurchenko,
Codership Oy, www.codership.com
Skype: alexey.yurchenko, Phone: +358-400-516-011

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »