CINXE.COM

limits.pp 路 operations-puppet

<!DOCTYPE html><html><head><meta charset="UTF-8" /><title>limits.pp 路 operations-puppet</title><meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes" /><link rel="mask-icon" color="#3D4B67" href="https://phab.wmfusercontent.org/res/phabricator/db699fe1/rsrc/favicons/mask-icon.svg" /><link rel="apple-touch-icon" sizes="76x76" href="https://phab.wmfusercontent.org/file/data/wai6mh2gkrssonesklmm/PHID-FILE-jiixbumihmhuzz2paeut/favicon" /><link rel="apple-touch-icon" sizes="120x120" href="https://phab.wmfusercontent.org/file/data/a3izriz5azyzso4bnueg/PHID-FILE-ps6cpmki336a7zc3oqjn/favicon" /><link rel="apple-touch-icon" sizes="152x152" href="https://phab.wmfusercontent.org/file/data/o2jxp55a4p46ytynsfng/PHID-FILE-rug6ohtqrwvnunh5kj4x/favicon" /><link rel="icon" id="favicon" href="https://phab.wmfusercontent.org/file/data/ylbeoktf43zmd3loe435/PHID-FILE-ahr5qqrmgg3kjvzhpv4k/favicon" /><meta name="referrer" content="no-referrer" /><link rel="stylesheet" type="text/css" href="https://phab.wmfusercontent.org/res/defaultX/phabricator/b89e8c6c/rsrc/css/application/diffusion/diffusion-repository.css" /><link rel="stylesheet" type="text/css" href="https://phab.wmfusercontent.org/res/defaultX/phabricator/45b62efe/core.pkg.css" /><link rel="stylesheet" type="text/css" href="https://phab.wmfusercontent.org/res/defaultX/phabricator/e382316a/rsrc/css/layout/phabricator-source-code-view.css" /><link rel="stylesheet" type="text/css" href="https://phab.wmfusercontent.org/res/defaultX/phabricator/354279ea/diffusion.pkg.css" /><link rel="stylesheet" type="text/css" href="https://phab.wmfusercontent.org/res/defaultX/phabricator/e46232d6/rsrc/css/application/diffusion/diffusion.css" /><link rel="stylesheet" type="text/css" href="https://phab.wmfusercontent.org/res/defaultX/phabricator/68513c34/rsrc/css/phui/phui-left-right.css" /><script type="text/javascript" src="https://phab.wmfusercontent.org/res/defaultX/phabricator/98e6504a/rsrc/externals/javelin/core/init.js"></script></head><body class="device-desktop platform-windows phui-theme-blue"><div class="main-page-frame" id="main-page-frame"><div id="phabricator-standard-page" class="phabricator-standard-page"><div class="phabricator-main-menu phabricator-main-menu-background" id="UQ0_2"><a class="phabricator-main-menu-search-button phabricator-expand-application-menu" data-sigil="jx-toggle-class" data-meta="0_16"><span class="phabricator-menu-button-icon phui-icon-view phui-font-fa fa-search" id="UQ0_3"></span></a><a class="phabricator-main-menu-brand" href="/"><span class="aural-only">Home</span><span class="phabricator-main-menu-project-logo" style="background-size: 40px 40px; background-position: 0 0; background-image: url(https://phab.wmfusercontent.org/file/data/ki2yptiznxwthixxdwas/PHID-FILE-be4byvg2akyovi3g33wq/logo)"></span><span class="phabricator-wordmark">Phabricator</span></a><ul class="phui-list-view phabricator-search-menu"><li class="phui-list-item-view phui-list-item-type-link phabricator-main-menu-search"><div class="" data-sigil=""><form action="/search/" method="POST"><input type="hidden" name="__csrf__" value="B@vsaprgod2fa1893d7b9797c6" /><input type="hidden" name="__form__" value="1" /><div class="phabricator-main-menu-search-container"><input type="text" name="query" id="UQ0_4" autocomplete="off" accesskey="F" autocorrect="off" autocapitalize="off" spellcheck="false" /><button id="UQ0_6" class="phui-icon-view phui-font-fa fa-search"><span class="aural-only">Search</span></button><button class="button dropdown has-icon phui-button-default phabricator-main-menu-search-dropdown" id="UQ0_7" data-sigil="global-search-dropdown" data-meta="0_17"><span class="aural-only">Configure Global Search</span><span class="visual-only phui-icon-view phui-font-fa fa-globe" data-sigil="global-search-dropdown-icon" data-meta="0_18" aria-hidden="true"></span><span class="caret"></span></button><input type="hidden" name="search:scope" value="all" data-sigil="global-search-dropdown-input" /><input type="hidden" id="UQ0_8" name="search:application" value="PhabricatorDiffusionApplication" data-sigil="global-search-dropdown-app" /><input type="hidden" name="search:primary" value="true" /><div id="UQ0_5" class="phabricator-main-menu-search-target"></div></div></form></div></li></ul><a class=" phabricator-core-login-button" href="https://phabricator.wikimedia.org/auth/start/?next=%2Fsource%2Foperations-puppet%2Fbrowse%2Fproduction%2Fmodules%2Fprofile%2Fmanifests%2Fanalytics%2Fclient%2Flimits.pp" role="button"><div class="phui-button-text">Log In</div></a></div><div id="phabricator-standard-page-body" class="phabricator-standard-page-body"><div class="phui-crumbs-view phui-crumbs-border"><a href="/diffusion/" class="phui-crumb-view phui-crumb-has-icon"><span class="visual-only phui-icon-view phui-font-fa fa-code" data-meta="0_19" aria-hidden="true"></span><span class="phui-crumb-name"> Diffusion</span> </a><span class="visual-only phui-icon-view phui-font-fa fa-angle-right phui-crumb-divider phui-crumb-view" data-meta="0_20" aria-hidden="true"></span><a href="/source/operations-puppet/repository/production/" class="phui-crumb-view"><span class="phui-crumb-name"> Wikimedia Puppet (production)</span> </a><span class="visual-only phui-icon-view phui-font-fa fa-angle-right phui-crumb-divider phui-crumb-view" data-meta="0_21" aria-hidden="true"></span><span class="phui-crumb-view phabricator-last-crumb"><span class="phui-crumb-name"> Code</span> </span></div><div class="phui-two-column-view phui-side-column-right with-tabs "><div class="phui-two-column-container"><div class="phui-two-column-header"><div class="phui-header-shell diffusion-browse-header"><h1 class="phui-header-view"><div class="phui-header-row"><div class="phui-header-col2"><span class="phui-header-header"><span class="visual-only phui-icon-view phui-font-fa fa-file-code-o phui-header-icon" data-meta="0_10" aria-hidden="true"></span><a href="/source/operations-puppet/browse/production/">operations-puppet</a><span class="phui-header-divider">/</span><a href="/source/operations-puppet/browse/production/modules/">modules</a><span class="phui-header-divider">/</span><a href="/source/operations-puppet/browse/production/modules/profile/">profile</a><span class="phui-header-divider">/</span><a href="/source/operations-puppet/browse/production/modules/profile/manifests/">manifests</a><span class="phui-header-divider">/</span><a href="/source/operations-puppet/browse/production/modules/profile/manifests/analytics/">analytics</a><span class="phui-header-divider">/</span><a href="/source/operations-puppet/browse/production/modules/profile/manifests/analytics/client/">client</a><span class="phui-header-divider">/</span>limits.pp</span><div class="phui-header-subheader"><span class="phui-tag-view phui-tag-type-shade phui-tag-indigo phui-tag-shade phui-tag-border-none "><span class="phui-tag-core "><a href="/rOPUP77f6a96d9356f20ec20d638fc484169bfa0b7e6e">77f6a96d9356</a></span></span><span class="phui-tag-view phui-tag-type-outline phui-tag-indigo phui-tag-border-none diffusion-header-branch-tag"><span class="phui-tag-core ">production</span></span></div></div><div class="phui-header-col3"><ul class="phui-header-action-list"><li class="phui-header-action-item"><div class="diffusion-search-form-view"><form method="GET" action="/source/operations-puppet/browse/production/modules/profile/manifests/analytics/client/limits.pp" class="diffusion-search-form" id="diffusion-search-form" data-sigil="diffusion-search-form"><input type="text" id="diffusion-search-input" name="grep" class="diffusion-search-input" placeholder="Pattern Search" data-sigil="diffusion-search-input" /></form></div></li></ul></div></div></h1></div></div><div class="phui-two-column-tabs"><ul class="phui-list-view phui-list-tabbar "><li class="phui-list-item-view phui-list-item-type-link phui-list-item-has-icon "><a href="/source/operations-puppet/repository/production/" class="phui-list-item-href" data-sigil=""><span class="visual-only phui-icon-view phui-font-fa fa-home phui-list-item-icon" data-meta="0_11" aria-hidden="true"></span><span class="phui-list-item-name">Home</span></a></li><li class="phui-list-item-view phui-list-item-type-link phui-list-item-has-icon phui-list-item-selected "><a href="/source/operations-puppet/browse/production/modules/profile/manifests/analytics/client/limits.pp" class="phui-list-item-href" data-sigil=""><span class="visual-only phui-icon-view phui-font-fa fa-code phui-list-item-icon" data-meta="0_12" aria-hidden="true"></span><span class="phui-list-item-name">Code</span></a></li><li class="phui-list-item-view phui-list-item-type-link phui-list-item-has-icon "><a href="/source/operations-puppet/branches/production/modules/profile/manifests/analytics/client/limits.pp" class="phui-list-item-href" data-sigil=""><span class="visual-only phui-icon-view phui-font-fa fa-code-fork phui-list-item-icon" data-meta="0_13" aria-hidden="true"></span><span class="phui-list-item-name">Branches</span></a></li><li class="phui-list-item-view phui-list-item-type-link phui-list-item-has-icon "><a href="/source/operations-puppet/tags/production/modules/profile/manifests/analytics/client/limits.pp" class="phui-list-item-href" data-sigil=""><span class="visual-only phui-icon-view phui-font-fa fa-tags phui-list-item-icon" data-meta="0_14" aria-hidden="true"></span><span class="phui-list-item-name">Tags</span></a></li><li class="phui-list-item-view phui-list-item-type-link phui-list-item-has-icon "><a href="/source/operations-puppet/history/production/modules/profile/manifests/analytics/client/limits.pp" class="phui-list-item-href" data-sigil=""><span class="visual-only phui-icon-view phui-font-fa fa-history phui-list-item-icon" data-meta="0_15" aria-hidden="true"></span><span class="phui-list-item-name">History</span></a></li></ul></div><div class="phui-two-column-content"><div class="phui-two-column-row grouped"><div class="phui-side-column"></div><div class="phui-main-column"></div></div></div><div class="phui-two-column-content phui-two-column-footer"><div class="phui-left-right-view diffusion-action-bar full-mobile-buttons"><div class="phui-lr-container"><div class="phui-left-view"><a class="button button-grey has-icon has-text phui-button-default " href="/source/operations-puppet/change/production/modules/profile/manifests/analytics/client/limits.pp" role="button"><span class="visual-only phui-icon-view phui-font-fa fa-backward" data-meta="0_5" aria-hidden="true"></span><div class="phui-button-text">Last Change</div></a></div><div class="phui-right-view"><a class="button button-grey has-icon has-text phui-button-default " href="/source/operations-puppet/browse/production/modules/profile/manifests/analytics/client/limits.pp?view=raw" role="button"><span class="visual-only phui-icon-view phui-font-fa fa-file-text" data-meta="0_6" aria-hidden="true"></span><div class="phui-button-text">Raw File</div></a></div></div></div><div class="phui-box phui-box-border phui-object-box mlt mll mlr phui-box-blue-property "><div class="phui-header-shell "><h1 class="phui-header-view"><div class="phui-header-row"><div class="phui-header-col2"><span class="phui-header-header"><span class="visual-only phui-icon-view phui-font-fa fa-code phui-header-icon" data-meta="0_9" aria-hidden="true"></span>limits.pp</span></div><div class="phui-header-col3"><div class="phui-header-action-links"><a class="button button-grey dropdown has-icon has-text phui-button-default msl phui-header-action-link" role="button" id="UQ0_1" data-sigil="document-engine-view-dropdown" data-meta="0_7"><span class="visual-only phui-icon-view phui-font-fa fa-file-image-o" data-meta="0_8" aria-hidden="true"></span><div class="phui-button-text">View Options</div><span class="caret"></span></a></div></div></div></h1></div><div id="UQ0_0"><div class="document-engine-text"><div class="phabricator-source-code-container"><table class="phabricator-source-code-view remarkup-code PhabricatorMonospaced" data-sigil="phabricator-source has-symbols" data-meta="0_4"><tr><th class="phabricator-source-blame-skip" data-blame="skip"></th><th class="phabricator-source-blame-info" data-blame="info" data-blame-lines="1"></th><th class="phabricator-source-line"><a data-n="1"></a></th><td class="phabricator-source-code"><span></span><span class="c"># SPDX-License-Identifier: Apache-2.0</span> </td></tr><tr><th class="phabricator-source-blame-skip" data-blame="skip"></th><th class="phabricator-source-blame-info" data-blame="info" data-blame-lines="2"></th><th class="phabricator-source-line"><a data-n="2"></a></th><td class="phabricator-source-code"><span class="c"># == Class profile::analytics::client::limits</span> </td></tr><tr><th class="phabricator-source-blame-skip" data-blame="skip"></th><th class="phabricator-source-blame-info" data-blame="info" data-blame-lines="3"></th><th class="phabricator-source-line"><a data-n="3"></a></th><td class="phabricator-source-code"><span class="c">#</span> </td></tr><tr><th class="phabricator-source-blame-skip" data-blame="skip"></th><th class="phabricator-source-blame-info" data-blame="info" data-blame-lines="4"></th><th class="phabricator-source-line"><a data-n="4"></a></th><td class="phabricator-source-code"><span class="c"># Apply cgroup limits to stat hosts</span> </td></tr><tr><th class="phabricator-source-blame-skip" data-blame="skip"></th><th class="phabricator-source-blame-info" data-blame="info" data-blame-lines="5"></th><th class="phabricator-source-line"><a data-n="5"></a></th><td class="phabricator-source-code"><span class="c"># The stat hosts are used for data crunching,</span> </td></tr><tr><th class="phabricator-source-blame-skip" data-blame="skip"></th><th class="phabricator-source-blame-info" data-blame="info" data-blame-lines="6"></th><th class="phabricator-source-line"><a data-n="6"></a></th><td class="phabricator-source-code"><span class="c"># with data coming from Hadoop. It&#39;s easy to accidentally</span> </td></tr><tr><th class="phabricator-source-blame-skip" data-blame="skip"></th><th class="phabricator-source-blame-info" data-blame="info" data-blame-lines="7"></th><th class="phabricator-source-line"><a data-n="7"></a></th><td class="phabricator-source-code"><span class="c"># ask for too many resources, so let&#39;s limit them to preserve</span> </td></tr><tr><th class="phabricator-source-blame-skip" data-blame="skip"></th><th class="phabricator-source-blame-info" data-blame="info" data-blame-lines="8"></th><th class="phabricator-source-line"><a data-n="8"></a></th><td class="phabricator-source-code"><span class="c"># stability on these hosts.</span> </td></tr><tr><th class="phabricator-source-blame-skip" data-blame="skip"></th><th class="phabricator-source-blame-info" data-blame="info" data-blame-lines="9"></th><th class="phabricator-source-line"><a data-n="9"></a></th><td class="phabricator-source-code"> </td></tr><tr><th class="phabricator-source-blame-skip" data-blame="skip"></th><th class="phabricator-source-blame-info" data-blame="info" data-blame-lines="10"></th><th class="phabricator-source-line"><a data-n="10"></a></th><td class="phabricator-source-code"><span class="c"># class { &#39;systemd::slice::all_users&#39;:</span> </td></tr><tr><th class="phabricator-source-blame-skip" data-blame="skip"></th><th class="phabricator-source-blame-info" data-blame="info" data-blame-lines="11"></th><th class="phabricator-source-line"><a data-n="11"></a></th><td class="phabricator-source-code"><span class="c"># all_users_global_slice_config =&gt; template(&#39;profile/analytics/client/limits/user-resource-control.conf.erb&#39;),</span> </td></tr><tr><th class="phabricator-source-blame-skip" data-blame="skip"></th><th class="phabricator-source-blame-info" data-blame="info" data-blame-lines="12"></th><th class="phabricator-source-line"><a data-n="12"></a></th><td class="phabricator-source-code"> </td></tr><tr><th class="phabricator-source-blame-skip" data-blame="skip"></th><th class="phabricator-source-blame-info" data-blame="info" data-blame-lines="13"></th><th class="phabricator-source-line"><a data-n="13"></a></th><td class="phabricator-source-code"><span class="k">class</span> <span class="na">profile</span><span class="p">::</span><span class="na">analytics</span><span class="p">::</span><span class="na">client</span><span class="p">::</span><span class="na">limits</span> <span class="p">{</span><span class="c"></span> </td></tr><tr><th class="phabricator-source-blame-skip" data-blame="skip"></th><th class="phabricator-source-blame-info" data-blame="info" data-blame-lines="14"></th><th class="phabricator-source-line"><a data-n="14"></a></th><td class="phabricator-source-code"><span class="c"> # From the systemd docs for CPUQuota:</span> </td></tr><tr><th class="phabricator-source-blame-skip" data-blame="skip"></th><th class="phabricator-source-blame-info" data-blame="info" data-blame-lines="15"></th><th class="phabricator-source-line"><a data-n="15"></a></th><td class="phabricator-source-code"><span class="c"> # &#39;Use values &gt; 100% for allotting CPU time on more than one CPU&#39;</span> </td></tr><tr><th class="phabricator-source-blame-skip" data-blame="skip"></th><th class="phabricator-source-blame-info" data-blame="info" data-blame-lines="16"></th><th class="phabricator-source-line"><a data-n="16"></a></th><td class="phabricator-source-code"> <span class="nv">$cpu_val</span> <span class="o">=</span> <span class="p">(</span><span class="nv">$facts[&#39;processors&#39;]</span><span class="p">[</span><span class="s">&#39;count&#39;</span><span class="p">]</span> <span class="o">*</span> <span class="mi">95</span><span class="p">)</span> </td></tr><tr><th class="phabricator-source-blame-skip" data-blame="skip"></th><th class="phabricator-source-blame-info" data-blame="info" data-blame-lines="17"></th><th class="phabricator-source-line"><a data-n="17"></a></th><td class="phabricator-source-code"> <span class="nv">$cpu_quota</span> <span class="o">=</span> <span class="na">floor</span><span class="p">(</span><span class="nv">$cpu_val)</span><span class="c"></span> </td></tr><tr><th class="phabricator-source-blame-skip" data-blame="skip"></th><th class="phabricator-source-blame-info" data-blame="info" data-blame-lines="18"></th><th class="phabricator-source-line"><a data-n="18"></a></th><td class="phabricator-source-code"><span class="c"> # Cap the maximum amount of CPU % for all the combined total of all processes</span> </td></tr><tr><th class="phabricator-source-blame-skip" data-blame="skip"></th><th class="phabricator-source-blame-info" data-blame="info" data-blame-lines="19"></th><th class="phabricator-source-line"><a data-n="19"></a></th><td class="phabricator-source-code"><span class="c"> # launched by users at 95%</span> </td></tr><tr><th class="phabricator-source-blame-skip" data-blame="skip"></th><th class="phabricator-source-blame-info" data-blame="info" data-blame-lines="20"></th><th class="phabricator-source-line"><a data-n="20"></a></th><td class="phabricator-source-code"> <span class="na">systemd</span><span class="p">::</span><span class="na">override</span> <span class="p">{</span><span class="s">&#39;total-user-resources.conf&#39;</span><span class="p">:</span> </td></tr><tr><th class="phabricator-source-blame-skip" data-blame="skip"></th><th class="phabricator-source-blame-info" data-blame="info" data-blame-lines="21"></th><th class="phabricator-source-line"><a data-n="21"></a></th><td class="phabricator-source-code"> <span class="na">content</span> <span class="o">=&gt;</span> <span class="k">template</span><span class="p">(</span><span class="s">&#39;profile/analytics/client/limits/total-user-resource-control.conf.erb&#39;</span><span class="p">),</span> </td></tr><tr><th class="phabricator-source-blame-skip" data-blame="skip"></th><th class="phabricator-source-blame-info" data-blame="info" data-blame-lines="22"></th><th class="phabricator-source-line"><a data-n="22"></a></th><td class="phabricator-source-code"> <span class="na">unit</span> <span class="o">=&gt;</span> <span class="s">&#39;user.slice&#39;</span> </td></tr><tr><th class="phabricator-source-blame-skip" data-blame="skip"></th><th class="phabricator-source-blame-info" data-blame="info" data-blame-lines="23"></th><th class="phabricator-source-line"><a data-n="23"></a></th><td class="phabricator-source-code"> <span class="p">}</span> </td></tr><tr><th class="phabricator-source-blame-skip" data-blame="skip"></th><th class="phabricator-source-blame-info" data-blame="info" data-blame-lines="24"></th><th class="phabricator-source-line"><a data-n="24"></a></th><td class="phabricator-source-code"> <span class="na">systemd</span><span class="p">::</span><span class="na">override</span> <span class="p">{</span><span class="s">&#39;individual-user-resources.conf&#39;</span><span class="p">:</span> </td></tr><tr><th class="phabricator-source-blame-skip" data-blame="skip"></th><th class="phabricator-source-blame-info" data-blame="info" data-blame-lines="25"></th><th class="phabricator-source-line"><a data-n="25"></a></th><td class="phabricator-source-code"> <span class="na">content</span> <span class="o">=&gt;</span> <span class="k">template</span><span class="p">(</span><span class="s">&#39;profile/analytics/client/limits/individual-user-resource-control.conf.erb&#39;</span><span class="p">),</span><span class="c"></span> </td></tr><tr><th class="phabricator-source-blame-skip" data-blame="skip"></th><th class="phabricator-source-blame-info" data-blame="info" data-blame-lines="26"></th><th class="phabricator-source-line"><a data-n="26"></a></th><td class="phabricator-source-code"><span class="c"> # the &#39;-&#39; (hyphen) on the below is significant; see</span> </td></tr><tr><th class="phabricator-source-blame-skip" data-blame="skip"></th><th class="phabricator-source-blame-info" data-blame="info" data-blame-lines="27"></th><th class="phabricator-source-line"><a data-n="27"></a></th><td class="phabricator-source-code"><span class="c"> # https://www.freedesktop.org/software/systemd/man/latest/</span> </td></tr><tr><th class="phabricator-source-blame-skip" data-blame="skip"></th><th class="phabricator-source-blame-info" data-blame="info" data-blame-lines="28"></th><th class="phabricator-source-line"><a data-n="28"></a></th><td class="phabricator-source-code"><span class="c"> # user@.service.html#Controlling%20resources%20for%20logged-in%20users</span> </td></tr><tr><th class="phabricator-source-blame-skip" data-blame="skip"></th><th class="phabricator-source-blame-info" data-blame="info" data-blame-lines="29"></th><th class="phabricator-source-line"><a data-n="29"></a></th><td class="phabricator-source-code"><span class="c"> # for more details</span> </td></tr><tr><th class="phabricator-source-blame-skip" data-blame="skip"></th><th class="phabricator-source-blame-info" data-blame="info" data-blame-lines="30"></th><th class="phabricator-source-line"><a data-n="30"></a></th><td class="phabricator-source-code"> <span class="na">unit</span> <span class="o">=&gt;</span> <span class="s">&#39;user-.slice&#39;</span> </td></tr><tr><th class="phabricator-source-blame-skip" data-blame="skip"></th><th class="phabricator-source-blame-info" data-blame="info" data-blame-lines="31"></th><th class="phabricator-source-line"><a data-n="31"></a></th><td class="phabricator-source-code"> <span class="p">}</span> </td></tr><tr><th class="phabricator-source-blame-skip" data-blame="skip"></th><th class="phabricator-source-blame-info" data-blame="info" data-blame-lines="32"></th><th class="phabricator-source-line"><a data-n="32"></a></th><td class="phabricator-source-code"> <span class="na">systemd</span><span class="p">::</span><span class="na">override</span> <span class="p">{</span><span class="s">&#39;guarantee-system-resource-minimum.conf&#39;</span><span class="p">:</span> </td></tr><tr><th class="phabricator-source-blame-skip" data-blame="skip"></th><th class="phabricator-source-blame-info" data-blame="info" data-blame-lines="33"></th><th class="phabricator-source-line"><a data-n="33"></a></th><td class="phabricator-source-code"> <span class="na">content</span> <span class="o">=&gt;</span> <span class="k">template</span><span class="p">(</span><span class="s">&#39;profile/analytics/client/limits/guarantee-system-resource-minimum.conf.erb&#39;</span><span class="p">),</span> </td></tr><tr><th class="phabricator-source-blame-skip" data-blame="skip"></th><th class="phabricator-source-blame-info" data-blame="info" data-blame-lines="34"></th><th class="phabricator-source-line"><a data-n="34"></a></th><td class="phabricator-source-code"> <span class="na">unit</span> <span class="o">=&gt;</span> <span class="s">&#39;system.slice&#39;</span> </td></tr><tr><th class="phabricator-source-blame-skip" data-blame="skip"></th><th class="phabricator-source-blame-info" data-blame="info" data-blame-lines="35"></th><th class="phabricator-source-line"><a data-n="35"></a></th><td class="phabricator-source-code"> <span class="p">}</span><span class="c"></span> </td></tr><tr><th class="phabricator-source-blame-skip" data-blame="skip"></th><th class="phabricator-source-blame-info" data-blame="info" data-blame-lines="36"></th><th class="phabricator-source-line"><a data-n="36"></a></th><td class="phabricator-source-code"> </td></tr><tr><th class="phabricator-source-blame-skip" data-blame="skip"></th><th class="phabricator-source-blame-info" data-blame="info" data-blame-lines="37"></th><th class="phabricator-source-line"><a data-n="37"></a></th><td class="phabricator-source-code"><span class="c"> # By default the cron.service unit runs under the system.slice.</span> </td></tr><tr><th class="phabricator-source-blame-skip" data-blame="skip"></th><th class="phabricator-source-blame-info" data-blame="info" data-blame-lines="38"></th><th class="phabricator-source-line"><a data-n="38"></a></th><td class="phabricator-source-code"><span class="c"> # This means that all crontab&#39;s processes escape the limits imposed</span> </td></tr><tr><th class="phabricator-source-blame-skip" data-blame="skip"></th><th class="phabricator-source-blame-info" data-blame="info" data-blame-lines="39"></th><th class="phabricator-source-line"><a data-n="39"></a></th><td class="phabricator-source-code"><span class="c"> # by the user.slice, so an explicit override is needed.</span> </td></tr><tr><th class="phabricator-source-blame-skip" data-blame="skip"></th><th class="phabricator-source-blame-info" data-blame="info" data-blame-lines="40"></th><th class="phabricator-source-line"><a data-n="40"></a></th><td class="phabricator-source-code"> <span class="nv">$cron_slice</span> <span class="o">=</span> <span class="s">&#39;user.slice&#39;</span> </td></tr><tr><th class="phabricator-source-blame-skip" data-blame="skip"></th><th class="phabricator-source-blame-info" data-blame="info" data-blame-lines="41"></th><th class="phabricator-source-line"><a data-n="41"></a></th><td class="phabricator-source-code"> <span class="na">systemd</span><span class="p">::</span><span class="na">unit</span> <span class="p">{</span> <span class="s">&#39;cron&#39;</span><span class="p">:</span> </td></tr><tr><th class="phabricator-source-blame-skip" data-blame="skip"></th><th class="phabricator-source-blame-info" data-blame="info" data-blame-lines="42"></th><th class="phabricator-source-line"><a data-n="42"></a></th><td class="phabricator-source-code"> <span class="na">ensure</span> <span class="o">=&gt;</span> <span class="k">present</span><span class="p">,</span> </td></tr><tr><th class="phabricator-source-blame-skip" data-blame="skip"></th><th class="phabricator-source-blame-info" data-blame="info" data-blame-lines="43"></th><th class="phabricator-source-line"><a data-n="43"></a></th><td class="phabricator-source-code"> <span class="na">content</span> <span class="o">=&gt;</span> <span class="k">template</span><span class="p">(</span><span class="s">&#39;profile/analytics/client/limits/cron-override.systemd.erb&#39;</span><span class="p">),</span> </td></tr><tr><th class="phabricator-source-blame-skip" data-blame="skip"></th><th class="phabricator-source-blame-info" data-blame="info" data-blame-lines="44"></th><th class="phabricator-source-line"><a data-n="44"></a></th><td class="phabricator-source-code"> <span class="na">restart</span> <span class="o">=&gt;</span> <span class="k">false</span><span class="p">,</span> </td></tr><tr><th class="phabricator-source-blame-skip" data-blame="skip"></th><th class="phabricator-source-blame-info" data-blame="info" data-blame-lines="45"></th><th class="phabricator-source-line"><a data-n="45"></a></th><td class="phabricator-source-code"> <span class="na">override</span> <span class="o">=&gt;</span> <span class="k">true</span><span class="p">,</span> </td></tr><tr><th class="phabricator-source-blame-skip" data-blame="skip"></th><th class="phabricator-source-blame-info" data-blame="info" data-blame-lines="46"></th><th class="phabricator-source-line"><a data-n="46"></a></th><td class="phabricator-source-code"> <span class="p">}</span> </td></tr><tr><th class="phabricator-source-blame-skip" data-blame="skip"></th><th class="phabricator-source-blame-info" data-blame="info" data-blame-lines="47"></th><th class="phabricator-source-line"><a data-n="47"></a></th><td class="phabricator-source-code"><span class="p">}</span> </td></tr></table></div></div></div></div></div></div></div><div class="phabricator-standard-page-footer grouped"><span>Content licensed under Creative Commons Attribution-ShareAlike (CC BY-SA) 4.0 unless otherwise noted; code licensed under GNU General Public License (GPL) 2.0 or later and other open source licenses. By using this site, you agree to the Terms of Use, Privacy Policy, and Code of Conduct.</span> 路 <a href="https://wikimediafoundation.org/">Wikimedia Foundation</a> 路 <a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Non-wiki_privacy_policy">Privacy Policy</a> 路 <a href="https://www.mediawiki.org/wiki/Special:MyLanguage/Code_of_Conduct">Code of Conduct</a> 路 <a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Terms_of_Use/Phabricator">Terms of Use</a> 路 <a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:General_disclaimer">Disclaimer</a> 路 <a href="https://creativecommons.org/licenses/by-sa/4.0/">CC-BY-SA</a> 路 <a href="https://www.gnu.org/licenses/old-licenses/gpl-2.0.html">GPL</a> 路 <a href="https://www.mediawiki.org/wiki/Phabricator/Credits">Credits</a></div></div></div></div><script type="text/javascript" src="https://phab.wmfusercontent.org/res/defaultX/phabricator/0d915ff5/rsrc/js/core/behavior-line-linker.js"></script><script type="text/javascript" src="https://phab.wmfusercontent.org/res/defaultX/phabricator/2eeda9e0/core.pkg.js"></script><script type="text/javascript" src="https://phab.wmfusercontent.org/res/defaultX/phabricator/46fcb3af/differential.pkg.js"></script><script type="text/javascript" src="https://phab.wmfusercontent.org/res/defaultX/phabricator/243d6c22/rsrc/js/application/files/behavior-document-engine.js"></script><data data-javelin-init-kind="merge" data-javelin-init-data="{&quot;block&quot;:0,&quot;data&quot;:[[],[],[],[],{&quot;uri&quot;:&quot;&quot;,&quot;symbols&quot;:{&quot;repositories&quot;:[&quot;PHID-REPO-btgpar4hzf7xza77eogo&quot;],&quot;lang&quot;:&quot;pp&quot;,&quot;path&quot;:&quot;modules\/profile\/manifests\/analytics\/client\/limits.pp&quot;}},[],[],{&quot;viewportID&quot;:&quot;UQ0_0&quot;,&quot;viewKey&quot;:&quot;source&quot;,&quot;views&quot;:[{&quot;viewKey&quot;:&quot;source&quot;,&quot;icon&quot;:&quot;fa-code&quot;,&quot;color&quot;:null,&quot;name&quot;:&quot;View as Source&quot;,&quot;engineURI&quot;:&quot;\/source\/operations-puppet\/document\/production\/modules\/profile\/manifests\/analytics\/client\/limits.pp;77f6a96d9356f20ec20d638fc484169bfa0b7e6e?as=source&amp;filePHID=PHID-FILE-4ull2k3bqeh63buvhzkb&quot;,&quot;viewURI&quot;:&quot;\/source\/operations-puppet\/browse\/production\/modules\/profile\/manifests\/analytics\/client\/limits.pp;77f6a96d9356f20ec20d638fc484169bfa0b7e6e?as=source&quot;,&quot;loadingMarkup&quot;:&quot;\u003cdiv class=\&quot;document-engine-loading\&quot;\u003e\u003cspan class=\&quot;visual-only phui-icon-view phui-font-fa fa-gear ph-spin\&quot; data-meta=\&quot;0_0\&quot; aria-hidden=\&quot;true\&quot;\u003e\u003c\/span\u003eLoading...\u003c\/div\u003e&quot;,&quot;canEncode&quot;:true,&quot;canHighlight&quot;:true,&quot;canBlame&quot;:true},{&quot;viewKey&quot;:&quot;hexdump&quot;,&quot;icon&quot;:&quot;fa-microchip&quot;,&quot;color&quot;:null,&quot;name&quot;:&quot;View as Hexdump&quot;,&quot;engineURI&quot;:&quot;\/source\/operations-puppet\/document\/production\/modules\/profile\/manifests\/analytics\/client\/limits.pp;77f6a96d9356f20ec20d638fc484169bfa0b7e6e?as=hexdump&amp;filePHID=PHID-FILE-4ull2k3bqeh63buvhzkb&quot;,&quot;viewURI&quot;:&quot;\/source\/operations-puppet\/browse\/production\/modules\/profile\/manifests\/analytics\/client\/limits.pp;77f6a96d9356f20ec20d638fc484169bfa0b7e6e?as=hexdump&quot;,&quot;loadingMarkup&quot;:&quot;\u003cdiv class=\&quot;document-engine-loading\&quot;\u003e\u003cspan class=\&quot;visual-only phui-icon-view phui-font-fa fa-gear ph-spin\&quot; data-meta=\&quot;0_1\&quot; aria-hidden=\&quot;true\&quot;\u003e\u003c\/span\u003eLoading...\u003c\/div\u003e&quot;,&quot;canEncode&quot;:false,&quot;canHighlight&quot;:false,&quot;canBlame&quot;:false},{&quot;viewKey&quot;:&quot;remarkup&quot;,&quot;icon&quot;:&quot;fa-file-text-o&quot;,&quot;color&quot;:null,&quot;name&quot;:&quot;View as Remarkup&quot;,&quot;engineURI&quot;:&quot;\/source\/operations-puppet\/document\/production\/modules\/profile\/manifests\/analytics\/client\/limits.pp;77f6a96d9356f20ec20d638fc484169bfa0b7e6e?as=remarkup&amp;filePHID=PHID-FILE-4ull2k3bqeh63buvhzkb&quot;,&quot;viewURI&quot;:&quot;\/source\/operations-puppet\/browse\/production\/modules\/profile\/manifests\/analytics\/client\/limits.pp;77f6a96d9356f20ec20d638fc484169bfa0b7e6e?as=remarkup&quot;,&quot;loadingMarkup&quot;:&quot;\u003cdiv class=\&quot;document-engine-loading\&quot;\u003e\u003cspan class=\&quot;visual-only phui-icon-view phui-font-fa fa-gear ph-spin\&quot; data-meta=\&quot;0_2\&quot; aria-hidden=\&quot;true\&quot;\u003e\u003c\/span\u003eLoading...\u003c\/div\u003e&quot;,&quot;canEncode&quot;:false,&quot;canHighlight&quot;:false,&quot;canBlame&quot;:false},{&quot;viewKey&quot;:&quot;json&quot;,&quot;icon&quot;:&quot;fa-database&quot;,&quot;color&quot;:null,&quot;name&quot;:&quot;View as JSON&quot;,&quot;engineURI&quot;:&quot;\/source\/operations-puppet\/document\/production\/modules\/profile\/manifests\/analytics\/client\/limits.pp;77f6a96d9356f20ec20d638fc484169bfa0b7e6e?as=json&amp;filePHID=PHID-FILE-4ull2k3bqeh63buvhzkb&quot;,&quot;viewURI&quot;:&quot;\/source\/operations-puppet\/browse\/production\/modules\/profile\/manifests\/analytics\/client\/limits.pp;77f6a96d9356f20ec20d638fc484169bfa0b7e6e?as=json&quot;,&quot;loadingMarkup&quot;:&quot;\u003cdiv class=\&quot;document-engine-loading\&quot;\u003e\u003cspan class=\&quot;visual-only phui-icon-view phui-font-fa fa-gear ph-spin\&quot; data-meta=\&quot;0_3\&quot; aria-hidden=\&quot;true\&quot;\u003e\u003c\/span\u003eLoading...\u003c\/div\u003e&quot;,&quot;canEncode&quot;:true,&quot;canHighlight&quot;:false,&quot;canBlame&quot;:false}],&quot;encode&quot;:{&quot;icon&quot;:&quot;fa-font&quot;,&quot;name&quot;:&quot;Change Text Encoding...&quot;,&quot;uri&quot;:&quot;\/services\/encoding\/&quot;,&quot;value&quot;:null},&quot;highlight&quot;:{&quot;icon&quot;:&quot;fa-lightbulb-o&quot;,&quot;name&quot;:&quot;Highlight As...&quot;,&quot;uri&quot;:&quot;\/services\/highlight\/&quot;,&quot;value&quot;:null},&quot;blame&quot;:{&quot;icon&quot;:&quot;fa-backward&quot;,&quot;hide&quot;:&quot;Hide Blame&quot;,&quot;show&quot;:&quot;Show Blame&quot;,&quot;uri&quot;:&quot;\/source\/operations-puppet\/blame\/production\/modules\/profile\/manifests\/analytics\/client\/limits.pp;77f6a96d9356f20ec20d638fc484169bfa0b7e6e&quot;,&quot;enabled&quot;:true,&quot;value&quot;:null},&quot;coverage&quot;:{&quot;labels&quot;:[{&quot;C&quot;:&quot;Covered&quot;,&quot;U&quot;:&quot;Not Covered&quot;,&quot;N&quot;:&quot;Not Executable&quot;,&quot;X&quot;:&quot;Not Reachable&quot;}]}},[],[],[],[],[],[],[],[],{&quot;map&quot;:{&quot;UQ0_2&quot;:&quot;phabricator-search-menu-expanded&quot;,&quot;UQ0_3&quot;:&quot;menu-icon-selected&quot;}},{&quot;items&quot;:[{&quot;name&quot;:&quot;Search&quot;},{&quot;icon&quot;:&quot;fa-globe&quot;,&quot;name&quot;:&quot;All Documents&quot;,&quot;value&quot;:&quot;all&quot;},{&quot;icon&quot;:&quot;fa-code&quot;,&quot;name&quot;:&quot;Current Application&quot;,&quot;value&quot;:&quot;application&quot;},{&quot;name&quot;:&quot;Saved Queries&quot;},{&quot;icon&quot;:&quot;fa-certificate&quot;,&quot;name&quot;:&quot;Open Documents&quot;,&quot;value&quot;:&quot;open&quot;},{&quot;icon&quot;:&quot;fa-certificate&quot;,&quot;name&quot;:&quot;Authored Documents&quot;,&quot;value&quot;:&quot;MaJUpIp4XQjD&quot;},{&quot;icon&quot;:&quot;fa-certificate&quot;,&quot;name&quot;:&quot;Subscribed Documents&quot;,&quot;value&quot;:&quot;icqHFhjyxmbF&quot;},{&quot;icon&quot;:&quot;fa-certificate&quot;,&quot;name&quot;:&quot;Owned Documents&quot;,&quot;value&quot;:&quot;xCgkkySoe4z7&quot;},{&quot;icon&quot;:&quot;fa-certificate&quot;,&quot;name&quot;:&quot;Open Tasks&quot;,&quot;value&quot;:&quot;open-tasks&quot;},{&quot;name&quot;:&quot;More Options&quot;},{&quot;icon&quot;:&quot;fa-search-plus&quot;,&quot;name&quot;:&quot;Advanced Search&quot;,&quot;href&quot;:&quot;\/search\/query\/advanced\/&quot;},{&quot;icon&quot;:&quot;fa-book&quot;,&quot;name&quot;:&quot;User Guide: Search&quot;,&quot;href&quot;:&quot;https:\/\/we.phorge.it\/diviner\/find\/?name=Search%20User%20Guide&amp;type=article&amp;jump=1&quot;}],&quot;icon&quot;:&quot;fa-globe&quot;,&quot;value&quot;:&quot;all&quot;},[],[],[],[]]}"></data><data data-javelin-init-kind="behaviors" data-javelin-init-data="{&quot;refresh-csrf&quot;:[{&quot;tokenName&quot;:&quot;__csrf__&quot;,&quot;header&quot;:&quot;X-Phabricator-Csrf&quot;,&quot;viaHeader&quot;:&quot;X-Phabricator-Via&quot;,&quot;current&quot;:&quot;B@vsaprgod2fa1893d7b9797c6&quot;}],&quot;history-install&quot;:[]}"></data><data data-javelin-init-kind="behaviors" data-javelin-init-data="{&quot;phabricator-line-linker&quot;:[],&quot;repository-crossreference&quot;:[],&quot;document-engine&quot;:[{&quot;controlID&quot;:&quot;UQ0_1&quot;,&quot;next&quot;:&quot;blame&quot;}],&quot;workflow&quot;:[],&quot;lightbox-attachments&quot;:[],&quot;aphront-form-disable-on-submit&quot;:[],&quot;toggle-class&quot;:[],&quot;phabricator-gesture&quot;:[],&quot;device&quot;:[],&quot;high-security-warning&quot;:[{&quot;show&quot;:false,&quot;uri&quot;:&quot;\/auth\/session\/downgrade\/&quot;,&quot;message&quot;:&quot;Your session is in high security mode. When you finish using it, click here to leave.&quot;}],&quot;phabricator-keyboard-shortcuts&quot;:[{&quot;helpURI&quot;:&quot;\/help\/keyboardshortcut\/&quot;,&quot;searchID&quot;:&quot;UQ0_4&quot;,&quot;pht&quot;:{&quot;\/&quot;:&quot;Give keyboard focus to the search box.&quot;,&quot;?&quot;:&quot;Show keyboard shortcut help for the current page.&quot;}}],&quot;phabricator-search-typeahead&quot;:[{&quot;id&quot;:&quot;UQ0_5&quot;,&quot;input&quot;:&quot;UQ0_4&quot;,&quot;button&quot;:&quot;UQ0_6&quot;,&quot;selectorID&quot;:&quot;UQ0_7&quot;,&quot;applicationID&quot;:&quot;UQ0_8&quot;,&quot;defaultApplicationIcon&quot;:&quot;fa-dot-circle-o&quot;,&quot;appScope&quot;:&quot;application&quot;,&quot;src&quot;:&quot;\/typeahead\/class\/PhabricatorSearchDatasource\/&quot;,&quot;limit&quot;:10,&quot;placeholder&quot;:&quot;Search&quot;,&quot;scopeUpdateURI&quot;:&quot;\/settings\/adjust\/?key=search-scope&quot;}],&quot;quicksand-blacklist&quot;:[{&quot;patterns&quot;:[&quot;\/phame\/live\/.*&quot;,&quot;\/conpherence\/.*&quot;,&quot;\/Z\\d+&quot;,&quot;\/file\/(data|download)\/.*&quot;,&quot;\/phortune\/.*&quot;,&quot;\/auth\/.*&quot;]}]}"></data></body></html>

Pages: 1 2 3 4 5 6 7 8 9 10