OpenEdge Replication Made Easy Adam Backman White Star Software

Slides:



Advertisements
Similar presentations
B3: Putting OpenEdge Auditing to Work: Dump and Load with (Almost) No Downtime David EDDY Senior Solution Consultant.
Advertisements

Networking Essentials Lab 3 & 4 Review. If you have configured an event log retention setting to Do Not Overwrite Events (Clear Log Manually), what happens.
INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC Backup and Recovery Copyright System Managers LLC 2008 all rights reserved.
Skyward Disaster Recovery Options
Recovery Planning A Holistic View Adam Backman, President White Star Software
High Availability Group 08: Võ Đức Vĩnh Nguyễn Quang Vũ
Backup and recovery Basics of Backup and restoration Types of recovery Defining strategy Starting up and shutting down 80/20 rule SLA’s.
FlareCo Ltd ALTER DATABASE AdventureWorks SET PARTNER FORCE_SERVICE_ALLOW_DATA_LOSS Slide 1.
Database Optimization & Maintenance Tim Richard ECM Training Conference#dbwestECM Agenda SQL Configuration OnBase DB Planning Backups Integrity.
Keith Burns Microsoft UK Mission Critical Database.
70-270, MCSE/MCSA Guide to Installing and Managing Microsoft Windows XP Professional and Windows Server 2003 Chapter Thirteen Performing Network.
MCITP Guide to Microsoft Windows Server 2008 Server Administration (Exam #70-646) Chapter 14 Server and Network Monitoring.
PRASHANTHI NARAYAN NETTEM.
Backup and Recovery Part 1.
Chapter 9 Overview  Reasons to monitor SQL Server  Performance Monitoring and Tuning  Tools for Monitoring SQL Server  Common Monitoring and Tuning.
National Manager Database Services
OpenEdge High Availabilty Adam Backman Grand Poobah – White Star Software.
NovaBACKUP 10 xSP Technical Training By: Nathan Fouarge
MOVE-4: Upgrading Your Database to OpenEdge® 10 Gus Björklund Wizard, Vice President Technology.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 12: Managing and Implementing Backups and Disaster Recovery.
Backup & Recovery 1.
DB-12: Achieving High Availability with Clusters and OpenEdge® Replication Combining the two technologies Hugo Loera Chávez Senior Tech Support Engineer.
Building Highly Available Systems with SQL Server™ 2005 Vineet Gupta Evangelist – Data and Integration Microsoft Corp.
SQL Server 2008 Implementation and Maintenance Chapter 7: Performing Backups and Restores.
Course 6425A Module 9: Implementing an Active Directory Domain Services Maintenance Plan Presentation: 55 minutes Lab: 75 minutes This module helps students.
Database Storage Considerations Adam Backman White Star Software DB-05:
Hands-On Microsoft Windows Server 2008
Implementing Database Snapshot & Database Mirroring in SQL Server 2005 Presented by Tarek Ghazali IT Technical Specialist Microsoft SQL Server MVP Microsoft.
Stephan Hurni Consultant Trivadis AG, SQL Server notes from the field.
Business Continuity and Disaster Recovery Chapter 8 Part 2 Pages 914 to 945.
Module 3: Managing Database Files. Overview Introduction to Data Structures Creating Databases Managing Databases Placing Database Files and Logs Optimizing.
Oracle10g RAC Service Architecture Overview of Real Application Cluster Ready Services, Nodeapps, and User Defined Services.
COMP-10: OpenEdge ® Management & Replication – Divide et impera! Cyril Gleiman & Libor Laubacher Principal Technical Support Engineers.
It is one of the techniques to create a stand by server. Introduced in SQL 2000,enhanced in It is a High Availability as well as Disaster recovery.
Chapter 18: Windows Server 2008 R2 and Active Directory Backup and Maintenance BAI617.
Top 10 Performance Hints Adam Backman White Star Software
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.
1 Microsoft Exchange 2000 Server Maintenance and Troubleshooting System Maintenance and Monitoring Database Operation and Maintenance Backup, Restore,
Module 1: Installing and Configuring Servers. Module Overview Installing Windows Server 2008 Managing Server Roles and Features Overview of the Server.
Creating a complete recovery solution Adam Backman Partner, White Star Software.
Oracle 10g Database Administrator: Implementation and Administration Chapter 2 Tools and Architecture.
DONE-08 Sizing and Performance Tuning N-Tier Applications Mike Furgal Performance Manager Progress Software
OPS-15: What was Happening with My Database, AppServer ™, OS... Yesterday, Last Month, Last Year? Libor LaubacherRuanne Cluer Principal Tech Support Engineer.
Systems Management Server 2.0: Backup and Recovery Overview SMS Recovery Web Site location: Updated.
A Brief Documentation.  Provides basic information about connection, server, and client.
UNIX and Shell Programming
Process Architecture Process Architecture - A portion of a program that can run independently of and concurrently with other portions of the program. Some.
HalFILE 2.1 Network Protection & Disaster Recovery.
High Availability in DB2 Nishant Sinha
Enhancing Scalability and Availability of the Microsoft Application Platform Damir Bersinic Ruth Morton IT Pro Advisor Microsoft Canada
Using Progress® Analytical Tools Adam Backman White Star Software DONE-05:
Oracle Architecture - Structure. Oracle Architecture - Structure The Oracle Server architecture 1. Structures are well-defined objects that store the.
Your Data Any Place, Any Time Always On Technologies.
TRUE CANADIAN CLOUD Cloud Experts since The ORION Nebula Ecosystem.
Virtual Machine Movement and Hyper-V Replica
Log Shipping, Mirroring, Replication and Clustering Which should I use? That depends on a few questions we must ask the user. We will go over these questions.
How to setup DSS V6 iSCSI Failover with XenServer using Multipath Software Version: DSS ver up55 Presentation updated: February 2011.
Active-HDL Server Farm Course 11. All materials updated on: September 30, 2004 Outline 1.Introduction 2.Advantages 3.Requirements 4.Installation 5.Architecture.
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.
SQL Server 2016 – New Features Tilahun Endihnew March 12, 2016.
Step-by-Step Guide to Asynchronous Data (File) Replication (File Based) over a WAN Supported by Open-E ® DSS™ Software Version: DSS ver up85 Presentation.
William Durkin A Gourmet Menu of SQL Server High Availability Options.
DB-3: OpenEdge® Replication How-To David Eddy Senior Consultant.
Adam Backman Chief Cat Wrangler – White Star Software
What’s New in OpenEdge Replication?
Always on HA SQL Server Always ON feature is the new comprehensive high availability and disaster recovery solution which increases application availability.
What’s new in SQL Server 2016 Availability Groups
All types of data replication with OE databases
AlwaysOn Availability Groups
Presentation transcript:

OpenEdge Replication Made Easy Adam Backman White Star Software

Agenda Setup – System – Database – Replication Maintenance Transition Common recovery scenarios Conclusion

What is it? and Why Do I Need it?

Types of System Replication True failover – Run the entire operation Partial failover – Run core services only in failover mode Recovery – The target machine is essentially a backup Asynchronous vs. Synchronous

Setup: System Operating system Hardware – Disk – Other resources Support software

Setup: Operating System Operating system version Patches Same Kernel parameters Two Reasons – Nothing unexpected when you fail over – Easier to maintain if both machines are identical

Setup: Disk Both machines need the same storage capacity (DB, application, temp files, …) Source machine can use 200 GB drives and the target can use 1TB drives This will affect performance in the event of a failover but you can choose to run only core services in failover mode

Setup - Other Resources CPU, Memory – Need to support replication Single fast CPU on replication machine Multiple CPUs in Production – Need to support all or some of your users depending on your recovery plan

Setup: Support software Fax EDI PostalSoft All software must be purchased and configured if your failover plan includes moving the users to the replication machine

Setup: Database Must have an existing comprehensive recovery plan in place Must have multi-volume after image setup Target database *should* have the same structure definition as the source

Setup: Replication We will get to the database in a minute but you need to also plan for replication of other portions of the system. Options: – Remote mirrors (hardware) – Operating system commands (Example: rsync) – Any others?

Asynchronous Replication Also know as log-based replication Not true replication but a point in time synchronization between two machines After image files are taken from the source machine and applied throughout the day Pros: – Cheap Cons: – Not synchronous – Must maintain the code yourself

OpenEdge Replication This is a feature/product from Progress that provides real-time synchronization between two or more databases. There is a replication server (source) and one or two replication agents (targets).

What is OpenEdge Replication? Users doing work After Image Source DB OE Replication Server OE Replication Agent(s) Target DB(s)

Pros and Cons: OpenEdge Replication Pros – Supported product (10.1 and above is best) – Real-time replication – Supports reporting on the target side Cons – Not free (REALLY NOT FREE) – Need to learn another set of utilities – No support (currently) for asynchronous replication

Initial Setup: OpenEdge Replication (Offline) After imaging must be enabled for the source database With the database down you can enable site replication for the source database proutil –C enablesitereplication source Move the properties files into place Currently the same directory as the DB Start the source database with -DBService replserv and -pica parameters Do an online backup of the source Restore the backup to the target

-pica Determines the size of the interprocess communication queue between the RDBMS and the replication server Default value 64k in 10.1C+ and 6k before Default value is generally too low Always set it to it’s maximum value – In 10.1C+ set it to 8192 (8MB) – Prior to 10.1C set it to 2048

Initial Setup: OpenEdge Replication (Online) Enable After Imaging (If necessary) Put the replication properties files in place You need to use deferred agent startup [server] defer-agent-startup= Note: number of minutes must be between 0 and (1 week) Enable replication proutil -C enablesitereplication source Do an online backup to build target database proutil online -REPLTargetCreation

Initial Setup: OpenEdge Replication (continued) After the restore to the target is complete Enable site replication on the target proutil –C enablesitereplication target Or prorest -REPLTransition Start the target with -DBService replagent and -S parameters Use the dsrutil utility to monitor replication dsrutil –C monitor Or look for the following message in the target database.lg file “The Source and Target databases are synchronized. (10668).”

Setup: OpenEdge properties files Server Properties File Agent Properties File(s)

Example: source.repl.properties [server] control-agents=agent1 database=source transition=manual transition-timeout=600 [control-agent.agent1] name=agent1 database=source host=moth port=4501 connect-timeout=120 replication-method=async critical=0

Example: target.repl.properties [agent] name=agent1 database=source listener-minport=4387 listener-maxport=4500

Maintenance Issues: OpenEdge Replication Fathom replication does not support 2-phase commit Index rebuild will require a initialization of the replication process (Use: index compact) Index and table moves must be done in multi- user mode Generally, changes to the database must be done in multi-user mode as the broker is the mechanism that starts replication

After image file status Empty – Ready for use Busy – Currently being used Full – Closed and applied to target Locked (Replication only) – Closed and not yet applied to target

Maintenance Is replication running? Other replication maintenance How to do common maintenance tasks – Add extents – Index rebuild

Monitoring Replication Use the dsrutil utility with the monitor option dsrutil -monitor This can be done on the source or target side

Monitoring: Server Site Replication Monitor Version 2 Page 1 Database: /data/source_db Database is enabled as Fathom Replication: Source Server is: Normal processing Number of configured agents: 1 Defer Agent Startup : Continue connection attempts until: Mon Nov 7 11:59: Deferred Agent Startup will expire in : 1 Hr 14 Min 44 Sec Next connection attempt in : 30 Seconds Connections attempts performed 1 Agent(s) currently connected 0 Delay Interval (current / min / max): 25 / 5 / 500 Recovery information State: No recovery being performed Agents needing recovery: 0 Agents connected: 0 Agents in synchronization: 0 Transition information: Type: Manual Transition timeout limit: 600 seconds Source: Progress Fathom Replication User Guide

Monitoring: Agent Site Replication Monitor Version 2 Page 1 Database: /data/source_db Agent: Name: agent1 ID: 1 Host name: localhost Target database: target_db State: Normal processing Critical: No Method: Asynchronous Remote agent is: Connected via broker Source and target are synchronized In normal processing Remote agent is waiting for: Nothing Recovery state: No recovery being performed Maximum bytes in TCP/IP message: Server/Agent connection time: Mon Oct 31 14:50: Server/Agent connection timeout: seconds Transition information: Type: Manual Timeout limit: 0 seconds The last block was sent at: Mon Oct 31 14:57: Activity information: Blocks sent: 720 Blocks acknowledged: 28 Synchronization points 12 AI Block Information: Current RDBMS Block (Seq / Block): 5 / 1923 Last Sent Block (Seq / Block): 5 / 1923 Server to agent load check interval: 10 blocks Time between server and agent load checks: seconds Time taken to respond to load check: seconds Source: Progress Fathom Replication User Guide

Other DSRUTIL Option applyextent Manual application of source AI extents to the target database. canceldefer Do not attempt reconnect to deferred replication agent. connectagent or startagent Start agent(s). disablesitereplication Online disable of replication on the source database. recovery Displays the replication recovery information.

Other DSRUTIL Option relwaits Release any waits so that database activity can continue. restart Restart replication server. terminate Terminates replication server or agent. transition Transition agent to a replication-enabled database. triggertransition Places the target database into a pre-transition state.

Transition Database Roles Changing roles How to transition – Auto – Manual

Database Roles Primary database - The database your application interacts with. Used as a source in normal operations mode Secondary database - The database that acts as a target in normal operations mode These roles do not change but in transition the Primary database can act as a target while the Secondary database interacts with your application

Failover Primary database fails If primary machine is available apply last transactions dsrutil -C applyextent Then transition the database dsrutil -C transition [failover] [failover] will transition the target via the replication agent then transition the source. If replication is not running you cannot use the failover option

Failback No activity on the databases No users on the database Run “dsrutil -C transition failover” This will transition the primary database (now target) to transition to a source and then transition the secondary database (no a source) to a target. If you have “restart-after-transition” set in the properties files then the databases will be restarted in their proper roles

Points to Remember Start with a good backup plan You must have multi-volume AI Choose a replication method that makes sense for you If you choose OpenEdge Replication use asynchronous replication for performance reasons Test extensively before doing replication in your production environment

Questions? Adam Backman

Thank you for your time!