Using memcached

This commit is contained in:
Zaid Abdulla committed 2012-10-15 22:22:37 +03:00
1 parent e016d5cc5f
commit 6f445bf3b9
3 files changed
+64 -48

No files matched your search

+2 -4
View File
@@ -53,8 +53,6 @@ if cluster.isMaster
console.log('worker ' + worker.process.pid + ' died')
)
else
workerid = Math.floor(Math.random() * 1000)
for i in [1 .. 1000]
sendRequest("device" + String(workerid) + String(i), TEMPLATE_TASKID, 0)
for i in [1 .. 100]
sendRequest("device#{cluster.worker.id}-#{i}", TEMPLATE_TASKID, 0)