Uploaded image for project: 'Apache YuniKorn'
  1. Apache YuniKorn
  2. YUNIKORN-3000

Add support for setting GOGC / GOMEMLIMIT in Helm chart

    XMLWordPrintableJSON

Details

    Description

      As of Go 1.19, Go supports reading a GOMEMLIMIT environment variable to limit the amount of RAM the process will use before garbage collecting. This is a soft limit, but helps constrain resource usage and can help avoid being OOMKilled by Kubernetes. Since we set our existing memory request to 1 GiB, and limit to 2 GiB, I propose setting the default GOMEMLIMIT value to 1.5 GiB. This allows for non-GC overhead plus transient spikes, and should keep us well under the threshold for being OOMKilled. We should also allow overriding GOGC as well.

      Attachments

        Issue Links

          Activity

            People

              ccondit Craig Condit
              ccondit Craig Condit
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: