Skip to main content

Clickzetta 系统技能工具集 - 包含性能分析、诊断等专业工具

Project description

Clickzetta Skills

Clickzetta 系统技能工具集 - 包含性能分析、诊断等专业工具的 Python 包。

包含的技能

1. Job Performance Analyzer (作业性能分析器)

自动诊断 Clickzetta Job 性能问题的工具,分析执行计划(plan.json)和运行概况(job_profile.json),识别瓶颈并给出参数优化建议。

命令: cz-analyze-job

支持场景:

  • 增量计算(REFRESH)
  • AP模式
  • GP模式
  • Compaction
  • 各类SQL场景

已实现规则:

  • Stage/Operator 级别优化 (7条规则)
  • 状态表优化 (6条规则)

安装

使用 Makefile(推荐)

# 进入项目目录
cd job-performance-analyzer

# 安装
make install

# 开发模式安装(可编辑)
make install-dev

# 卸载
make uninstall

手动安装

# 构建
python3 -m build

# 安装
pip3 install dist/clickzetta_skills-*.whl

使用

Job Performance Analyzer

# 分析性能问题
cz-analyze-job plan.json job_profile.json ./output

# 查看帮助
cz-analyze-job

开发

添加新技能

  1. cz_skills/ 下创建新的技能目录
  2. 实现技能逻辑
  3. pyproject.toml[project.scripts] 中添加命令入口
  4. cz_skills/__init__.pyAVAILABLE_SKILLS 中注册

示例结构:

cz_skills/
├── __init__.py
├── job_performance_analyzer/
│   ├── __init__.py
│   ├── __main__.py
│   └── ...
└── your_new_skill/
    ├── __init__.py
    ├── __main__.py
    └── ...

运行测试

make test

构建发布

# 构建
make build

# 上传到 PyPI(需要配置 twine)
make upload

许可证

Apache-2.0

作者

Clickzetta Team

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

clickzetta_skills-1.0.1.tar.gz (28.3 kB view details)

Uploaded Source

Built Distribution

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

clickzetta_skills-1.0.1-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file clickzetta_skills-1.0.1.tar.gz.

File metadata

  • Download URL: clickzetta_skills-1.0.1.tar.gz
  • Upload date:
  • Size: 28.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for clickzetta_skills-1.0.1.tar.gz
Algorithm Hash digest
SHA256 f792c89f1925233634992773d95ed246bf3d1fc93d11382e688d1c5bc67edca8
MD5 149bb96bf4c44dc3366bdca00cdde88b
BLAKE2b-256 b1a3502cbb47a5db3f699d22ae5f0c5f35065bd93bf41cd9f7297d06a18b049a

See more details on using hashes here.

File details

Details for the file clickzetta_skills-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for clickzetta_skills-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 90396aaa64347968ff74d3009dd35afc71f1b80a75f09fa5a6e4f1e0e97519ec
MD5 83a5f57c10bcc79fe2fc530643ad2cdb
BLAKE2b-256 c23a86895751a9f0fff0523028a07a0e73fbc9166cc2b243a386e4cdb306e5b2

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