Docker Gitlab CE is slow with amount of projects

Hi,

I recently use official Gitlab CE Docker image to host an internal used git repository with about 2 thousand projects. Most function works fine, however, it has two main problem with responsive time.

  1. Project list page is very slow. It might be time out with 502 code.

I saw lots of log like following, but with a lots of “Write fragment”. I think this might related with redis? Are these log about read/write cache from redis? The implement might need to consider more.

Read fragment views/groups/9-20151002085933110599000/projects/707-20151106040050268012000/projects/index/v2.2/df6ab45e39dbe0199d2b8c35e9a691e2 (0.1ms)
Read fragment views/groups/9-20151002085933110599000/projects/673-20151106040044758134000/projects/index/v2.2/df6ab45e39dbe0199d2b8c35e9a691e2 (0.1ms)
Read fragment views/groups/9-20151002085933110599000/projects/644-20151106040017890880000/projects/index/v2.2/df6ab45e39dbe0199d2b8c35e9a691e2 (0.1ms)
Read fragment views/groups/5-20150924083226749356000/projects/1212-20151105114302792036000/projects/index/v2.2/df6ab45e39dbe0199d2b8c35e9a691e2 (0.1ms)
Read fragment views/groups/5-20150924083226749356000/projects/1211-20151022124013289923000/projects/index/v2.2/df6ab45e39dbe0199d2b8c35e9a691e2 (0.1ms)
Read fragment views/groups/5-20150924083226749356000/projects/1210-20151014023709903287000/projects/index/v2.2/df6ab45e39dbe0199d2b8c35e9a691e2 (0.1ms)
Read fragment views/groups/5-20150924083226749356000/projects/640-20151207105532132356000/projects/index/v2.2/df6ab45e39dbe0199d2b8c35e9a691e2 (0.1ms)
Read fragment views/groups/5-20150924083226749356000/projects/1209-20151006100236943586000/projects/index/v2.2/df6ab45e39dbe0199d2b8c35e9a691e2 (

  1. git push is slow. It just take more more time than host a git bare repository on another normal PC.

Question is how can I improve performance in Docker Gitlab. I have tuned postgresql shared_buffer to 32MB, and limited by Docker to get higher number. Can any one provide some suggestion?

Thank you.

Jack