Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-30442

terminationGracePeriodSeconds is set too low by default

Details

    • n/a

    Description

      terminationGracePeriodSeconds is set to 10 seconds on this page:

      https://help.sonatype.com/repomanager3/planning-your-implementation/resiliency-and-high-availability/single-node-cloud-resilient-deployment-example-using-aws

      It seems this was explicitly added to be 10 seconds based on some decision in NEXUS-28882. By default it is 30 seconds if not set.

      By having a low value for the grace period, what are the benefits? I can't think of any.

      However there is a clear disadvantage - if the NXRM process is not allowed enough time to cleanly shut down before pod termination, then a forceful termination of repository process may result in unclean shutdown of repository files and leaving application housekeeping not complete. Abrupt shutdowns can commonly corrupt index or database files ( think H2 )

      Expected

      Increase the terminationGracePeriodSeconds value to 120 seconds which seems to be a much safer default than a low value and is more inline with advice typically given to customers for pod deployments.

      Attachments

        Activity

          People

            ldurant Lisa Durant
            plynch Peter Lynch
            Joe Tom Joe Tom
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              tigCommentSecurity.panel-title