GitlabÖÐ3621±¨´íÔõô½â¾ö
gitlabÊÇÒ»¸öÆÕ±éʹÓõĿªÔ´´úÂëÍйÜƽ̨£¬µ«ÔÚʹÓÃÀú³ÌÖУ¬ÓÐʱ»áÓöµ½Ò»Ð©¹ýʧºÍÎÊÌâ¡£ÆäÖУ¬gitlab 3621¹ýʧÊǽÏÁ¿³£¼ûµÄÒ»ÖÖÎÊÌâ¡£±¾ÎĽ«ÏêϸÏÈÈÝgitlab3621¹ýʧµÄÏêϸ½â¾öÒªÁì¡£
Ò»¡¢Gitlab 3621¹ýʧµÄÔµ¹ÊÔÓÉ
Gitlab 3621¹ýʧͨ³£ÊÇÓÉÓÚ²¢·¢»á¼û¹ý¶àµ¼Öµġ£µ±GitlabЧÀÍÆ÷ÉϵĻá¼ûÁ¿¹ý´óʱ£¬Ð§ÀÍÆ÷»á·ºÆðÏìÓ¦ÑÓ³Ù»òÕß×ÊÔ´ºÄ¾¡µÄÇéÐΣ¬´Ó¶øµ¼ÖÂGitlab 3621¹ýʧµÄ±¬·¢¡£
¶þ¡¢Gitlab 3621¹ýʧµÄ½â¾öÒªÁì
¼ì²éЧÀÍÆ÷×ÊÔ´
Ê×ÏÈ£¬ÎÒÃÇÐèÒª¼ì²éЧÀÍÆ÷µÄ×ÊÔ´ÇéÐΡ£ÈôÊÇЧÀÍÆ÷ÉϵÄÄÚ´æ¡¢´ÅÅÌ¿Õ¼äµÈ×ÊԴʹÓÃÂʹý¸ß£¬¾ÍÐèҪʵʱÊÍ·Å×ÊÔ´¡£ÎÒÃÇ¿ÉÒÔʹÓù¤¾ßÈçfree¡¢topµÈ¹¤¾ßÀ´Éó²éЧÀÍÆ÷µÄ×ÊԴʹÓÃÇéÐΡ£ÈôÊÇ·¢Ã÷×ÊԴʹÓÃÇéÐιý¸ß£¬¿ÉÒÔͨ¹ýÕûÀíºÍÓÅ»¯Ð§ÀÍÆ÷À´µÖ´ïÊÍ·Å×ÊÔ´µÄÄ¿µÄ¡£
µ÷½âNginxÉèÖÃ
ÈôÊÇЧÀÍÆ÷µÄ×ÊԴʹÓÃÇéÐÎÕý³££¬ÄÇôÎÒÃǾÍÐèÒªµ÷½âNginxµÄÏà¹ØÉèÖÃÁË¡£Ïêϸ°ì·¨ÈçÏ£º
a. ·¿ªNginxÉèÖÃÎļþ£¬Í¨³£Â·¾¶Îª/etc/nginx/nginx.conf¡£
b. ²éÕÒ²¢±à¼worker_processes²ÎÊý£¬½«ÆäÖµÐÞ¸ÄΪÓëЧÀÍÆ÷CPUºËÊýÏàͬ£¬Í¨³£Îª4»ò8¡£
c. ²éÕÒ²¢±à¼worker_connections²ÎÊý£¬½«ÆäÖµÉèÖÃΪ´óÓÚÄ¿½ñ²¢·¢ÊýµÄ×îСֵ£¬Í¨³£Îª8192¡£
d. ÉúÑÄÉèÖÃÎļþ£¬²¢ÖØÆôNginxЧÀÍ£¬Ê¹ÆäÉúЧ¡£
µ÷½âGitlabÉèÖÃ
ÈôÊÇÒÔÉÏÁ½ÖÖÒªÁìÈÔÈ»ÎÞ·¨½â¾öGitlab 3621¹ýʧ£¬ÎÒÃÇÔòÐèÒªµ÷½âGitlabµÄÉèÖÃÎļþ¡£Ïêϸ°ì·¨ÈçÏ£º
a. ·¿ªGitlabÉèÖÃÎļþ£¬Í¨³£Â·¾¶Îª/etc/gitlab/gitlab.rb¡£
b. ²éÕÒ²¢±à¼unicorn[‘worker_processes’]²ÎÊý£¬½«ÆäÖµÐÞ¸ÄΪÓëЧÀÍÆ÷CPUºËÊýÏàͬ£¬Í¨³£Îª4»ò8¡£
c. ²éÕÒ²¢±à¼unicorn[‘worker_connections’]²ÎÊý£¬½«ÆäÖµÉèÖÃΪ´óÓÚÄ¿½ñ²¢·¢ÊýµÄ×îСֵ£¬Í¨³£Îª8192¡£
d. ÉúÑÄÉèÖÃÎļþ£¬²¢ÖØÆôGitlabЧÀÍ£¬Ê¹ÆäÉúЧ¡£
ʹÓøßÅäЧÀÍÆ÷
ÈôÊÇÒÔÉÏÒªÁì¾ùÎÞ·¨½â¾öGitlab 3621¹ýʧ£¬ÎÒÃÇÔòÐèҪ˼Á¿Ê¹ÓøßÅäЧÀÍÆ÷£¬Ìá¸ßЧÀÍÆ÷ÐÔÄܺÍ×ÊÔ´µÄʹÓÃЧÂÊ£¬´Ó¶ø×èÖ¹·ºÆð¹ýʧ¡£
×ÜÖ®£¬Gitlab 3621¹ýʧËäÈ»³£¼û£¬¿ÉÊÇÖ»ÒªÎÒÃÇƾ֤ÉÏÊöÒªÁì¾ÙÐÐÅŲéÏ¢Õù¾ö£¬¾Í¿ÉÒÔ½â¾öÕâÒ»ÎÊÌ⣬°ü¹ÜGitlabЧÀ͵ÄÕý³£ÔËÐС£
ÒÔÉϾÍÊÇGitlabÖÐ3621±¨´íÔõô½â¾öµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡