MCPcopy Create free account
hub / github.com/GreptimeTeam/gtctl

github.com/GreptimeTeam/gtctl @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
294 symbols 1,064 edges 61 files 103 documented · 35% updated 2mo agov0.1.0-beta.11 · 2024-07-09★ 3721 open issues

Browse by type

Functions 231 Types & classes 63
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

gtctl

Overview

gtctl is a command-line tool for managing GreptimeDB cluster. gtctl integrates the multiple operations in one binary.

Getting Started

Prerequisites

  • Kubernetes 1.18 or higher version is required

You can use kind to create your own Kubernetes cluster:

$ kind create cluster

Usage

  • Create GreptimeDB cluster

$ gtctl create cluster -n mydb

  • Get GreptimeDB cluster

$ gtctl get cluster -n mydb

  • Scale GreptimeDB cluster

``` # Scale datanode to 3 replicas. $ gtctl scale cluster -n mydb -c datanode --replicas 3

# Scale frontend to 5 replicas. $ gtctl scale cluster -n mydb -c frontend --replicas 5 ```

  • Delete GreptimeDB cluster

``` # Delete GreptimeDB cluster. $ gtctl delete cluster -n mydb

# Delete GreptimeDB cluster, including etcd cluster. $ gtctl delete cluster -n mydb --tear-down-etcd ```

Development

Just make it:

$ make

Extension points exported contracts — how you extend this code

browse all types & interfaces →

Core symbols most depended-on inside this repo

browse all functions →

Shape

Method 137
Function 94
Struct 49
Interface 6
FuncType 5
TypeAlias 3

Languages

Go100%

Modules by API surface

pkg/logger/logger.go30 symbols
pkg/artifacts/manager.go23 symbols
pkg/metadata/manager.go18 symbols
pkg/kube/client.go17 symbols
pkg/cluster/types.go17 symbols
pkg/utils/file/file.go9 symbols
pkg/config/baremetal.go9 symbols
pkg/cluster/baremetal/cluster.go9 symbols
pkg/helm/loader.go8 symbols
pkg/components/types.go7 symbols
pkg/helm/values.go6 symbols
pkg/components/metasrv.go6 symbols

For agents

$ claude mcp add gtctl \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page