<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Python on 黄文卓 | DevOps Engineer</title><link>https://socake.github.io/tags/python/</link><description>Recent content in Python on 黄文卓 | DevOps Engineer</description><generator>Hugo -- gohugo.io</generator><language>zh-CN</language><managingEditor>17691281867@163.com (Wenzhuo Huang)</managingEditor><webMaster>17691281867@163.com (Wenzhuo Huang)</webMaster><copyright>© 2026 Wenzhuo Huang</copyright><lastBuildDate>Sun, 12 Apr 2026 14:00:00 +0800</lastBuildDate><atom:link href="https://socake.github.io/tags/python/index.xml" rel="self" type="application/rss+xml"/><item><title>Linux 火焰图实战：从采集到定位问题</title><link>https://socake.github.io/posts/linux-flame-graph-practice/</link><pubDate>Sun, 12 Apr 2026 14:00:00 +0800</pubDate><author>17691281867@163.com (Wenzhuo Huang)</author><guid>https://socake.github.io/posts/linux-flame-graph-practice/</guid><description>CPU 飙高、响应慢、内存泄漏——这三类问题用火焰图都能快速定位。本文从怎么读火焰图开始，讲到 perf、async-profiler、py-spy 各自的适用场景，最后用一个真实的 Go 服务案例走完完整排查流程。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://socake.github.io/posts/linux-flame-graph-practice/featured.jpg"/></item><item><title>AutoGen 多 Agent 协作实战：从 Group Chat 到生产落地</title><link>https://socake.github.io/posts/autogen-multi-agent-practice/</link><pubDate>Mon, 06 Apr 2026 11:30:00 +0800</pubDate><author>17691281867@163.com (Wenzhuo Huang)</author><guid>https://socake.github.io/posts/autogen-multi-agent-practice/</guid><description>AutoGen 把多 Agent 协作从玩具推向生产。本文讲清它的核心抽象 (Conversable Agent / Group Chat / 工具调用)，以及从 demo 到生产要处理的那些事。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://socake.github.io/posts/autogen-multi-agent-practice/featured.jpg"/></item><item><title>Ray Serve 模型部署实战：Deployment、DAG 编排与弹性伸缩</title><link>https://socake.github.io/posts/ray-serve-model-deployment/</link><pubDate>Sun, 29 Mar 2026 10:45:00 +0800</pubDate><author>17691281867@163.com (Wenzhuo Huang)</author><guid>https://socake.github.io/posts/ray-serve-model-deployment/</guid><description>Ray Serve 是被很多团队忽视的模型服务框架。它在复杂 DAG、异构资源、弹性伸缩上的表现远超单纯的 FastAPI。本文讲清它的核心抽象和生产落地。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://socake.github.io/posts/ray-serve-model-deployment/featured.jpg"/></item><item><title>Python 操作 Kubernetes：kubernetes-client 实战</title><link>https://socake.github.io/docs/languages/python/python%E6%93%8D%E4%BD%9Ckubernetes/</link><pubDate>Tue, 09 Dec 2025 10:00:00 +0800</pubDate><author>17691281867@163.com (Wenzhuo Huang)</author><guid>https://socake.github.io/docs/languages/python/python%E6%93%8D%E4%BD%9Ckubernetes/</guid><description>系统介绍 Python kubernetes-client 的核心用法，从集群认证到资源操作，最终构建一个完整的 K8s 巡检脚本</description></item><item><title>Python 基础速查（运维向）</title><link>https://socake.github.io/docs/languages/python/python%E5%9F%BA%E7%A1%80%E9%80%9F%E6%9F%A5/</link><pubDate>Tue, 09 Dec 2025 10:00:00 +0800</pubDate><author>17691281867@163.com (Wenzhuo Huang)</author><guid>https://socake.github.io/docs/languages/python/python%E5%9F%BA%E7%A1%80%E9%80%9F%E6%9F%A5/</guid><description>运维工程师必备的 Python 基础知识速查，从变量类型到标准库，聚焦实际使用场景</description></item><item><title>Python 网络编程与 HTTP 请求</title><link>https://socake.github.io/docs/languages/python/python%E7%BD%91%E7%BB%9C%E4%B8%8Ehttp/</link><pubDate>Tue, 09 Dec 2025 10:00:00 +0800</pubDate><author>17691281867@163.com (Wenzhuo Huang)</author><guid>https://socake.github.io/docs/languages/python/python%E7%BD%91%E7%BB%9C%E4%B8%8Ehttp/</guid><description>从 requests 基础到 httpx 异步，再到并发健康检查脚本，覆盖运维工程师日常 HTTP 操作场景</description></item><item><title>Python 系统与文件操作实战</title><link>https://socake.github.io/docs/languages/python/python%E7%B3%BB%E7%BB%9F%E6%93%8D%E4%BD%9C/</link><pubDate>Tue, 09 Dec 2025 10:00:00 +0800</pubDate><author>17691281867@163.com (Wenzhuo Huang)</author><guid>https://socake.github.io/docs/languages/python/python%E7%B3%BB%E7%BB%9F%E6%93%8D%E4%BD%9C/</guid><description>深入讲解 Python 系统操作，含 subprocess 进程管理、psutil 系统监控，以及一个完整的生产级日志清理脚本</description></item><item><title>Python 自动化运维脚本实战</title><link>https://socake.github.io/docs/languages/python/python%E8%87%AA%E5%8A%A8%E5%8C%96%E8%84%9A%E6%9C%AC/</link><pubDate>Tue, 09 Dec 2025 10:00:00 +0800</pubDate><author>17691281867@163.com (Wenzhuo Huang)</author><guid>https://socake.github.io/docs/languages/python/python%E8%87%AA%E5%8A%A8%E5%8C%96%E8%84%9A%E6%9C%AC/</guid><description>系统化讲解 Python 自动化运维脚本的标准结构，包含命令行解析、日志、配置、告警和并发执行的完整最佳实践</description></item><item><title>阿里云 SDK 运维自动化：ECS/ACK/RDS 资源管理与巡检脚本</title><link>https://socake.github.io/posts/aliyun-sdk-ops/</link><pubDate>Thu, 04 Dec 2025 12:56:00 +0800</pubDate><author>17691281867@163.com (Wenzhuo Huang)</author><guid>https://socake.github.io/posts/aliyun-sdk-ops/</guid><description>用阿里云 Python SDK 实现 ECS 实例查询与监控、ACK 节点状态检查、RDS 慢查询巡检，整合成 HTML 格式巡检报告自动推送钉钉。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://socake.github.io/posts/aliyun-sdk-ops/featured.jpg"/></item><item><title>Milvus 向量数据库实战：从部署到生产应用</title><link>https://socake.github.io/posts/milvus-vector-database-practice/</link><pubDate>Thu, 06 Nov 2025 09:52:00 +0800</pubDate><author>17691281867@163.com (Wenzhuo Huang)</author><guid>https://socake.github.io/posts/milvus-vector-database-practice/</guid><description>覆盖向量数据库选型对比（Milvus/Qdrant/Weaviate/pgvector）、Milvus Standalone与Cluster部署、Collection Schema设计、HNSW/IVF_FLAT索引调优、混合搜索实战，以及生产环境常见问题处理。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://socake.github.io/posts/milvus-vector-database-practice/featured.jpg"/></item><item><title>Python 操作 Elasticsearch：从索引管理到复杂聚合查询</title><link>https://socake.github.io/posts/python-elasticsearch-client/</link><pubDate>Tue, 04 Nov 2025 12:27:00 +0800</pubDate><author>17691281867@163.com (Wenzhuo Huang)</author><guid>https://socake.github.io/posts/python-elasticsearch-client/</guid><description>从客户端初始化到批量操作、scroll 查询、聚合统计，一篇文章搞定 Python 操作 Elasticsearch 的高频场景。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://socake.github.io/posts/python-elasticsearch-client/featured.jpg"/></item><item><title>Python 定时任务工程化：APScheduler 与 Celery Beat 实战对比</title><link>https://socake.github.io/posts/python-scheduled-tasks/</link><pubDate>Sat, 01 Nov 2025 11:26:00 +0800</pubDate><author>17691281867@163.com (Wenzhuo Huang)</author><guid>https://socake.github.io/posts/python-scheduled-tasks/</guid><description>APScheduler 和 Celery Beat 是 Python 定时任务的两大主流方案。本文从使用场景出发，对比两者的架构差异、适用边界，并介绍 K8s CronJob 作为第三条路的价值，帮你在项目里选对工具。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://socake.github.io/posts/python-scheduled-tasks/featured.jpg"/></item><item><title>Celery 异步任务详解：任务队列、重试策略与分布式部署</title><link>https://socake.github.io/posts/celery-async-tasks/</link><pubDate>Tue, 22 Apr 2025 09:44:00 +0800</pubDate><author>17691281867@163.com (Wenzhuo Huang)</author><guid>https://socake.github.io/posts/celery-async-tasks/</guid><description>从 Celery 架构到 K8s 部署，覆盖任务定义、重试策略、队列路由、Beat 定时任务和 Flower 监控，附完整的生产部署配置。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://socake.github.io/posts/celery-async-tasks/featured.jpg"/></item><item><title>Alertmanager Webhook 开发：自定义告警处理与 API 集成</title><link>https://socake.github.io/posts/alertmanager-webhook-api/</link><pubDate>Tue, 25 Mar 2025 09:52:00 +0800</pubDate><author>17691281867@163.com (Wenzhuo Huang)</author><guid>https://socake.github.io/posts/alertmanager-webhook-api/</guid><description>Alertmanager 内置的通知渠道不支持钉钉、飞书等国内工具，Webhook 是扩展告警通知的标准方式。本文用 Python Flask 实现完整的 Webhook 接收器，涵盖消息格式化、降噪去重、Alertmanager API 集成和 K8s 部署。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://socake.github.io/posts/alertmanager-webhook-api/featured.jpg"/></item><item><title>Python 对接 Prometheus：查询监控数据与告警状态自动化</title><link>https://socake.github.io/posts/python-prometheus-monitoring/</link><pubDate>Mon, 25 Nov 2024 11:44:00 +0800</pubDate><author>17691281867@163.com (Wenzhuo Huang)</author><guid>https://socake.github.io/posts/python-prometheus-monitoring/</guid><description>用 Python 直接调 Prometheus HTTP API，实现服务存活巡检、可用率日报生成，最后接入钉钉每日自动推送集群健康摘要。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://socake.github.io/posts/python-prometheus-monitoring/featured.jpg"/></item><item><title>Python 异步编程实战：asyncio 在 AI 应用中的使用</title><link>https://socake.github.io/posts/python-async-programming/</link><pubDate>Fri, 22 Nov 2024 12:44:00 +0800</pubDate><author>17691281867@163.com (Wenzhuo Huang)</author><guid>https://socake.github.io/posts/python-async-programming/</guid><description>AI 应用天然是 I/O 密集型的：等 LLM 响应、等向量数据库检索、等多个工具调用返回。同步写法在这里是性能杀手。这篇文章从 event loop 原理讲到实际的 AI 应用模式，重点是 asyncio.gather 并发调用、SSE 流式输出处理和常见陷阱排查。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://socake.github.io/posts/python-async-programming/featured.jpg"/></item><item><title>Python 自动化运维：从脚本到完整工具的工程化实践</title><link>https://socake.github.io/posts/python-devops-automation/</link><pubDate>Tue, 12 Nov 2024 11:01:00 +0800</pubDate><author>17691281867@163.com (Wenzhuo Huang)</author><guid>https://socake.github.io/posts/python-devops-automation/</guid><description>系统梳理 Python 运维自动化的工程化方法：boto3 操作 AWS 资源、Kubernetes Python SDK 使用、Click/Typer CLI 框架选型、数据库批量运维脚本、钉钉 Webhook 集成，以及类型注解与错误处理的实践经验。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://socake.github.io/posts/python-devops-automation/featured.jpg"/></item></channel></rss>