When deployed or certified by Perforce Consulting, the core functionality of the SDP is officially supported by Perforce Support, except for files in the Unsupported
directory tree (which are community supported).
The SDP is open source software (see the LICENSE), and accepts contributions (pending code review) from the user community.
The following documentation is included in the SDP:
sdp_upgrade.sh
.The following describes some of the many features and benefits of using the SDP to manage Helix Core.
The SDP provides a standard structure for operating Perforce that is optimized for performance, scalability, and ease of backup. The SDP Guide includes documentation that promotes volume layout and storage architecture best practices.
A key SDP feature is that it maintains an offline copy of live databases. This has many benefits:
To simplify backup, all digital assets are in a single directory. Live databases that should not be backed up directly live in another, and active log files in another. For any scale environment, this makes it easy to back up the server's critical data. These directories are a natural fit for storage volume mount points, with the layout promoting best performance and data safety.
The SDP also maintains, on an ongoing basis, a set of best-practices configuration settings (e.g. 'configurables' and environment settings) suited to production environments, which often differ from p4d defaults.
The SDP supports a variety of methods for achieving high availability that benefit simple, single-server environments and sophisticated global enterprise environments, and all in between. Standardized and documented recovery procedures, offline databases, and optional replication (made easier with the SDP) all make HA easier to achieve.
There is more detailed discussions and references in the SDP Guides noted above.
Just as with HA, the SDP makes it easier to implement robust, reliable DR strategies.
There is more detailed discussions and references in the SDP Guides noted above.
The SDP makes upgrades of Helix server products fast and easy, regardless of the scale of your environment. By taking advantage of the offline database structure, the SDP enables upgrades with just a few minutes of downtime (enough to do a journal rotation).
The p4d executable, without any configuration, is optimized for evaluation and demonstration purposes. While it has many features that can make it reliable and robust, many of those features must be configured. The SDP is intended to be used for production environments or more realistic Proof of Concept installations.
In addition to the basics, the SDP provides structure, standards, guidance, and automation that greatly simplify deployment and management of sophisticated Helix global topologies. For example, the SDP includes tools that greatly simplify complex tasks such as:
The SDP supports operation of multiple instances of Helix on a machine, allowing each instance to have differing configuration, e.g. different:
The SDP provides standard mechanism for defining a controlled shell environment. This benefits p4d and other Perforce software products directly, and also provides good examples of controlling the environment for supporting automation.
The SDP defines a standard for installing and configuring derived APIs. For example, Python is built with P4Python in /p4/common/python, and Perl with P4Perl in /p4/common/perl.
Many Perforce customers use the SDP as-is. Others benefit by incorporating concepts and ideas from the SDP into their own environments, e.g. for development of custom policy enforcement triggers, systems integrations, promoting or enforcing local naming conventions, etc.
The Helix Management System (HMS) is a separate, community-supported product that builds on the SDP. This is likely to be of interest at installations with sophisticated global topologies and/or a fleet of SDP instances to manage.
Perforce Jobs are used to file bugs and request enhancements to the SDP. The list of jobs (other than closed ones) can be viewed here.
You can see all jobs (including closed ones if desired) from the command line interface. Connect to The Workshop and run the <code>p4 jobs</code> command, something like this:
p4 jobs -l -e "Project=perforce-software-sdp ^Status=closed"
While there is currently no formal roadmap for the SDP, it is actively maintained and continues to evolve alongside P4D and other Helix Core components it manages. Jobs are occasionally reviewed and addressed as time allows for consultants and contributors, sometimes driven by customer-funded consulting projects.
Contributions to the SDP are most welcome! Note that contributing requires a basic user knowledge of working with Perforce.
The SDP currently lives in a Classic (i.e. non-Stream) depot for historic reasons, in this path:
//guest/perforce_software/sdp/...
However, an empty //sdp stream depot exists and is used to simplify workspace creation and management.
Here is a sample procedure to set up a workspace. These instructions work on Linux/UNIX, MacOS, or Windows. This sample uses P4CONFIG files and creates a pub
folder to contain multiple workspaces for the Public Depot (P4PORT=public.perforce.com:1666
), and an sdp
folder under there for the SDP development workspace.
First, set the environment variable P4CONFIG to a value of .p4config
, and be sure the p4
command line client is in your PATH.
In the text below, replace YourUserID
with your P4USER account on the Public Depot, and replace YourMachine
with a tag identifying your machine, e.g. MacbookPro4
. From your home directory (or any directory where you store workspaces):
mkdir pub
cd pub
echo P4PORT=public.perforce.com:1666>>.p4config
echo P4USER=YourUserID>>.p4config
p4 set -q P4PORT
The P4PORT
value displayed should be public.perforce.com:1666.
mkdir sdp
cd sdp
echo P4CLIENT=YourUserID.YourMachine.sdp>>.p4config
p4 set -q P4CLIENT
The P4CLIENT
value displayed should be the one you set with the echo
command. Next, verify you can connect to the Public Depot server. This requires outbound network access to the Perforce Public Depot Server.
p4 info
The p4 info
should show a ServerID of guru_master
, indicating you're connected to the public depot. If so, proceed with creating your workspace:
p4 login
p4 client -S //sdp/dev -o | p4 client -i
p4 -s sync -q
That shoudd leave you with a workspace that is ready to use.
For contributing small changes, contribute by shelving changelists to the 'dev' branch from your workspace.
All registered Workshop users have open access (but not write) to the SDP dev branch. This allows shelving (but not submitting) updates to the SDP dev branch path:
//guest/perforce_software/sdp/dev/...
To contribute by shelving, create a workspace named something like 'your_user.your_hostname.sdp', and associate it with the //sdp/dev
stream. Make your changes in that workspace, provide a good changelist description, and include a <code>#review</code> tag in your changelist description before shelving it. When you are ready, shelve the changelist. Upon shelving, Perforce Consultants will be notified and review the change, and either incorporate (pending successful regression testing) it or provide feedback. (Note: Using the //sdp/dev
stream is optional as a convenience; you can also use a non-Stream workspace and map the path above).
Optionally, you may also branch the SDP dev branch, 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:
Branch: your_name-sdp
Owner: your_name
Description:
SDP Updates by your_name.
Options: unlocked
View:
//guest/perforce_software/sdp/dev/.. //guest/your_name/sdp/dev/...
If you branch a subset, 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.
Edit, test and submit changes in your branch. Keep your code up to date with other changes by merging down from the shared dev branch to your dev branch, e.g. by doing:
p4 merge -b your_name-sdp
... followed by the usual resolve and submit.
When you'e ready to copy your versions up to our dev branch, do like so:
p4 change
p4 copy -c YourCL -r -b your_name-sdp
Be sure that your changelist has a clear and accurate description, and that the description contains a <code>#review</code> tag on a line by itself. Then shelve the change:
p4 shelve -c YourCL
Upon shelving, Perforce Consultants will be notified and review the change, and either incorporate it (pending successful regression testing) or provide feedback.
You may want to version the SDP locally. See the SDP Guide for basic versioning instructions.
Optionally, sophisticated enterprise installations may want to use the "Tight Ship" style of management, to be in line with the "Version Everything" mindset. For more info, see the Helix Management System (HMS).
An automated regression test suite and pre-commit code review processes help ensure code quality. This is supplemented by manual testing in the Battle School training lab environment. Contact Perforce Consulting for more information.
See more details about the test suite in the Test Suite README file.