Skip to content
Snippets Groups Projects
Commit 06535a37 authored by syuilo's avatar syuilo
Browse files

キューのメモリ使用量を削減

parent 3f6c6c5b
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@ const queue = createQueue({
export function createHttp(data) {
return queue
.create('http', data)
.attempts(16)
.attempts(8)
.backoff({ delay: 16384, type: 'exponential' });
}
......@@ -24,7 +24,7 @@ export function deliver(user, content, to) {
user,
content,
to
}).save();
}).removeOnComplete(true).save();
}
export default function() {
......@@ -36,5 +36,6 @@ export default function() {
Network.http.max-connections - MozillaZine Knowledge Base
http://kb.mozillazine.org/Network.http.max-connections
*/
queue.process('http', 256, http);
//queue.process('http', 256, http);
queue.process('http', 128, http);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment