| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A light-weight 'private cloud solution' for SMEs, it can bring huge help and commercial value to start-up companies.
面向中小型企业的轻量级私有云平台, 可快速生成各种虚拟机环境, 为产品兼容性验证和自动化测试提供高效的基础环境.
make install
export PATH=~/.cargo/bin:$PATH注意
镜像文件一定不能存放在'/tmp'或其子目录下, 会导致无法扫描到镜像信息(ttserver 的'/tmp'路径私有的, 与外界环境互相隔离).
# Slave Server 1
ttserver \
--image-path /tmp/images \
--cpu-total 2 \
--mem-total $[4 * 1024 * 1024] \
--disk-total $[40 * 1024 * 1024] \
--serv-addr 127.0.0.1 \
--serv-port 20000
# Slave Server 2
ttserver \
--image-path /tmp/images \
--cpu-total 2 \
--mem-total $[4 * 1024 * 1024] \
--disk-total $[40 * 1024 * 1024] \
--serv-addr 127.0.0.1 \
--serv-port 20001
# Proxy, 分布式代理服务, 负责调度各 Slave Server 的资源
ttproxy \
--proxy-addr 127.0.0.1:20002 \
--server-set 127.0.0.1:20000,127.0.0.1:20001Tips
# 配置服务端地址,
# 既可以是 Proxy 的地址,
# 也可以是各个独立的 Slave Server 地址,
# 这里配置成 Proxy 的地址, 以演示分布式架构的调度效果
tt config --serv-addr 127.0.0.1 --serv-port 20002
# 查看客户端本地信息
tt status
# 查看服务端资源信息
tt status --server
# 创建一个 "ENV",
# TT 中的基本管理单位为 ENV (一组 VM 的集合),
# 创建的 VM 类别是以系统前缀匹配的, 不区分大小写,
# 如:
# - cent 会匹配到所有 CentOS 系统
# - ubuntu2004 只会匹配到 Ubuntu2004 一个系统
tt env add TEST --os-prefix=cent,ubuntu2004
# 查看已创建的 ENV 列表
tt env list
# 查看已创建的某个 ENV 的详情
tt env show TEST
# 在 ENV 的所有 VM 上执行相同的命令
tt env run TEST --use-ssh --cmd 'ls /'
# 删除 ENV,
# 其中所有的 VM 及其相关数据都会被清理
tt env del TEST# 在 Rust 开发环境下执行 make doc
| Back | FazBrowse Home | New Git URL |