agent-module-architecture

Architect BK-CI Agent build machine modules for startup, heartbeat, task dispatch, and worker lifecycle.

2.5k|521|Updated May 29, 2019
One-click install
npx skills add https://github.com/TencentBlueKing/bk-ci --skill agent-module-architecture
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agent-module-architecture
Source: https://github.com/TencentBlueKing/bk-ci/tree/main/ai/skills/agent-module-architecture
Command: npx skills add https://github.com/TencentBlueKing/bk-ci --skill agent-module-architecture

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides guidance to design and implement the Agent build machine module of BK-CI, covering startup flow, heartbeat, task dispatch, worker lifecycle, upgrades, and data collection.

Core Features & Use Cases

  • Go-based Agent module architecture
  • Daemon and Agent lifecycle management
  • Task scheduling via Dispatch, worker orchestration, and upgrade workflow
  • Heartbeat reporting and environment information collection
  • Cross-platform considerations and module boundaries

Quick Start

Follow this guide to implement or modify the Agent module lifecycle and interactions with BK-CI.

Frequently Asked Questions about agent-module-architecture

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I architect BK-CI Agent modules in Go for build machine lifecycle management?

Architecting BK-CI Agent modules in Go involves designing components for startup flow, heartbeat reporting, task dispatch, worker lifecycle, and upgrade workflows. The architecture covers Daemon coordination and integration with Dispatch for real-world deployment scenarios.

How does the BK-CI Agent heartbeat and task dispatch mechanism work?

The heartbeat and task dispatch mechanism works by having the Agent report environment information and status to the BK-CI server, while the Dispatch service schedules and orchestrates tasks to workers. This modular decomposition ensures clear API interaction patterns for task execution.

Can I use Go to manage BK-CI Agent worker lifecycle and upgrade pipelines?

Yes, you can use Go to manage BK-CI Agent worker lifecycle and upgrade pipelines. The architecture supports Daemon and Agent lifecycle management, orchestrating worker processes and defining safety considerations for upgrading pipelines in production environments.

What is the best way to integrate Telegraf metrics collection with a BK-CI Agent?

The best way to integrate Telegraf metrics collection is by defining clear module boundaries within the Go-based Agent architecture. This approach streamlines data collection and environment information reporting while maintaining cross-platform compatibility during deployment.

What are the safety considerations for upgrading BK-CI Agent pipelines?

Safety considerations for upgrading BK-CI Agent pipelines include defining clear module boundaries, ensuring safe Daemon coordination during worker lifecycle transitions, and maintaining API interaction patterns. Cross-platform considerations are also covered to ensure stable upgrade workflows.

Related Skills