Tagged Questions
0
votes
0answers
20 views
Node.js multi-server cluster: how to share object in several nodes cluster
I want to create a cluster of node.js server in order to support many concurrency simultaneously, for a chat rooms applications. The servers hold information that needs to be shared between all nodes, ...
0
votes
1answer
27 views
SocketIO on a Node.js cluster
I have a standalone Node.js app which has SocketIO server that listens on a certain port, e.g. 8888. Now I am trying to run this app in a cluster and because cluster randomly assigns workers to ...
0
votes
1answer
26 views
nodejs using cluster.setupMaster, send an object as argv
I've have just dived into NodeJS and I'm reading on taking advantage of all CPU's cores and spawning the process among all the available resources.
It seems like a pretty interesting topic, and I'm ...
1
vote
0answers
67 views
Node js 0.10.7: cluster support for udp dgram?
I'm trying to run following node js application as mentioned https://github.com/joyent/node/issues/2194
var util = require("util"),
dgram = require("dgram"),
cluster = require('cluster');
var ...
0
votes
0answers
18 views
how can I switch redis server in socketio store where redis server down?
I have made a redis server cluster, but when the redis server go down, the client of socketio store programe exit, how can I switch to another server of cluster for socketio store when redis server ...
0
votes
1answer
38 views
How to make a nodejs with socketio cluster?
I write a chat app with nodejs, express and socketio.
It support some chat in one room, and support multiple rooms,
And I hold the client data in memory, such as there is global
variable rooms, and i ...
0
votes
0answers
61 views
how to implement multiprocessing concept in nodeJs on compoundJs ?
hi my application have following combination of technology. In that compoundJs is my framework, nodejs is my server script to access data in MongoDb through API. In that i have to implement ...
0
votes
0answers
205 views
NodeJS cluster master worker communication issue
So I am having an issue with node cluster
I am running Arch linux 32bit VM. And I am testing in both Windows 64Bit and Arch linux.
var nb = require("./nb.js");
function __MAIN__() {
...
2
votes
2answers
116 views
what is the right way to start multiple node instances on a multi core server? [closed]
I have a nodejs app that i want to run on a multi core (2CPU * 2Cores = 4Cores) server. After reading thru a bunch of SO threads on this topic, I have decided to start 4 separate node instances on 4 ...
1
vote
0answers
71 views
node.js live data clustering
I'm using a database and could load the data every request from the database, but it would be too slow maybe. So my idea was to hold data live on the server (as servers usually do). This idea works ...
0
votes
1answer
74 views
node.js cluster module + unix sockets
I'm trying to use node's built in cluster module and, when using ports, everything works just fine. However, when attempting to use unix sockets instead thing's don't work out so well:
error: Error: ...
0
votes
0answers
161 views
is node.js server.listen( unix-socket-path ) shared when using clusters?
I have a nodeJS application using the cluster module and socket.io. Some socket.io events need to be passed to a unix-socket. Forked processes DO NOT share resources, but there is only one server ...
1
vote
1answer
421 views
nodejs cluster - keep client session on one worker
Is it possible to change strategy of assigning worker to request on nodejs cluster?
I mean on first client access select worker and later keep client on this worker by session id.
I'm using memory ...
1
vote
1answer
145 views
socket.io + redis - ghost sockets - is it possible?
I've made an app with node.js, socket.io, clusters, redis and it run in 8 processes.
Is it possible that each process has a some ghost-sockets? I mean sockets which has already disconnected but not ...
0
votes
1answer
232 views
Node.js chat app and clusters
I'd like to make chatroulette app with node.js and: socket.io, cluster - modules/plugins.
So I have master-cluster who just create a few sub-clusters.
Now, each sub-cluster has socket.io connection ...