Skip to main content

realtime data sync agent for various data sources

Project description

Fustor Agent 服务

Fustor Agent 是一款轻量、可扩展的数据采集与推送工具。它负责监听数据源变更,并将其实时推送到 Fustor Fusion 服务。

安装

pip install fustor-agent
# 安装文件系统源驱动
pip install fustor-source-fs

配置指南 (agent-config.yaml)

Agent 的核心配置文件位于 ~/.fustor/agent-config.yaml。你需要定义 sources (数据源)、pushers (推送目标) 和 syncs (同步任务)。

1. 配置 Source (数据源)

以文件系统 (FS) 为例:

sources:
  - id: "my-local-files"       # 唯一 ID
    type: "fs"                 # 驱动类型
    config:
      uri: "/data/research"    # 监控的绝对路径
      driver_params:
        # 可选:文件过滤模式
        file_pattern: "*"      

2. 配置 Pusher (推送目标)

通常推送到 Fusion 服务:

pushers:
  - id: "to-fusion"            # 唯一 ID
    type: "fusion"             # 驱动类型
    config:
      # Fusion 服务的 Ingest API 地址
      endpoint: "http://localhost:8102/ingestor-api/v1/events"
      # 从 Registry 获取的 API Key,用于鉴权
      credential: "YOUR_API_KEY_HERE"

3. 配置 Sync (同步任务)

将 Source 和 Pusher 绑定:

syncs:
  - id: "sync-files-to-fusion"
    source_id: "my-local-files"
    pusher_id: "to-fusion"
    enabled: true              # 设置为 true 以自动启动

命令指南

  • 启动服务: fustor-agent start -D (后台运行) 或 fustor-agent start (前台运行)
  • 停止服务: fustor-agent stop
  • 查看状态: 访问 http://localhost:8100 查看 Web 控制台。

更多文档

  • 驱动开发: 详见 docs/driver_design.md

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fustor_agent-0.1.10.tar.gz (82.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fustor_agent-0.1.10-py3-none-any.whl (56.6 kB view details)

Uploaded Python 3

File details

Details for the file fustor_agent-0.1.10.tar.gz.

File metadata

  • Download URL: fustor_agent-0.1.10.tar.gz
  • Upload date:
  • Size: 82.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.14

File hashes

Hashes for fustor_agent-0.1.10.tar.gz
Algorithm Hash digest
SHA256 2ab98530a41442c2facf574d43adcdefac51e4e9427f6a5cdcd3b59a8c138c57
MD5 fd6d7bae8f25e1bef97eea477861d1e2
BLAKE2b-256 49325e8f8977f88c7551b1084499573bb3030dcfb159a6b5ac28547af61bdc19

See more details on using hashes here.

File details

Details for the file fustor_agent-0.1.10-py3-none-any.whl.

File metadata

File hashes

Hashes for fustor_agent-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 9dd2d4282a952b66b4876caa91c6bc118868b3a787ab71d2d84d11aa5ff358e7
MD5 62070fcaced1937ffa16156e7207a803
BLAKE2b-256 c68e7464f70660ac9c2bc90a9fa1fdb2a302dfaf0f0beb771eea58221e7780a9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page