dbTalk Databases Forums  

ER out of sync

comp.databases.informix comp.databases.informix


Discuss ER out of sync in the comp.databases.informix forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Cveja
 
Posts: n/a

Default ER out of sync - 11-12-2010 , 12:02 PM






We have a simple 2 node ER deployment (IDS 11.5). One node is active
and
the other is standby. Data is correctly replicated from active to
standby node.

But we noticed that commands like

cdr view profile
cdr check repl

are properly executed only on active server displaying data from both
nodes, while on standby they display correct data only for that node,
or
reporting messages like this:
--------------
Connection to server g_server1 failed
Can not connect to g_server1
------------
Where g_server1 is the group of active server.

Documentation says that all cdr commands can be used on each node.

Is it possible to solve this situation?

Reply With Quote
  #2  
Old   
JonnyTDI@Usenet-News.net
 
Posts: n/a

Default Re: ER out of sync - 11-12-2010 , 12:51 PM






On 12/11/2010 18:02, Cveja wrote:
Quote:
We have a simple 2 node ER deployment (IDS 11.5). One node is active
and
the other is standby. Data is correctly replicated from active to
standby node.

But we noticed that commands like

cdr view profile
cdr check repl

are properly executed only on active server displaying data from both
nodes, while on standby they display correct data only for that node,
or
reporting messages like this:
--------------
Connection to server g_server1 failed
Can not connect to g_server1
------------
Where g_server1 is the group of active server.

Documentation says that all cdr commands can be used on each node.

Is it possible to solve this situation?





Hmmm ... are ALL your replicates Primary / Receive only?

Can you on the standby server do dbaccess / connect / "Standy instance"
using any of the DBSERVERNAME / DBSERVERALIAS / group name (obviously
TCP connections only)

You state "ER out of sync" - is there actually data queuing up on the
active? What does cdr list server show?

Reply With Quote
  #3  
Old   
Cveja
 
Posts: n/a

Default Re: ER out of sync - 11-12-2010 , 06:06 PM



On 12 нов, 19:51, "Jonny... (AT) Usenet-News (DOT) net" <Jonny...@Usenet-
News.net> wrote:
Quote:
Hmmm ... are ALL your replicates Primary / Receive only?
Yes.

Quote:
Can you on the standby server do dbaccess / connect / "Standy instance"
using any of the DBSERVERNAME / DBSERVERALIAS / group name (obviously
TCP connections only)
We didn't try that. I can't check whether it works at the moment, but
I
certainly will on Monday.

Quote:
You state "ER out of sync" - is there actually data queuing up on the
active?
No, replication is OK, but we are testing failover scenario.
Actually, we need a way to know in the case of failover, using standby
node, whether the tables in replication are out of sync with the
active
server. We need to know whether it is safe to promote standby server
to
active. We thought we could use consistency check (cdr check repl)
from
standby node. And that's when this problem showed up.

Reply With Quote
  #4  
Old   
Superboer
 
Posts: n/a

Default Re: ER out of sync - 11-15-2010 , 01:26 AM



-->> server. We need to know whether it is safe to promote standby
server
-->> to
-->> active. We thought we could use consistency check (cdr check
repl)


Do not get me wrong here ER is great however when i read above
is it not easyer to use HDR instead of ER in your situation???

(unless of course you have byte and text data in oldfashion
blobspaces..)

Superboer




On 13 nov, 01:06, Cveja <niko... (AT) gmail (DOT) com> wrote:
Quote:
On 12 нов, 19:51, "Jonny... (AT) Usenet-News (DOT) net" <Jonny...@Usenet-

News.net> wrote:
Hmmm ... are ALL your replicates Primary / Receive only?

Yes.

Can you on the standby server do dbaccess / connect / "Standy instance"
using any of the DBSERVERNAME / DBSERVERALIAS / group name (obviously
TCP connections only)

We didn't try that. I can't check whether it works at the moment, but
I
certainly will on Monday.

You state "ER out of sync" - is there actually data queuing up on the
active?

No, replication is OK, but we are testing failover scenario.
Actually, we need a way to know in the case of failover, using standby
node, whether the tables in replication are out of sync with the
active
server. We need to know whether it is safe to promote standby server
to
active. We thought we could use consistency check (cdr check repl)
from
standby node. And that's when this problem showed up.

Reply With Quote
  #5  
Old   
Cveja
 
Posts: n/a

Default Re: ER out of sync - 11-15-2010 , 06:15 AM



On Nov 15, 8:26*am, Superboer <superbo... (AT) t-online (DOT) de> wrote:
Quote:
Do not get me wrong here ER is great however when i read above
is it not easyer to use HDR instead of ER in your situation???

(unless of course you have byte and text data in oldfashion
blobspaces..)
I'm afraid it's not possible to change the replication deployment at
this
point.

Reply With Quote
  #6  
Old   
Cveja
 
Posts: n/a

Default Re: ER out of sync - 11-15-2010 , 06:46 AM



On Nov 12, 7:51*pm, "Jonny... (AT) Usenet-News (DOT) net" wrote:
Quote:
Can you on the standby server do dbaccess / connect
/ "Standy instance" using any of the
DBSERVERNAME / DBSERVERALIAS / group name
(obviously TCP connections only)
It was possible to connect using dbaccess, and
that was the clue that lead us to the solution.
Thanks.

I must admit it was kind of a beginner's mistake.
We didn't use -c option for connection to the other node
explicitly, and the wrong user was invoking the commands.



On a related topic, regarding usage of cdr check repl, when the
tables
have large number of rows, the processing obviously takes significant
amount
of time. We tested table with 180k records and cdr check took 4
minutes
to finish.

Does this command make significant impact on IDS when executed on
large
tables? We're planning to make a script that invokes cdr check repl
which
cron job would call in defined intervals, so our concern is how the
IDS will
handle that.

Reply With Quote
  #7  
Old   
Nilesh Ozarkar
 
Posts: n/a

Default Re: ER out of sync - 11-16-2010 , 04:19 PM



informix-list-bounces (AT) iiug (DOT) org wrote on 11/15/2010 06:46:33 AM:

Quote:
From:

Cveja <nikomah (AT) gmail (DOT) com

To:

informix-list (AT) iiug (DOT) org

Date:

11/15/2010 06:50 AM

Subject:

Re: ER out of sync

Sent by:

informix-list-bounces (AT) iiug (DOT) org

On Nov 12, 7:51*pm, "Jonny... (AT) Usenet-News (DOT) net" wrote:
Can you on the standby server do dbaccess / connect
/ "Standy instance" using any of the
DBSERVERNAME / DBSERVERALIAS / group name
(obviously TCP connections only)

It was possible to connect using dbaccess, and
that was the clue that lead us to the solution.
Thanks.

I must admit it was kind of a beginner's mistake.
We didn't use -c option for connection to the other node
explicitly, and the wrong user was invoking the commands.



On a related topic, regarding usage of cdr check repl, when the
tables
have large number of rows, the processing obviously takes significant
amount
of time. We tested table with 180k records and cdr check took 4
minutes
to finish.

Does this command make significant impact on IDS when executed on
large
tables? We're planning to make a script that invokes cdr check repl
which
cron job would call in defined intervals, so our concern is how the
IDS will
handle that.

Definitely there will be some impact as cdr check repl has to read all the
rows from the
table on source and target to identify inconsistent rows. You could improve
the
performance of cdr check repl by using ifx_replcheck shadow column. Create
the shadow
column and then define unique index using primary key and ifx_replcheck
column.
cdr check repl will use this index to perform speedy consistency check.
More details --
http://publib.boulder.ibm.com/infoce...ds_erp_526.htm


Quote:



_______________________________________________
Informix-list mailing list
Informix-list (AT) iiug (DOT) org
http://www.iiug.org/mailman/listinfo/informix-list

Reply With Quote
  #8  
Old   
mpruet
 
Posts: n/a

Default Re: ER out of sync - 11-17-2010 , 03:38 AM



On Nov 16, 8:19*pm, Nilesh Ozarkar <nile... (AT) us (DOT) ibm.com> wrote:
Quote:
informix-list-boun... (AT) iiug (DOT) org wrote on 11/15/2010 06:46:33 AM:



From:

Cveja <niko... (AT) gmail (DOT) com

To:

informix-l... (AT) iiug (DOT) org

Date:

11/15/2010 06:50 AM

Subject:

Re: ER out of sync

Sent by:

informix-list-boun... (AT) iiug (DOT) org

On Nov 12, 7:51*pm, "Jonny... (AT) Usenet-News (DOT) net" wrote:
Can you on the standby server do dbaccess / connect
/ "Standy instance" using any of the
DBSERVERNAME / DBSERVERALIAS / group name
(obviously TCP connections only)

It was possible to connect using dbaccess, and
that was the clue *that lead us to the solution.
Thanks.

I must admit it was kind of a beginner's mistake.
We didn't *use -c option for connection to the other node
explicitly, and the wrong user was invoking the commands.

On a related topic, regarding usage of cdr check repl, when the
tables
have large number of rows, the processing obviously takes significant
amount
of time. We tested table with 180k records and cdr check took 4
minutes
to finish.

Does this command make significant impact on IDS when executed on
large
tables? We're planning to make a script that invokes cdr check repl
which
cron job would call in defined intervals, so our concern is how the
IDS will
handle that.

Definitely there will be some impact as cdr check repl has to read all the
rows from the
table on source and target to identify inconsistent rows. You could improve
the
performance of cdr check repl by using ifx_replcheck shadow column. Create
the shadow
column and then define unique index using primary key and ifx_replcheck
column.
cdr check repl will use this index to perform speedy consistency check.
More details --http://publib.boulder.ibm.com/infocenter/idshelp/v115/topic/com.ibm.e...

Also, you can include a 'where' clause or 'since' clause in the check
to reduce the number of rows which have to be compared.

Quote:

_______________________________________________
Informix-list mailing list
Informix-l... (AT) iiug (DOT) org
http://www.iiug.org/mailman/listinfo/informix-list

Reply With Quote
  #9  
Old   
Cveja
 
Posts: n/a

Default Re: ER out of sync - 11-18-2010 , 12:29 PM



On Nov 17, 10:38*am, mpruet <mpru... (AT) verizon (DOT) net> wrote:
Quote:
Also, you can include a 'where' clause or 'since' clause in the check
to reduce the number of rows which have to be compared.
On Nov 17, 10:38 am, mpruet <mpru... (AT) verizon (DOT) net> wrote:
Quote:
Also, you can include a 'where' clause or 'since' clause in the check
to reduce the number of rows which have to be compared.
I have a question concerning the use of 'since' clause.
Let's say I have a script that will call cdr check repl every ten
minutes. Each time it uses the last check time for 'since' clause.
As I understand it should report the inconsistencies in given time
interval.

Let's say there are two consecutive reads and in the first
one there are problems (some rows are mismatch) and the
next one ten minutes later shows no problems.

How will the DBA know upon reading the last report
that there were some inconsistencies?
Is the last read the right one?

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.