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

推荐订阅源

WordPress大学
WordPress大学
O
OpenAI News
Y
Y Combinator Blog
MyScale Blog
MyScale Blog
C
Check Point Blog
Vercel News
Vercel News
小众软件
小众软件
The Register - Security
The Register - Security
N
News and Events Feed by Topic
腾讯CDC
S
SegmentFault 最新的问题
H
Heimdal Security Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
S
Secure Thoughts
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Schneier on Security
Schneier on Security
G
GRAHAM CLULEY
云风的 BLOG
云风的 BLOG
S
Schneier on Security
J
Java Code Geeks
L
LINUX DO - 最新话题
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
P
Privacy & Cybersecurity Law Blog
Forbes - Security
Forbes - Security
Cisco Talos Blog
Cisco Talos Blog
L
LINUX DO - 热门话题
Scott Helme
Scott Helme
爱范儿
爱范儿
GbyAI
GbyAI
Simon Willison's Weblog
Simon Willison's Weblog
L
Lohrmann on Cybersecurity
Cloudbric
Cloudbric
W
WeLiveSecurity
The Hacker News
The Hacker News
V
V2EX
Last Week in AI
Last Week in AI
Hacker News: Ask HN
Hacker News: Ask HN
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Blog — PlanetScale
Blog — PlanetScale
Cyberwarzone
Cyberwarzone
Google Online Security Blog
Google Online Security Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
S
Security @ Cisco Blogs
P
Proofpoint News Feed
Google DeepMind News
Google DeepMind News
C
Cyber Attacks, Cyber Crime and Cyber Security
U
Unit 42
Webroot Blog
Webroot Blog
Martin Fowler
Martin Fowler
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed

博客园 - 荣锋亮

基于litserve 以及RapidOCR扩展一个liteparse ocr 服务 apache/fluss 面向实时分析以及ai 的流存储引擎 谷歌的knowledge-catalog agentcompanies agent skills 扩展协议 mirage 面向agent的通用虚拟文件系统 supabase/supavisor 多租户pg 连接池工具 docs-mcp-server 开源context7 替代 mcp-lite 轻量级开发mcp 的框架 repomix 打包代码项目为ai 友好的文件工具 zerofs csi 驱动 zerofs 支持通过client sdk 进行访问了 zerofs 2.0 发布了 zerofs 支持ha 模式了 spiceai 面向ai 的sql查询优化引擎 agno的Conversational Workflows just-git 纯js 的git 实现 阿里开源的UnifiedModel agno agentos interfaces 简单说明 agno agentos ag-ui 协议 agno agentos 暴露a2a 协议 agno gateway模式 agno 多agent 框架集成能力 agno agentos 简单说明 agno workflow 模式简单说明 agno team agent 简单说明 agno remote agent 简单说明 agno agent 使用 agno agent 平台 sshpiper 简单试用 sshpiper ssh 的反向代理服务 context-propagation spring reactor 的上下文传递包 nginx 发布1.31.2 了 reductstore 的一些部署模式 reductstore 数据写入模式 reductstore bridge 方便reductstore数据bridge 扩展 reductstore zenoh 集成 zenoh 1.9.x 一些新特性 ladybugdb嵌入式图数据库 BlockHound 检测 reactor阻塞调用的agent reductstore 高性能面向机器人以及IOT场景的存储以及流数据基石 zerofs 一些新功能 java nats request-many 支持的一些模式 java nats RequestMany context7 面向llm 以及ai代码编辑器的依赖包更新平台 NATS Agents Protocol nats 团队提出的agent 通信协议 metamcp mcp聚合&调度工具 llama-agents 的server 服务 mcp-proxy 桥接streamable http 以及stdio mcp 的工具 GhidraMCP Ghidra 的mcp服务 mcpcute 聚合mcp的工具 agent-tool-protocol 与mcp的集成 llama-agents 执行流程图查看 llama-agents 的异常处理 通过dbos 解决llama-agents workflow 持久执行问题 llama-agents workflow 持久化运行的一些玩法 llama-agents 状态管理 llama-agents stream events 处理 zerofs v1.1.1 aarch64 支持16k-64k page llama-agents step执行的一些模式 llmaindex workflows-py 变更为了llama-agents agent-tool-protocol 代码优先的agent tool 协议 ZeroFS 1.1.0 发布 chicory 原生jvm webassembly runtime quickjs4j 包含的几个模块 quickjs4j java 中安全运行js 的沙箱 supergateway 将stdio server 暴露为sse服务的ai gateway nats-server 2.14.0 发布 nuitka python 模块转so 模块 - 荣锋亮 llama-agents 的resource对象 turndown html 转markdown npm包 @langchain/node-vfs 简单试用
通过keepalived解决zerofs 文件服务ha 问题
荣锋亮 · 2026-07-09 · via 博客园 - 荣锋亮

默认zerofs 只能启动一个实例(早期版本),多实例是有问题的,但是日常中我们可能需要ha 的场景,keepalived是一个很不错的选择,以下是一个集成玩法

参考玩法

image

简单说明: 通过keepalived 的vrrp 实vip 的处理,同时利用在节点的lb 组件实现s3服务的负载均衡,对于默认zerofs 在master 中运行,backup 不运行,当master服务异常,或者停止了,backup 会启动zerofs,同时当keepalived 服务停止的时候部署的zerofs 也应该停止,上边的提到的问题,可以通过keepalived 的notify hook 能力解决,同时注意notify_stop 可能不生效(比较靠谱的解决方法是通过ssytemd 的ExecStopPost 确保当keepalived 服务停止了,zerofs服务也应该正常停止)

参考配置

  • keepalived

master

 global_defs {
   notification_email {
     acassen@firewall.loc
     failover@firewall.loc
     sysadmin@firewall.loc
   }
   enable_script_security
   script_user root
   notification_email_from Alexandre.Cassen@firewall.loc
   smtp_server 192.168.200.1
   smtp_connect_timeout 30
   router_id LVS_DEVEL_dalong
}

vrrp_instance VI_1 {
    state MASTER
    interface eth0
    virtual_router_id 83
    priority 150
    advert_int 1
    authentication {
        auth_type PASS
        auth_pass 1111
    }
    virtual_ipaddress {
        192.168.31.200
    }
    notify_master /opt/notify/app_master.sh
    notify_backup /opt/notify/app_backup.sh
    notify_stop /opt/notify/app_stop.sh
}

backup

global_defs {
   notification_email {
     acassen@firewall.loc
     failover@firewall.loc
     sysadmin@firewall.loc
   }
   enable_script_security
   script_user root
   notification_email_from Alexandre.Cassen@firewall.loc
   smtp_server 192.168.200.1
   smtp_connect_timeout 30
   router_id LVS_DEVEL_dalong
}

vrrp_instance VI_1 {
    state BACKUP
    interface eth0
    virtual_router_id 83
    priority 100
    advert_int 1
    authentication {
        auth_type PASS
        auth_pass 1111
    }
    virtual_ipaddress {
      192.168.31.200
    }
    notify_master /opt/notify/app_master.sh
    notify_backup /opt/notify/app_backup.sh
    notify_stop /opt/notify/app_stop.sh
}

app_master.sh

#!/bin/bash
sleep 2
echo "master" > /opt/notify/state.txt
systemctl  restart zerofs.service

app_backup.sh

#!/bin/bash
echo "backup" > /opt/notify/state.txt
systemctl  stop zerofs.service

app_stop.sh

#!/bin/bash
echo "stop" > /opt/notify/state.txt
systemctl  stop zerofs.service

systemd 修改,添加了post 命令,方便可以停止依赖服务

[Unit]
Description=Keepalive Daemon (LVS and VRRP)
After=network-online.target
Wants=network-online.target
# Only start if there is a configuration file
ConditionFileNotEmpty=/etc/keepalived/keepalived.conf

[Service]
Type=simple
# Read configuration variable file if it is present
EnvironmentFile=-/etc/default/keepalived
ExecStart=/usr/sbin/keepalived --dont-fork $DAEMON_ARGS
ExecReload=/bin/kill -HUP $MAINPID
ExecStopPost=/opt/notify/app_stop.sh
[Install]
WantedBy=multi-user.target

说明

以上更多是一个实际的实践,通过一个中间件解决zerofs 单实例ha 问题,机制上并不难,但是通过工具集成起来可以方便的解决实际问题

参考资料

https://www.keepalived.org/manpage.html

https://www.zerofs.net/nfs-access