SlideShare a Scribd company logo
1	
  
Virtualization, Monitoring &
Replication Workshop
Rusty Jackson
Sr. Consultant
Perforce Software
2	
  
Virtualization
3	
  
Virtualization
•  Performance should be acceptable if:
•  Well managed / well planned
•  Hardware recommendations are the same as bare
metal to get the best performance if the installation
demands it
•  Fast CPU preferred over more cores
•  Memory to fully cache db
•  Fast storage for the db files
4	
  
Virtualization
•  Use vSphere 5 with vmxnet3 1.0.36 or later for
best performance
•  Performance varies with hardware and VM
configuration just like it does on bare metal
•  http://www.vmware.com/files/pdf/vmw-Perforce-
Server-on-VMware-vSphere.pdf
5	
  
Virtualization
•  Perforce is evolving with the market
•  Perforce works well in a virtualized environment
right now for the majority of our customers
•  The Commit/Edge server functionality coming in
the 2013.2 release will allow even our largest
customers to make better use of VM’s by
distributing the workload across multiple VM’s
•  2013.3 – lockless reads on the database
6	
  
Monitoring
7	
  
Monitoring
•  Turn monitoring on:
•  p4 configure set monitor=1 (or 2)
•  1 = monitor active processes
•  2 = monitor both active and idle processes
•  p4 monitor show –a –e
•  -a = show command args
•  -e = show command environment
8	
  
Monitoring
•  Create a cron job to monitor your p4d process
count
•  You will have to adjust the alert level as you
learn what the average load for your server is
9	
  
Monitoring
#!/bin/bash
count=$(ps -ef | grep -i p4d_1 | wc –l)
Load=100 # Set to 3 - 4 times your average load.
if [ "$count" -gt "$load" ]
then
echo "Load alert is set to: ${load}." > count.txt
mail -s "p4 count is ${count}.” you@company.com < count.txt
rm count.txt
fi
10	
  
Monitoring
•  Log analysis
•  Support can assist with a log analysis if you are
having performance issues
•  Log file needs to include debug info.
•  p4 configure set server=3
•  Analyzing your own logs
•  https://kb.perforce.com/psla
11	
  
Monitoring
•  Structured logs
•  Command delimited format, easier to parse
•  p4 configure set serverlog.file.n=logname.csv
•  p4 configure set serverlog.retain.n=#
•  1 = all
•  2 = commands
•  3 = errors
•  4 = audit
•  5 = track
•  6 = user
•  7 = events
12	
  
Replication
13	
  
Replication
•  Types of replicas today
•  Read only
•  Forwarding
•  Build Farm
•  2013.1 New replication features
•  On demand library setting
•  Replica of a replica
14	
  
Replication
•  2013.2 - Commit and Edge Servers
•  Commit server is a central repository for files
•  Edge servers do the vast majority of the work
•  Workspaces move to the edge servers
•  Supports horizontal growth of your Perforce installation
•  Checkpoints and backup required for both the commit
and the edge servers
15	
  
Replication
•  High level steps to create a replica
•  Create configure entries, service user and group and
update protect table on master
•  Checkpoint the master
•  Copy the checkpoint and version files to the replica
•  Restore the checkpoint on the replica
•  Start the server on the replica using the settings from
the configure table
16	
  
On to the demo…
consulting@perforce.com

More Related Content

PPTX
3 Ways to Improve Performance from a Storage Perspective
PPTX
Performance & Scalability Improvements in Perforce
PPTX
Rit 2011 ats
PDF
SCUGBE_Lowlands_Unite_2017_Managing Windows Containers with Docker
PPTX
Tips for Administering Complex Distributed Perforce Environments
PPTX
Redis Replication
PDF
Postgres on OpenStack
 
PPTX
From Windows to Linux: Converting a Distributed Perforce Helix Infrastructure
3 Ways to Improve Performance from a Storage Perspective
Performance & Scalability Improvements in Perforce
Rit 2011 ats
SCUGBE_Lowlands_Unite_2017_Managing Windows Containers with Docker
Tips for Administering Complex Distributed Perforce Environments
Redis Replication
Postgres on OpenStack
 
From Windows to Linux: Converting a Distributed Perforce Helix Infrastructure

What's hot (20)

PPTX
How to optimize CloudLinux OS limits
PDF
Modern Deployment Strategies
PDF
ProxySQL - High Performance and HA Proxy for MySQL
PPTX
Improve ColdFusion Performance by tuning the Connector and using ColdFusion-T...
PPTX
Gears of Perforce: AAA Game Development Challenges
ODP
PostgreSQL Replication in 10 Minutes - SCALE
PDF
Streaming Replication (Keynote @ PostgreSQL Conference 2009 Japan)
PPTX
Uponor Exadata e-Business Suite Migration Case Study
PDF
hbaseconasia2017: HBase在Hulu的使用和实践
PDF
VMworld 2014: Advanced SQL Server on vSphere Techniques and Best Practices
PDF
Still All on One Server: Perforce at Scale
PDF
Percona Server 5.7: Key Performance Algorithms
PDF
Percona xtrabackup - MySQL Meetup @ Mumbai
PDF
PowerDNS with MySQL
PDF
Breaking the Sound Barrier with Persistent Memory
PDF
PostreSQL HA and DR Setup & Use Cases
PPTX
Meet hbase 2.0
PPTX
World Domination Through Helix Broker
PPTX
Apache Performance Tuning: Scaling Out
PDF
Introducing Xtrabackup Manager
How to optimize CloudLinux OS limits
Modern Deployment Strategies
ProxySQL - High Performance and HA Proxy for MySQL
Improve ColdFusion Performance by tuning the Connector and using ColdFusion-T...
Gears of Perforce: AAA Game Development Challenges
PostgreSQL Replication in 10 Minutes - SCALE
Streaming Replication (Keynote @ PostgreSQL Conference 2009 Japan)
Uponor Exadata e-Business Suite Migration Case Study
hbaseconasia2017: HBase在Hulu的使用和实践
VMworld 2014: Advanced SQL Server on vSphere Techniques and Best Practices
Still All on One Server: Perforce at Scale
Percona Server 5.7: Key Performance Algorithms
Percona xtrabackup - MySQL Meetup @ Mumbai
PowerDNS with MySQL
Breaking the Sound Barrier with Persistent Memory
PostreSQL HA and DR Setup & Use Cases
Meet hbase 2.0
World Domination Through Helix Broker
Apache Performance Tuning: Scaling Out
Introducing Xtrabackup Manager
Ad

Similar to [Perforce] Admin Workshop (20)

PPTX
[MathWorks] Versioning Infrastructure
PDF
[MathWorks] Versioning Infrastructure
PDF
White Paper: Scaling Servers and Storage for Film Assets
PDF
Perforce Administration: Optimization, Scalability, Availability and Reliability
PPTX
Tips from Support: Always Carry a Towel and Don’t Panic!
PPTX
LAB - Perforce Large Scale & Multi-Site Implementations
PDF
White Paper: Perforce Administration Optimization, Scalability, Availability ...
PPTX
Multi-Site Perforce at NetApp
PDF
[Paris merge world tour] Perforce Server Update
PDF
[Tel aviv merge world tour] Qwilt P4 Conference
PDF
[Tel aviv merge world tour] Perforce Server Update
PPTX
Year in Review: Perforce 2014 Product Updates
PPTX
Perforce Setup
PDF
[Perforce] Perforce the Plentiful Platform
PDF
[Perforce] Replication - Read Only Installs to Fully Filtered Forwarding
PDF
Perforce Remote Administration
PDF
[NetherRealm Studios] Game Studio Perforce Architecture
PDF
[India Merge World Tour] Introducing Perforce Insights
PDF
[Paris merge world tour] Perforce Introducing Perforce Insights
PDF
[Europe merge world tour] Perforce Introducing Perforce Insights
[MathWorks] Versioning Infrastructure
[MathWorks] Versioning Infrastructure
White Paper: Scaling Servers and Storage for Film Assets
Perforce Administration: Optimization, Scalability, Availability and Reliability
Tips from Support: Always Carry a Towel and Don’t Panic!
LAB - Perforce Large Scale & Multi-Site Implementations
White Paper: Perforce Administration Optimization, Scalability, Availability ...
Multi-Site Perforce at NetApp
[Paris merge world tour] Perforce Server Update
[Tel aviv merge world tour] Qwilt P4 Conference
[Tel aviv merge world tour] Perforce Server Update
Year in Review: Perforce 2014 Product Updates
Perforce Setup
[Perforce] Perforce the Plentiful Platform
[Perforce] Replication - Read Only Installs to Fully Filtered Forwarding
Perforce Remote Administration
[NetherRealm Studios] Game Studio Perforce Architecture
[India Merge World Tour] Introducing Perforce Insights
[Paris merge world tour] Perforce Introducing Perforce Insights
[Europe merge world tour] Perforce Introducing Perforce Insights
Ad

More from Perforce (20)

PDF
How to Organize Game Developers With Different Planning Needs
PDF
Regulatory Traceability: How to Maintain Compliance, Quality, and Cost Effic...
PDF
Efficient Security Development and Testing Using Dynamic and Static Code Anal...
PDF
Understanding Compliant Workflow Enforcement SOPs
PDF
Branching Out: How To Automate Your Development Process
PDF
How to Do Code Reviews at Massive Scale For DevOps
PDF
How to Spark Joy In Your Product Backlog
PDF
Going Remote: Build Up Your Game Dev Team
PDF
Shift to Remote: How to Manage Your New Workflow
PPTX
Hybrid Development Methodology in a Regulated World
PPTX
Better, Faster, Easier: How to Make Git Really Work in the Enterprise
PDF
Easier Requirements Management Using Diagrams In Helix ALM
PDF
How To Master Your Mega Backlog
PDF
Achieving Software Safety, Security, and Reliability Part 3: What Does the Fu...
PDF
How to Scale With Helix Core and Microsoft Azure
PDF
Achieving Software Safety, Security, and Reliability Part 2
PDF
Should You Break Up With Your Monolith?
PDF
Achieving Software Safety, Security, and Reliability Part 1: Common Industry ...
PDF
What's New in Helix ALM 2019.4
PDF
Free Yourself From the MS Office Prison
How to Organize Game Developers With Different Planning Needs
Regulatory Traceability: How to Maintain Compliance, Quality, and Cost Effic...
Efficient Security Development and Testing Using Dynamic and Static Code Anal...
Understanding Compliant Workflow Enforcement SOPs
Branching Out: How To Automate Your Development Process
How to Do Code Reviews at Massive Scale For DevOps
How to Spark Joy In Your Product Backlog
Going Remote: Build Up Your Game Dev Team
Shift to Remote: How to Manage Your New Workflow
Hybrid Development Methodology in a Regulated World
Better, Faster, Easier: How to Make Git Really Work in the Enterprise
Easier Requirements Management Using Diagrams In Helix ALM
How To Master Your Mega Backlog
Achieving Software Safety, Security, and Reliability Part 3: What Does the Fu...
How to Scale With Helix Core and Microsoft Azure
Achieving Software Safety, Security, and Reliability Part 2
Should You Break Up With Your Monolith?
Achieving Software Safety, Security, and Reliability Part 1: Common Industry ...
What's New in Helix ALM 2019.4
Free Yourself From the MS Office Prison

Recently uploaded (20)

PDF
Empathic Computing: Creating Shared Understanding
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
OMC Textile Division Presentation 2021.pptx
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
Machine learning based COVID-19 study performance prediction
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Spectroscopy.pptx food analysis technology
PPT
Teaching material agriculture food technology
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
TLE Review Electricity (Electricity).pptx
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
Empathic Computing: Creating Shared Understanding
Building Integrated photovoltaic BIPV_UPV.pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Univ-Connecticut-ChatGPT-Presentaion.pdf
Network Security Unit 5.pdf for BCA BBA.
OMC Textile Division Presentation 2021.pptx
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Machine learning based COVID-19 study performance prediction
NewMind AI Weekly Chronicles - August'25-Week II
Encapsulation_ Review paper, used for researhc scholars
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Spectroscopy.pptx food analysis technology
Teaching material agriculture food technology
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
TLE Review Electricity (Electricity).pptx
Programs and apps: productivity, graphics, security and other tools
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Mobile App Security Testing_ A Comprehensive Guide.pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Group 1 Presentation -Planning and Decision Making .pptx

[Perforce] Admin Workshop

  • 1. 1   Virtualization, Monitoring & Replication Workshop Rusty Jackson Sr. Consultant Perforce Software
  • 3. 3   Virtualization •  Performance should be acceptable if: •  Well managed / well planned •  Hardware recommendations are the same as bare metal to get the best performance if the installation demands it •  Fast CPU preferred over more cores •  Memory to fully cache db •  Fast storage for the db files
  • 4. 4   Virtualization •  Use vSphere 5 with vmxnet3 1.0.36 or later for best performance •  Performance varies with hardware and VM configuration just like it does on bare metal •  http://www.vmware.com/files/pdf/vmw-Perforce- Server-on-VMware-vSphere.pdf
  • 5. 5   Virtualization •  Perforce is evolving with the market •  Perforce works well in a virtualized environment right now for the majority of our customers •  The Commit/Edge server functionality coming in the 2013.2 release will allow even our largest customers to make better use of VM’s by distributing the workload across multiple VM’s •  2013.3 – lockless reads on the database
  • 7. 7   Monitoring •  Turn monitoring on: •  p4 configure set monitor=1 (or 2) •  1 = monitor active processes •  2 = monitor both active and idle processes •  p4 monitor show –a –e •  -a = show command args •  -e = show command environment
  • 8. 8   Monitoring •  Create a cron job to monitor your p4d process count •  You will have to adjust the alert level as you learn what the average load for your server is
  • 9. 9   Monitoring #!/bin/bash count=$(ps -ef | grep -i p4d_1 | wc –l) Load=100 # Set to 3 - 4 times your average load. if [ "$count" -gt "$load" ] then echo "Load alert is set to: ${load}." > count.txt mail -s "p4 count is ${count}.” you@company.com < count.txt rm count.txt fi
  • 10. 10   Monitoring •  Log analysis •  Support can assist with a log analysis if you are having performance issues •  Log file needs to include debug info. •  p4 configure set server=3 •  Analyzing your own logs •  https://kb.perforce.com/psla
  • 11. 11   Monitoring •  Structured logs •  Command delimited format, easier to parse •  p4 configure set serverlog.file.n=logname.csv •  p4 configure set serverlog.retain.n=# •  1 = all •  2 = commands •  3 = errors •  4 = audit •  5 = track •  6 = user •  7 = events
  • 13. 13   Replication •  Types of replicas today •  Read only •  Forwarding •  Build Farm •  2013.1 New replication features •  On demand library setting •  Replica of a replica
  • 14. 14   Replication •  2013.2 - Commit and Edge Servers •  Commit server is a central repository for files •  Edge servers do the vast majority of the work •  Workspaces move to the edge servers •  Supports horizontal growth of your Perforce installation •  Checkpoints and backup required for both the commit and the edge servers
  • 15. 15   Replication •  High level steps to create a replica •  Create configure entries, service user and group and update protect table on master •  Checkpoint the master •  Copy the checkpoint and version files to the replica •  Restore the checkpoint on the replica •  Start the server on the replica using the settings from the configure table
  • 16. 16   On to the demo… consulting@perforce.com