You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running PM2 with 3 cores on a Node Proxy, and 3 cores on a Node App. The proxy takes the incoming request and throws it at either the Node app or Apache, depending on the URL.
This works fine until we hit high traffic. On the server I get the following error:
[proxy-6 (err)] Trace: Error
[proxy-6 (err)] at ProxyServer.<anonymous> (/var/www/node/proxy.js:44:10)
[proxy-6 (err)] at ProxyServer.emit (/var/www/node/node_modules/http-proxy/node_modules/eventemitter3/index.js:98:27)
[proxy-6 (err)] at ClientRequest.proxyError (/var/www/node/node_modules/http-proxy/lib/http-proxy/passes/web-incoming.js:140:16)
[proxy-6 (err)] at ClientRequest.emit (events.js:117:20)
[proxy-6 (err)] at Socket.socketCloseListener (http.js:1522:9)
[proxy-6 (err)] at Socket.emit (events.js:95:17)
[proxy-6 (err)] at TCP.close (net.js:465:12)
[proxy-6 (err)] Error processing: /apache-redirect.php
[proxy-6 (err)] { [Error: socket hang up] code: 'ECONNRESET' }
On my local machine running Apache Bench with thousands of concurrent requests I get:
Error processing: /node_url
{ [Error: connect ECONNREFUSED]
code: 'ECONNREFUSED',
errno: 'ECONNREFUSED',
syscall: 'connect' }
Trace: Error
at ProxyServer.<anonymous> (C:\Users\site\proxy.js:45:13)
at ProxyServer.emit (C:\Users\site\node_modules\http-proxy\node_modules\eventemitter3\index.js:98:27)
at ClientRequest.proxyError (C:\Users\site\node_modules\http-proxy\lib\http-proxy\passes\web-incoming.js:140:16)
at ClientRequest.emit (events.js:117:20)
at Socket.socketErrorListener (http.js:1547:9)
at Socket.emit (events.js:95:17)
at net.js:440:14
at process._tickCallback (node.js:419:13)
Also when I run benchmarks against the Node app itself (skipping the proxy), I do not hit any errors.
Any ideas on what is causing this? 95%+ of the requests work fine.
The text was updated successfully, but these errors were encountered:
I'm running PM2 with 3 cores on a Node Proxy, and 3 cores on a Node App. The proxy takes the incoming request and throws it at either the Node app or Apache, depending on the URL.
This works fine until we hit high traffic. On the server I get the following error:
On my local machine running Apache Bench with thousands of concurrent requests I get:
Also when I run benchmarks against the Node app itself (skipping the proxy), I do not hit any errors.
Any ideas on what is causing this? 95%+ of the requests work fine.
The text was updated successfully, but these errors were encountered: