Low worker performance ?
Hi, I made a simple test code to test the performance of gearman. I'm not sure if I have down right. Please give me some advise.
I'm using jmater, config is:
Number of threads = 200
Ramp-Up Period=20
Loop Count=forever
The problem is:
When jmater threads is running in little time, soon comes more than 80,000 jobs in queue and increase rapidly.
Is that mean the workers is so low performance ? Because so simple a job takes relatively a lot time to be done.
Maybe this is not a good usage or my conclusion is wrong or something ?
The test code is below:
Server with client code (a https server using node.js with gearmanode):
//=============
var https = require('https');
var fs = require('fs');
var express = require('express');
var options = {
key: fs.readFileSync
cert: fs.readFileSync
};
var gearmanode = require(
var client = gearmanode.
gearmanode.
var count = 0;
var app = express()
.use(
var job = client.
})
.use(function (err, req, res, next) {
});
https.createSer
.listen(3000);
//=============
Worker code (using node.js with gearmanode too):
//=============
var gearmanode = require(
var worker = gearmanode.
gearmanode.
worker.
var data = job.payload;
console.
job.
}, {toStringEncoding: 'utf8'});
//=============
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- Gearman Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: