gpt4 book ai didi

performance - gitlab接口(interface)性能慢

转载 作者:行者123 更新时间:2023-12-04 19:07:10 27 4
gpt4 key购买 nike

我的 gitlab当我在 Web 界面中的项目之间切换时速度很慢。我的加载时间介于 1000ms 之间至2000ms .它在我的本地网络中运行,我有以下配置。 4 个 CPU 6GB 内存、SSD 磁盘和 Ubuntu 20。我的 gitlab 版本是 13.8.4-ee .我们的 Gitlab 运行器在另一台机器上运行。我还可以改进什么来优化性能?
我已经优化了配置/etc/gitlab/gitlab.rb

puma['worker_processes'] = 4
puma['min_threads'] = 6
postgresql['shared_buffers'] = "2GB"

最佳答案

我现在找到了一种获取详细日志的方法,我可以继续分析。我还检查了其他 Gitlab 安装,显示整个项目的加载时间应该在“1000ms”的范围内。
通过管理区域启用性能栏

  • 以具有管理员权限的用户身份登录。
  • 在菜单栏中,单击管理区域。
  • 导航到 Settings > Metrics and profiling (admin/application_settings/metrics_and_profiling),然后展开 Profiling - Performance bar 部分。
  • 单击启用对性能栏的访问。
  • 在允许的组字段中,提供允许访问 GitLab 性能栏的组的完整路径。
  • 点击保存更改

  • 启用 GitLab 性能栏后,按 p + b key

    关于performance - gitlab接口(interface)性能慢,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66222340/

    27 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com