SDP-624

tom_tyler (C. Thomas Tyler)
C. Thomas Tyler created this job , modified by swarm-user
Closed
Add mkrep.sh support for '<N>' per standard: <HelixServerTag>_<ReplicaTypeTag>[<N>]_<SiteTag>'

The Server Spec naming standard allows for multiple edges/replicas to
be defined for the same site tag.  For example, you might have:

* p4d_edge_tok - An edge server in Tokyo
* p4d_edge2_tok - A second edge server in Tokyo
* p4d_edge3_tok - A third edge server in Tokyo

mkrep v2.7.x supports only the first example that doesn't use the
optional numeric integer. The second and third examples can't
be created with mkrep.sh presently.

Ref: Server Spec Naming Standard: https://swarm.workshop.perforce.com/projects/perforce-software-sdp/view/main/doc/SDP_Guide.Unix.html#_server_spec_naming_standard
29304mkrep.sh v3.1.0:
* Added infer_type_tag() function with logic to determine if P4TARGET is
filtered or not.
* Discouraged use of 'ro' and 'rom' types (as they don't support 'p4 failover').
* Clarified usage to indicate daisy chaining is acceptable from
forwarding replicas.
* Added preflight check to avoid accidental overwrite of existing server spec.
* Added '-os' option to overwrite existing server spec intentionally.
* Re-added test for mkrep.sh to default test suite after fixing the test.
* Added '-N' option to fully support server spec naming standard that allows
for things like 'p4d_edge2_syd' and 'p4d_edge3_syd'. Added docs for same.
29303mkrep.sh v3.1.0:
* Added infer_type_tag() function with logic to determine if P4TARGET is
filtered or not.
* Discouraged use of 'ro' and 'rom' types (as they don't support 'p4 failover').
* Clarified usage to indicate daisy chaining is acceptable from
forwarding replicas.
* Added preflight check to avoid accidental overwrite of existing server spec.
* Added '-os' option to overwrite existing server spec intentionally.
* Re-added test for mkrep.sh to default test suite after fixing the test.
* Added '-N' option to fully support server spec naming standard that allows
for things like 'p4d_edge2_syd' and 'p4d_edge3_syd'. Added docs for same.

#review-29304
  • Details
  • Comments -
Status
Closed
Project
perforce-software-sdp
Severity
C
Reported By
C. Thomas Tyler
Reported Date
Modified By
swarm-user
Modified Date
Owned By
tom_tyler
Component
core-unix
Type
Feature