# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: Locust
spec:
    description: |
        Locust is a Python-based load testing tool with a real-time web UI. Write test scenarios in plain Python, launch swarms of simulated users, and monitor results through interactive charts. Stateless single container, no external dependencies.
    coverImage: https://avatars.githubusercontent.com/u/16813513?s=200
    icon: https://avatars.githubusercontent.com/u/16813513?s=200
    variables:
        - key: PUBLIC_DOMAIN
          type: DOMAIN
          name: Domain
          description: The domain to access Locust web UI
    tags:
        - Tool
        - DevOps
    readme: |
        # Locust

        A modern, Python-based load testing framework. Define user behavior in plain Python code, launch thousands of simulated users, and watch real-time metrics through an interactive web dashboard.

        ## What You Can Do After Deployment

        1. **Visit your domain** -- the Locust web UI opens with no login required
        2. **Set target host** -- enter the URL of the service you want to load test
        3. **Configure users** -- set the number of simulated users and spawn rate
        4. **Start swarming** -- launch the test and monitor requests per second, response times, and failure rates in real time
        5. **Download results** -- export test data as CSV for further analysis

        ## Key Features

        - Write test scenarios in plain Python -- no XML or DSL
        - Real-time web UI with interactive charts
        - Requests per second, response time percentiles, and failure tracking
        - Supports HTTP, WebSocket, and any Python-accessible protocol
        - Lightweight and horizontally scalable
        - CSV export for test results
        - No volume needed -- fully stateless

        ## Default Locustfile

        This template starts with a minimal demo locustfile. Mount your own locustfile to `/mnt/locust/locustfile.py` or use the web UI to configure tests.

        ## License

        MIT -- [GitHub](https://github.com/locustio/locust) | [Website](https://locust.io)
    services:
        - name: locust
          icon: https://avatars.githubusercontent.com/u/16813513?s=200
          template: PREBUILT_V2
          spec:
            source:
                image: locustio/locust:2.43.3
            ports:
                - id: web
                  port: 8089
                  type: HTTP
            env:
                LOCUST_MODE:
                    default: standalone
                    expose: false
          domainKey: PUBLIC_DOMAIN
localization:
    es-ES:
        description: |
            Locust es una herramienta de pruebas de carga basada en Python con UI web en tiempo real. Escribe escenarios en Python puro, lanza usuarios simulados y monitorea resultados con graficos interactivos.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: Dominio
              description: El dominio para acceder a la interfaz web de Locust
        readme: |
            # Locust

            Framework moderno de pruebas de carga basado en Python. Define comportamiento de usuarios en Python, lanza miles de usuarios simulados y monitorea metricas en tiempo real.

            ## Despues del despliegue

            1. **Visita tu dominio** -- la UI web de Locust se abre de inmediato
            2. **Configura el host** -- ingresa la URL del servicio a probar
            3. **Configura usuarios** -- establece cantidad y tasa de creacion
            4. **Inicia la prueba** -- monitorea RPS, tiempos de respuesta y fallos
            5. **Descarga resultados** -- exporta datos como CSV

            ## Caracteristicas

            - Escenarios en Python puro
            - UI web en tiempo real con graficos interactivos
            - Sin estado, sin volumen necesario

            ## Licencia

            MIT -- [GitHub](https://github.com/locustio/locust)
    id-ID:
        description: |
            Locust adalah alat load testing berbasis Python dengan Web UI real-time. Tulis skenario tes dalam Python biasa, luncurkan pengguna simulasi, dan pantau hasil melalui grafik interaktif.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: Domain
              description: Domain untuk mengakses antarmuka web Locust
        readme: |
            # Locust

            Framework load testing modern berbasis Python. Definisikan perilaku pengguna dalam Python, luncurkan ribuan pengguna simulasi, dan pantau metrik secara real-time.

            ## Setelah deploy

            1. **Buka domain** -- Locust Web UI langsung terbuka
            2. **Atur target host** -- masukkan URL layanan yang akan diuji
            3. **Konfigurasi pengguna** -- atur jumlah dan kecepatan spawn
            4. **Mulai pengujian** -- pantau RPS, waktu respons, dan kegagalan
            5. **Unduh hasil** -- ekspor data sebagai CSV

            ## Fitur

            - Skenario tes dalam Python biasa
            - Web UI real-time dengan grafik interaktif
            - Stateless, tanpa volume

            ## Lisensi

            MIT -- [GitHub](https://github.com/locustio/locust)
    ja-JP:
        description: |
            LocustはPythonベースの負荷テストツールで、リアルタイムWeb UIを備えています。Pythonでテストシナリオを記述し、模擬ユーザーを起動してインタラクティブなチャートで結果を監視。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: ドメイン
              description: Locust Web UIにアクセスするためのドメイン
        readme: |
            # Locust

            PythonベースのモダンなロードテストフレームワークPythonでユーザー行動を定義し、数千の模擬ユーザーを起動してリアルタイムで監視。

            ## デプロイ後にできること

            1. **ドメインにアクセス** -- Locust Web UIがすぐに開きます
            2. **ターゲットホスト設定** -- テスト対象のURL を入力
            3. **ユーザー数設定** -- 模擬ユーザー数とスポーンレートを設定
            4. **テスト開始** -- RPS、レスポンス時間、失敗率をリアルタイム監視
            5. **結果ダウンロード** -- CSVでエクスポート

            ## 主な機能

            - Pythonでテストシナリオ記述
            - リアルタイムWeb UI
            - RPS・レスポンス時間追跡
            - ステートレス

            ## ライセンス

            MIT -- [GitHub](https://github.com/locustio/locust)
    ko-KR:
        description: |
            Locust는 실시간 Web UI를 갖춘 Python 기반 부하 테스트 도구입니다. 순수 Python으로 테스트 시나리오를 작성하고 시뮬레이션 사용자를 실행하여 인터랙티브 차트로 결과를 모니터링합니다.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 도메인
              description: Locust 웹 UI에 접속할 도메인
        readme: |
            # Locust

            Python 기반 현대적 부하 테스트 프레임워크. Python으로 사용자 행동을 정의하고 수천 명의 시뮬레이션 사용자를 실행하여 실시간으로 모니터링.

            ## 배포 후 할 수 있는 것

            1. **도메인 접속** -- Locust Web UI가 바로 열립니다
            2. **대상 호스트 설정** -- 테스트할 서비스 URL 입력
            3. **사용자 수 설정** -- 시뮬레이션 사용자 수와 스폰 속도 설정
            4. **테스트 시작** -- RPS, 응답 시간, 실패율을 실시간 모니터링
            5. **결과 다운로드** -- CSV로 내보내기

            ## 주요 기능

            - 순수 Python 테스트 시나리오
            - 실시간 Web UI와 인터랙티브 차트
            - 상태 없음, 볼륨 불필요

            ## 라이선스

            MIT -- [GitHub](https://github.com/locustio/locust)
    th-TH:
        description: |
            Locust คือเครื่องมือ load testing ที่ใช้ Python พร้อม Web UI แบบเรียลไทม์ เขียนสถานการณ์ทดสอบด้วย Python ปกติ ปล่อยผู้ใช้จำลอง และติดตามผลผ่านกราฟแบบโต้ตอบ
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: โดเมน
              description: โดเมนสำหรับเข้าถึง Locust Web UI
        readme: |
            # Locust

            Framework load testing สมัยใหม่ที่ใช้ Python กำหนดพฤติกรรมผู้ใช้ด้วย Python ปล่อยผู้ใช้จำลองนับพันและติดตาม metric แบบเรียลไทม์

            ## หลังจากติดตั้ง

            1. **เข้าสู่โดเมน** -- Locust Web UI เปิดทันที
            2. **ตั้งค่า target host** -- ใส่ URL ของบริการที่ต้องการทดสอบ
            3. **กำหนดจำนวนผู้ใช้** -- ตั้งจำนวนและอัตราการสร้าง
            4. **เริ่มทดสอบ** -- ติดตาม RPS, เวลาตอบสนอง และอัตราความล้มเหลว
            5. **ดาวน์โหลดผลลัพธ์** -- ส่งออกเป็น CSV

            ## ฟีเจอร์

            - สถานการณ์ทดสอบด้วย Python ปกติ
            - Web UI แบบเรียลไทม์พร้อมกราฟโต้ตอบ
            - Stateless ไม่ต้องการ volume

            ## สัญญาอนุญาต

            MIT -- [GitHub](https://github.com/locustio/locust)
    zh-CN:
        description: |
            Locust 是基于 Python 的负载测试工具，带有实时 Web UI。用纯 Python 编写测试场景，发起模拟用户群，通过交互图表监控结果。无状态单一容器。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 域名
              description: 访问 Locust 网页界面的域名
        readme: |
            # Locust

            现代化的 Python 负载测试框架。用纯 Python 定义用户行为，启动数千模拟用户，通过交互式仪表板实时查看指标。

            ## 部署后可以做什么

            1. **打开域名** -- Locust 网页界面立即打开
            2. **设置目标主机** -- 输入要测试的服务 URL
            3. **配置用户数** -- 设置模拟用户数量和生成速率
            4. **开始测试** -- 启动测试并实时监控 RPS、响应时间和失败率
            5. **下载结果** -- 导出 CSV 进一步分析

            ## 主要功能

            - 纯 Python 测试场景
            - 实时 Web UI 与交互图表
            - RPS、响应时间和失败追踪
            - 完全无状态

            ## 授权

            MIT -- [GitHub](https://github.com/locustio/locust)
    zh-TW:
        description: |
            Locust 是基於 Python 的負載測試工具，帶有即時網頁介面。用純 Python 撰寫測試情境，發起模擬使用者群，透過互動圖表監控結果。無狀態單一容器，無需外部依賴。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 網域
              description: 存取 Locust 網頁介面的網域
        readme: |
            # Locust

            現代化的 Python 負載測試框架。用純 Python 定義使用者行為，啟動數千個模擬使用者，透過互動式網頁儀表板即時觀看指標。

            ## 部署後可以做什麼

            1. **開啟網域** -- Locust 網頁介面立即開啟，無需登入
            2. **設定目標主機** -- 輸入要測試的服務 URL
            3. **設定使用者數** -- 設定模擬使用者數量和產生速率
            4. **開始測試** -- 啟動測試並即時監控 RPS、回應時間和失敗率
            5. **下載結果** -- 匯出 CSV 進行進一步分析

            ## 主要功能

            - 用純 Python 撰寫測試情境
            - 即時網頁介面與互動圖表
            - RPS、回應時間百分位和失敗追蹤
            - 支援 HTTP、WebSocket 等協定
            - 無需磁碟區，完全無狀態

            ## 授權

            MIT -- [GitHub](https://github.com/locustio/locust)
