Skip to content

korewayume/DemoFlagsServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DemoFlagsServer

forked from fluentpython/example-code

部署方式

  • 需要启动docker服务,并且安装docker-compose工具
git clone https://github.com/korewayume/DemoFlagsServer.git
cd DemoFlagsServer/containers
unzip flags.zip
docker-compose up -d

部署完成会启动三个容器 Nginx Vaurien-DELAY Vaurien-ERROR

测试方式

test_scripts/flags2_common.py代码中的vmware替换为docker daemon宿主机的hostname或者ip

SERVERS = {
    'REMOTE': 'http://flupy.org/data/flags',
    'LOCAL':  'http://vmware:8001/flags',
    'DELAY':  'http://vmware:8002/flags',
    'ERROR':  'http://vmware:8003/flags',
}
python3 test_scripts/flags2_threadpool.py -s LOCAL 
python3 test_scripts/flags2_threadpool.py -s DELAY 
python3 test_scripts/flags2_threadpool.py -s ERROR 
  • 需要当前路径下存在downloads目录

About

测试网络IO的服务端

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published