Perforce Replication. The Definitive Guide. Sven Erik Knop Senior Consultant

Similar documents
Helix Versioning Engine Administrator Guide: Multi-Site Deployment

Real-time Replication in the Real World. Richard E. Baum C. Thomas Tyler

Server Deployment Package for Perforce Helix. User Guide (for Unix) Perforce Software, Inc.

Helix Versioning Engine Administrator Guide: Multi-Site Deployment

Sorting the post An introduction to the Perforce Broker

Perforce System Administrator s Guide

Server Deployment Package. User/Admin Guide (for Windows Version) Perforce Software, Inc.

Still All on One Server: Perforce at Scale

High Availability and Disaster Recovery Solutions for Perforce

SAN for Business Continuity

Efficiently Backing up Terabytes of Data with pgbackrest. David Steele

Post-Change Task List

Efficiently Backing up Terabytes of Data with pgbackrest

EMC RecoverPoint. EMC RecoverPoint Support

Modify IP Addresses for Servers Defined by IP Address

Better Living Through New Releases

MarkLogic Server. Database Replication Guide. MarkLogic 6 September, Copyright 2012 MarkLogic Corporation. All rights reserved.

P4EXP Help January 2018

MarkLogic Server. Database Replication Guide. MarkLogic 9 May, Copyright 2017 MarkLogic Corporation. All rights reserved.

Maximum Availability Architecture (MAA): Oracle E-Business Suite Release 12

Perforce System Administrator s Guide

MBS Microsoft Oracle Plug-In 6.82 User Guide

A High Performance, High Reliability Perforce Server. Shiv Sikand, IC Manage Marc Lewert, Angela Thomas, TiVo

Commvault Backup to Cloudian Hyperstore CONFIGURATION GUIDE TO USE HYPERSTORE AS A STORAGE LIBRARY

Google File System 2

Error code. Description of the circumstances under which the problem occurred. Less than 200. Linux system call error.

Perforce Command Reference

HowTo DR. Josh Berkus PostgreSQL Experts pgcon 2014

Oracle Plug-in Version 6.85 for Microsoft Windows User s Guide

VPLEX & RECOVERPOINT CONTINUOUS DATA PROTECTION AND AVAILABILITY FOR YOUR MOST CRITICAL DATA IDAN KENTOR

Perforce System Administrator s Guide

Memory may be insufficient. Memory may be insufficient.

VMware Backup and Replication Enterprise Edition

High Availability- Disaster Recovery 101

High Availability Deployment Configuration

P4EXP Help July 2018

VMware admins: Can your DR do this?

Perforce : System Administrator's Guide. March 2014

Copyright 2010 EMC Corporation. Do not Copy - All Rights Reserved.

Oracle Zero Data Loss Recovery Appliance (ZDLRA)

SQL Server Virtualization 201

Managing Copy Services

Expert Oracle GoldenGate

HP Designing and Implementing HP Enterprise Backup Solutions. Download Full Version :

MarkLogic Server. Flexible Replication Guide. MarkLogic 9 May, Copyright 2018 MarkLogic Corporation. All rights reserved.

SAP HANA Disaster Recovery with Asynchronous Storage Replication

TSM Paper Replicating TSM

XOsoft Product Offering Evaluation

Perforce Command Reference

Replicating Mainframe Tape Data for DR Best Practices

ArcGIS Enterprise: Configuring Backups, Disaster Recovery, and Replication. Harrold Sompotan and Patrick Jackson

HowTo DR. Josh Berkus PostgreSQL Experts SCALE 2014

Arcserve Replication and High Availability

IBM WebSphere Application Server 8. Clustering Flexible Management

DB2 for Linux, UNIX, Windows - Adv. Recovery and High Availability

ZDLRA High Availability for Backup and Recovery

IBM Spectrum Storage Professional Certification Program

Helix Core Server Administrator Guide: Fundamentals

Redefine Data Protection: Next Generation Backup And Business Continuity

MOVING TOWARDS ZERO DOWNTIME FOR WINTEL Caddy Tan 21 September Leaders Have Vision visionsolutions.com 1

Maintaining a Microsoft SQL Server 2005 Database Course 2780: Three days; Instructor-Led

SnapMirror Configuration and Best Practices Guide for Clustered Data ONTAP

Git Fusion Guide February 2016 Update

Actian Hybrid Data Conference 2017 London Actian Corporation

Migration of Existing NSM Server from standalone to an Extended HA environment

DRBD 9. Lars Ellenberg. Linux Storage Replication. LINBIT HA Solutions GmbH Vienna, Austria

LIDS AS Console Version 7.3.0

Perforce Server Administrator's Guide: Cluster Management

Perforce : Git Fusion Guide. September 2013

XtremIO Business Continuity & Disaster Recovery. Aharon Blitzer & Marco Abela XtremIO Product Management

Notices Carbonite Availability for Linux User's Guide Version 8.1.1, Thursday, April 5, 2018 If you need technical assistance, you can contact

Added SerialNumber object to ECESSA-MIB Description Device serial number is readable via ECESSA-MIB::SerialNumber.0.

The most powerful engine for your analytics! EXAoperation 5.0.rc2 Reference

Git Fusion Guide July 2015 Update

SQL Azure. Abhay Parekh Microsoft Corporation

IBM soliddb and IBM soliddb Universal Cache

Version Double-Take Availability for Linux User's Guide

Oracle Plug-in for Windows Agent 7.2 User Guide

UNIVERSITY AUTHORISED EDUCATION PARTNER (WDP)

TSM Studio Dataview's and Dataview Commands. TSM Studio

ZENworks Mobile Workspace High Availability Environments. September 2017

Agenda. What is Replication?

Check Table Oracle Database Status Windows Script

Chapter 10 Protecting Virtual Environments

High Noon at AWS. ~ Amazon MySQL RDS versus Tungsten Clustering running MySQL on AWS EC2

NetBackup TM for VMware configuration

DELL EMC UNITY: REPLICATION TECHNOLOGIES

Database Backup and Recovery Best Practices. Manjot Singh, Data & Infrastrustructure Architect

Balakrishnan Nair. Senior Technology Consultant Back Up & Recovery Systems South Gulf. Copyright 2011 EMC Corporation. All rights reserved.

WANSyncHA Microsoft Exchange Server. Operations Guide

Microsoft SQL Server Database Protection Using EqualLogic Auto-Snapshot Manager / Microsoft Edition

Designing Database Solutions for Microsoft SQL Server 2012

NET EXPERT SOLUTIONS PVT LTD

RecoverPoint Operations

CA ARCserve Replication and High Availability

SEVENMENTOR TRAINING PVT.LTD

MMS Backup Manual Release 1.4

Azure Webinar. Resilient Solutions March Sander van den Hoven Principal Technical Evangelist Microsoft

Editions comparison. Veeam Availability Suite. Veeam Availability Suite includes Veeam ONE

Editions comparison. Veeam Availability Suite. Veeam Availability Suite includes Veeam ONE

Transcription:

Perforce Replication The Definitive Guide Sven Erik Knop Senior Consultant

SOME QUOTES Deutsch s Eight Fallacies of Distributed Computing: The network is reliable. Latency is zero. Bandwidth is infinite. The network is secure. Topology doesn't change. There is one administrator. Transport cost is zero. The network is homogeneous. (Peter Deutsch)

CURRENT PROBLEMS Perforce server benefits from replication High availability Disaster recovery Load sharing (for example for reports and build servers) rsync has issues Cannot handle running Perforce server gracefully Building file list takes too long No transactional safety External dependency and processes

SOLUTION Server-to-Server replication Directly supported by Perforce out-of-the-box Asynchronous based on journal file Supports both Metadata-only and full replication No need for external scripts, complete solution Replica server is running in read-only mode Requires separate license file (free of charge)

ARCHITECTURE pull pull -u db.* state db.* depots journal depots rdb.lbr Master Replica

P4 PULL Run against the replica server Command Effect p4 pull Retrieve missing journal entries, then terminate p4 pull i <N> Continuously pull every <N> seconds p4 pull u Retrieve missing file revisions, then terminate p4 pull u i <N> Continuously pull file revisions p4 pull l List missing file revisions or errors Can be run as background task inside the replica

HOW DOES PULL KEEP TRACK? state file Text file normally located in the replica P4ROOT directory journal#/offset Allows replication to be interrupted Master server can rotate journal file Specify -J prefix if master uses journal prefix for checkpoints rdb.lbr database Binary file located in the replica P4ROOT directory Contains information on missing archive revisions

JOURNAL ROTATION AND PREFIX Master p4 admin checkpoint/journal [-z] prefix Do not use z (compression)! If you use a prefix, use the same prefix for p4 pull Replica p4 pull J prefix [-i <N>] Journal will rotated in sync with the master (in P4ROOT)

CONFIGURATION p4 pull is designed to be a background process Started from the replica server One process for retrieving metadata Several additional processes to retrieve archive data Use the new p4 configure set p4 configure set monitor=3 p4 configure set repl1#statefile=repl1_state

PREPARE IN THE MASTER P4NAME=Master P4NAME=Repl_1 checkpoint restore monitor=1 Repl_1#monitor=3 Repl_1#P4TARGET=master:1666 Repl_1#P4PORT=repl1:1666 Repl_1#P4LOG=repl1_log Repl_2#monitor=3 Repl_2#P4TARGET=master:1666 Repl_2#P4PORT=repl2:1999 Repl_2#P4LOG=repl2_log monitor=1 Repl_1#monitor=3 Repl_1#P4TARGET=master:1666 Repl_1#P4PORT=repl1:1666 Repl_1#P4LOG=repl1_log Repl_2#monitor=3 Repl_2#P4TARGET=master:1666 Repl_2#P4PORT=repl2:1999 Repl_2#P4LOG=repl2_log P4NAME determines which configuration is active

CONFIGURATION PARAMETERS Parameter Values (examples) P4PORT 1666 P4TARGET master:1666 db.replication readonly lbr.replication readonly serviceuser service_replica monitor 1 startup.1 pull i 1[-J prefix] startup.2 pull u i 1 startup.3 pull u i 1

SERVICEUSER Special user for background processes Type: Service Ignores AUTH_CHECK trigger, local password instead Needs entry in the protection table, typically super Does not consume a license Can only run a few limited commands p4 login p4 logout p4 passwd p4 info p4 user Needs to be logged in before replication can start P4TICKETS

MONITORING p4 monitor show a (on replica) 695 R service 72:22:23 pull -i 1 696 R service 72:22:23 pull -u -i 1 697 R service 72:22:23 pull -u -i 1 p4 logtail (on master, with server=1..3) rmt-journal rmt-filefetch p4 pull l Reports pending archive file transfers p4 verify

CONNECT TO THE REPLICA Replica is read-only p4 login requires database change for ticket Solution: Replica forwards request to Master p4 pull retrieves ticket from Master p4 login can experience delay Alternative: P4AUTH pointing to master server Faster in LAN, but slower in WAN

COMMANDS ON THE REPLICA Only read-only commands are allowed p4 sync p, p4 print, but not p4 sync Clients used against the replica must be created on the master server Will be replicated across Timestamps do not get updated

USE CASES: HIGH AVAILABILITY Recommended: identical hardware to master Asynchronous solution: Replica can be a few seconds behind master HA server usually within the same LAN Failover procedure: Stop replica Restart with P4NAME set to master name! Replica becomes the master Currently no fallback to former master Need to build a new replica Do not automate failover!

USE CASES

USE CASES: DISASTER RECOVERY Hardware requirements typically less than HA DR Server is not expected to handle the same load DR replica can be several minutes behind master DR server needs to be physically separated from master RPO (recovery point objective) depends on bandwidth Failover scenarios similar to HA

USE CASES: BUILD SERVER Usable for full builds No incremental file update of the workspace Need to use p4 sync p or p4 print to retrieve files Use long-lasting ticket or P4AUTH to avoid delay waiting for p4 login Can use P4Broker to redirect read-only commands to replica (http://kb.perforce.com/article/1354) Alternative to P4Proxy for builds

USE CASES: REPORTING Reporting does not require access to archive files Reporting replica: lbr.replication=none No p4 pull u background tasks Can also be used with P4Broker Use p4 replicate instead of p4 pull to filter No background task, needs to be run separately

THE FUTURE Backup using replica server Missing link between replica checkpoint and master journal Federated servers Advanced proxy with some Metadata Better reporting and recovery options

QUESTIONS?