Skip to content
This repository has been archived by the owner on Apr 9, 2023. It is now read-only.
/ SandboxTool Public archive

A tool to improve work efficiency and easier to handle K8S pods

Notifications You must be signed in to change notification settings

linxs953/SandboxTool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sandbox tool

Install

git clone [email protected]:linqinbo/sandboxtool.git
cd sandboxtool
go build  -o rtctl .
chmod u+x rtctl
cp rtctl /usr/local/bin

支持的命令

rtctl debug  [envirment] [unionid]
rtctl start [unionid] --it=true -v=1
rtctl start [puid] [storage_id] --puid=true --it=true
rtctl recycle [puid] --puid=true
rtctl recycle  --ep={sandbox_endpoint} --token={sandbox_token}
rtctl restart [unionid] --it=true -v=1
rtctl restart [puid] --it=true --puid=true
rtctl sdb --url='wss_url' --alive=true
rtctl sdb --ep="sanbox_endpoint" -t="sandbox_token"

参数含义

  • start: 启动一个沙盒
    • version参数表示采用哪种方式获取沙盒,比如 1 表示用这个地址entry/sandboxes/{sandboxid}请求沙盒,2 表示用这个地址entry/sandbox/{pool_name}请求沙盒
    • it参数表示启动沙盒之后是否创建ws与沙盒通讯
  • recycle:回收一个沙盒
  • restart:强制重启一个沙盒
    • version语义与start相同,-v=1表示用这个entry/sandboxes/{sandboxid}?force=1重启,-v=2表示用这个``entry/sandbox/{pool_name}?force=1重启
  • debug: debug一个用户,根据[environment]跳转到指定的环境,[environment]可以为test或者prod
  • sdb: 沙盒调试桥,支持epurl两种方式, alive表示是否不断开连接,值为true或者false

About

A tool to improve work efficiency and easier to handle K8S pods

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages