-
Notifications
You must be signed in to change notification settings - Fork 0
Test minio config.yaml v2
Allan Roger Reid edited this page Jun 18, 2024
·
1 revision
sudo vi /etc/systemd/system/minio-allan-test.service
[Unit]
Description=MinIO
Documentation=https://min.io/docs/minio/linux/index.html
Wants=network-online.target
After=network-online.target
AssertFileIsExecutable=/usr/local/bin/minio-allan-test
[Service]
WorkingDirectory=/usr/local
User=allan
Group=allan
ProtectProc=invisible
EnvironmentFile=-/etc/default/minio-allan-test
ExecStart=/usr/local/bin/minio-allan-test server $MINIO_OPTS
# 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})
sudo vi /etc/default/minio-allan-test
# do paths in your home directory
MINIO_CI_CD=1
# Set all MinIO server options
#
# The following explicitly sets the MinIO Console listen address to
# port 9001 on all network interfaces. The default behavior is dynamic
# port selection.
MINIO_OPTS="--config /home/allan/.minio/config-test.yaml"
vi /home/allan/.minio/config-test.yaml
version: v2
address: ":17350"
rootUser: "minioadmin"
rootPassword: "minio-secret-key-minioadmin"
console-address: ":17351"
certs-dir: "/tmp" #/home/allan/.lxmin/certs_intel/"
pools: # Specify the nodes and drives with pools
- args:
#- "https://node{1,5,6,7}.lab.min.dev:17350/home/allan/minio/disk{0...1}/minio-test"
- "http://node1.minio.training:17350/home/allan/minio/disk{0...1}/minio-test"
- "http://node5.minio.training:17350/home/allan/minio/disk{0...1}/minio-test"
- "http://node6.minio.training:17350/home/allan/minio/disk{0...1}/minio-test"
- "http://node7.minio.training:17350/home/allan/minio/disk{0...1}/minio-test"
sudo systemctl enable --now minio-allan-test.service
sudo systemctl start minio-allan-test.service
sudo systemctl stop minio-allan-test.service
sudo systemctl restart minio-allan-test.service
sudo systemctl disable minio-allan-test.service
sudo systemctl status minio-allan-test.service
sudo journalctl -f -u minio-allan-test.service