首页 > 其他分享 >minio gateway nas 参考配置

minio gateway nas 参考配置

时间:2022-10-22 01:22:35浏览次数:73  
标签:minio CACHE nas export gateway MINIO

主要记录下运行说明

参考命令

/usr/local/bin/minio gateway  nas --help
NAME:
  minio gateway nas - Network-attached storage (NAS)
 
USAGE:
  minio gateway nas [FLAGS] PATH
 
FLAGS:
  --address value              bind to a specific ADDRESS:PORT, ADDRESS can be an IP or hostname (default: ":9000")
  --certs-dir value, -S value  path to certs directory (default: "/root/.minio/certs")
  --quiet                      disable startup information
  --anonymous                  hide sensitive information from logging
  --json                       output server logs and startup information in json format
  --help, -h                   show help
 
PATH:
  path to NAS mount point
 
EXAMPLES:
  1. Start minio gateway server for NAS backend
     $ export MINIO_ROOT_USER=accesskey
     $ export MINIO_ROOT_PASSWORD=secretkey
     $ minio gateway nas /shared/nasvol
 
  2. Start minio gateway server for NAS with edge caching enabled
     $ export MINIO_ROOT_USER=accesskey
     $ export MINIO_ROOT_PASSWORD=secretkey
     $ export MINIO_CACHE_DRIVES="/mnt/drive1,/mnt/drive2,/mnt/drive3,/mnt/drive4"
     $ export MINIO_CACHE_EXCLUDE="bucket1/*,*.png"
     $ export MINIO_CACHE_QUOTA=90
     $ export MINIO_CACHE_AFTER=3
     $ export MINIO_CACHE_WATERMARK_LOW=75
     $ export MINIO_CACHE_WATERMARK_HIGH=85
     $ minio gateway nas /shared/nasvol

推荐玩法

推荐配置cache,可以加速访问

systemd 配置

  • minio.service
[Unit]
Description=MinIO
Documentation=https://docs.min.io
Wants=network-online.target
After=network-online.target
AssertFileIsExecutable=/usr/local/bin/minio
 
[Service]
WorkingDirectory=/usr/local
 
User=root
Group=root
 
EnvironmentFile=-/etc/default/minio  # 以上配置到文件中
ExecStart=/usr/local/bin/minio gateway nas /data/Prod/
 
# Let systemd restart this service always
Restart=always
 
# Specifies the maximum file descriptor number that can be opened by this process
LimitNOFILE=65536
 
# Specifies the maximum number of threads this process can create
TasksMax=infinity
 
# Disable timeout logic and wait until process is stopped
TimeoutStopSec=infinity
SendSIGKILL=no
 
[Install]
WantedBy=multi-user.target
 
# Built for ${project.name}-${project.version} (${project.name})
  • minio 配置
MINIO_BROWSER=off
# Root user for the server.
MINIO_ROOT_USER=xxxx
# Root secret for the server.
MINIO_ROOT_PASSWORD=xxxx
MINIO_CACHE_QUOTA=90
MINIO_CACHE_AFTER=3
MINIO_CACHE_WATERMARK_LOW=70
MINIO_CACHE_WATERMARK_HIGH=90
MINIO_CACHE_DRIVES="/cache" # cache 

参考资料

https://github.com/minio/minio/blob/master/docs/disk-caching/DESIGN.md

标签:minio,CACHE,nas,export,gateway,MINIO
From: https://www.cnblogs.com/rongfengliang/p/16815171.html

相关文章

  • 群晖(Synology)NAS 安装 MongoDB
    首先需要在群晖的Docker中选择Image,然后选择添加。  输入DockerHUB的地址在弹出的对话框中输入DockerHub的地址。MongoDB的地址为: DockerHub  ......
  • 2022-CNASGA-IT2
    受疫情影响,线上办公已成为全球各地工作的主要方式,同时线上投资也逐渐增多。某公司通过网站告知投资者,投资该公司的运营项目,可获得高额回报。现获取包含该公司投资网站和数......
  • 2022GA-CNAS-03
    1.请计算样品npbk文件的SHA256哈希值。结果为f182d203fa971fe606bde63266ebaab44f0cef6ab41cd1a58332d5717ad30d1d2.请列出检验过程中所有使用的方法标准和软硬件工......
  • MiniO Client(mc)简单使用指南
    #MinioClient简称mc,是minio服务器的客户端,对ls,cat,cp,mirror,diff,find等UNIX命令提供了一种替代方案,它支持文件系统和兼容AmazonS3的云存储服务(AWSSignaturev2和v4)......
  • springboot集成minio及服务安装
    @​​TOC​​​​​​本文只介绍如何将minio做成服务​​1.将minio做成服务将MinioServer.exe放在minio安装目录中同目录下创建MinioServer.xml。特别注意,xml和exe必须同名......
  • 微服务应用部署—Ngix和Gateway
    Ngix下载、安装。使用:正向代理、反向代理、负载均衡。常用命令和配置文件 nginx网关与gateway网关的区别 介绍流量网关和业务网关的区别gateway的主要功能有,路由......
  • windows minio服务安装以及springboot集成
    @​​TOC​​​​​​本文只介绍如何将minio做成服务​​1.将minio做成服务将MinioServer.exe放在minio安装目录中同目录下创建MinioServer.xml。特别注意,xml和exe必须同名......
  • 20221011-R和R包安装 Rnaseq
    quantificationsource("http://bioconductor.org/biocLite.R")biocLite("Rsubread")limmaedgeRlibrary("Rsubread")limmaedgeR失败condainstallbioconductor-edgercon......
  • docker-compose 实现minio分布式存储服务
    minio是一个非常流行的高性能存储服务,云服务器使用得非常多。现在minio的更新非常迅速,三天两头就会更新版本,为了学习minio,了解最近特性,使用docker进行部署安装就非常方便。......
  • 群晖NAS系统- 存储空间不足的解决方法
    群晖NAS系统-存储空间不足的解决方法一、检查FileStation中共享文件夹的回收站中是否有未被彻底删除的文件。若您的共享文件夹启用了回收站功能,被删除的文件会先移......