惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

aimingoo的专栏
aimingoo的专栏
The Last Watchdog
The Last Watchdog
Project Zero
Project Zero
T
Threatpost
T
The Blog of Author Tim Ferriss
云风的 BLOG
云风的 BLOG
N
Netflix TechBlog - Medium
B
Blog
The GitHub Blog
The GitHub Blog
F
Full Disclosure
MyScale Blog
MyScale Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Y
Y Combinator Blog
GbyAI
GbyAI
Recent Announcements
Recent Announcements
MongoDB | Blog
MongoDB | Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
D
Docker
NISL@THU
NISL@THU
爱范儿
爱范儿
Spread Privacy
Spread Privacy
F
Fortinet All Blogs
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
博客园 - 叶小钗
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Hacker News - Newest:
Hacker News - Newest: "LLM"
Simon Willison's Weblog
Simon Willison's Weblog
S
Security @ Cisco Blogs
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
PCI Perspectives
PCI Perspectives
V
V2EX
人人都是产品经理
人人都是产品经理
W
WeLiveSecurity
IT之家
IT之家
P
Proofpoint News Feed
Engineering at Meta
Engineering at Meta
博客园_首页
Forbes - Security
Forbes - Security
Cloudbric
Cloudbric
有赞技术团队
有赞技术团队
Application and Cybersecurity Blog
Application and Cybersecurity Blog
B
Blog RSS Feed
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
P
Palo Alto Networks Blog
The Register - Security
The Register - Security
Google DeepMind News
Google DeepMind News
Hacker News: Ask HN
Hacker News: Ask HN
腾讯CDC
T
Threat Research - Cisco Blogs
Cyberwarzone
Cyberwarzone

博客园 - GDOUJKZZ

.net 8程序如何在信创的arm64架构下运行【nuget包如何判断能不能在arm架构跑呢】 【AI】第五篇 大话说神经网络第一篇 docker 目录下的overlay2层的太多,导致占用大量占用磁盘空间怎么办呢。【docker目录清理】 【AI】第四篇 什么是神经网络 【AI】第三篇 RAG是什么 【AI】前置篇 Ai Agent的全貌概览 【AI】第二篇 为什么会有神经网络 【AI】第一篇 语言模型的前世 n-gram的简单介绍 【一】AI赋能 javascript里面的var let const关键字区别和使用 学习心态 从应用开发转到大数据开发 一分钟RequireJS介绍 .NET 6 在小并发下如何生成唯一单据号 垃圾回收机制简单理解 NPOI导出大量数据的避免OOM解决方案【SXSSFWorkbook】 递归有环问题解决方案 C# 使用NPOI处理Excel模板-【前面部分固定,中间是动态的几行,尾部是固定的部分】 高并发的场景下,如何保证生产者投递到消息中间件的消息不丢失
【AI应用】【声纹识别】一、mini io 来构建高可用的文件存储方案
GDOUJKZZ · 2026-01-22 · via 博客园 - GDOUJKZZ

  今天甲方这边提了一个需求,希望把很多的录音文件(里面是噪声),交给AI识别来分析到底是什么类型的声音,从而进行自动的溯源。

      那么先解决甲方的文件存储的问题,录音文件很多,一年下来50T左右。考虑到大部分文件除了给AI学习使用之后,业务上一般也就访问最近一到两个月的数据。

      所以考虑采用Mini IO双层存储的方案

     image

      Mini IO 自迁移策略

# lifecycle_migration.py
import boto3
from datetime import datetime, timedelta
from minio import Minio
from minio.lifecycleconfig import LifecycleConfig, Rule, Expiration, Filter

class StorageManager:
    def __init__(self):
        # 连接两个MinIO实例
        self.hot_client = Minio(
            "hot-minio:9000",
            access_key="hot-access-key",
            secret_key="hot-secret-key",
            secure=False
        )
        self.cold_client = Minio(
            "cold-minio:9000",
            access_key="cold-access-key",
            secret_key="cold-secret-key",
            secure=False
        )
    
    def auto_migrate_old_files(self):
        """自动迁移30天前的文件到冷存储"""
        # 1. 扫描热存储中30天前的文件
        objects = self.hot_client.list_objects("recordings", recursive=True)
        
        for obj in objects:
            if self.is_older_than(obj.last_modified, days=30):
                # 2. 复制到冷存储
                self.copy_to_cold_storage(obj.object_name)
                
                # 3. 从热存储删除(或设置标记)
                self.hot_client.remove_object("recordings", obj.object_name)
                
                print(f"Migrated: {obj.object_name}")

  还要集成AI分析的功能。

       AI的声纹识别后面再讲