sc-go

module
v0.0.0-...-6252159 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2023 License: MIT

README

SC-GO

simulator of cluster based on Golang

run and build

  1. prepare the google trace data

  2. modify the config.json , set the data path

  • serverMode : make the program work as server , let other program use the program by grpc
  • dataPath : where is the google trace data
  • cachePath where the program store the cache (it's maybe a little big)
{
    "serverMode" : true ,
    "dataPath":"/media/lin/kioxia960/traceData",
    "cachePath":"/media/lin/kioxia960/cache"
}
  1. run or build
  • run for test :
./dev.sh
  • build :
./build.sh
  • docker build :
./docker_build.sh

then the simulator will listen at the port 50051 for serving

usage

python :

./py/scgo4py is the library for py

./py/scgo_test.py is a simple example

developer mannual

please see ./doc/dev.md

Directories

Path Synopsis
//定义了集群内发生事件的各种事件类型
//定义了集群内发生事件的各种事件类型
the Schduler_Main only work when the program is not in the ServerMode If the Program run as the server ,this file can't be ommited
the Schduler_Main only work when the program is not in the ServerMode If the Program run as the server ,this file can't be ommited

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL