Before upgrading GitHub Enterprise, review these recommendations and requirements to plan your upgrade strategy.
Notes:
- To upgrade from GitHub Enterprise 11.10.348 through 11.10.354, you must first migrate to GitHub Enterprise 2.1.23. For more information, see "Migrating from GitHub Enterprise 11.10.x to 2.1.23."
- Upgrade packages are available at enterprise.github.com for supported versions. Verify the availability of the upgrade packages you will need to complete the upgrade. If a package is not available, contact GitHub Enterprise Support or GitHub Premium Support for assistance.
- If you're using GitHub Enterprise Clustering, see "Upgrading a cluster" in the GitHub Enterprise Clustering Guide for specific instructions unique to clustering.
- The release notes for GitHub Enterprise provide a comprehensive list of new features for every version of GitHub Enterprise. For more information, see the releases page.
Recommendations
- Include as few upgrades as possible in your upgrade process. For example, instead of upgrading from GitHub Enterprise 2.13 to 2.14 to 2.15, you could upgrade from GitHub Enterprise 2.13 to 2.15.
- If you’re several versions behind, upgrade your GitHub Enterprise instance as far forward as possible with each step of your upgrade process. Using the latest version possible on each upgrade allows you to take advantage of performance improvements and bug fixes. For example, you could upgrade from GitHub Enterprise 2.7 to 2.8 to 2.10, but upgrading from GitHub Enterprise 2.7 to 2.9 to 2.10 uses a later version in the second step.
- Use the latest patch release when upgrading. Browse to the GitHub Enterprise Releases page. Next to the release you are upgrading to, click Download, then click the Upgrading tab.
- Use a staging instance to test the upgrade steps. For more information, see "Setting up a staging instance."
- When running multiple upgrades, wait at least 24 hours between feature upgrades to allow data migrations and backgrounded upgrade tasks to fully complete.
Requirements
- You must upgrade from a feature release that's at most two releases behind. For example, to upgrade to GitHub Enterprise 2.15, you must be on GitHub Enterprise 2.14 or 2.13.
You can upgrade GitHub Enterprise to the latest patch release using a hotpatch, which does not require a maintenance window and usually does not require a reboot. You can use hotpatching to upgrade to a newer patch release, but not a feature release. For example, you can upgrade from
2.10.1
to2.10.5
because they are in the same feature series, but not from2.10.9
to2.11.0
because they are in a different feature series.A hotpatch may require downtime if the affected services (like kernel, MySQL, or Elasticsearch) require a VM reboot or a service restart. You'll be notified when a reboot or restart is required. You can complete the reboot or restart at a later time.
- Additional root storage must be available when upgrading through hotpatching, as it installs multiple versions of certain services until the upgrade is complete. Pre-flight checks will notify you if you don't have enough root disk storage.
- When upgrading through hotpatching, your instance cannot be too heavily loaded, as it may impact the hotpatching process. Pre-flight checks will consider the load average and the upgrade will fail if the load average is too high.
After reviewing these recommendations and requirements, you can upgrade GitHub Enterprise. For more information, see "Upgrading GitHub Enterprise."