Database Findings don't match database settings

オープン
#1,223 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
javascript, mariadb, mysql
領域
backend, databases

調査の方向性

Start by locating the plugin code that reads and displays the database settings shown in the issue, then trace how it obtains values for slow_query_log, long_query_time, and innodb_log_file_size. Compare those readings with the MariaDB custom.cnf examples in the report. Done means the displayed findings reflect the configured values; the issue does not name a specific file or test.

索引モデルが issue の本文から書いたものです。

説明

0. Needs triage bug
Database Checks
Slow query log
Notice · Slow_query_log_off
The slow query log is disabled, so problematic queries are not being recorded.
slow_query_log is currently disabled.
Enable slow_query_log to capture queries that take longer than long_query_time to execute.
Value     0
Setting     slow_query_log→ON
Long query time
Notice · Long_query_time
long_query_time is set high, so only the slowest queries are logged.
long_query_time is 10 seconds; a value of 2 or less is recommended.
Set long_query_time to 2 (or less) to catch problematic queries earlier.
Value     10
Setting    long_query_time→2
InnoDB 1 failing
InnoDB log file size
Warning · Innodb_log_file_size
Failing
innodb_log_file_size is small; a small log forces frequent checkpoints and limits write throughput.
innodb_log_file_size is 100663296 bytes; a value of at least 128 MB is recommended.
Increase innodb_log_file_size to at least 128 MB on busy servers.
Value    100,663,296
Setting    innodb_log_file_size→256Mrestart required
Note    Server restart recommended after changing this setting.
MariaDB custom.cnf under [mysqld]
# Enable the slow query log to see queries with especially long duration
slow_query_log = ON
slow_query_log_file = /config/log/mysql/mariadb-slow.log
long_query_time = 2
#log_slow_rate_limit    = 1000
log_slow_verbosity  = query_plan

and

# * InnoDB
#
# InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
# Read the manual for more InnoDB related options. There are many!
default_storage_engine  = InnoDB
# you can't just change log file size, requires special procedure
innodb_log_file_size    = 256M
innodb_buffer_pool_size = 256M
innodb_log_buffer_size  = 8M
innodb_file_per_table   = 1
innodb_open_files   = 400
innodb_io_capacity  = 400
innodb_flush_method = O_DIRECT

I don't know where the plugin is reading these values from, but it doesn't appear to be obtaining the right values for these settings.

主要言語
JavaScript
スター
133
フォーク
67
平均マージ
21時間 28分
マージ済み PR(30日)
53

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

nextcloud/serverinfo のほかの issue

nextcloud/serverinfo の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。