-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from EdurtIO/develop
Develop
- Loading branch information
Showing
15 changed files
with
593 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
--- | ||
template: overrides/main.html | ||
--- | ||
|
||
This document mainly introduces how we use the Processor monitoring function provided by the software. | ||
|
||
##### Redirect | ||
|
||
--- | ||
|
||
After the mouse moves to the `Monitor` menu, a drop-down box will automatically pop up. Select the `Processor` sub-menu in the drop-down box and click it, and it will jump to the corresponding management page. His snapshot is similar to the following screenshot: | ||
|
||
![](https://images.edurt.io/2021/11/02/16358536985404.jpg) | ||
|
||
> By default, the selection item after `Server` on the top left is blank, you need to manually select a data source | ||
##### Execute | ||
|
||
--- | ||
|
||
On the right side of the top menu, there will be a `Threshold` (unit/ms) value input window, which is used for our update time interval. When we turn on the `Auto` function on the right, the software will input the value according to `Threshold` Automatically refresh the data. | ||
|
||
![](https://images.edurt.io/2021/11/02/16358538862636.jpg) | ||
|
||
The chart in the middle part is used to mark the total number of processes of the current query of the currently selected server. The chart has a maximum of 20 points by default, and each time point will automatically cover the previous expired data points. | ||
|
||
![](https://images.edurt.io/2021/11/02/16358539745671.jpg) | ||
|
||
The bottom data table is used to render the detailed process of the server's specific query at our current time. It provides the following indicators: | ||
|
||
- `Time`: The time the current process is running | ||
- `Rows`: The number of rows to be queried in the current process query (`read_rows`+`written_rows`) | ||
- `Elapsed`: Process query time (unit/ms) | ||
- `Bytes`: The bytes consumed by the current process query (`read_bytes`+`written_bytes`) | ||
- `memoryUsage`: Memory consumed by the query | ||
- `bytesRead`: Query the number of bytes read | ||
- `bytesWritten`: Query the number of bytes written | ||
- `hash`: The hash of this query | ||
- `host`: The host name of the service being queried | ||
|
||
> The above data are from the `system.processes` table | ||
##### Action | ||
|
||
--- | ||
|
||
We also provide two operations in the detailed list: | ||
|
||
- `KILL`: Stop the current query (**Note: This operation cannot be rolled back**) | ||
- `DDL`: Query the specific SQL statement of the current query | ||
|
||
###### Kill | ||
|
||
When our query takes a long time, we can click the <img src="https://images.edurt.io/2021/11/02/16358545339160.jpg" width="40" /> button, and it will A window like the following pops up: | ||
|
||
![](https://images.edurt.io/2021/11/02/16358546469724.jpg) | ||
|
||
The window gives us two important tips, which need to be read carefully. If you are sure to perform the operation, enter the unique data marked under the `Necessary` prompt in the input box, and then click the `OK` button. | ||
|
||
It will send a KILL command to the server, the specific command executed is as follows | ||
|
||
```sql | ||
KILL QUERY WHERE query_id = 'f57ae2a8-8aeb-4f71-b395-43d7065ac564' | ||
``` | ||
|
||
###### DDL | ||
|
||
When we need to view the specific SQL of this query, we can click the <img src="https://images.edurt.io/2021/11/02/16358548333386.jpg" width="40" /> button, and it will A window like the following pops up: | ||
|
||
![](https://images.edurt.io/2021/11/02/16358548788950.jpg) | ||
|
||
The editor is the specific SQL statement we query this time. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
template: overrides/main.html | ||
--- | ||
|
||
DBM Version for 1.9.0 is released! | ||
|
||
#### Docs | ||
|
||
--- | ||
|
||
- Add monitor/processor documentation | ||
|
||
#### Enhancement | ||
|
||
--- | ||
|
||
- Support truncate table | ||
- Support clean table by partition | ||
- Support optimize table | ||
|
||
#### UI | ||
|
||
--- | ||
|
||
- Add a link to the GitHub source code repository in the navigation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
import i18n from '../../i18n' | ||
|
||
/** | ||
* Right-click menus available for table | ||
*/ | ||
|
||
const Support = require('../../utils/Support') | ||
const StringUtils = require('../../utils/StringUtils') | ||
|
||
export function getContextMenu(type) { | ||
const menus = [] | ||
if (type === Support.TABLE) { | ||
menus.push({ | ||
name: i18n.t('common.delete'), | ||
command: Support.DELETE, | ||
type: Support.TABLE, | ||
icon: Support.DELETE_ICON | ||
}, { | ||
name: StringUtils.format('{0}{1}', [i18n.t('common.add'), i18n.t('common.column')]), | ||
command: Support.ADD, | ||
icon: Support.ADD_ICON, | ||
type: Support.TABLE | ||
}, { | ||
name: i18n.t('common.ddl'), | ||
command: Support.DDL, | ||
icon: Support.DDL_ICON, | ||
type: Support.TABLE | ||
}, { | ||
name: i18n.t('common.preview'), | ||
command: Support.PREVIEW, | ||
icon: Support.PREVIEW_ICON, | ||
type: Support.TABLE | ||
}, { | ||
name: StringUtils.format('{0}{1}', [i18n.t('common.rename'), i18n.t('common.table')]), | ||
command: Support.EDIT, | ||
icon: Support.EDIT_ICON, | ||
type: Support.TABLE | ||
}, { | ||
name: StringUtils.format('{0}{1}', [i18n.t('common.truncate'), i18n.t('common.table')]), | ||
command: Support.TRUNCATE, | ||
icon: Support.TRUNCATE_ICON, | ||
type: Support.TABLE | ||
}, { | ||
name: StringUtils.format('{0}{1}', [i18n.t('common.clean'), i18n.t('common.table')]), | ||
command: Support.CLEAN, | ||
icon: Support.CLEAN_ICON, | ||
type: Support.TABLE | ||
}, { | ||
name: StringUtils.format('{0}{1}', [i18n.t('common.optimize'), i18n.t('common.table')]), | ||
command: Support.OPTIMIZE, | ||
icon: Support.OPTIMIZE_ICON, | ||
type: Support.TABLE | ||
}) | ||
} | ||
return menus | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.