当前位置:网站首页>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
边栏推荐
- Borui data and Sina Finance released the 2021 credit card industry development report
- JS three families
- Advanced collaboration: coroutinecontext
- Capture de paquets et tri du contenu externe - - autoresponder, composer, statistiques [3]
- Install and use Chrony, and then build your own time server
- The "boss management manual" that is wildly spread all over the network (turn)
- Hcie security Day11: preliminarily learn the concepts of firewall dual machine hot standby and vgmp
- Rhcsa third day notes
- Analyse de REF nerf
- "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
猜你喜欢
(5) Web security | penetration testing | network security operating system database third-party security, with basic use of nmap and masscan
90 後,辭職創業,說要卷死雲數據庫
treevalue——Master Nested Data Like Tensor
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.
MySQL——索引
Capture de paquets et tri du contenu externe - - autoresponder, composer, statistiques [3]
[vulnhub shooting range] impulse: lupinone
Experience summary of database storage selection
Rhcsa third day notes
Yyds dry goods inventory TCP & UDP
随机推荐
Haven't expressed the artifact yet? Valentine's Day is coming. Please send her a special gift~
不同业务场景该如何选择缓存的读写策略?
电子科技大学|强化学习中有效利用的聚类经验回放
Global and Chinese market of wall mounted kiosks 2022-2028: Research Report on technology, participants, trends, market size and share
技术管理进阶——如何在面试中考察候选人并增大入职概率
"Designer universe" APEC safety and health +: environmental protection Panda "xiaobaobao" Happy Valentine's Day 2022 | ChinaBrand | Asia Pacific Economic media
Leetcode daily question 540 A single element in an ordered array Valentine's Day special article looking for a single dog in a pile of lovers ~ the clown is myself
(5) User login - services and processes - History Du touch date stat CP
JS three families
Let me ask you a question. Have you ever used the asynchronous io of Flink SQL to associate dimension tables in MySQL? I set various settings according to the official website
Great gods, I want to send two broadcast streams: 1. Load basic data from MySQL and 2. Load changes in basic data from Kafka
The post-90s resigned and started a business, saying they would kill cloud database
Xai+ network security? Brandon University and others' latest "interpretable artificial intelligence in network security applications" overview, 33 page PDF describes its current situation, challenges,
Go learning notes (4) basic types and statements (3)
MySQL——索引
淺析 Ref-NeRF
Getting started with postman -- environment variables and global variables
MySQL——SQL注入问题
What should the future of the Internet be like when Silicon Valley employees flee the big factory and rush to Web3| Footprint Analytics
[gd32l233c-start] 5. FLASH read / write - use internal flash to store data