<!doctype html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes"> <style> h1, h2, h3, h4, h5, h6, p, blockquote { margin: 0; padding: 0; } body { font-family: "Helvetica Neue", Helvetica, "Hiragino Sans GB", Arial, sans-serif; font-size: 13px; line-height: 18px; color: #737373; background-color: white; margin: 10px 13px 10px 13px; } table { margin: 10px 0 15px 0; border-collapse: collapse; } td,th { border: 1px solid #ddd; padding: 3px 10px; } th { padding: 5px 10px; } a { color: #0069d6; } a:hover { color: #0050a3; text-decoration: none; } a img { border: none; } p { margin-bottom: 9px; } h1, h2, h3, h4, h5, h6 { color: #404040; line-height: 36px; } h1 { margin-bottom: 18px; font-size: 30px; } h2 { font-size: 24px; } h3 { font-size: 18px; } h4 { font-size: 16px; } h5 { font-size: 14px; } h6 { font-size: 13px; } hr { margin: 0 0 19px; border: 0; border-bottom: 1px solid #ccc; } blockquote { padding: 13px 13px 21px 15px; margin-bottom: 18px; font-family:georgia,serif; font-style: italic; } blockquote:before { content:"\201C"; font-size:40px; margin-left:-10px; font-family:georgia,serif; color:#eee; } blockquote p { font-size: 14px; font-weight: 300; line-height: 18px; margin-bottom: 0; font-style: italic; } code, pre { font-family: Monaco, Andale Mono, Courier New, monospace; } code { background-color: #fee9cc; color: rgba(0, 0, 0, 0.75); padding: 1px 3px; font-size: 12px; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; } pre { display: block; padding: 14px; margin: 0 0 18px; line-height: 16px; font-size: 11px; border: 1px solid #d9d9d9; white-space: pre-wrap; word-wrap: break-word; } pre code { background-color: #fff; color:#737373; font-size: 11px; padding: 0; } sup { font-size: 0.83em; vertical-align: super; line-height: 0; } * { -webkit-print-color-adjust: exact; } @media screen and (min-width: 914px) { body { width: 854px; margin:10px auto; } } @media print { body,code,pre code,h1,h2,h3,h4,h5,h6 { color: black; } table, pre { page-break-inside: avoid; } } </style> <title>What is the Server Deployment Package (SDP?) === Overview --- The Server Deployment Package (SDP) provides a</title> </head> <body> <h1>What is the Server Deployment Package (SDP?)</h1> <h2>Overview</h2> <p>The Server Deployment Package (SDP) provides a set of management scripts for operating various Perforce software products, such as:</p> <ul> <li>p4d</li> <li>p4broker</li> <li>p4p</li> <li>p4web</li> <li>p4dtg</li> <li>p4ftpd</li> </ul> <p>For <strong>p4d</strong> in particualr, the SDP provides a sample implementation of best practices, such performing <em>offline checkpoints</em>, rotating logs and journals routinely, and doing a database sanity/safety check before starting the server.</p> <p>The SDP provides a structure for operating multiple instances of Perforce on a given machine, allowing for the possibility of each instance having different configuration aspects, e.g.</p> <ul> <li>versions of software components (p4d, p4broker, etc.)</li> <li>case sensitivity setting (sensitive/insensitive)</li> <li>Unicode setting (enabled/disabled)</li> </ul> <h1>Bugs, Enhancements, and Future Plans</h1> <p>Perforce Jobs are used to file bugs and request enhancements to the SDP. The list of jobs (other than closed ones) can be viewed <a href="https://swarm.workshop.perforce.com/projects/perforce-software-sdp/jobs" title="SDP Open Jobs">here</a>.</p> <p>You can see all jobs (including closed ones if desired) from the command line interface. Conncet to The Workshop and run the <code>p4 jobs</code> command, something like this:</p> <pre><code>p4 jobs -l -e "Project=perforce-software-sdp ^status=closed" </code></pre> <p>There is no formal roadmap for the SDP.</p> <h1>Contributing</h1> <p>Contributions to the SDP are most welcome! Note that contributing requires a basic user knowlege of working with Perforce.</p> <h2>Contributing by Shelving</h2> <p>All registered Workshop users have <strong>open</strong> access (but not <strong>write</strong>) to the SDP, specifically to this path:</p> <pre><code>//guest/perforce_software/sdp/main/... </code></pre> <p>The <strong>open</strong> access level confers the ability to edit and <strong>shelve</strong> changes for a pre-commit review process. We'll review the change, and either incorporate it or provide feedback. Be sure to provide a detailed change description, and also include the tag/text "[review]" in your changelist description to initiate a Swarm code review.</p> <h2>Contributing by Branching</h2> <p>Optionally, you may also branch the SDP folder, or some subset of it, into your own guest area. Creating a branch spec is recommended for this purpose, e.g. with a branch spec like this:</p> <pre><code>Branch: your_name-sdp Owner: your_name Description: SDP Updates by your_name. Options: unlocked View: //guest/perforce_software/sdp/main/Server/Unix/etc/... //guest/your_name/sdp/main/Server/Unix/etc/... </code></pre> <p>If you branch a subset, it's a good idea to maintain the full path structure (as in the example above), so you can easily expand the scope of what you branched initially at some later date.</p> <p>Edit, test and submit changes in your branch. Then when you are done, merge your changes back into our mainline, shelving them for review.</p> <h2>Guidlines for SDP Contributors</h2> <ul> <li>Communicate using Swarm! Let folks know what you're planning before you work to hard on something that might already be underway.</li> <li>File a job (Project=<strong>perforce-software-sdp</strong>) first. That's not required, but increases the transparency of what you're doing, and helps promote it.</li> <li>We prefer changes that are generic, and have a wide appeal.</li> <li>The core of the SDP, the scripts that do offline checkpoints for p4d, prioritize Perforce best practices over scripting magic. Don't get too fancy! :)</li> </ul> <h1>Versioning the SDP Locally</h1> <p>In line with the "Version Everything" mindset, the SDP itself should be versioned in your environment.</p> <p>Commonly the SDP is versioned in a depot such as <code>//Perforce</code> or <code>/p4admin</code>, with a structure like this:</p> <pre><code>//p4admin/p4c/sdp/... //p4admin/main/sdp/... //p4admin/host/<hostname>/p4/1/bin/... </code></pre> <p>The <strong>p4c</strong> and <strong>main</strong> folders are branches. The <strong>p4c</strong> branch is designated for receiving generic SDP updates from The Workshop. The <strong>main</strong> branch is where local customizations and/or conifguration changes are applied.</p> <p>The <strong>host</strong> folder contains instance-specific and host-specific files, which effectively communicate part of your topology. The define which services are active on which hosts.</p> <p>On the Perforce server machines, basic workspaces are used to manage the SDP.</p> <p>Recent versions of the SDP contain a <code>.p4ignore</code> file that helps avoid versioning of files that do not belong in version control, things like password files, editor temp files, and generated/compiled Python cache files.</p> <h2>Perforce Swarm and Perforce Git Fusion</h2> <p>When installing Perforce Swarm or Perforce Git Fusion in the SDP structure, they can and should be deployed in a way so as to benefit from the SDP structure, e.g. instances of Swarm and/or Git Fusion to run against each p4d instance.</p> <p>Details for doing this are not yet incorporated the mainline SDP, though they have been deployed at customer sites. However, the basic ideas are fairly straightfoward. As a hint for Swarm, you'll want to apply the <code>SWARM_DATA_PATH</code> in the httpd conifguration to refernece Swarm for each SDP instance.</p> <h1>Upgrading Existing SDP Installations</h1> <p>If you have an earlier version of the Server Deployment Package (SDP) installed, you'll want to be aware of the new <code>-test</code> flag to the SDP setup script, <code>mkdirs.sh</code>. The following update instructions assume a simple, single-server topology.</p> <p>Get the new software from The Workshop, which you'll find in the form of a SDP.Unix.*.tgz zipped tar file. Put the tar file in the <code>/depotdata</code> folder on your server. <strong>BE SURE TO MOVE THE OLD</strong> <code>/depotdata/sdp</code> folder aside first if it is there, e.g. to <code>/depotdata/sdp.old.2014-10-08</code>.</p> <p>Then unpack it like this:</p> <pre><code>tar -xzvpf SDP.Unix.2014.2.####.tgz cd /depotdata/sdp/Unix/setup </code></pre> <p>Modify the mkdirs.sh script to suit your environment (possibly borrowing values from your old <code>mkdirs.sh</code> script).</p> <p>Then run it:</p> <pre><code>mkdirs.sh 1 -test </code></pre> <p>That'll do a mock install, creating a <code><strong>/tmp/</strong>p4</code> structure, with folders like <code>/tmp/p4/common/bin</code> and <code>/tmp/p4/1/bin</code>. The output will suggest some <code>diff -r</code> commands to run to to view the diffs and apply updates manually, being careful not to lose any customizations or local configuration changes you may have made.</p> <p>If the SDP itself is versioned in Perforce in your environment, you can also put the new things from /tmp/p4 into your Perforce server where the SDP is. Commonly, there is a branch for receiving prisitne updates of the generic SDP, e.g. 'p4c', which allow you to use Perforce merging to merge update into your local SDP mainlne.</p> <p>Contact <a href="mailto:consulting@perforce.com">Perforce Consulting Services</a> to ask about engaging professional services to upgrade the SDP for you.</p> <p>A few quick things to be aware of:</p> <ul> <li><p>The old <code>p4_1_init</code> script (more generically <code>p4_instance_init</code>) was renamed to <code>p4<strong>d</strong>_1_init</code>. This will require updates to init script or symlink, e.g. in <code>/etc/init.d</code>.</p></li> <li><p>Once you upgrade p4d to 2014.1+, you can do away with the SDP trigger that updates depot spec map fields. You can clear the <code>Map:</code> fields of depots, and use the 2014.1 <code>server.depot.root</code> configurable. Going forward, you'd only use <code>Map:</code> fields for depots that really do require a unique path, e.g. archive depots.</p></li> </ul> <h1>SDP Structure</h1> <p>The SDP structure enables two major views of a Perforce server, the system administrator/storage architect view, and the application administrator view. THe system admin sees this structure:</p> <pre><code>/depotdata /metadata /logs </code></pre> <p>System administrators know they need to backup <code>/depotdata</code>. Backing up <code>/logs</code> is optional, and /metadata is to be avoided by backup utilites, virus scanners, and anything else that might touch files in that area. This view is designed for optimzing for performance, as each of those folders has different performance profiles and usage patterns demanded by p4d. This view is not concerned with how many instances there are, or how they vary.</p> <p>Application administrators (Perforce Admins), though a structure of symlinks, see Perforce from a view like this:</p> <pre><code>/p4/1/root /p4/1/depots /p4/1/root /p4/1/bin /p4/1/ssl /p4/1/tmp /p4/common/bin </code></pre> <p>This structure illustrates an instanced named '1' (it need not be numeric), as a /p4/common area which contains files common to all instances. Each of those folders is physically stored under an appropriate storage folder or volume as defined in the system admin view above.</p> <p>The <code>/p4/<em>instance</em>/bin</code> folder defines which Perforce prodcuts are active for that instance on the current machine (p4d, p4broker, p4p, etc.). The <strong>root</strong> folder contains P4ROOT, while <strong>depots</strong> contains archive files.</p> <p>THe SDP provides standard mechanism for defining a controlled shell environment. This benefits p4d and other Perofrce software products directly, and also provides good examples of controlling the environment for supporting automation, such as Perforce standards guidance and policy enforcement scripts (e.g. p4d triggers or p4broker filter scripts).</p> <p>For advanced deployments, the SDP defines a stanard for installing and configuraing derived APIs, such as P4Python into /p4/common/python.</p> <p>Many Perforce customers use the SDP as-is. Others benefit by incorporating concepts and ideas from the SDP into their own environments.</p> <h1>Where is the Windows SDP?</h1> <p>There are two flavors of the SDP, Unix and Windows. Only the Unix SDP has been published to The Workshop. The Windows SDP has not yet been published, pending some internal planning work. If you would like a copy of the Window flavor of the SDP, contact <a href="mailto:consulting@perforce.com">Perforce Consulting Services</a>.</p> </body> </html>
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#18 | 30388 | C. Thomas Tyler |
Released SDP 2024.1.30385 (2024/06/11). Copy Up using 'p4 copy -r -b perforce_software-sdp-dev'. |
||
#17 | 30043 | C. Thomas Tyler |
Released SDP 2023.2.30041 (2023/12/22). Copy Up using 'p4 copy -r -b perforce_software-sdp-dev'. |
||
#16 | 29916 | Robert Cowham | Removed mention of Helix Installer while we resolve issues around inexperienced users managing to zap their existing repository. | ||
#15 | 28858 | C. Thomas Tyler |
Released SDP 2022.1.28855 (2022/05/27). Copy Up using 'p4 copy -r -b perforce_software-sdp-dev'. |
||
#14 | 28412 | C. Thomas Tyler |
Released SDP 2021.2.28410 (2021/11/24). Copy Up using 'p4 copy -r -b perforce_software-sdp-dev'. |
||
#13 | 27527 | C. Thomas Tyler |
Released SDP 2020.1.27524 (2021/02/26). Copy Up using 'p4 copy -r -b perforce_software-sdp-dev'. |
||
#12 | 27463 | C. Thomas Tyler |
Released SDP 2020.1.27457 (2021/02/17). Copy Up using 'p4 copy -r -b perforce_software-sdp-dev'. |
||
#11 | 27331 | C. Thomas Tyler |
Released SDP 2020.1.27325 (2021/01/29). Copy Up using 'p4 copy -r -b perforce_software-sdp-dev'. |
||
#10 | 26403 | C. Thomas Tyler |
Released SDP 2019.3.26400 (2020/03/28). Copy Up using 'p4 copy -r -b perforce_software-sdp-dev'. |
||
#9 | 25596 | C. Thomas Tyler |
Released SDP 2019.2.25594 (2019/05/02). Copy Up using 'p4 copy -r -b perforce_software-sdp-dev'. |
||
#8 | 25245 | C. Thomas Tyler |
Released SDP 2019.1.25238 (2019/03/02). Copy Up using 'p4 copy -r -b perforce_software-sdp-dev'. |
||
#7 | 25051 | C. Thomas Tyler |
Released SDP 2018.1.23583.p2 (2019/01/23). Copy Up using 'p4 copy -r -b perforce_software-sdp-dev', with selective removal of work-in-progress files. |
||
#6 | 23357 | C. Thomas Tyler |
Released SDP 2017.4.23354 (2017/12/08). Copy Up using 'p4 copy -r -b perforce_software-sdp-dev'. |
||
#5 | 23331 | C. Thomas Tyler |
Released SDP 2017.4.23329 (2017/12/05). Copy Up using 'p4 copy -r -b perforce_software-sdp-dev'. |
||
#4 | 11527 | Russell C. Jackson (Rusty) | Updated using Linux markdown command. | ||
#3 | 11127 | Robert Cowham | Update mention of Windows SDP | ||
#2 | 11027 | C. Thomas Tyler | Re-generated HTML for *.md ("Markdown doc") file. | ||
#1 | 10644 | C. Thomas Tyler | Added README.html generated from README.md. |