#
Tim O’Mahony Technical Support
Tim OMahony Technical Support # Previouslyin Global Distributed - - PowerPoint PPT Presentation
Tim OMahony Technical Support # Previouslyin Global Distributed Perforce Dont do that do this! Living on the Edge Not just for multi-site, but everywhere. # # Provide warm standby servers Reduce load and
#
Tim O’Mahony Technical Support
#
#
#
#
– Process commands locally – Metadata and Archive files – Great for a remote site that’s browsing and submitting little. – Great for offloading on local fast LAN sites
#
– Forwards all write commands to the Master Server – Trade-off vs Proxy; requires a higher level of machine provisioning and administrative considerations.
#
Duplication of Services and Metadata only to go back to the master when I need it locally
#
#
management tasks
#
…cause Every Band, I mean Perforce Versioning Service, needs
three)
#
– Stores the canonical archives and permanent metadata. Similar to a Perforce master server, but may not contain all workspace information.
– An edge server contains a replicated copy of the commit server data and a unique, local copy of some workspace and work-in- progress information. It can process read-only operations and
#
from the commit server.
between edge servers.
#
#
Benchmark of Perforce
network latency between client and server. The file related commands
files
#
#
– From Scratch – Utilize Existing Forwarding Replicas or Build Farms
– ServerID and use p4 serverid to save it – Server Spec Services: commit-server.
#
– p4d –r $P4ROOT -K db.have,db.working,db.resolve,db.locks,db.revsh,db.workingx,db.resolvex
#
– Have users Submit/Revert
– p4 unload -c workspace
– p4 reload -c workspace -p protocol:host:port
server the workspace is being migrated from.
#
$ p4 -Ztag info … ... serverVersion P4D/DARWIN90X86_64/2014.1/821990 (2014/04/08) ... ServerID myEdge ... serverServices edge-server ... changeServer change.perforce.com.au:1666 ... serverLicense Perforce Software Pty Ltd 500 users (expires 2015/01/06) ... serverLicense-ip 127.0.0.1 ... caseHandling insensitive ... replica commit.perforce.com.au:1666 ... minClient 97.1: 1 .
#
– edge-submit
– edge-content
#
reads)
– p4 configure set db.peeking=2
#
#
Local and distributed edge setup
#
– Have the Commit just Commit
– Leverage Same Storage Solution
– Automatic Promotion of Shelves
# Tim O’Mahony is a Technical Support Manager from the Australian office at Perforce. He has a wide and diverse knowledge of Perforce products, specializing in its server technology since 2004. Before joining Perforce, he focused on network simulation and Java programming.
#
Tim O’Mahony tomahony@perforce.com
#
#
– When servers are in a Data Center – If primary Perforce server is very high spec. – With a large number of client workspaces – For very high number of transactions
#
– Increase capacity – Backup – Failover
#
#
#
– Configuration – Control – Administration
– Linux – Saltstack – Python – Apache Zookeeper
#
subcommands: {init,add,start,stop,restart,status,backup} init Initialise a new cluster and create a depot master add Add a service into a cluster start Start a service or services on a host or cluster stop Stop a service or services on a host or cluster restart Restart a service or services on a host or cluster status Get a simple debug style output for all nodes backup Perform a backup of the cluster
#
– Configures a new cluster – Installs salt-minion – Defines first Zookeeper – Deploys depot-master onto given node – Establishes baseline for subsequent Perforce servers
#
– Zookeeper – Depot standby – Workspace servers – Workspace router
– Installs salt minion – Deploys relevant components onto node
#
– Brings cluster up/down in correct sequence – router started last and stopped first
– stop then start
– Prints composition, configuration and status – Verbose output
#
– Still open for business – Processing load delegated to standby
– Checkpoint – Journal – Archives
#
# Darrell Robins is a Software Developer based in the Perforce UK office. He has been with Perforce since 2011, working mainly on web based projects such as OnDemand, Commons and Insights. Life before Perforce was a mixture of web, java and c programming.
#
Darrell Robins drobins@perforce.com