1	
 Ā 
Perforce Proxy with Alternate
Transport
Matt Janulewicz
Perforce Administrator
Lucasfilm Entertainment Company Ltd. Logo area
2	
 Ā 
Review: What is a p4proxy?
•  Server: db and archives
•  Proxy: no db
•  Long distance query,
archives nearline
•  Stateless
3	
 Ā 
Bridging the Gap
We	
 Ā 
need	
 Ā 
files!	
 Ā 
Sure	
 Ā 
thing!	
 Ā 
Come	
 Ā get	
 Ā 
them!	
 Ā 
P4	
 Ā Sync	
 Ā 
We’d	
 Ā like	
 Ā 
those	
 Ā 
files,	
 Ā too!	
 Ā 
They’re	
 Ā 
already	
 Ā 
here!	
 Ā 
Nice!	
 Ā 
4	
 Ā 
Why not a Replica? (2012.2)
•  ~6 TB of data, of which we need ~1.5 TB
remotely
•  Easier archive management/pruning (stateless)
•  This could all change with 2013.1, but archive
transfers will still be a problem
5	
 Ā 
The Enemy: Network Latency
P4	
 Ā ping	
 Ā latency	
 Ā 
nearly	
 Ā 2	
 Ā seconds	
 Ā 
6	
 Ā 
The Enemy: Network Latency
Transfer	
 Ā rate	
 Ā 
well	
 Ā under	
 Ā .5	
 Ā 
MB/s	
 Ā 
7	
 Ā 
The Enemy: Network Latency
Tweaking	
 Ā TCP/IP	
 Ā 
stack	
 Ā shows	
 Ā 10x	
 Ā 
improvement,	
 Ā 
but	
 Ā sPll	
 Ā not	
 Ā 
enough	
 Ā 
8	
 Ā 
Solution: Dispense with TCP/IP
•  Stateless nature of Proxy lends to alternate
transports
•  UDP is lightweight, low overhead
•  Little error checking
•  No ordering of packets
•  No congestion control
9	
 Ā 
Bridging the Gap
1	
 Ā GBps	
 Ā 
UDP	
 Ā will	
 Ā use	
 Ā all	
 Ā of	
 Ā this,	
 Ā 
indiscriminately	
 Ā 
10	
 Ā 
UDP Implementation
Commercial	
 Ā 
implementaPon	
 Ā from	
 Ā 
Aspera.	
 Ā We	
 Ā already	
 Ā 
owned	
 Ā point	
 Ā to	
 Ā point	
 Ā 
product,	
 Ā added	
 Ā 
ā€˜async’	
 Ā (rsync	
 Ā drop-­‐in	
 Ā 
replacement.)	
 Ā 
11	
 Ā 
UDP Implementation
•  Aspera allows throttling
•  Set to 20-25 MB/s
•  1 GB in just a couple minutes
•  Can change as need arises
•  Rsync drop-in allows near-realtime mirroring
•  Other implementations exist, be clever
12	
 Ā 
Takeaways
•  Proxy statelessness allows cleverness
•  Ditch TCP/IP
•  On-demand/partial replicas still have large data
transfer needs
•  Questions?
13	
 Ā 
Contact
Matt Janulewicz
Lucasfilm Entertainment Company Ltd. (a division of Disney)
matt.janulewicz@lucasfilm.com
mattyj@rocketmonkey.net

[Lucas Films] Using a Perforce Proxy with Alternate Transports

  • 1.
    1 Ā  Perforce Proxywith Alternate Transport Matt Janulewicz Perforce Administrator Lucasfilm Entertainment Company Ltd. Logo area
  • 2.
    2 Ā  Review: Whatis a p4proxy? •  Server: db and archives •  Proxy: no db •  Long distance query, archives nearline •  Stateless
  • 3.
    3 Ā  Bridging theGap We Ā  need Ā  files! Ā  Sure Ā  thing! Ā  Come Ā get Ā  them! Ā  P4 Ā Sync Ā  We’d Ā like Ā  those Ā  files, Ā too! Ā  They’re Ā  already Ā  here! Ā  Nice! Ā 
  • 4.
    4 Ā  Why nota Replica? (2012.2) •  ~6 TB of data, of which we need ~1.5 TB remotely •  Easier archive management/pruning (stateless) •  This could all change with 2013.1, but archive transfers will still be a problem
  • 5.
    5 Ā  The Enemy:Network Latency P4 Ā ping Ā latency Ā  nearly Ā 2 Ā seconds Ā 
  • 6.
    6 Ā  The Enemy:Network Latency Transfer Ā rate Ā  well Ā under Ā .5 Ā  MB/s Ā 
  • 7.
    7 Ā  The Enemy:Network Latency Tweaking Ā TCP/IP Ā  stack Ā shows Ā 10x Ā  improvement, Ā  but Ā sPll Ā not Ā  enough Ā 
  • 8.
    8 Ā  Solution: Dispensewith TCP/IP •  Stateless nature of Proxy lends to alternate transports •  UDP is lightweight, low overhead •  Little error checking •  No ordering of packets •  No congestion control
  • 9.
    9 Ā  Bridging theGap 1 Ā GBps Ā  UDP Ā will Ā use Ā all Ā of Ā this, Ā  indiscriminately Ā 
  • 10.
    10 Ā  UDP Implementation Commercial Ā  implementaPon Ā from Ā  Aspera. Ā We Ā already Ā  owned Ā point Ā to Ā point Ā  product, Ā added Ā  ā€˜async’ Ā (rsync Ā drop-­‐in Ā  replacement.) Ā 
  • 11.
    11 Ā  UDP Implementation • Aspera allows throttling •  Set to 20-25 MB/s •  1 GB in just a couple minutes •  Can change as need arises •  Rsync drop-in allows near-realtime mirroring •  Other implementations exist, be clever
  • 12.
    12 Ā  Takeaways •  Proxystatelessness allows cleverness •  Ditch TCP/IP •  On-demand/partial replicas still have large data transfer needs •  Questions?
  • 13.
    13 Ā  Contact Matt Janulewicz LucasfilmEntertainment Company Ltd. (a division of Disney) matt.janulewicz@lucasfilm.com mattyj@rocketmonkey.net