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的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 微软移动端必应聊天迎来大更新:增加识别网
- 下一篇: Alluxio 安装与配置