On 8 Jun 2018, at 22:20, Marcelo Ávila de Oliveira <mav...@cpqd.com.br> wrote:We just upgraded to Gerrit 2.15.2 and the "Browse > Projects" page is very slow to load showing "Loading..." for minutes. The server has ~700 projects. Is it expected? Is there something we can check or do to improve the performance? Is Lucene used in this search?
PS: I know we can speed up using the "Filter" field but a lot of people still use the old UI where the "Filter" is only showed at the end.Thanks a lot.--Marcelo Ávila de Oliveira
--
--
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.
For more options, visit https://groups.google.com/d/optout.
We just upgraded to Gerrit 2.15.2 and the "Browse > Projects" page is very slow to load showing "Loading..." for minutes. The server has ~700 projects. Is it expected? Is there something we can check or do to improve the performance? Is Lucene used in this search?
On 8 Jun 2018, at 22:20, Marcelo Ávila de Oliveira <mav...@cpqd.com.br> wrote:We just upgraded to Gerrit 2.15.2 and the "Browse > Projects" page is very slow to load showing "Loading..." for minutes. The server has ~700 projects. Is it expected? Is there something we can check or do to improve the performance? Is Lucene used in this search?The project list is not indexed in Lucene.
On 11 Jun 2018, at 14:23, thomasmulhall410 via Repo and Gerrit Discussion <repo-d...@googlegroups.com> wrote:This is fast for us @ the wmf https://gerrit.wikimedia.org/r/admin/projects
Our cache size is https://github.com/wikimedia/puppet/blob/production/modules/gerrit/templates/gerrit.config.erb#L14
On Friday, June 8, 2018 at 10:20:54 PM UTC+1, Marcelo Ávila de Oliveira wrote:We just upgraded to Gerrit 2.15.2 and the "Browse > Projects" page is very slow to load showing "Loading..." for minutes.
The server has ~700 projects. Is it expected? Is there something we can check or do to improve the performance? Is Lucene used in this search?PS: I know we can speed up using the "Filter" field but a lot of people still use the old UI where the "Filter" is only showed at the end.Thanks a lot.--Marcelo Ávila de Oliveira
This is fast for us @ the wmf https://gerrit.wikimedia.org/r/admin/projects
Can you run the page refresh with the Chrome network inspector and send the results?Have you tried to call the Project List API to see what's the net time?
Luca.
The only thing that it could then slowdown the listing is the permissions evaluations.Which authentication mechanism you use? Where are the groups resolved?
Do you typically use ldap groups for authentication?Typo: I meant for authorization in the Projects' ACLsIt could be an issue with LDAP groups and the new authorization backend.
On 12 Jun 2018, at 14:05, Marcelo Ávila de Oliveira <mav...@cpqd.com.br> wrote:I can't see changes and groups cache info:Name |Entries | AvgGet |Hit Ratio|| Mem Disk Space| |Mem Disk|--------------------------------+---------------------+---------+---------+accounts | 101 | 6,6ms | 99% |adv_bases | | | |change_notes | 201 | 1,4ms | 98% |changeid_project | 22 | | 82% |changes | | | |
groups | | | |
groups_bymember | 20 | 1,9s | 96% |groups_byname | | | |groups_bysubgroup | 1024 | 34,4ms | 92% |
groups_byuuid | 1024 | 105,1ms | 84% |
groups_external | 1 | 124,3ms | 99% |groups_subgroups | | | |ldap_group_existence | | | |ldap_groups | 38 | 9,5ms | 98% |ldap_groups_byinclude | 195 | | 95% |ldap_usernames | 31 | 482,5us | 73% |permission_sort | 176 | | 99% |plugin_resources | 17 | | 93% |project_list | 1 | 136,4ms | 99% |projects | 709 | 864,0us | 98% |...Is this expected?
--Marcelo Ávila de Oliveira
Add the following lines to your gerrit.config[cache "groups_bysubgroup"]memoryLimit = 2048[cache "groups_byuuid"]memoryLimit = 2048
Em ter, 12 de jun de 2018 às 10:51, Luca Milanesio <luca.mi...@gmail.com> escreveu:
[cache "groups_bysubgroup"]memoryLimit = 2048[cache "groups_byuuid"]memoryLimit = 2048
[...]groups_byuuid | 2047 | 110,8ms | 73% |[...]
It's interesting how the use of the "m=" parameter speed up the process:$ time curl ... GET "$REST_URL/projects/?d&n=1&m=cod"...real 0m0,816sWhy is it faster to search for a specific project instead of just show the first one?
You're hitting the ceiling again (2048), I guess. Try raising this cache limit further until it doesn't reach its limit any longer (as Luca was trying to point out).
I believe you guys have *a lot* of groups ... that slows down all the security filtering operations.Until the cache is fully loaded, lists will take forever :-(On GerritHub.io we consider a host "unhealthy" if the cache is not fully loaded, especially the projects and groups.For us, the consequences of having a REST API taking minutes is an almost certain outage, due to the accumulation of incoming calls.
Luca.
To unsubscribe, email repo-disc...@googlegroups.com
You should also consider periodically looking at your caches usage to make sure they are big enoungh to hold all the entries.
Luca.
To unsubscribe, email repo-disc...@googlegroups.com
we have same situation after upgrade from 2.14.4 to 2.15.2.
On Saturday, June 9, 2018 at 5:20:54 AM UTC+8, Marcelo Ávila de Oliveira wrote:
We just upgraded to Gerrit 2.15.2 and the "Browse > Projects" page is very slow to load showing "Loading..." for minutes. The server has ~700 projects. Is it expected? Is there something we can check or do to improve the performance? Is Lucene used in this search?PS: I know we can speed up using the "Filter" field but a lot of people still use the old UI where the "Filter" is only showed at the end.Thanks a lot.
--