0 Star 0 Fork 0

public-artifacts/ecmws-experiments

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

OpenAI Gym enviroment simulating apps deployed to a cloud environment

Parameters

The environment has two parameters (set an environment variables):

  • CLOUDSIM_GATEWAY_HOST which defaults to cloudsimplus-gateway
  • CLOUDSIM_GATEWAY_PORT which defaults 25333

Testing

In the manual_testsdirectory you can find three test scripts:

  • test_connect.py - connects to the gateway directory and tries to tries to add/remove virtual machines
  • test_finish.py - connects to the gateway directly and runs the simulation scenario until its end
  • test_run_env.py - a smoke test which connects to the gateway through the Open AI Gym, performs 5 steps and stops

For testing it is usually a good idea to redirect the environment to a local gateway server by:

export CLOUDSIM_GATEWAY_HOST=localhost

Developing

  • pip install -e . will install the package in dev mode and all its dependencies

Deploying

We are working on getting the package to public PyPI repos. In the meantime you can install the package with:

pip install -e git+https://github.com/pkoperek/gym_cloudsimplus#egg=gym_cloudsimplus
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/public-artifacts/ecmws-experiments.git
git@gitee.com:public-artifacts/ecmws-experiments.git
public-artifacts
ecmws-experiments
ecmws-experiments
main

搜索帮助