B9: Success with OpenEdge® Replication

Slides:



Advertisements
Similar presentations
Numbers Treasure Hunt Following each question, click on the answer. If correct, the next page will load with a graphic first – these can be used to check.
Advertisements

Angstrom Care 培苗社 Quadratic Equation II
AP STUDY SESSION 2.
1
Copyright © 2003 Pearson Education, Inc. Slide 1 Computer Systems Organization & Architecture Chapters 8-12 John D. Carpinelli.
1 Copyright © 2013 Elsevier Inc. All rights reserved. Chapter 4 Computing Platforms.
Processes and Operating Systems
Copyright © 2011, Elsevier Inc. All rights reserved. Chapter 6 Author: Julia Richards and R. Scott Hawley.
1 Copyright © 2013 Elsevier Inc. All rights reserved. Appendix 01.
Myra Shields Training Manager Introduction to OvidSP.
Properties Use, share, or modify this drill on mathematic properties. There is too much material for a single class, so you’ll have to select for your.
UNITED NATIONS Shipment Details Report – January 2006.
1 Hyades Command Routing Message flow and data translation.
Business Transaction Management Software for Application Coordination 1 Business Processes and Coordination. Introduction to the Business.
1 RA I Sub-Regional Training Seminar on CLIMAT&CLIMAT TEMP Reporting Casablanca, Morocco, 20 – 22 December 2005 Status of observing programmes in RA I.
Local Customization Chapter 2. Local Customization 2-2 Objectives Customization Considerations Types of Data Elements Location for Locally Defined Data.
Process a Customer Chapter 2. Process a Customer 2-2 Objectives Understand what defines a Customer Learn how to check for an existing Customer Learn how.
Custom Statutory Programs Chapter 3. Customary Statutory Programs and Titles 3-2 Objectives Add Local Statutory Programs Create Customer Application For.
Custom Services and Training Provider Details Chapter 4.
1 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt BlendsDigraphsShort.
Chapter 6 File Systems 6.1 Files 6.2 Directories
1 Chapter 12 File Management Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and Design Principles,
1 Click here to End Presentation Software: Installation and Updates Internet Download CD release NACIS Updates.
Photo Slideshow Instructions (delete before presenting or this page will show when slideshow loops) 1.Set PowerPoint to work in Outline. View/Normal click.
© Tally Solutions Pvt. Ltd. All Rights Reserved Shoper 9 License Management December 09.
Impressive Star Softwares (P) Ltd. Presents Sent Item Box-Detail of Mails from Tally ( 1.0 )
Break Time Remaining 10:00.
Turing Machines.
Table 12.1: Cash Flows to a Cash and Carry Trading Strategy.
PP Test Review Sections 6-1 to 6-6
Bright Futures Guidelines Priorities and Screening Tables
EIS Bridge Tool and Staging Tables September 1, 2009 Instructor: Way Poteat Slide: 1.
Physical Aspects [Reflection Modelling] Hauptseminar: Augmented Reality for Driving Assistance in Cars.
Outline Minimum Spanning Tree Maximal Flow Algorithm LP formulation 1.
Bellwork Do the following problem on a ½ sheet of paper and turn in.
CS 6143 COMPUTER ARCHITECTURE II SPRING 2014 ACM Principles and Practice of Parallel Programming, PPoPP, 2006 Panel Presentations Parallel Processing is.
Exarte Bezoek aan de Mediacampus Bachelor in de grafische en digitale media April 2014.
Sample Service Screenshots Enterprise Cloud Service 11.3.
Copyright © 2012, Elsevier Inc. All rights Reserved. 1 Chapter 7 Modeling Structure with Blocks.
Success with ModelSmart3D Pre-Engineering Software Corporation Written by: Robert A. Wolf III, P.E. Copyright 2001, Pre-Engineering Software Corporation,
1 RA III - Regional Training Seminar on CLIMAT&CLIMAT TEMP Reporting Buenos Aires, Argentina, 25 – 27 October 2006 Status of observing programmes in RA.
Basel-ICU-Journal Challenge18/20/ Basel-ICU-Journal Challenge8/20/2014.
1..
CONTROL VISION Set-up. Step 1 Step 2 Step 3 Step 5 Step 4.
Adding Up In Chunks.
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 1 v3.1 Module 2 Networking Fundamentals.
1 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt Synthetic.
1 How Do I Order From.decimal? Rev 05/04/09 This instructional training document may be updated at anytime. Please visit and check the.
Model and Relationships 6 M 1 M M M M M M M M M M M M M M M M
: 3 00.
5 minutes.
1 hi at no doifpi me be go we of at be do go hi if me no of pi we Inorder Traversal Inorder traversal. n Visit the left subtree. n Visit the node. n Visit.
Analyzing Genes and Genomes
Essential Cell Biology
Clock will move after 1 minute
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 1 v3.1 Module 9 TCP/IP Protocol Suite and IP Addressing.
PSSA Preparation.
Essential Cell Biology
The DDS Benchmarking Environment James Edmondson Vanderbilt University Nashville, TN.
Immunobiology: The Immune System in Health & Disease Sixth Edition
Energy Generation in Mitochondria and Chlorplasts
Select a time to count down from the clock above
Murach’s OS/390 and z/OS JCLChapter 16, Slide 1 © 2002, Mike Murach & Associates, Inc.
1 Decidability continued…. 2 Theorem: For a recursively enumerable language it is undecidable to determine whether is finite Proof: We will reduce the.
OpenEdge Replication Made Easy Adam Backman White Star Software
COMP-10: OpenEdge ® Management & Replication – Divide et impera! Cyril Gleiman & Libor Laubacher Principal Technical Support Engineers.
OPS-24: Success with OpenEdge® Replication What you don’t know can hurt you Cyril Gleiman Principal Technical Support Engineer.
DB-2: OpenEdge® Replication: How to get Home in Time … Brian Bowman Sr. Solutions Engineer Sandy Caiado Sr. Solutions Engineer.
OE REPLICATION AKA FATHOM REPLICATION. WHO AM I Currently with Eaton Corp as a Sr. Progress DBA for the past 12 years Started Programming with Progress.
Presentation transcript:

B9: Success with OpenEdge® Replication What you don’t know can hurt you David Eddy Senior Solution Consultant

Obligatory (gratuitious) Quotation An ounce of prevention is worth a pound of cure. 28.35 grams of prevention is worth .45 kilograms of cure

Success With Replication Understand the architecture Know your requirements Analyze your system Plan, configure, deploy,monitor Succeed 3

Agenda Terminology and architecture – Visual Replication performance hotspots Replication availability hotspots Source and target management 4

Replication Terminology Primary – original production machine Secondary – original recovery machine Source – production database Target – recovery database Replication server – rpserver (source) Replication agent – rpagent (target) DBService queue – stores IPC messages Network pipe – TCP/IP rpserver -> rpagent

Architecture of Replication – Primary/Source Primary Machine R/Write Clients AI Extents DB Service Q Repl Server Source Database Database Brk/Server Processes ! 6

Architecture of Replication – Secondary/Target Secondary Machine Repl Agent Database Brk/ServerProcesses Target Database R/O Clients 7

Architecture of Replication Primary Machine Secondary Machine R/Write Clients AI Extents DB Service Q Repl Server Source Database Database Brk/Server Processes Repl Agent Database Brk/ServerProcesses Target Database R/O Clients 8

Agenda Terminology and architecture - Visual Replication performance hotspots Replication availability hotspots Source and target management 9

Database Brk/Server Processes Database Brk/ServerProcesses Performance Hotspots Primary Machine Secondary Machine R/Write Clients AI Extents DB Service Q Repl Server Source Database Database Brk/Server Processes Repl Agent Database Brk/ServerProcesses Target Database R/O Clients 10

Source DB Performance Considerations Speed/power of machine Replication Plus – offload read only clients to target database AI files – fixed extents AI/BI blocksizes should be the same 16 K is the most efficient Need to truncate ai and bi

Target DB Performance Considerations System should not be underpowered by comparison to the source system No need for after-imaging Read only clients

Network Performance WAN vs. LAN The bigger the pipe the better Determine size of pipe Whitepaper available on PDSN http://tinyurl.com/6xqp78

Sample Network Bandwidth Calculation Hourly After Image Blocks from 5 production databases = 713mb By calculation: Replication size = 1.5 * AI size 713mb*1.5 = 1069.5mb Add replication overhead (1.1) 1069.5mb*1.1 = 1176.45mb Throughput per second: 1176.45mb/3600=.32679mb/b Change to kilobytes /s: .32679mb/s * 1000 = 326.79kb/b needed to sustain transfer

Replication Performance – DBService Buffer DBService Buffer Queue must be sized appropriately – Solution P121969 Failure to do so may result in source slowdown and target falling behind Analyze AI activity prior to implementing Use PROMON -> R&D -> Status Display (#1)-> DB Service Manager (#16).

Determining Optimal -Pica The larger the –pica, the further behind the target may get Monitor AI writes during busiest period for one hour -pica = (TAIW/Blockcount) * 1.25 Blockcount depends on version OpenEdge 10 – blockcount is 9.16 Progress® 9.1x – blockcount is 18.2

Sample –Pica Calculation Values up to 8192k for 10.1B01 and later 34560 TAIW over one hour Formula for OE 10: (34560/9.16) * 1.25 = 4716.1572052401746724890829694323 Why not just use 8192???

“Houston, we have a problem” - Promon 03/03/08 Status: Database Service Manager 17:15:02 Communication Area Size : 2049.00 KB Total Message Entries : 18733 Free Message Entries : 4 Used Message Entries : 18729 Registered Database Service Objects Name Rdy Status Messages Locked by OpenEdge Replication Server Y RUN 18729 OpenEdge RDBMS Y REG 0 OpenEdge DB Agent Y RUN 0

Agenda Terminology and Architecture - visual Replication performance hotspots Replication availability hotspots Source and target management 19

Availability Hotspots Primary Machine Secondary Machine R/Write Clients AI Extents DB Service Q Repl Server Source Database Database Brk/Server Processes Repl Agent Database Brk/ServerProcesses Target Database R/O Clients 20

Availability Hotspots Loss of Database TCP or Process Failure Primary Machine Secondary Machine R/Write Clients AI Extents DB Service Q Repl Server Source Database Database Brk/Server Processes DOWN! Locked Repl Agent Database Brk/ServerProcesses Target Database R/O Clients Severed 21

Availability Hotspots – AI Management Replication DOES NOT manage AI files AI Files must be emptied and backed up 10.1A AI archiver became available. Database crashes when no empty AI extents.

Availability Hotspots – Locked AI Files AI “locked” when AI notes not replicated to the target db Common issue – often caused by simple maintenance routines and failure to monitor status of replication Configure the rpserver and rpagent to detect and handle outages All about the *.repl.properties file!! Configure, test well and sleep easier at night

Availability – Many Locked AI Files Use dsrutil monitor against source and target db. Check for replication shared memory If rpagent is running, restart the replication server on the source If rpagent is not running, restart target database and restart replication server

“Houston, we have a problem” – part 2 Extent: 1 Extent: 3 Status: Busy Status: Locked Type: Variable Length Type: Variable Length Path: C:\wrk101c\repl\source.a1 Path: C:\wrk101c\repl\source.a3 Size: 3192 Size: 6264 Used: 3180 Used: 6200 Start: Wed May 14 14:09:34 2008 Start: Wed May 14 14:08:04 2008 Seqno: 5 Seqno: 3 Extent: 2 Extent: 4 Status: Locked Status: Locked Path: C:\wrk101c\repl\source.a2 Path: C:\wrk101c\repl\source.a4 Size: 230008 Size: 25208 Used: 229674 Used: 25063 Start: Wed May 14 13:45:30 2008 Start: Wed May 14 14:08:24 2008 Seqno: 2 Seqno: 4

Availability – All AI Files Locked Source database activity comes to a halt Can you afford to bring the db down? If not - disablesitereplication If yes stop database add new ai files prostrct reorder restart.

Prostrct add sourcedb addai.st Extent: 1 Extent: 4 Status: Busy Status: Locked Type: Variable Length Type: Variable Length Path: C:\wrk101c\repl\source.a1 Path: C:\wrk101c\repl\source.a4 Size: 3192 Size: 25208 Used: 3180 Used: 25063 Start: Wed May 14 14:09:34 2008 Start: Wed May 14 14:08:24 2008 Seqno: 5 Seqno: 4 Extent: 2 Extent: 5 Status: Locked Status: Empty Type: Variable Length Type: Variable Length Path: C:\wrk101c\repl\source.a2 Path: C:\wrk101c\repl\source.a5 Size: 230008 Size: 120 Used: 229674 Used: 0 Start: Wed May 14 13:45:30 2008 Start: N/A Seqno: 2 Seqno: 0 Extent: 3 Extent: 6 Path: C:\wrk101c\repl\source.a3 Path: C:\wrk101c\repl\source.a6 Size: 6264 Size: 120 Used: 6200 Used: 0 Start: Wed May 14 14:08:04 2008 Start: N/A Seqno: 3 Seqno: 0

Prostrct reorder ai sourcedb Extent: 1 Extent: 4 Status: Busy Status: Locked Type: Variable Length Type: Variable Length Path: C:\wrk101c\repl\source.a1 Path: C:\wrk101c\repl\source.a4 Size: 3192 Size: 230008 Used: 3180 Used: 229674 Start: Wed May 14 14:09:34 2008 Start: Wed May 14 13:45:30 2008 Seqno: 5 Seqno: 2 Extent: 2 Extent: 5 Status: Empty Status: Locked Type: Variable Length Type: Variable Length Path: C:\wrk101c\repl\source.a2 Path: C:\wrk101c\repl\source.a5 Size: 120 Size: 6264 Used: 0 Used: 6200 Start: N/A Start: Wed May 14 14:08:04 2008 Seqno: 0 Seqno: 3 Extent: 3 Extent: 6 Path: C:\wrk101c\repl\source.a3 Path: C:\wrk101c\repl\source.a6 Size: 1 20 Size: 25208 Used: 0 Used: 25063 Start: N/A Start: Wed May 14 14:08:24 2008 Seqno: 0 Seqno: 4

Source and Target DBs Won’t Synchronize Try restarting a few times. -Ma, -Mn, -n match? Changes to .properties files? If it continues to fail, contact support Source/target db log files AI files pmmgr.properties file arguments=-logging 2

Agenda Terminology and architecture - visual Replication performance hotspots Replication availability hotspots Source and target management 30

Managing Replication – DSRUTIL Monitor and Status Not immediately obvious when a failure occurs Proactively verify replication performance and status

DSRUtil Monitor DSRUTIL source/target –C monitor Attaches to replication shared memory. Cannot connect to replication shared memory. Status = -1 Checks status of Server and Agent Server status Agent status

DSRUtil source –C monitor OpenEdge Replication Monitor Page 1 Database: C:\wrk101c\repl\source Database is enabled as OpenEdge Replication: Source Server is: In Normal Processing Number of configured agents: 1 Delay Interval (current / min / max): 5 / 5 / 500 Recovery information: State: No recovery being performed Agents needing recovery: 0 Agents connected: 0 Agents in synchronization: 0 Transition information: Type: Manual

DSRUtil target –C monitor (page 1) Database: C:\wrk101c\repl\target Database is enabled as OpenEdge Replication: Target Agent: Name: agent1 ID: 1 Host name: State: Normal Processing Ready: Yes Critical: No Method: Asynchronous Agent is waiting for: Nothing Maximum bytes in TCP/IP message: 8500 Server/Agent connection time: Wed May 14 13:48:43 2008 Delay Interval (current / min / max): 5 / 5 / 500 Transition information: Type: Manual The last block received at: Wed May 14 13:51:14 2008 Activity information: Blocks received: 2084 Blocks processed: 2084

DSRUtil target –C monitor (page 2) Blocks acknowledged: 0 Notes processed: 207774 Transactions started: 10269 Transactions ended: 10269 Synchronization points: 33 AI Block Information: Source RDBMS Block (Seq / Block): 2 / 2516 Last Processed Block (Seq / Block): 2 / 2494 Latency Information: Repl Server behind Source DB by: 1 second(s) Current Source Database Transaction: 13906 Last Transaction Applied to Target: 13793 Target Current as of (Target, Source): Wed May 14 13:51:13 2008, Wed May 14 13:51:13 2008 with delta of 000:00:00

DSRUTIL Status DSRUTIL source/target –C status Return code indicates current state of replication server or agent. Good for automated scripts Grep for return code Replication User Guide provides details

Managing Replication – OE Management OpenEdge Management 10.1B02/3.1B02+ remotely monitor log files 10.1B02 AdminServer running on the remote system Attach OE_DB_Replication Log File Ruleset to the log file monitor Alert/email thrown when message violating rule set appears.

OE Management – Replication Log File Rule Set

Summary Terminology and Architecture Replication performance hotspots Replication availability hotspots Source and target management

Success With Replication Understand the architecture Know your requirements Analyze your system Plan, Configure, Monitor Succeed 40

For More Information, go to… PSDN www.psdn.com/library/kbcategory.jspa?categoryID=21 www.psdn.com/library/kbcategory.jspa?categoryID=334 Knowledge Centrum (esupport.progress.com) 3.1B01/10.1B01 upgrade: P122926, P123418, P123420, P123424, P123426, P123427, P123676 sizing –pica: P121969 Documentation OpenEdge Replication 10.1C docs (www.psdn.com) OpenEdge Management 3.1C docs (www.psdn.com)

? Questions

Thank You