sameersbn / docker-gitlab

Dockerized GitLab
http://www.damagehead.com/docker-gitlab/
MIT License
7.88k stars 2.14k forks source link

Openshift 4 | >10s to git push #2357

Open h4wkmoon opened 3 years ago

h4wkmoon commented 3 years ago

Hi, I've been using this community gitlab image for about 2y now. Most of that time, gitlab was on openshift 3. For internal bad reasons, we had to move it out and run on docker.

Now, I need to get it back into openshift, ocp4 to be exact. It's almost a succes, except for the "git push" part.

On an empty gitlab, with lots of RAM and CPU, on a fast storage, a simple "hello world" kind of git push takes at least 10s.

I've watch logs, and nothing helps there. I've tried many images, and the issue seems to appear when unicorn was replaced by puma.

Is there a way to use recent images (13.x) with unicorn ? Has anyone ever encounter this kind of issue ? Is 15s ok for a git push ?

h4wkmoon commented 3 years ago

I managed to install this image in a mono-node k3s on my nas. Commit duration is under 3s. There is definitely something in openshift that gitlab does not like.

h4wkmoon commented 3 years ago

it's ok in ocp3. Not so much in ocp4.

sitikanthamishra commented 3 years ago

@h4wkmoon could you please share the image you are using from quay.io for gitlab and the env variables. I am facing while deploying it on OCP 4 using postgres and redis.

Thank you

h4wkmoon commented 3 years ago

Hi, I tried any image I could find from this community. Old images without puma are ok. Recent images with puma face "the issue".

Does your ocp4 use OVS or OVN ? We are using ocp4 (kube 1.19) OVN. Things are ok on OCP3. (kube 1.11)

I guess this proves that this is not a gitlab issue, neither a problem from this community image; but this is the only place where I can get some help.

sitikanthamishra commented 3 years ago

@h4wkmoon we use OCP4 with OVS. Can we use an image without puma ?

h4wkmoon commented 3 years ago

@sitikanthamishra, that was one of my questions, in the inital post. :smile: You face the same issues as me ? "git push" is way too long ?

sitikanthamishra commented 3 years ago

No my gitlab has not been started till now , i think i am using some different tag of the gitlab image where i am facing some code issue,

Could you please share me the image tag what you are using /

h4wkmoon commented 3 years ago

quay.io/sameersbn/gitlab:13.12.4 You should consider the vanilia gitlab operator. I can't because we have a lot of data. Is your issue is different, please open another one.

sitikanthamishra commented 3 years ago

Thanks @h4wkmoon , Let me have a try