2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【Jenkins】【天気】Jenkins のlogin時にページ読み込みが遅い方々へ 【Health Metrics】

Last updated at Posted at 2019-03-05

Jenkinsのページ読み込みが遅い

  • 仕事で多くのJOBを作成しているのですが、結果としてJOB数がえぐい
  • 半年前ぐらいからlogin時にページ読み込みが極端に遅くなった

原因はお天気かも

いろいろありますが、JOB数が多くなってから遅くなった場合はお天気のせいかもしれません。

お天気とは

  • Health Metricsのことです
    • JOBの成功率を天気で表現してくれます
  • 便利なのですが、JOBの成功率計算のためにアクセスページ以下のJOBを再帰的にみます

解決方法

  • 天気の再帰設定を無効化します

実行環境

  • jenkins2.0
    • CloudBees Folders Plugin
  • JOBはgroovyファイルでDSLで管理しています

GUIでやる

  • JOBが作成されているFolderのconfigureを開く
  • Health Metricsの欄を開き、Worst Child Health MetricのオプションにかかれているRecursive のチェックを外す。
  • 設定を保存するとページ開くのが早くなっている

groovy DSLで設定する

folder("${jobPathString}"){
            description('disable_recursive_health_Metrics_directory')
            configure { folder ->
                folder / 'healthMetrics' / 'com.cloudbees.hudson.plugins.folder.health.WorstChildHealthMetric' {
                    'nonRecursive'(true)
                }
            }
        }

まとめ

  • 最近Jenkinsのページ読み込みが遅い、、という方は一度お試しあれ

参考URL

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?