当前位置:网站首页>Minio deployment
Minio deployment
2022-07-03 21:22:00 【weixin_ forty-one million eighty-three thousand three hundred a】
minio Deploy
1. install minio
# download minio
https://dl.min.io/server/minio/release/linux-amd64/
# Add executable rights
chmod +x minio
# download prometheus monitor
https://prometheus.io/download/
# decompression
tar -zxvf prometheus-2.33.3.linux-amd64.tar.gz
# edit prometheus.yml file , Add monitoring as follows
scrape_configs:
- job_name: minio-job
metrics_path: /minio/v2/metrics/cluster
scheme: http
static_configs:
- targets: ['localhost:9000']
# establish prometheus Startup file
#!/bin/bash
nohup ./prometheus --config.file=prometheus.yml > prometheus.log &
2. minio Basic concepts
Object: Store in minio The basic object of , Such as file 、 picture 、 Byte stream, etc ;
Bucket: The logical space used to store objects . Every bucket The data is isolated from each other ( It can be understood as bucket= Folder );
Drive: The disk on which data is stored , stay minio When it starts , Pass in... As a parameter .minio All objects in are stored in drive in ;
Set: It's a group drive Set , Distributed deployment automatically divides one or more clusters according to the cluster size set, Every set Medium drive Distributed in different locations ;
- An object is stored in a set in ;
- A cluster is divided into multiple set;
- One set Contains drive The quantity is fixed , By default, it is automatically calculated by the cluster according to the system size ;
- One set Medium drive Distributed on different nodes as much as possible ;
3. Erasure code (Erasure Code)
Erasure code is a mathematical algorithm used to reconstruct lost or damaged data .MinIO Use Reed-Solomon The code fragment the object into variable data and parity blocks . for example , stay 12 Drive settings , An object can be partitioned into a variable number of data and parity blocks on all drives - From six data and six parity blocks to ten data and two parity blocks .
And RAID Or copy different , Erasure codes protect data from multiple drive failures . for example ,RAID6 Prevents both drives from failing , And in the MinIO Erase code , You may lose up to half of your drives , But the data is still safe . Besides ,MinIO The erasure code of is object level , You can fix one object at a time . about RAID, Repairs can only be made at the volume level , This will result in long downtime . because MinIO Encode each object individually , It can repair objects step by step . The deployed storage server does not need to replace or repair the drive in the whole life cycle of the server .MinIO The erasure code backend of is designed to improve operational efficiency , And make full use of hardware acceleration when available .
Development 、 Test environment server configuration

Minimum configuration of production environment server

4. Create a cluster startup command (minio-cluster.sh)
#!/bin/bash
export MINIO_ROOT_USER=minioadmin
export MINIO_ROOT_PASSWORD=admin123
# By default ,MinIO The request sent to the indicator endpoint needs to be authenticated , Configure for public access
export MINIO_PROMETHEUS_AUTH_TYPE="public"
# To configure prometheus Address
export MINIO_PROMETHEUS_URL="http://host:port"
# To configure prometheus Of job_id, The default is minio-job
export MINIO_PROMETHEUS_JOB_ID="minio-job"
#host{1...n} hostname ,export{1...m} Indicates local mount drive route
nohup ./minio server http://host{
1...n}/export{
1...m} --console-address ":9001" > minio.log &
5. common problem
# User name and password configuration length problem , To configure 8 Above position
Unable to validate credentials inherited from the shell environment: Invalid credentials
边栏推荐
- What is the maximum number of concurrent TCP connections for a server? 65535?
- Cesiumjs 2022 ^ source code interpretation [7] - Analysis of the request and loading process of 3dfiles
- Selenium has three waiting methods (forced waiting, implicit waiting, and display waiting)
- MySQL——规范数据库设计
- Under the double reduction policy, research travel may become a big winner
- Talk about daily newspaper design - how to write a daily newspaper and what is the use of a daily newspaper?
- 浅议.NET遗留应用改造
- MySQL——索引
- 强化學習-學習筆記1 | 基礎概念
- Kernel symbol table
猜你喜欢

使用dnSpy对无源码EXE或DLL进行反编译并且修改
![[gd32l233c-start] 5. FLASH read / write - use internal flash to store data](/img/4f/ed8ca2f43ba5a8e5da63eb419aae82.jpg)
[gd32l233c-start] 5. FLASH read / write - use internal flash to store data

Compilation Principle -- syntax analysis

Tidb's initial experience of ticdc6.0

Haven't expressed the artifact yet? Valentine's Day is coming. Please send her a special gift~

Pengcheng cup Web_ WP

Rhcsa third day operation

JS three families

强化學習-學習筆記1 | 基礎概念

"Actbert" Baidu & Sydney University of technology proposed actbert to learn the global and local video text representation, which is effective in five video text tasks
随机推荐
鹏城杯 WEB_WP
Yiwen teaches you how to choose your own NFT trading market
2022-02-15 Daily: 2022 AAAI fellow release
What is the maximum number of concurrent TCP connections for a server? 65535?
No more! Technical team members resign collectively
flink sql-client 退出,表就会被清空怎么办?
Solve the problem that openocd fails to burn STM32 and cannot connect through SWD
运维各常用命令总结
Ask and answer: dispel your doubts about the virtual function mechanism
2022 low voltage electrician examination and low voltage electrician simulation examination question bank
全网都在疯传的《老板管理手册》(转)
设计电商秒杀系统
Après 90 ans, j'ai démissionné pour démarrer une entreprise et j'ai dit que j'allais détruire la base de données Cloud.
SQL injection - Fundamentals of SQL database operation
Great gods, I want to send two broadcast streams: 1. Load basic data from MySQL and 2. Load changes in basic data from Kafka
Memory analyzer (MAT)
上周内容回顾
2022 high voltage electrician examination and high voltage electrician reexamination examination
Rhcsa third day notes
Apprentissage intensif - notes d'apprentissage 1 | concepts de base