-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update site at 20240325-073916, machine liaosirui-mbp
- Loading branch information
Showing
80 changed files
with
141 additions
and
82 deletions.
There are no files selected for viewing
Empty file.
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,32 @@ | ||
PostgreSQL的schema可看作是一個資料庫的命名空間(namespace),各個命名空間包含所屬的資料表 | ||
|
||
在psql輸入`\dn *`即可列出所有的schema及擁有者 | ||
|
||
```bash | ||
postgres=> \dn * | ||
List of schemas | ||
Name | Owner | ||
--------------------+------- | ||
information_schema | user | ||
pg_catalog | user | ||
pg_toast | user | ||
public | user | ||
(4 rows) | ||
``` | ||
|
||
或者 | ||
|
||
```sql | ||
SELECT schema_name, schema_owner FROM information_schema.schemata; | ||
``` | ||
|
||
切换 schema | ||
|
||
```sql | ||
set search_path to test_schema; | ||
|
||
set search_path to public; | ||
|
||
SELECT * FROM information_schema.schemata; | ||
``` | ||
|
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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,83 @@ | ||
## 集群部署 | ||
|
||
### 管理服务 | ||
|
||
1)部署服务: | ||
|
||
```bash | ||
/opt/beegfs/sbin/beegfs-setup-mgmtd -p {mgmtd_path} | ||
``` | ||
|
||
`-p:mgmtd_path` 为管理服务数据存放目录 | ||
|
||
注:执行此命令后,会在 mgmtd_path 下生成 format.conf 文件,更新 `/etc/beegfs/beegfs-mgmtd.conf` 配置文件(storeMgmtdDirectory、storeAllowFirstRunInit 参数) | ||
|
||
2)启动服务: | ||
|
||
```bash | ||
systemctl start beegfs-mgmtd | ||
``` | ||
|
||
### 元数据服务 | ||
|
||
1)部署服务: | ||
|
||
```bash | ||
/opt/beegfs/sbin/beegfs-setup-meta -p {meta_path} -s {meta_id} -m {mgmtd_host} | ||
``` | ||
|
||
- `-p:meta_path` 为元数据服务数据存放目录 | ||
- `-s:meta_id` 为元数据服务 ID,同一集群元数据服务 id 值不能重复 | ||
- `-m:mgmtd_host` 为管理服务节点主机名或者 IP 地址,此处任选其一均可 | ||
|
||
注:执行此命令后,会在 meta_path 下生成 format.conf 和 nodeNumID 文件,更新 `/etc/beegfs/beegfs-meta.conf` 配置文件(sysMgmtdHost 、storeMetaDirectory 、storeAllowFirstRunInit 、storeFsUUID 参数) | ||
|
||
2)启动服务: | ||
|
||
```bash | ||
systemctl start beegfs-meta | ||
``` | ||
|
||
### 存储服务 | ||
|
||
1)部署服务: | ||
|
||
```bash | ||
/opt/beegfs/sbin/beegfs-setup-storage -p {storage_path} -s {storage_host_id} -i {storage_id} -m {mgmtd_host} | ||
``` | ||
|
||
`-p:storage_path` 为存储服务数据存放目录 | ||
`-s:storage_host_id` 为存储服务节点id,同一节点上的存储服务id一致,一般以ip地址命名 | ||
`-i:storage_id` 为存储服务id,同一集群存储服务id值不能重复 | ||
`-m:mgmtd_host` 为管理服务节点主机名或者IP地址,此处任选其一均可 | ||
|
||
注:执行此命令后,会在 storage_path 下生成 format.conf 、nodeNumID 、targetNumID 文件,更新 `/etc/beegfs/beegfs-client.conf` 配置文件(sysMgmtdHost 、storeStorageDirectory 、storeAllowFirstRunInit 、storeFsUUID 参数) | ||
|
||
2)启动服务: | ||
|
||
```bash | ||
systemctl start beegfs-storage | ||
``` | ||
|
||
### 客户端服务 | ||
|
||
1)部署服务: | ||
|
||
```bash | ||
/opt/beegfs/sbin/beegfs-setup-client -m {mgmtd_host} | ||
``` | ||
|
||
`-m:mgmtd_host` 为管理服务节点主机名或者 IP 地址,此处任选其一均可 | ||
|
||
注:执行此命令后,会更新 `/etc/beegfs/beegfs-client.conf` 配置文件(sysMgmtdHost 参数) | ||
|
||
客户端默认将集群目录挂载到 /mnt/beegfs ,如需修改挂载点,修改 `/etc/beegfs/beegfs-mounts.conf` 配置文件即可 | ||
|
||
2)启动服务: | ||
|
||
```bash | ||
systemctl restart beegfs-helperd | ||
systemctl restart beegfs-client | ||
``` | ||
|
||
## |
File renamed without changes.
File renamed without changes.
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,7 @@ | ||
代码:<https://github.com/filebench/filebench> | ||
|
||
Filebench 是一款文件系统性能的自动化测试工具,它通过快速模拟真实应用服务器的负载来测试文件系统的性能。它不仅可以仿真文件系统微操作(如 copyfiles, createfiles, randomread, randomwrite ),而且可以仿真复杂的应用程序(如 varmail, fileserver, oltp, dss, webserver, webproxy )。 Filebench 比较适合用来测试文件服务器性能,但同时也是一款负载自动生成工具,也可用于文件系统的性能 | ||
|
||
## 参考文档 | ||
|
||
- <https://www.yangguanjun.com/2017/07/08/fs-testtool-filebench/> |