Ori.livneh has uploaded a new change for review. https://gerrit.wikimedia.org/r/250369
Change subject: tune gitblit settings to improve performance ...................................................................... tune gitblit settings to improve performance - Don't show repository sizes! There's a big warning about how this could perform poorly. - Disable flash copy-to-clipboard - Cap max activity commits at 5 - Cap timespan of 'activity' views to 7 days - Reduce the number of entries shown on various paginated displays. Change-Id: Id60973de330eac598866e4b5203d6ee2716e8eac --- M modules/gitblit/files/gitblit.conf M modules/gitblit/files/gitblit.properties 2 files changed, 19 insertions(+), 24 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/operations/puppet refs/changes/69/250369/1 diff --git a/modules/gitblit/files/gitblit.conf b/modules/gitblit/files/gitblit.conf index 9726d56..39c1e48 100644 --- a/modules/gitblit/files/gitblit.conf +++ b/modules/gitblit/files/gitblit.conf @@ -13,7 +13,7 @@ chdir /var/lib/gitblit -exec /usr/bin/java -server -Xincgc -Xms4096M -Xmx4096M -Djava.awt.headless=true \ +exec /usr/bin/java -server -Xmx8g -Djava.awt.headless=true \ -jar gitblit.jar --baseFolder /var/lib/gitblit/data respawn diff --git a/modules/gitblit/files/gitblit.properties b/modules/gitblit/files/gitblit.properties index 30ee456..178e478 100644 --- a/modules/gitblit/files/gitblit.properties +++ b/modules/gitblit/files/gitblit.properties @@ -97,7 +97,7 @@ # # SINCE 1.3.0 # RESTART REQUIRED -git.daemonPort = 9418 +git.daemonPort = -1 # Allow push/pull over http/https with JGit servlet. # If you do NOT want to allow Git clients to clone/push to Gitblit set this @@ -106,7 +106,7 @@ # indicate your clone/push urls. # # SINCE 0.5.0 -git.enableGitServlet = true +git.enableGitServlet = false # If you want to restrict all git servlet access to those with valid X509 client # certificates then set this value to true. @@ -627,7 +627,7 @@ # is the default behavior for Gitblit <= 1.3.0. # # SINCE 1.3.1 -web.pageCacheExpires = 5 +web.pageCacheExpires = 10 # If true, the web ui layout will respond and adapt to the browser's dimensions. # if false, the web ui will use a 940px fixed-width layout. @@ -639,12 +639,12 @@ # Allow Gravatar images to be displayed in Gitblit pages. # # SINCE 0.8.0 -web.allowGravatar = false +web.allowGravatar = true # Allow dynamic zip downloads. # # SINCE 0.5.0 -web.allowZipDownloads = true +web.allowZipDownloads = false # If *web.allowZipDownloads=true* the following formats will be displayed for # download compressed archive links: @@ -657,7 +657,7 @@ # # SPACE-DELIMITED # SINCE 1.2.0 -web.compressedDownloads = zip gz bzip2 +web.compressedDownloads = gz # Allow optional Lucene integration. Lucene indexing is an opt-in feature. # A repository may specify branches to index with Lucene instead of using Git @@ -666,7 +666,7 @@ # scenario is on a resource-constrained federated Gitblit mirror. # # SINCE 0.9.0 -web.allowLuceneIndexing = false +web.allowLuceneIndexing = true # Allows an authenticated user to create forks of a repository # @@ -684,7 +684,7 @@ # offer a 3-step (click, ctrl+c, enter) copy-to-clipboard alternative. # # SINCE 0.8.0 -web.allowFlashCopyToClipboard = true +web.allowFlashCopyToClipboard = false # Default maximum number of commits that a repository may contribute to the # activity page, regardless of the selected duration. This setting may be valuable @@ -692,7 +692,7 @@ # in Edit Repository. 0 disables this throttle. # # SINCE 1.2.0 -web.maxActivityCommits = 0 +web.maxActivityCommits = 5 # Default number of entries to include in RSS Syndication links # @@ -704,7 +704,7 @@ # non-performant on some operating systems and/or filesystems. # # SINCE 0.5.2 -web.showRepositorySizes = true +web.showRepositorySizes = false # List of custom regex expressions that can be displayed in the Filters menu # of the Repositories and Activity pages. Keep them very simple because you @@ -886,6 +886,7 @@ # SPACE-DELIMITED # SINCE 1.3.0 web.activityDurationChoices = 1 3 7 14 +web.activityDurationMaximum = 7 # The number of days of commits to cache in memory for the dashboard, activity, # and project pages. A value of 0 will disable all caching and will parse commits @@ -899,7 +900,7 @@ # # SINCE 1.3.0 # RESTART REQUIRED -web.activityCacheDays = 7 +web.activityCacheDays = 1 # Case-insensitive list of authors to exclude from metrics. Useful for # eliminating bots. @@ -912,7 +913,7 @@ # Value must exceed 0 else default of 20 is used # # SINCE 0.5.0 -web.summaryCommitCount = 16 +web.summaryCommitCount = 5 # The number of tags/branches to display on the summary page. # -1 = all tags/branches @@ -920,19 +921,19 @@ # N = N tags/branches # # SINCE 0.5.0 -web.summaryRefsCount = 5 +web.summaryRefsCount = 0 # The number of items to show on a page before showing the first, prev, next # pagination links. A default of 50 is used for any invalid value. # # SINCE 0.5.0 -web.itemsPerPage = 50 +web.itemsPerPage = 25 # The number of reflog changes to display on the overview page # Value must exceed 0 else default of 5 is used # # SINCE 1.3.0 -web.overviewReflogCount = 5 +web.overviewReflogCount = 1 # The number of reflog changes to show on a reflog page before show the first, # prev, next pagination links. A default of 10 is used for any invalid value. @@ -963,13 +964,13 @@ # # SPACE-DELIMITED # SINCE 0.5.0 -web.imageExtensions = bmp jpg gif png +web.imageExtensions = bmp jpg jpeg gif png ico # Registered extensions for binary blobs # # SPACE-DELIMITED # SINCE 0.5.0 -web.binaryExtensions = jar pdf tar.gz zip +web.binaryExtensions = cdb jar pdf tar.gz zip # Aggressive heap management will run the garbage collector on every generated # page. This slows down page generation a little but improves heap consumption. @@ -1003,13 +1004,7 @@ # searchpattern!!!replacepattern # SINCE 0.5.0 regex.global.changeid = \\b(I[0-9a-f]{7,40})\\b!!!<a href="https://gerrit.wikimedia.org/r/#q,$1,n,z">$1</a> -regex.global.commit = \\b([0-9a-f]{7,40})\\b!!!<a href="https://gerrit.wikimedia.org/r/#q,$1,n,z">$1</a> -regex.global.bugzilla = \\b([bB][uU][gG]\\:?\\s+#?(\\d+))\\b!!!<a href="https://bugzilla.wikimedia.org/$2">$1</a> regex.global.phabricator = \\b([bB][uU][gG]\\:?\\s+#?(T\\d+))\\b!!!<a href="https://phabricator.wikimedia.org/$2">$1</a> -regex.global.codereview = \\br(\\d+)\\b!!!<a href="https://www.mediawiki.org/wiki/Special:CodeReview/MediaWiki/$1">$1</a> -regex.global.rt = \\b([rR][tT]\\:?\\s+#?(\\d+))\\b!!!<a href="https://rt.wikimedia.org/Ticket/Display.html?id=$2">$1</a> -regex.global.cve = \\b(CVE\\-\\d{4}\\-\\d+)\\b!!!<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=$1">$1</a> -regex.global.gerriturl = \\bhttps://gerrit.wikimedia.org/r/(\\d+)\\b!!!<a href="https://gerrit.wikimedia.org/r/$1">https://gerrit.wikimedia.org/r/$1</a> # # Mail Settings -- To view, visit https://gerrit.wikimedia.org/r/250369 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Id60973de330eac598866e4b5203d6ee2716e8eac Gerrit-PatchSet: 1 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: Ori.livneh <o...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits