colyseus / proxy

🔀⚔ Proxy and Service Discovery for Colyseus 0.10 ~ 0.14 (Not recommended on 0.15+)
https://docs.colyseus.io/scalability/
MIT License
37 stars 25 forks source link

stress-test failed #20

Closed lyh1091106900 closed 2 years ago

lyh1091106900 commented 2 years ago

I run pm2-example Project use pm2 , my ecosystem.config.js below:

module.exports = { apps : [ { name : 'colyseus-app', script : './lib', watch : false, instances : 3, exec_mode : 'fork', port : 8080, env: { NODE_ENV: 'development', DEBUG: 'colyseus:errors,colyseus:matchmaking' }, }, { name: 'proxy', script: './node_modules/@colyseus/proxy/bin/proxy', instances: 1, // os.cpus().length, exec_mode: 'fork', port : 80, env: { PORT: 80, // Required options: REDIS_URL: process.env.REDIS_URL, } }], };

and I think there is nothin wrong,I got message when I use pm2,

│ 1 │ colyseus-app │ fork │ 3 │ online │ 0% │ 75.4mb │ │ 2 │ colyseus-app │ fork │ 3 │ online │ 0% │ 75.0mb │ │ 3 │ colyseus-app │ fork │ 3 │ online │ 0% │ 51.8mb │ │ 0 │ proxy │ fork │ 11 │ online │ 0% │ 38.3mb `

but when I run ts-node tress-test.ts,I got Error :UnhandledPromiseRejectionWarning: Error: Service Unavailable. I didn't change the file.

lyh1091106900 commented 2 years ago

I failed to launch redis