Hi,Me and my team are using Gerrit as code management platform.We are having HTTP sessions disconnections. Those disconnections appear (mostly) when a user clicks on a Gerrit links URL (from mail / chat) and it asks him to refresh credentials.
The issue also appears when a user is on on a different page then landing page for 5~15 mins and then it asks him to refresh credentials.I would like to solve this issue as soon as possible.
For some other users this issue does not exist and for some others it does. I can't put my finger on some pattern.
Some Gerrit's data:
[httpd]
listenUrl = https://*:8080/
sslKeyStore = <key>
sslKeyPassword = <pass>
idleTimeout = 30m
maxThreads = 512
gracefulStopTimeout = 1m
[cache]
directory = cache
[cache "web_sessions"]
memoryLimit = 8192
maxAge = 1w
[sshd]
threads = 500
batchThreads = 100
maxConnectionsPerUser = 750
listenAddress = *:29418
waitTimeout = 30m
#commandStartThreads = 5
gracefulStopTimeout = 1m
idleTimeout = 3600
[core]
packedGitOpenFiles = 4096
packedGitLimit = 2g
packedGitWindowSize = 2m
[uploadpack]
allowTipSha1InWant = true
allowReachableSHA1InWant = true
allowAnySHA1InWant = true
[index]
type = LUCENE
[receive]
enableSignedPush = false
timeout = 6m
[gc]
startTime = 02:00
interval = 1 day
aggressive = false
[plugins]
allowRemoteAdmin = true
allowDeletionOfReposWithTags = trueThank you for your help,
Bar Elhanati
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/3772d049-2945-4385-b8d4-eda734aa8969n%40googlegroups.com.
Hi,
Thank you for your quick response
My Gerrit server has 96 cores.and yea, the server is busy and serving large repos. what do you mean by increasing the GC? can you please demonstrate?
??Another thing, SSH maxConnectionsPerUser affect HTTP web sessions (web UI connections)
What is the value that you recommend for this parameter?
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/8850c2dd-7a4c-4529-8b6c-b368e8f64efen%40googlegroups.com.
On Tue, May 16, 2023 at 10:15 AM Bar Elhanati <elhana...@gmail.com> wrote:Hi,
Thank you for your quick responseplease don't use top posting on this list which makes it harder to follow the conversation, use interleaved style instead
My Gerrit server has 96 cores.and yea, the server is busy and serving large repos. what do you mean by increasing the GC? can you please demonstrate?I meant you should run git gc not in the Gerrit process but in another process, e.g. by scheduling it in a cronjobor by using the gc-conductor plugin (https://gerrit.googlesource.com/plugins/gc-conductor/+/refs/heads/master/src/main/resources/Documentation/about.md).
??Another thing, SSH maxConnectionsPerUser affect HTTP web sessions (web UI connections)AFAIK ssh.maxConnectionsPerUser limits the number of concurrent ssh sessions a given user can open to a Gerrit ssh daemon.
It's unrelated to HTTP web sessions which are served by the servlet container e.g. embedded Jetty or Tomcat.What is the value that you recommend for this parameter?This depends on which fraction of all available ssh threads you want to allow being used by a single user.Default is 64.
ב-יום שלישי, 16 במאי 2023 בשעה 10:43:33 UTC+3, Matthias Sohn כתב/ה:On Tue, May 16, 2023 at 9:01 AM Bar Elhanati <elhana...@gmail.com> wrote:Hi,Me and my team are using Gerrit as code management platform.We are having HTTP sessions disconnections. Those disconnections appear (mostly) when a user clicks on a Gerrit links URL (from mail / chat) and it asks him to refresh credentials.
The issue also appears when a user is on on a different page then landing page for 5~15 mins and then it asks him to refresh credentials.I would like to solve this issue as soon as possible.
For some other users this issue does not exist and for some others it does. I can't put my finger on some pattern.After successful authentication the UI returns a session cookie to the browser.
Some Gerrit's data:Which Gerrit version do you run ?
Is there a way to fetch all current sessions in Gerrit, I'm sure it'll help with further debug? (like we do for example in Jenkins with JavaMelody monitoring plugin.)
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/6818adc4-543b-4d42-ae1e-2158b381cc5dn%40googlegroups.com.