No description, website, or topics provided.
Clone or download
Latest commit 63a28a3 Mar 24, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Godeps add godep & fix Interval Mar 24, 2017
backend init Aug 5, 2016
cron add godep & fix Interval Mar 24, 2017
g fix(config.go) Oct 11, 2016
utils set default respcode Aug 19, 2016
vendor add godep & fix Interval Mar 24, 2017
.gitignore init Aug 5, 2016
README.md init Aug 5, 2016
cfg.example.json init Aug 5, 2016
control init Aug 5, 2016
main.go init Aug 5, 2016

README.md

urlooker-agent

agent会定时从web组件获取待监控url列表,发起模拟访问,然后将访问结果回报给web组件

Installation

# set $GOPATH and $GOROOT
mkdir -p $GOPATH/src/github.com/urlooker
cd $GOPATH/src/github.com/urlooker
git clone https://github.com/URLooker/agent.git
cd agent
go get ./...
./control build
./control start

Configuration


{
    "debug": false,
    "hostname": "hostname.1", #hostname.1 和 web组件配置文件中monitorMap的值对应
    "worker": 1000, # 同时访问url的并发数
    "web": {
        "addrs": ["127.0.0.1:1985"],
        "interval": 60,
        "timeout": 1000
    }
}