Gitlab http url not working

I have configured omnibus gitlab, I was experiencing slowness while pulling the files.

As I have written small code in gitlab server which will pull the update file. It caused the slowness.

echo “script executed” >> /tmp/git_log cd /opt/git/GIT_ROOT/GIT_UTILS && git pull UTILS master >> /tmp/git_log 2> /tmp/error_log echo “script execution done” >> /tmp/git_log

** If I do any commit to any of the file, it should execute the above code and update should be done.

**So while doing, I used to face 502 server not responding. I think it is because of performance issue. So I have searched in google for performance improvement of gitlab. I found below points to improve the performance.

git prune --expire=now
git reflog expire --expire=now --all

git gc --aggressive --prune=now

A script as well cat

for dir in $( find $1 -maxdepth 2 -type d -name ‘*.git’ ); do cd $dir git gc --auto --quiet &> /dev/null git repack -a -d &> /dev/null done

To increase the unicorn work process value.
unicorn[‘worker_processes’] = 3

It worked for me a bit not, but not completely very good. But I am still in search of the best performance tuning for gitlab.

My Ram Size : 4 GB CPU : 2 (Intel® Xeon® CPU E5-2665 0 @ 2.40GHz)

Its a virtual machine.

Now, My concern is I have increased my virtual machine RAM Size and CPU size. I have rebooted the machine and try to access the url http://IP/ unable to access it says network error 302-- “SSH works”

As it was not working I have to revert back my old snapshot.

I have searched in google I did not found any thing interested.

Can any one please help me on Improving the performance of gitlab and to solve accessing the gitlab URL which I have configured after increasing the size of the ram and cpu.

Your help is more appreciated.

Thanks in advance :slight_smile: