Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: polar_stat_env #493

Merged
merged 1 commit into from
Mar 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 6 additions & 20 deletions docs/.vuepress/configs/navbar/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,32 +84,18 @@ export const en: NavbarConfig = [
text: "Dev",
link: "/development/",
children: [
{
text: "Development on Docker",
link: "/development/dev-on-docker.html",
},
{
text: "Customize Development Environment",
link: "/development/customize-dev-env.html",
},
"/development/dev-on-docker.html",
"/development/customize-dev-env.html",
],
},
{
text: "Contributing",
link: "/contributing/",
children: [
{
text: "Contributing Docs",
link: "/contributing/contributing-polardb-docs.html",
},
{
text: "Contributing Code",
link: "/contributing/contributing-polardb-kernel.html",
},
{
text: "Coding Style",
link: "/contributing/coding-style.html",
},
"/contributing/contributing-polardb-docs.html",
"/contributing/contributing-polardb-kernel.html",
"/contributing/coding-style.html",
"/contributing/trouble-issuing.html",
],
},
];
16 changes: 4 additions & 12 deletions docs/.vuepress/configs/navbar/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,18 +121,10 @@ export const zh: NavbarConfig = [
text: "参与社区",
link: "/zh/contributing/",
children: [
{
text: "贡献文档",
link: "/zh/contributing/contributing-polardb-docs.html",
},
{
text: "贡献代码",
link: "/zh/contributing/contributing-polardb-kernel.html",
},
{
text: "编码风格",
link: "/zh/contributing/coding-style.html",
},
"/zh/contributing/contributing-polardb-docs.html",
"/zh/contributing/contributing-polardb-kernel.html",
"/zh/contributing/coding-style.html",
"/zh/contributing/trouble-issuing.md",
],
},
];
1 change: 1 addition & 0 deletions docs/.vuepress/configs/sidebar/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ export const en: SidebarConfig = {
"/contributing/contributing-polardb-kernel.md",
"/contributing/contributing-polardb-docs.md",
"/contributing/coding-style.md",
"/contributing/trouble-issuing.md",
],
},
],
Expand Down
1 change: 1 addition & 0 deletions docs/.vuepress/configs/sidebar/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ export const zh: SidebarConfig = {
"/zh/contributing/contributing-polardb-kernel.md",
"/zh/contributing/contributing-polardb-docs.md",
"/zh/contributing/coding-style.md",
"/zh/contributing/trouble-issuing.md",
],
},
],
Expand Down
38 changes: 38 additions & 0 deletions docs/contributing/trouble-issuing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# 问题报告

如果在运行 PolarDB for PostgreSQL 的过程中出现问题,请提供数据库的日志与机器的配置信息以方便定位问题。

通过 `polar_stat_env` 插件可以轻松获取数据库所在主机的硬件配置:

```sql:no-line-numbers
=> CREATE EXTENSION polar_stat_env;
=> SELECT polar_stat_env();
polar_stat_env
--------------------------------------------------------------------
{ +
"CPU": { +
"Architecture": "x86_64", +
"Model Name": "Intel(R) Xeon(R) Platinum 8369B CPU @ 2.70GHz",+
"CPU Cores": "8", +
"CPU Thread Per Cores": "2", +
"CPU Core Per Socket": "4", +
"NUMA Nodes": "1", +
"L1d cache": "192 KiB (4 instances)", +
"L1i cache": "128 KiB (4 instances)", +
"L2 cache": "5 MiB (4 instances)", +
"L3 cache": "48 MiB (1 instance)" +
}, +
"Memory": { +
"Memory Total (GB)": "14", +
"HugePage Size (MB)": "2", +
"HugePage Total Size (GB)": "0" +
}, +
"OS Params": { +
"OS": "5.10.134-16.1.al8.x86_64", +
"Swappiness(1-100)": "0", +
"Vfs Cache Pressure(0-1000)": "100", +
"Min Free KBytes(KB)": "67584" +
} +
}
(1 row)
```
38 changes: 38 additions & 0 deletions docs/zh/contributing/trouble-issuing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# 问题报告

如果在运行 PolarDB for PostgreSQL 的过程中出现问题,请提供数据库的日志与机器的配置信息以方便定位问题。

通过 `polar_stat_env` 插件可以轻松获取数据库所在主机的硬件配置:

```sql:no-line-numbers
=> CREATE EXTENSION polar_stat_env;
=> SELECT polar_stat_env();
polar_stat_env
--------------------------------------------------------------------
{ +
"CPU": { +
"Architecture": "x86_64", +
"Model Name": "Intel(R) Xeon(R) Platinum 8369B CPU @ 2.70GHz",+
"CPU Cores": "8", +
"CPU Thread Per Cores": "2", +
"CPU Core Per Socket": "4", +
"NUMA Nodes": "1", +
"L1d cache": "192 KiB (4 instances)", +
"L1i cache": "128 KiB (4 instances)", +
"L2 cache": "5 MiB (4 instances)", +
"L3 cache": "48 MiB (1 instance)" +
}, +
"Memory": { +
"Memory Total (GB)": "14", +
"HugePage Size (MB)": "2", +
"HugePage Total Size (GB)": "0" +
}, +
"OS Params": { +
"OS": "5.10.134-16.1.al8.x86_64", +
"Swappiness(1-100)": "0", +
"Vfs Cache Pressure(0-1000)": "100", +
"Min Free KBytes(KB)": "67584" +
} +
}
(1 row)
```