CINXE.COM
Requirements 路 Install 路 Help 路 GitLab
<!DOCTYPE html> <html class="gl-light ui-neutral with-top-bar with-header " lang="en"> <head prefix="og: http://ogp.me/ns#"> <meta charset="utf-8"> <meta content="IE=edge" http-equiv="X-UA-Compatible"> <meta content="width=device-width, initial-scale=1" name="viewport"> <title>Requirements 路 Install 路 Help 路 GitLab</title> <script nonce="S59wNFRd/65l1xw/kKqM0A=="> //<![CDATA[ window.gon={}; //]]> </script> <link rel="stylesheet" href="/assets/application-1fdb53bdcbf63d97ab4fadb617fa5184d10646d1f0314d4526607d54dbe2cc5b.css" /> <link rel="stylesheet" href="/assets/page_bundles/commit_description-1e2cba4dda3c7b30dd84924809020c569f1308dea51520fe1dd5d4ce31403195.css" /><link rel="stylesheet" href="/assets/page_bundles/work_items-d9603c98e9259c19bbb47784abf3b63b5cb7ce8d7463608443b907773ab7197d.css" /><link rel="stylesheet" href="/assets/page_bundles/notes_shared-985467dc606e2acde1735b642c5ce237ef7e965ad1c35cf33a4c9beb2ecb05b8.css" /> <link rel="stylesheet" href="/assets/application_utilities-6e9d4ced3f78abb4b0b5d21e2c5069b8c88f8e045babafc20e3c7f57893d3ee1.css" /> <link rel="stylesheet" href="/assets/tailwind-963352f5d79b0e81c8ff62ae97285b924988e6177494aaefaf1f5f466542142c.css" /> <link rel="stylesheet" href="/assets/fonts-fae5d3f79948bd85f18b6513a025f863b19636e85b09a1492907eb4b1bb0557b.css" /> <link rel="stylesheet" href="/assets/highlight/themes/white-9fc2e7ab1cefbb5a525a1e1b06c04b3141c2179a6d572b1d390cf9db8def8104.css" /> <link rel="preload" href="/assets/application_utilities-6e9d4ced3f78abb4b0b5d21e2c5069b8c88f8e045babafc20e3c7f57893d3ee1.css" as="style" type="text/css" nonce="d83/9bCKDle9KmFuas5UHg=="> <link rel="preload" href="/assets/application-1fdb53bdcbf63d97ab4fadb617fa5184d10646d1f0314d4526607d54dbe2cc5b.css" as="style" type="text/css" nonce="d83/9bCKDle9KmFuas5UHg=="> <link rel="preload" href="/assets/highlight/themes/white-9fc2e7ab1cefbb5a525a1e1b06c04b3141c2179a6d572b1d390cf9db8def8104.css" as="style" type="text/css" nonce="d83/9bCKDle9KmFuas5UHg=="> <script src="/assets/webpack/runtime.d62b9a76.bundle.js" defer="defer" nonce="S59wNFRd/65l1xw/kKqM0A=="></script> <script src="/assets/webpack/main.8ef36d88.chunk.js" defer="defer" nonce="S59wNFRd/65l1xw/kKqM0A=="></script> <script src="/assets/webpack/graphql.e1f11a07.chunk.js" defer="defer" nonce="S59wNFRd/65l1xw/kKqM0A=="></script> <script src="/assets/webpack/commons-pages.admin.abuse_reports.show-pages.admin.topics.edit-pages.admin.topics.new-pages.dashboar-bfe2356d.ee9898b8.chunk.js" defer="defer" nonce="S59wNFRd/65l1xw/kKqM0A=="></script> <script src="/assets/webpack/commons-pages.admin.abuse_reports.show-pages.dashboard.issues-pages.dashboard.milestones.show-pages.-13e11bbf.31cf9968.chunk.js" defer="defer" nonce="S59wNFRd/65l1xw/kKqM0A=="></script> <script src="/assets/webpack/commons-pages.admin.abuse_reports.show-pages.dashboard.issues-pages.groups.boards-pages.groups.issue-8dfa5f96.e0a3e16a.chunk.js" defer="defer" nonce="S59wNFRd/65l1xw/kKqM0A=="></script> <script src="/assets/webpack/commons-pages.admin.abuse_reports.show-pages.dashboard.issues-pages.groups.boards-pages.groups.issue-f804d6c2.3cc37ebf.chunk.js" defer="defer" nonce="S59wNFRd/65l1xw/kKqM0A=="></script> <script src="/assets/webpack/commons-pages.projects.blob.show-pages.projects.branches.new-pages.projects.commits.show-pages.proje-25ebd1ad.04ee6931.chunk.js" defer="defer" nonce="S59wNFRd/65l1xw/kKqM0A=="></script> <script src="/assets/webpack/commons-pages.groups.new-pages.import.gitlab_projects.new-pages.import.manifest.new-pages.projects.n-44c6c18e.03dad955.chunk.js" defer="defer" nonce="S59wNFRd/65l1xw/kKqM0A=="></script> <script src="/assets/webpack/commons-pages.search.show-super_sidebar.05f8455b.chunk.js" defer="defer" nonce="S59wNFRd/65l1xw/kKqM0A=="></script> <script src="/assets/webpack/super_sidebar.5540ac2a.chunk.js" defer="defer" nonce="S59wNFRd/65l1xw/kKqM0A=="></script> <script src="/assets/webpack/default.152b9dad.chunk.js" defer="defer" nonce="S59wNFRd/65l1xw/kKqM0A=="></script> <meta content="object" property="og:type"> <meta content="GitLab" property="og:site_name"> <meta content="Requirements 路 Install 路 Help 路 GitLab" property="og:title"> <meta content="Debian Salsa Gitlab" property="og:description"> <meta content="https://salsa.debian.org/assets/twitter_card-570ddb06edf56a2312253c5872489847a0f385112ddbcd71ccfa1570febab5d2.jpg" property="og:image"> <meta content="64" property="og:image:width"> <meta content="64" property="og:image:height"> <meta content="https://salsa.debian.org/help/install/requirements" property="og:url"> <meta content="summary" property="twitter:card"> <meta content="Requirements 路 Install 路 Help 路 GitLab" property="twitter:title"> <meta content="Debian Salsa Gitlab" property="twitter:description"> <meta content="https://salsa.debian.org/assets/twitter_card-570ddb06edf56a2312253c5872489847a0f385112ddbcd71ccfa1570febab5d2.jpg" property="twitter:image"> <meta name="csrf-param" content="authenticity_token" /> <meta name="csrf-token" content="tiLoDOjx0W0H55DEs3vz4r7nWbjMiNGbKfYxNcG10AYgSVQe0x8C93ADK1xwQbstsKQQnxjkJDDp60yRqKW3Jg" /> <meta name="csp-nonce" content="S59wNFRd/65l1xw/kKqM0A==" /> <meta name="action-cable-url" content="/-/cable" /> <link href="/-/manifest.json" rel="manifest"> <link rel="icon" type="image/png" href="/uploads/-/system/appearance/favicon/1/gitlabian_32.png" id="favicon" data-original-href="/uploads/-/system/appearance/favicon/1/gitlabian_32.png" /> <link rel="apple-touch-icon" type="image/x-icon" href="/assets/apple-touch-icon-b049d4bc0dd9626f31db825d61880737befc7835982586d015bded10b4435460.png" /> <link href="/search/opensearch.xml" rel="search" title="Search GitLab" type="application/opensearchdescription+xml"> <meta content="Debian Salsa Gitlab" name="description"> <meta content="#ececef" name="theme-color"> </head> <body class="tab-width-8 gl-browser-ie gl-platform-windows" data-page="help:show"> <script nonce="S59wNFRd/65l1xw/kKqM0A=="> //<![CDATA[ gl = window.gl || {}; gl.client = {"isIe":true,"isWindows":true}; //]]> </script> <header class="header-logged-out" data-testid="navbar"> <a class="gl-sr-only gl-accessibility" href="#content-body">Skip to content</a> <div class="container-fluid"> <nav aria-label="Explore GitLab" class="header-logged-out-nav gl-flex gl-gap-3 gl-justify-between"> <div class="gl-flex gl-items-center gl-gap-1"> <span class="gl-sr-only">GitLab</span> <a title="Homepage" id="logo" class="header-logged-out-logo has-tooltip" aria-label="Homepage" href="/"><img class="brand-header-logo lazy" alt="" data-src="/uploads/-/system/appearance/header_logo/1/salsa-debian-icon.png" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" /> </a></div> <ul class="gl-list-none gl-p-0 gl-m-0 gl-flex gl-gap-3 gl-items-center gl-grow"> <li class="header-logged-out-nav-item"> <a class="" href="/explore">Explore</a> </li> </ul> <ul class="gl-list-none gl-p-0 gl-m-0 gl-flex gl-gap-3 gl-items-center gl-justify-end"> <li class="header-logged-out-nav-item"> <a href="/users/sign_in?redirect_to_referer=yes">Sign in</a> </li> <li class="header-logged-out-nav-item"> <a class="gl-button btn btn-md btn-confirm " href="/users/sign_up"><span class="gl-button-text"> Register </span> </a></li> </ul> </nav> </div> </header> <div class="layout-page page-with-super-sidebar"> <aside class="js-super-sidebar super-sidebar super-sidebar-loading" data-command-palette="{}" data-force-desktop-expanded-sidebar="true" data-is-saas="false" data-root-path="/" data-sidebar="{"is_logged_in":false,"context_switcher_links":[{"title":"Explore","link":"/explore","icon":"compass"}],"current_menu_items":[{"id":"projects_menu","title":"Projects","icon":"project","avatar":null,"avatar_shape":"rect","entity_id":null,"link":"/explore/projects/starred","is_active":false,"pill_count":null,"items":[],"separated":false},{"id":"groups_menu","title":"Groups","icon":"group","avatar":null,"avatar_shape":"rect","entity_id":null,"link":"/explore/groups","is_active":false,"pill_count":null,"items":[],"separated":false},{"id":"catalog_menu","title":"CI/CD Catalog","icon":"catalog-checkmark","avatar":null,"avatar_shape":"rect","entity_id":null,"link":"/explore/catalog","is_active":false,"pill_count":null,"items":[],"separated":false},{"id":"topics_menu","title":"Topics","icon":"labels","avatar":null,"avatar_shape":"rect","entity_id":null,"link":"/explore/projects/topics","is_active":false,"pill_count":null,"items":[],"separated":false},{"id":"snippets_menu","title":"Snippets","icon":"snippet","avatar":null,"avatar_shape":"rect","entity_id":null,"link":"/explore/snippets","is_active":false,"pill_count":null,"items":[],"separated":false}],"current_context_header":"Explore","support_path":"https://wiki.debian.org/Salsa/Doc","docs_path":"/help/docs","display_whats_new":false,"show_version_check":null,"search":{"search_path":"/search","issues_path":"/dashboard/issues","mr_path":"/dashboard/merge_requests","autocomplete_path":"/search/autocomplete","settings_path":"/search/settings","search_context":{"for_snippets":null}},"panel_type":null,"shortcut_links":[{"title":"Snippets","href":"/explore/snippets","css_class":"dashboard-shortcuts-snippets"},{"title":"Groups","href":"/explore/groups","css_class":"dashboard-shortcuts-groups"},{"title":"Projects","href":"/explore/projects/starred","css_class":"dashboard-shortcuts-projects"}],"terms":null}"></aside> <div class="content-wrapper"> <div class="broadcast-wrapper"> </div> <div class="alert-wrapper alert-wrapper-top-space gl-flex gl-flex-col gl-gap-3 container-fluid container-limited"> <div class="gl-alert gl-alert-danger gl-alert-not-dismissible" role="alert"> <div class="gl-alert-icon-container"> <svg class="s16 gl-alert-icon gl-alert-icon-no-title" data-testid="error-icon"><use href="/assets/icons-236e3b687d786d9dfe4709143a94d4c53b8d5a1f235775401e5825148297fa84.svg#error"></use></svg> </div> <div class="gl-alert-content" role="alert"> <div class="gl-alert-body"> GitLab may not work properly, because you are using an outdated web browser. <br> Please install a <a target="_blank" rel="noopener noreferrer" href="/help/install/requirements.md#supported-web-browsers">supported web browser</a> for a better experience. </div> </div> </div> </div> <div class="top-bar-fixed container-fluid" data-testid="top-bar"> <div class="top-bar-container gl-flex gl-items-center gl-gap-2"> <div class="gl-grow gl-basis-0 gl-flex gl-items-center gl-justify-start"> <button class="gl-button btn btn-icon btn-md btn-default btn-default-tertiary js-super-sidebar-toggle-expand super-sidebar-toggle -gl-ml-3" aria-controls="super-sidebar" aria-expanded="false" aria-label="Primary navigation sidebar" type="button"><svg class="s16 gl-icon gl-button-icon " data-testid="sidebar-icon"><use href="/assets/icons-236e3b687d786d9dfe4709143a94d4c53b8d5a1f235775401e5825148297fa84.svg#sidebar"></use></svg> </button> <script type="application/ld+json"> {"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Help","item":"https://salsa.debian.org/help"},{"@type":"ListItem","position":2,"name":"Help","item":"https://salsa.debian.org/help/install/requirements"}]} </script> <div data-testid="breadcrumb-links" id="js-vue-page-breadcrumbs-wrapper"> <div data-breadcrumbs-json="[{"text":"Help","href":"/help","avatarPath":null},{"text":"Help","href":"/help/install/requirements","avatarPath":null}]" id="js-vue-page-breadcrumbs"></div> <div id="js-injected-page-breadcrumbs"></div> </div> </div> <div class="gl-flex-none gl-flex gl-items-center gl-justify-center"> <div id="js-advanced-search-modal"></div> </div> <div class="gl-grow gl-basis-0 gl-flex gl-items-center gl-justify-end"> <div id="js-work-item-feedback"></div> </div> </div> </div> <div class="container-fluid container-limited limit-container-width"> <main class="content" id="content-body"> <div class="flash-container flash-container-page sticky" data-testid="flash-container"> <div id="js-global-alerts"></div> </div> <div class="md gl-text-lg gl-mt-3"> <h1 data-sourcepos="1:1-1:34" dir="auto">
<a href="#gitlab-installation-requirements" aria-hidden="true" class="anchor" id="user-content-gitlab-installation-requirements"></a>GitLab installation requirements</h1>
<p data-sourcepos="3:1-5:26" dir="auto">DETAILS:
<strong data-sourcepos="4:1-4:9">Tier:</strong> Free, Premium, Ultimate
<strong data-sourcepos="5:1-5:13">Offering:</strong> Self-managed</p>
<p data-sourcepos="7:1-7:79" dir="auto">This page contains information about the system requirements to install GitLab.</p>
<h2 data-sourcepos="9:1-9:10" dir="auto">
<a href="#storage" aria-hidden="true" class="anchor" id="user-content-storage"></a>Storage</h2>
<p data-sourcepos="11:1-12:94" dir="auto">The necessary storage space largely depends on the size of the repositories you want to have in GitLab.
As a guideline, you should have at least as much free space as all your repositories combined.</p>
<p data-sourcepos="14:1-16:101" dir="auto">The Linux package requires about 2.5 GB of storage space for installation.
For storage flexibility, consider mounting your hard drive through logical volume management.
You should have a hard drive with at least 7,200 RPM or a solid-state drive to reduce response times.</p>
<p data-sourcepos="18:1-19:114" dir="auto">Because file system performance might affect the overall performance of GitLab, you should
<a data-sourcepos="19:1-19:113" href="../administration/nfs.md#avoid-using-cloud-based-file-systems">avoid using cloud-based file systems for storage</a>.</p>
<h2 data-sourcepos="21:1-21:6" dir="auto">
<a href="#cpu" aria-hidden="true" class="anchor" id="user-content-cpu"></a>CPU</h2>
<p data-sourcepos="23:1-24:97" dir="auto">CPU requirements depend on the number of users and expected workload.
The workload includes your users' activity, use of automation and mirroring, and repository size.</p>
<p data-sourcepos="26:1-28:82" dir="auto">For a maximum of 20 requests per second or 1,000 users, you should have 8 vCPU.
For more users or higher workload,
see <a data-sourcepos="28:5-28:81" href="../administration/reference_architectures/index.md">reference architectures</a>.</p>
<h2 data-sourcepos="30:1-30:9" dir="auto">
<a href="#memory" aria-hidden="true" class="anchor" id="user-content-memory"></a>Memory</h2>
<p data-sourcepos="32:1-33:97" dir="auto">Memory requirements depend on the number of users and expected workload.
The workload includes your users' activity, use of automation and mirroring, and repository size.</p>
<p data-sourcepos="35:1-37:82" dir="auto">For a maximum of 20 requests per second or 1,000 users, you should have 16 GB of memory.
For more users or higher workload,
see <a data-sourcepos="37:5-37:81" href="../administration/reference_architectures/index.md">reference architectures</a>.</p>
<p data-sourcepos="39:1-41:124" dir="auto">In some cases, GitLab can run with at least 8 GB of memory.
For more information, see
<a data-sourcepos="41:1-41:123" href="https://docs.gitlab.com/omnibus/settings/memory_constrained_envs.html" rel="nofollow noreferrer noopener" target="_blank">running GitLab in a memory-constrained environment</a>.</p>
<h2 data-sourcepos="43:1-43:13" dir="auto">
<a href="#postgresql" aria-hidden="true" class="anchor" id="user-content-postgresql"></a>PostgreSQL</h2>
<p data-sourcepos="45:1-46:166" dir="auto"><a data-sourcepos="45:1-45:41" href="https://www.postgresql.org/" rel="nofollow noreferrer noopener" target="_blank">PostgreSQL</a> is the only supported database and is bundled with the Linux package.
You can also use an <a data-sourcepos="46:21-46:165" href="https://docs.gitlab.com/omnibus/settings/database.html#using-a-non-packaged-postgresql-database-management-server" rel="nofollow noreferrer noopener" target="_blank">external PostgreSQL database</a>.</p>
<p data-sourcepos="48:1-49:34" dir="auto">Depending on the <a data-sourcepos="48:18-48:86" href="../administration/reference_architectures/index.md">number of users</a>,
the PostgreSQL server should have:</p>
<ul data-sourcepos="51:1-54:0" dir="auto">
<li data-sourcepos="51:1-51:59">For most GitLab instances, at least 5 to 10 GB of storage</li>
<li data-sourcepos="52:1-54:0">For GitLab Ultimate, at least 12 GB of storage
(1 GB of vulnerability data must be imported)</li>
</ul>
<p data-sourcepos="55:1-55:68" dir="auto">For the following versions of GitLab, use these PostgreSQL versions:</p>
<table data-sourcepos="57:1-61:159" dir="auto">
<thead>
<tr data-sourcepos="57:1-57:76">
<th data-sourcepos="57:2-57:17">GitLab version</th>
<th data-sourcepos="57:19-57:46">Minimum PostgreSQL version</th>
<th data-sourcepos="57:48-57:75">Maximum PostgreSQL version</th>
</tr>
</thead>
<tbody>
<tr data-sourcepos="59:1-59:76">
<td data-sourcepos="59:2-59:17">17.x</td>
<td data-sourcepos="59:19-59:46">14.9</td>
<td data-sourcepos="59:48-59:75">15.x</td>
</tr>
<tr data-sourcepos="60:1-60:157">
<td data-sourcepos="60:2-60:17">16.x</td>
<td data-sourcepos="60:19-60:46">13.6</td>
<td data-sourcepos="60:48-60:156">15.x (<a data-sourcepos="60:55-60:154" href="https://gitlab.com/gitlab-org/gitlab/-/merge_requests/119344" rel="nofollow noreferrer noopener" target="_blank">tested against GitLab 16.1 and later</a>)</td>
</tr>
<tr data-sourcepos="61:1-61:159">
<td data-sourcepos="61:2-61:17">15.x</td>
<td data-sourcepos="61:19-61:46">12.10</td>
<td data-sourcepos="61:48-61:158">14.x (<a data-sourcepos="61:55-61:150" href="https://gitlab.com/gitlab-org/gitlab/-/merge_requests/114624" rel="nofollow noreferrer noopener" target="_blank">tested against GitLab 15.11 only</a>), 13.x</td>
</tr>
</tbody>
</table>
<p data-sourcepos="63:1-65:95" dir="auto">Minor PostgreSQL releases <a data-sourcepos="63:27-63:111" href="https://www.postgresql.org/support/versioning/" rel="nofollow noreferrer noopener" target="_blank">include only bug and security fixes</a>.
Always use the latest minor version to avoid known issues in PostgreSQL.
For more information, see <a data-sourcepos="65:27-65:94" href="https://gitlab.com/gitlab-org/gitlab/-/issues/364763" rel="nofollow noreferrer noopener" target="_blank">issue 364763</a>.</p>
<p data-sourcepos="67:1-68:108" dir="auto">To use a later major version of PostgreSQL than specified, check if a
<a data-sourcepos="68:1-68:107" href="http://gitlab-org.gitlab.io/omnibus-gitlab/licenses.html" rel="nofollow noreferrer noopener" target="_blank">later version is bundled with the Linux package</a>.</p>
<p data-sourcepos="70:1-71:85" dir="auto">You must also ensure some extensions are loaded into every GitLab database.
For more information, see <a data-sourcepos="71:27-71:84" href="postgresql_extensions.md">managing PostgreSQL extensions</a>.</p>
<h3 data-sourcepos="73:1-73:14" dir="auto">
<a href="#gitlab-geo" aria-hidden="true" class="anchor" id="user-content-gitlab-geo"></a>GitLab Geo</h3>
<p data-sourcepos="75:1-78:62" dir="auto">For <a data-sourcepos="75:5-75:48" href="../administration/geo/index.md">GitLab Geo</a>, you should use the Linux package or
<a data-sourcepos="76:1-76:120" href="../administration/reference_architectures/index.md#recommended-cloud-providers-and-services">validated cloud providers</a>
to install GitLab.
Compatibility with other external databases is not guaranteed.</p>
<p data-sourcepos="80:1-80:118" dir="auto">For more information, see <a data-sourcepos="80:27-80:117" href="../administration/geo/index.md#requirements-for-running-geo">requirements for running Geo</a>.</p>
<h3 data-sourcepos="82:1-82:24" dir="auto">
<a href="#locale-compatibility" aria-hidden="true" class="anchor" id="user-content-locale-compatibility"></a>Locale compatibility</h3>
<p data-sourcepos="84:1-88:9" dir="auto">When you change locale data in <code data-sourcepos="84:33-84:37">glibc</code>, PostgreSQL database files are
no longer fully compatible between different operating systems.
To avoid index corruption,
<a data-sourcepos="87:1-87:128" href="../administration/geo/replication/troubleshooting/common.md#check-os-locale-data-compatibility">check for locale compatibility</a>
when you:</p>
<ul data-sourcepos="90:1-93:0" dir="auto">
<li data-sourcepos="90:1-90:46">Move binary PostgreSQL data between servers.</li>
<li data-sourcepos="91:1-91:34">Upgrade your Linux distribution.</li>
<li data-sourcepos="92:1-93:0">Update or change third-party container images.</li>
</ul>
<p data-sourcepos="94:1-94:117" dir="auto">For more information, see <a data-sourcepos="94:27-94:116" href="../administration/postgresql/upgrading_os.md">upgrading operating systems for PostgreSQL</a>.</p>
<h3 data-sourcepos="96:1-96:18" dir="auto">
<a href="#gitlab-schemas" aria-hidden="true" class="anchor" id="user-content-gitlab-schemas"></a>GitLab schemas</h3>
<p data-sourcepos="98:1-100:94" dir="auto">You should create or use databases exclusively for GitLab, <a data-sourcepos="98:60-98:96" href="../administration/geo/index.md">Geo</a>,
<a data-sourcepos="99:1-99:54" href="../administration/gitaly/praefect.md">Gitaly Cluster</a>, or other components.
Do not create or modify databases, schemas, users, or other properties except when you follow:</p>
<ul data-sourcepos="102:1-104:0" dir="auto">
<li data-sourcepos="102:1-102:40">Procedures in the GitLab documentation</li>
<li data-sourcepos="103:1-104:0">The directions of GitLab Support or engineers</li>
</ul>
<p data-sourcepos="105:1-105:47" dir="auto">The main GitLab application uses three schemas:</p>
<ul data-sourcepos="107:1-110:0" dir="auto">
<li data-sourcepos="107:1-107:29">The default <code data-sourcepos="107:16-107:21">public</code> schema</li>
<li data-sourcepos="108:1-108:52">
<code data-sourcepos="108:4-108:27">gitlab_partitions_static</code> (created automatically)</li>
<li data-sourcepos="109:1-110:0">
<code data-sourcepos="109:4-109:28">gitlab_partitions_dynamic</code> (created automatically)</li>
</ul>
<p data-sourcepos="111:1-113:75" dir="auto">During Rails database migrations, GitLab might create or modify schemas or tables.
Database migrations are tested against the schema definition in the GitLab codebase.
If you modify any schema, <a data-sourcepos="113:27-113:63" href="../update/index.md">GitLab upgrades</a> might fail.</p>
<h2 data-sourcepos="115:1-115:7" dir="auto">
<a href="#puma" aria-hidden="true" class="anchor" id="user-content-puma"></a>Puma</h2>
<p data-sourcepos="117:1-118:60" dir="auto">The recommended <a data-sourcepos="117:17-117:40" href="https://puma.io/" rel="nofollow noreferrer noopener" target="_blank">Puma</a> settings depend on your <a data-sourcepos="117:66-117:99" href="install_methods.md">installation</a>.
By default, the Linux package uses the recommended settings.</p>
<p data-sourcepos="120:1-120:24" dir="auto">To adjust Puma settings:</p>
<ul data-sourcepos="122:1-125:0" dir="auto">
<li data-sourcepos="122:1-122:83">For the Linux package, see <a data-sourcepos="122:30-122:82" href="../administration/operations/puma.md">Puma settings</a>.</li>
<li data-sourcepos="123:1-125:0">For the GitLab Helm chart, see the
<a data-sourcepos="124:3-124:90" href="https://docs.gitlab.com/charts/charts/gitlab/webservice/index.html" rel="nofollow noreferrer noopener" target="_blank"><code data-sourcepos="124:5-124:14">webservice</code> chart</a>.</li>
</ul>
<h3 data-sourcepos="126:1-126:11" dir="auto">
<a href="#workers" aria-hidden="true" class="anchor" id="user-content-workers"></a>Workers</h3>
<p data-sourcepos="128:1-131:146" dir="auto">The recommended number of Puma workers largely depends on CPU and memory capacity.
By default, the Linux package uses the recommended number of workers.
For more information about how this number is calculated,
see <a data-sourcepos="131:5-131:145" href="https://gitlab.com/gitlab-org/omnibus-gitlab/-/blob/master/files/gitlab-cookbooks/gitlab/libraries/puma.rb?ref_type=heads#L46-69" rel="nofollow noreferrer noopener" target="_blank"><code data-sourcepos="131:7-131:13">puma.rb</code></a>.</p>
<p data-sourcepos="133:1-134:32" dir="auto">A node must never have fewer than two Puma workers.
For example, a node should have:</p>
<ul data-sourcepos="136:1-141:0" dir="auto">
<li data-sourcepos="136:1-136:48">Two workers for 2 CPU cores and 8 GB of memory</li>
<li data-sourcepos="137:1-137:48">Two workers for 4 CPU cores and 4 GB of memory</li>
<li data-sourcepos="138:1-138:49">Four workers for 4 CPU cores and 8 GB of memory</li>
<li data-sourcepos="139:1-139:48">Six workers for 8 CPU cores and 8 GB of memory</li>
<li data-sourcepos="140:1-141:0">Eight workers for 8 CPU cores and 16 GB of memory</li>
</ul>
<p data-sourcepos="142:1-143:115" dir="auto">By default, each Puma worker is limited to 1.2 GB of memory.
You can <a data-sourcepos="143:9-143:87" href="../administration/operations/puma.md#reducing-memory-use">adjust this setting</a> in <code data-sourcepos="143:93-143:113">/etc/gitlab/gitlab.rb</code>.</p>
<p data-sourcepos="145:1-147:94" dir="auto">You can also increase the number of Puma workers, provided enough CPU and memory capacity is available.
More workers would reduce response times and improve the ability to handle parallel requests.
Run tests to verify the optimal number of workers for your <a data-sourcepos="147:60-147:93" href="install_methods.md">installation</a>.</p>
<h3 data-sourcepos="149:1-149:11" dir="auto">
<a href="#threads" aria-hidden="true" class="anchor" id="user-content-threads"></a>Threads</h3>
<p data-sourcepos="151:1-152:18" dir="auto">The recommended number of Puma threads depends on total system memory.
A node should use:</p>
<ul data-sourcepos="154:1-156:0" dir="auto">
<li data-sourcepos="154:1-154:69">One thread for an operating system with a maximum of 2 GB of memory</li>
<li data-sourcepos="155:1-156:0">Four threads for an operating system with more than 2 GB of memory</li>
</ul>
<p data-sourcepos="157:1-157:68" dir="auto">More threads would lead to excessive swapping and lower performance.</p>
<h2 data-sourcepos="159:1-159:8" dir="auto">
<a href="#redis" aria-hidden="true" class="anchor" id="user-content-redis"></a>Redis</h2>
<p data-sourcepos="161:1-162:45" dir="auto"><a data-sourcepos="161:1-161:26" href="https://redis.io/" rel="nofollow noreferrer noopener" target="_blank">Redis</a> stores all user sessions and background tasks
and requires about 25 kB per user on average.</p>
<p data-sourcepos="164:1-166:103" dir="auto">In GitLab 16.0 and later, Redis 6.x or 7.x is required.
For more information about end-of-life dates, see the
<a data-sourcepos="166:1-166:102" href="https://redis.io/docs/latest/operate/rs/installing-upgrading/product-lifecycle/" rel="nofollow noreferrer noopener" target="_blank">Redis documentation</a>.</p>
<p data-sourcepos="168:1-168:10" dir="auto">For Redis:</p>
<ul data-sourcepos="170:1-173:0" dir="auto">
<li data-sourcepos="170:1-171:33">Use a standalone instance (with or without high availability).
Redis Cluster is not supported.</li>
<li data-sourcepos="172:1-173:0">Set the <a data-sourcepos="172:11-172:117" href="../administration/redis/replication_and_failover_external.md#setting-the-eviction-policy">eviction policy</a> as appropriate.</li>
</ul>
<h2 data-sourcepos="174:1-174:10" dir="auto">
<a href="#sidekiq" aria-hidden="true" class="anchor" id="user-content-sidekiq"></a>Sidekiq</h2>
<p data-sourcepos="176:1-178:45" dir="auto"><a data-sourcepos="176:1-176:31" href="https://sidekiq.org/" rel="nofollow noreferrer noopener" target="_blank">Sidekiq</a> uses a multi-threaded process for background jobs.
This process initially consumes more than 200 MB of memory
and might grow over time due to memory leaks.</p>
<p data-sourcepos="180:1-181:59" dir="auto">On a very active server with more than 10,000 billable users,
the Sidekiq process might consume more than 1 GB of memory.</p>
<h2 data-sourcepos="183:1-183:13" dir="auto">
<a href="#prometheus" aria-hidden="true" class="anchor" id="user-content-prometheus"></a>Prometheus</h2>
<p data-sourcepos="185:1-186:55" dir="auto">By default, <a data-sourcepos="185:13-185:47" href="https://prometheus.io" rel="nofollow noreferrer noopener" target="_blank">Prometheus</a> and its related exporters are enabled to monitor GitLab.
These processes consume approximately 200 MB of memory.</p>
<p data-sourcepos="188:1-189:86" dir="auto">For more information, see
<a data-sourcepos="189:1-189:85" href="../administration/monitoring/prometheus/index.md">monitoring GitLab with Prometheus</a>.</p>
<h2 data-sourcepos="191:1-191:25" dir="auto">
<a href="#supported-web-browsers" aria-hidden="true" class="anchor" id="user-content-supported-web-browsers"></a>Supported web browsers</h2>
<p data-sourcepos="193:1-193:43" dir="auto">GitLab supports the following web browsers:</p>
<ul data-sourcepos="195:1-200:0" dir="auto">
<li data-sourcepos="195:1-195:63"><a data-sourcepos="195:3-195:63" href="https://www.mozilla.org/en-US/firefox/new/" rel="nofollow noreferrer noopener" target="_blank">Mozilla Firefox</a></li>
<li data-sourcepos="196:1-196:49"><a data-sourcepos="196:3-196:49" href="https://www.google.com/chrome/" rel="nofollow noreferrer noopener" target="_blank">Google Chrome</a></li>
<li data-sourcepos="197:1-197:68"><a data-sourcepos="197:3-197:68" href="https://www.chromium.org/getting-involved/dev-channel/" rel="nofollow noreferrer noopener" target="_blank">Chromium</a></li>
<li data-sourcepos="198:1-198:47"><a data-sourcepos="198:3-198:47" href="https://www.apple.com/safari/" rel="nofollow noreferrer noopener" target="_blank">Apple Safari</a></li>
<li data-sourcepos="199:1-200:0"><a data-sourcepos="199:3-199:68" href="https://www.microsoft.com/en-us/edge?form=MA13QK" rel="nofollow noreferrer noopener" target="_blank">Microsoft Edge</a></li>
</ul>
<p data-sourcepos="201:1-201:16" dir="auto">GitLab supports:</p>
<ul data-sourcepos="203:1-205:0" dir="auto">
<li data-sourcepos="203:1-203:58">The current and earlier major versions of these browsers</li>
<li data-sourcepos="204:1-205:0">The current minor version of a supported major version</li>
</ul>
<p data-sourcepos="206:1-206:75" dir="auto">Running GitLab with JavaScript disabled in these browsers is not supported.</p>
<h2 data-sourcepos="208:1-208:17" dir="auto">
<a href="#related-topics" aria-hidden="true" class="anchor" id="user-content-related-topics"></a>Related topics</h2>
<ul data-sourcepos="210:1-211:50" dir="auto">
<li data-sourcepos="210:1-210:66"><a data-sourcepos="210:3-210:66" href="https://docs.gitlab.com/runner/install/" rel="nofollow noreferrer noopener" target="_blank">Install GitLab Runner</a></li>
<li data-sourcepos="211:1-211:50"><a data-sourcepos="211:3-211:50" href="../security/index.md">Secure your installation</a></li>
</ul> </div> </main> </div> </div> </div> <script nonce="S59wNFRd/65l1xw/kKqM0A=="> //<![CDATA[ if ('loading' in HTMLImageElement.prototype) { document.querySelectorAll('img.lazy').forEach(img => { img.loading = 'lazy'; let imgUrl = img.dataset.src; // Only adding width + height for avatars for now if (imgUrl.indexOf('/avatar/') > -1 && imgUrl.indexOf('?') === -1) { const targetWidth = img.getAttribute('width') || img.width; imgUrl += `?width=${targetWidth}`; } img.src = imgUrl; img.removeAttribute('data-src'); img.classList.remove('lazy'); img.classList.add('js-lazy-loaded'); img.dataset.testid = 'js-lazy-loaded-content'; }); } //]]> </script> <script nonce="S59wNFRd/65l1xw/kKqM0A=="> //<![CDATA[ gl = window.gl || {}; gl.experiments = {}; //]]> </script> </body> </html>