Skip to content

Commit

Permalink
update site at 20240325-073916, machine liaosirui-mbp
Browse files Browse the repository at this point in the history
  • Loading branch information
LiaoSirui committed Mar 24, 2024
1 parent 99fe2d7 commit 00030e0
Show file tree
Hide file tree
Showing 80 changed files with 141 additions and 82 deletions.
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,15 @@

官方的方式是推荐使用 Flux CLI

官方文档:<https://fluxcd.io/flux/installation/>

首先是安装 Flux CLI (即 Flux)

```bash
curl -s https://fluxcd.io/install.sh | bash

# 设置补全
. <(flux completion bash)
```

在启动前,先 check 下 flux 的版本等信息是否已经可以了;使用命令 `flux check --pre` 检查
Expand Down Expand Up @@ -74,6 +79,16 @@ NetworkPolicy/flux-system/allow-webhooks created
✔ install finished
```

更多安装命令

```bash
flux install \
--registry harbor.alpha-quant.com.cn:5000/3rd_party/ghcr.io/fluxcd \
--image-pull-secret platform-oci-image-pull-secret \
--namespace flux-system \
--components helm-controller
```

### 使用 helm 部署

非官方仓库:<https://github.com/fluxcd-community/helm-charts>
Expand Down
4 changes: 4 additions & 0 deletions 异构计算/NvidiaGPU/NvidiaGPU架构.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@

2022 年 9 月发布,NVIDIA 官网宣称 Ada Lovelace GPU 架构能够为光线追踪和基于 AI 的神经图形提供革命性的性能,该架构显著提高了 GPU 性能基准,更代表着光线追踪和神经图形的转折点,使用该架构的 GPU 有 RTX6000、RTX4060Ti 等

- Blackwell

Blackwell 架构以美国统计学和数学先驱David Harold Blackwell 博士的名字命名,他撰写了第一本贝叶斯统计学教科书,Blackwell 架构再次成为 NVIDIA 在公司许多标志性架构设计上加倍努力的理念,希望找到更智能、更努力地工作的方法,以提高其最重要的数据中心/HPC 加速器的性能

## 实例

TX4060Ti 基于 Ada Lovelace 架构(AD102)
Expand Down
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.
82 changes: 0 additions & 82 deletions 计算机存储/分布式存储/BeeGFS/BeeGFS简介.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,88 +25,6 @@ BeeGFS 是遵循 GPL 的“免费开源”产品,文件系统没有许可证

注:{package-name} 为对应组件包名称,如 beegfs-mgmtd 等

## 集群部署

### 管理服务

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
```

## 镜像组

### BuddyGroups 简介
Expand Down
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
```

##
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/>

0 comments on commit 00030e0

Please sign in to comment.