SDP-912

jason_gibson (Jason Gibson)
Jason Gibson created this job , modified by swarm-user
Closed
Added P4D r23.1 OOM defense in SDP upgrade.sh.

Per release notes:
#2397436 (Job #112553) **
    The server on Linux can now protect itself from the OOM killer
    during database writes.  This happens automatically when the
    necessary capabilities have been granted to the server executable,
    e.g. "sudo setcap 'CAP_SYS_RESOURCE=+ep' p4d".  A new server
    startup log entry is now written with details about the detected
    level of support for features like this.
29605Added support for p4d r23.1 upgrades.

This adds a call to 'sudo setcap' per the P4D 2023.1 release notes.
Several preflight checks are done to verify the needed sudo access is
available to do 'sudo setcap'. If no such access is available, an
error message is displayed, and we abort in the preflight phase.

The code for the sudo preflight checks avoids a password prompt/hang
from 'sudo'.

#review @brent_schiestl @jason_gibson
29604Added support for p4d r23.1 upgrades.

This adds a call to 'sudo setcap' per the P4D 2023.1 release notes.
Several preflight checks are done to verify the needed sudo access is
available to do 'sudo setcap'. If no such access is available, an
error message is displayed, and we abort in the preflight phase.

The code for the sudo preflight checks avoids a password prompt/hang
from 'sudo'.

#review-29605 @brent_schiestl @jason_gibson
  • Details
  • Comments -
Status
Closed
Project
perforce-software-sdp
Severity
C
Reported By
Jason Gibson
Reported Date
Modified By
swarm-user
Modified Date
Owned By
tom_tyler
Component
core-unix
Type
Feature