git压测出现访问500
生活随笔
收集整理的这篇文章主要介绍了
git压测出现访问500
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
git 启动之后根据cpu的内核数据创建和内核数目相等的进程数:
root 29694 29669 0 2017 ? 00:00:00 runsv redis root 29743 29669 0 2017 ? 00:00:00 runsv unicorn root 29744 29743 0 2017 ? 00:00:00 svlogd -tt /var/log/gitlab/unicorn root 29775 29669 0 2017 ? 00:00:00 runsv sidekiq root 29786 29669 0 2017 ? 00:00:00 runsv gitlab-workhorse root 29800 29669 0 2017 ? 00:00:00 runsv nginx root 29848 29669 0 2017 ? 00:00:00 runsv logrotate git 30489 29786 0 15:57 ? 00:00:02 /opt/gitlab/embedded/bin/gitlab-workhorse -listenNetwork unix -listenUmask 0 -listenAddr /var/opt/gitlab/gitlab-workhorse/socket -authBackend http://localhost:8080 -authSocket /var/opt/gitlab/gitlab-rails/sockets/gitlab.socket -documentRoot /opt/gitlab/embedded/service/gitlab-rails/public -pprofListenAddr -secretPath /opt/gitlab/embedded/service/gitlab-rails/.gitlab_workhorse_secret git 30551 29743 0 15:57 ? 00:00:01 /bin/bash /opt/gitlab/embedded/bin/gitlab-unicorn-wrapper git 30567 1 0 15:57 ? 00:00:14 unicorn master -D -E production -c /var/opt/gitlab/gitlab-rails/etc/unicorn.rb /opt/gitlab/embedded/service/gitlab-rails/config.ru git 30609 30567 0 15:58 ? 00:00:15 unicorn worker[0] -D -E production -c /var/opt/gitlab/gitlab-rails/etc/unicorn.rb /opt/gitlab/embedded/service/gitlab-rails/config.ru git 30612 30567 0 15:58 ? 00:00:20 unicorn worker[1] -D -E production -c /var/opt/gitlab/gitlab-rails/etc/unicorn.rb /opt/gitlab/embedded/service/gitlab-rails/config.ru git 30615 30567 0 15:58 ? 00:00:14 unicorn worker[2] -D -E production -c /var/opt/gitlab/gitlab-rails/etc/unicorn.rb /opt/gitlab/embedded/service/gitlab-rails/config.ru git 30618 30567 0 15:58 ? 00:00:17 unicorn worker[3] -D -E production -c /var/opt/gitlab/gitlab-rails/etc/unicorn.rb /opt/gitlab/embedded/service/gitlab-rails/config.ru git 30621 30567 0 15:58 ? 00:00:13 unicorn worker[4] -D -E production -c /var/opt/gitlab/gitlab-rails/etc/unicorn.rb /opt/gitlab/embedded/service/gitlab-rails/config.ru git 30624 30567 0 15:58 ? 00:00:18 unicorn worker[5] -D -E production -c /var/opt/gitlab/gitlab-rails/etc/unicorn.rb /opt/gitlab/embedded/service/gitlab-rails/config.ru git 30627 30567 0 15:58 ? 00:00:14 unicorn worker[6] -D -E production -c /var/opt/gitlab/gitlab-rails/etc/unicorn.rb /opt/gitlab/embedded/service/gitlab-rails/config.ru git 30630 30567 0 15:58 ? 00:00:14 unicorn worker[7] -D -E production -c /var/opt/gitlab/gitlab-rails/etc/unicorn.rb /opt/gitlab/embedded/service/gitlab-rails/config.ru git 30633 30567 0 15:58 ? 00:00:15 unicorn worker[8] -D -E production -c /var/opt/gitlab/gitlab-rails/etc/unicorn.rb /opt/gitlab/embedded/service/gitlab-rails/config.ru每一个git 任务过来就会放进一个进程里面去处理。
每一个git 进程就是一个unicorn(独角兽),也可以理解成一个git rails(git 执行轨道)。
并发的几个线程,其中一个是master pid = 30567
其他的slave worker都是master 创建的,父进程id都是30567
/var/opt/gitlab/gitlab-rails/etc/unicorn.rb 文件:
在unicorn.rb中设置了 timeout, 压测返回500 就是 这个造成的,将timeout设置600.
总结
以上是生活随笔为你收集整理的git压测出现访问500的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: 微软移动端必应聊天迎来大更新:增加识别网
- 下一篇: git对版本文件库的管理的工作目录