mirror of
https://github.com/minio/minio.git
synced 2025-11-09 21:49:46 -05:00
cleanup markdown docs across multiple files (#14296)
enable markdown-linter
This commit is contained in:
@@ -40,7 +40,9 @@ minio gateway s3 https://s3.amazonaws.com
|
||||
```
|
||||
|
||||
### Run MinIO gateway with cache on Docker Container
|
||||
|
||||
### Stable
|
||||
|
||||
Cache drives need to have `strictatime` or `relatime` enabled for disk caching feature. In this example, mount the xfs file system on /mnt/cache with `strictatime` or `relatime` enabled.
|
||||
|
||||
```sh
|
||||
@@ -48,21 +50,25 @@ truncate -s 4G /tmp/data
|
||||
```
|
||||
|
||||
### Build xfs filesystem on /tmp/data
|
||||
|
||||
```
|
||||
mkfs.xfs /tmp/data
|
||||
```
|
||||
|
||||
### Create mount dir
|
||||
|
||||
```
|
||||
sudo mkdir /mnt/cache #
|
||||
```
|
||||
|
||||
### Mount xfs on /mnt/cache with atime.
|
||||
### Mount xfs on /mnt/cache with atime
|
||||
|
||||
```
|
||||
sudo mount -o relatime /tmp/data /mnt/cache
|
||||
```
|
||||
|
||||
### Start using the cached drive with S3 gateway
|
||||
|
||||
```
|
||||
podman run --net=host -e MINIO_ROOT_USER={s3-access-key} -e MINIO_ROOT_PASSWORD={s3-secret-key} \
|
||||
-e MINIO_CACHE_DRIVES=/cache -e MINIO_CACHE_QUOTA=99 -e MINIO_CACHE_AFTER=0 \
|
||||
|
||||
@@ -29,9 +29,8 @@ export MINIO_CACHE_WATERMARK_HIGH=90
|
||||
minio gateway s3
|
||||
```
|
||||
|
||||
The `CACHE_WATERMARK` numbers are percentages of `CACHE_QUOTA`.
|
||||
In the example above this means that `MINIO_CACHE_WATERMARK_LOW` is effectively `0.8 * 0.7 * 100 = 56%` and the `MINIO_CACHE_WATERMARK_HIGH` is effectively `0.8 * 0.9 * 100 = 72%` of total disk space.
|
||||
|
||||
The `CACHE_WATERMARK` numbers are percentages of `CACHE_QUOTA`.
|
||||
In the example above this means that `MINIO_CACHE_WATERMARK_LOW` is effectively `0.8 * 0.7 * 100 = 56%` and the `MINIO_CACHE_WATERMARK_HIGH` is effectively `0.8 * 0.9 * 100 = 72%` of total disk space.
|
||||
|
||||
### 3. Test your setup
|
||||
|
||||
|
||||
Reference in New Issue
Block a user