From b3b2c82918dd34ce3ed789192ba03d6d974ca724 Mon Sep 17 00:00:00 2001 From: Urban Guacamole Date: Wed, 16 Jan 2019 15:07:06 +0100 Subject: [PATCH] Tune the spider --- spider/deploy.sh | 3 ++- spider/spider.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/spider/deploy.sh b/spider/deploy.sh index a546459..779afc5 100755 --- a/spider/deploy.sh +++ b/spider/deploy.sh @@ -1,3 +1,4 @@ go build +ssh user@server systemctl stop spider scp ./spider user@server:/home/nextgen/ -ssh user@server systemctl restart spider \ No newline at end of file +ssh user@server systemctl start spider \ No newline at end of file diff --git a/spider/spider.go b/spider/spider.go index e7c77d0..3500ab9 100644 --- a/spider/spider.go +++ b/spider/spider.go @@ -25,7 +25,7 @@ func main() { db := initDb() - w := dht.NewWire(65536, 1024, 256) + w := dht.NewWire(65536, 2048, 512) go handleResponses(w, db) go w.Run()