内容纲要
概要描述
inspection web 2.2.3 版本巡检,遇到small file ratio too high的告警,阈值是由 table.holodesk.small.file.ratio.threshold 决定的,默认80,本文主要介绍如何修改该参数。

详细说明
SQLite 是一个嵌入式的关系型数据库管理系统,它是一个零配置、无服务器、事务性的 SQL 数据库引擎
#连接到数据库
[root@kv1/mnt/package/inspection-web]# sqlite3 config/db/inspection.db
SQLite version 3.7.17 2013-05-20 00:56:22
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
#启用列名显示:
sqlite> .headers on
#设置列对齐格式
sqlite> .mode column
sqlite> SELECT * FROM runtime_parameter_info WHERE name='table.holodesk.small.file.ratio.threshold';
id module name value visibility recommended_value type enabled level description platform
---------- ---------- ----------------------------------------- ---------- ---------- ----------------- ---------- ---------- ---------- ----------------------------- ----------
125 TABLE table.holodesk.small.file.ratio.threshold 0.8 RW 0.8 PREDEFINED 1 L2 holodesk小文件占比阈值 ALL
sqlite> update runtime_parameter_info set value=1.0 where name='table.holodesk.small.file.ratio.threshold';
sqlite> SELECT * FROM runtime_parameter_info WHERE name='table.holodesk.small.file.ratio.threshold';
id module name value visibility recommended_value type enabled level description platform
---------- ---------- ----------------------------------------- ---------- ---------- ----------------- ---------- ---------- ---------- ----------------------------- ----------
125 TABLE table.holodesk.small.file.ratio.threshold 1.0 RW 0.8 PREDEFINED 1 L2 holodesk小文件占比阈值 ALL
sqlite> .exit
通过修改阈值,从0.8提高到1.0,再次巡检,该告警消失。