Skip to content

feat: add gorse-cli for cluster management#1248

Open
zhangzhenghao wants to merge 1 commit intogorse-io:masterfrom
zhangzhenghao:add-gorse-cli
Open

feat: add gorse-cli for cluster management#1248
zhangzhenghao wants to merge 1 commit intogorse-io:masterfrom
zhangzhenghao:add-gorse-cli

Conversation

@zhangzhenghao
Copy link
Copy Markdown
Contributor

Summary

Add a new CLI tool gorse-cli for interacting with Gorse admin API. This is separate from gorse-bench which handles benchmark operations.

Commands

Command Description
get cluster Get cluster nodes from Gorse admin API
get tasks Get task progress from Gorse admin API
get config Get configuration from Gorse admin API
set config [key=value]... Set configuration values in Gorse admin API

Configuration

Environment variables:

  • GORSE_ADMIN_ENDPOINT: Admin API endpoint URL
  • GORSE_ADMIN_API_KEY: Admin API key for authentication

Or use flags:

  • --endpoint: Override endpoint
  • --api-key: Override API key

Example Usage

# Get cluster nodes
export GORSE_ADMIN_ENDPOINT=http://localhost:8087
export GORSE_ADMIN_API_KEY=your-api-key
gorse-cli get cluster

# Get task progress
gorse-cli get tasks

# Get configuration
gorse-cli get config

# Set configuration values
gorse-cli set config recommend.cache_size=1000
gorse-cli set config recommend.cache_size=1000 recommend.item_ttl=72h

Related

Add a new CLI tool for interacting with Gorse admin API, separate from gorse-bench.

Commands:
- get cluster: Get cluster nodes from Gorse admin API
- get tasks: Get task progress from Gorse admin API
- get config: Get configuration from Gorse admin API
- set config: Set configuration values in Gorse admin API

Environment variables:
- GORSE_ADMIN_ENDPOINT: Admin API endpoint URL
- GORSE_ADMIN_API_KEY: Admin API key for authentication

Example usage:
  gorse-cli get cluster
  gorse-cli get tasks
  gorse-cli get config
  gorse-cli set config recommend.cache_size=1000
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 19, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.00%. Comparing base (2241300) to head (eb05caa).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1248      +/-   ##
==========================================
- Coverage   73.01%   73.00%   -0.02%     
==========================================
  Files          91       91              
  Lines       16694    16694              
==========================================
- Hits        12189    12187       -2     
- Misses       3262     3263       +1     
- Partials     1243     1244       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants