mirror of
https://github.com/rustfs/rustfs.git
synced 2026-01-16 17:20:33 +00:00
improve readme.md
This commit is contained in:
@@ -6,7 +6,7 @@ This directory contains the observability stack for the application. The stack i
|
|||||||
- Grafana 11.6.0
|
- Grafana 11.6.0
|
||||||
- Loki 3.4.2
|
- Loki 3.4.2
|
||||||
- Jaeger 2.4.0
|
- Jaeger 2.4.0
|
||||||
- Otel Collector 0.120.0 #0.121.0 remove loki
|
- Otel Collector 0.120.0 # 0.121.0 remove loki
|
||||||
|
|
||||||
## Prometheus
|
## Prometheus
|
||||||
|
|
||||||
@@ -47,8 +47,16 @@ observability data formats (e.g. Jaeger, Prometheus, etc.) sending to one or mor
|
|||||||
|
|
||||||
To deploy the observability stack, run the following command:
|
To deploy the observability stack, run the following command:
|
||||||
|
|
||||||
|
- docker latest version
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker-compose -f docker-compose.yml -f docker-compose.override.yml up -d
|
docker compose -f docker-compose.yml -f docker-compose.override.yml up -d
|
||||||
|
```
|
||||||
|
|
||||||
|
- docker compose v2.0.0 or before
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docke-compose -f docker-compose.yml -f docker-compose.override.yml up -d
|
||||||
```
|
```
|
||||||
|
|
||||||
To access the Grafana dashboard, navigate to `http://localhost:3000` in your browser. The default username and password
|
To access the Grafana dashboard, navigate to `http://localhost:3000` in your browser. The default username and password
|
||||||
@@ -63,7 +71,7 @@ To access the Prometheus dashboard, navigate to `http://localhost:9090` in your
|
|||||||
To stop the observability stack, run the following command:
|
To stop the observability stack, run the following command:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker-compose -f docker-compose.yml -f docker-compose.override.yml down
|
docker compose -f docker-compose.yml -f docker-compose.override.yml down
|
||||||
```
|
```
|
||||||
|
|
||||||
## How to remove data
|
## How to remove data
|
||||||
@@ -71,7 +79,7 @@ docker-compose -f docker-compose.yml -f docker-compose.override.yml down
|
|||||||
To remove the data generated by the observability stack, run the following command:
|
To remove the data generated by the observability stack, run the following command:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker-compose -f docker-compose.yml -f docker-compose.override.yml down -v
|
docker compose -f docker-compose.yml -f docker-compose.override.yml down -v
|
||||||
```
|
```
|
||||||
|
|
||||||
## How to configure
|
## How to configure
|
||||||
|
|||||||
@@ -23,13 +23,21 @@ managing and monitoring the system.
|
|||||||
| |--rustfs.service // systemd service file
|
| |--rustfs.service // systemd service file
|
||||||
| |--rustfs-zh.service.md // systemd service file in Chinese
|
| |--rustfs-zh.service.md // systemd service file in Chinese
|
||||||
|--certs
|
|--certs
|
||||||
| |--README.md // certs readme
|
| ├── rustfs_cert.pem // Default|fallback certificate
|
||||||
| |--rustfs_tls_cert.pem // API cert.pem
|
| ├── rustfs_key.pem // Default|fallback private key
|
||||||
| |--rustfs_tls_key.pem // API key.pem
|
| ├── example.com/ // certificate directory of specific domain names
|
||||||
| |--rustfs_console_tls_cert.pem // console cert.pem
|
| │ ├── rustfs_cert.pem
|
||||||
| |--rustfs_console_tls_key.pem // console key.pem
|
| │ └── rustfs_key.pem
|
||||||
|
| ├── api.example.com/
|
||||||
|
| │ ├── rustfs_cert.pem
|
||||||
|
| │ └── rustfs_key.pem
|
||||||
|
| └── cdn.example.com/
|
||||||
|
| ├── rustfs_cert.pem
|
||||||
|
| └── rustfs_key.pem
|
||||||
|--config
|
|--config
|
||||||
| |--obs.example.yaml // example config
|
| |--obs.example.yaml // example config
|
||||||
| |--rustfs.env // env config
|
| |--rustfs.env // env config
|
||||||
| |--rustfs-zh.env // env config in Chinese
|
| |--rustfs-zh.env // env config in Chinese
|
||||||
|
| |--.example.obs.env // example env config
|
||||||
|
| |--event.example.toml // event config
|
||||||
```
|
```
|
||||||
@@ -51,6 +51,10 @@ ExecStart=/usr/local/bin/rustfs \
|
|||||||
EnvironmentFile=-/etc/default/rustfs
|
EnvironmentFile=-/etc/default/rustfs
|
||||||
ExecStart=/usr/local/bin/rustfs $RUSTFS_VOLUMES $RUSTFS_OPTS
|
ExecStart=/usr/local/bin/rustfs $RUSTFS_VOLUMES $RUSTFS_OPTS
|
||||||
|
|
||||||
|
# standard output and error log configuration
|
||||||
|
StandardOutput=append:/data/deploy/rust/logs/rustfs.log
|
||||||
|
StandardError=append:/data/deploy/rust/logs/rustfs-err.log
|
||||||
|
|
||||||
# resource constraints
|
# resource constraints
|
||||||
LimitNOFILE=1048576
|
LimitNOFILE=1048576
|
||||||
# 设置文件描述符上限为 1048576,支持高并发连接。
|
# 设置文件描述符上限为 1048576,支持高并发连接。
|
||||||
|
|||||||
@@ -31,6 +31,10 @@ ExecStart=/usr/local/bin/rustfs \
|
|||||||
EnvironmentFile=-/etc/default/rustfs
|
EnvironmentFile=-/etc/default/rustfs
|
||||||
ExecStart=/usr/local/bin/rustfs $RUSTFS_VOLUMES $RUSTFS_OPTS
|
ExecStart=/usr/local/bin/rustfs $RUSTFS_VOLUMES $RUSTFS_OPTS
|
||||||
|
|
||||||
|
# service log configuration
|
||||||
|
StandardOutput=append:/data/deploy/rust/logs/rustfs.log
|
||||||
|
StandardError=append:/data/deploy/rust/logs/rustfs-err.log
|
||||||
|
|
||||||
# resource constraints
|
# resource constraints
|
||||||
LimitNOFILE=1048576
|
LimitNOFILE=1048576
|
||||||
LimitNPROC=32768
|
LimitNPROC=32768
|
||||||
|
|||||||
@@ -32,7 +32,17 @@ openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 365 -node
|
|||||||
### TLS File
|
### TLS File
|
||||||
|
|
||||||
```text
|
```text
|
||||||
rustfs_public.crt #api cert.pem
|
cd deploy/certs/
|
||||||
|
ls -la
|
||||||
rustfs_private.key #api key.pem
|
├── rustfs_cert.pem // Default|fallback certificate
|
||||||
|
├── rustfs_key.pem // Default|fallback private key
|
||||||
|
├── example.com/ // certificate directory of specific domain names
|
||||||
|
│ ├── rustfs_cert.pem
|
||||||
|
│ └── rustfs_key.pem
|
||||||
|
├── api.example.com/
|
||||||
|
│ ├── rustfs_cert.pem
|
||||||
|
│ └── rustfs_key.pem
|
||||||
|
└── cdn.example.com/
|
||||||
|
├── rustfs_cert.pem
|
||||||
|
└── rustfs_key.pem
|
||||||
```
|
```
|
||||||
Reference in New Issue
Block a user