Crossbar start with multiprocessor support

#1

With python asyncio, how can I get crossbar server start 4 workers for my application? This has not been provided in online doc.

0 Likes

#2

Watching it eagerly :slight_smile: If multicore support pushed in for Crossbar with Websocket/Python/Asyncio (or even twisted) implementation.
Currently I am in ping-pong state, running between [gevent-socketio] <–> [autobahn/crossbar/python] <–> [Nodejs-SocketIO] <–> [JVM based solutions/Vert.x] for a MUC chat and Notification server.

Python would be my priority as I don’t have to learn from ground-up (in case of NodeJS).

But I am searching for multi-process (multi-core) parallel solution at least if not multi-node.

Why? For deployment, I have machine with 16-cores, 16-GB RAM. In case of single event-loop, all other core will be waste.

···

On Thursday, November 27, 2014 4:32:19 PM UTC+5:30, Ravi Kumar wrote:

With python asyncio, how can I get crossbar server start 4 workers for my application? This has not been provided in online doc.

0 Likes

#3

Watching it eagerly :slight_smile: If *_multicore_* support pushed in for Crossbar
with *Websocket/Python/Asyncio* (or even twisted) implementation.
Currently I am in ping-pong state, running between [*gevent-socketio*]
<--> [*autobahn/crossbar/python*] <--> [*Nodejs-SocketIO*] <--> [*JVM
based solutions/Vert.x*] for a MUC chat and Notification server.
Python would be my priority as I don't have to learn from ground-up (in
case of NodeJS).
But I am searching for /multi-process (multi-core) parallel solution/ at
least if not multi-node.
Why? For deployment, I have machine with 16-cores, 16-GB RAM. In case of
single event-loop, all other core will be waste.

You can already make use of multiple cores with Crossbar.io by running multiple app components each in a worker process (native container or guest).

Cheers,
/Tobias

···

Am 28.11.2014 19:18, schrieb Ravi Kumar:

On Thursday, November 27, 2014 4:32:19 PM UTC+5:30, Ravi Kumar wrote:

    With python asyncio, how can I get crossbar server start 4 workers
    for my application? This has not been provided in online doc.

--
You received this message because you are subscribed to the Google
Groups "Autobahn" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to autobahnws+...@googlegroups.com
<mailto:autobahnws+...@googlegroups.com>.
To post to this group, send email to autob...@googlegroups.com
<mailto:autob...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/autobahnws/e2e845b0-0637-47f7-9ed5-6485b89a04f9%40googlegroups.com
<https://groups.google.com/d/msgid/autobahnws/e2e845b0-0637-47f7-9ed5-6485b89a04f9%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

0 Likes

#4

Thanks Tobias,
Let me try and check with a test project. Is there any example or link demonstrating it.

···

On Saturday, November 29, 2014 4:34:57 AM UTC+5:30, Tobias Oberstein wrote:

Am 28.11.2014 19:18, schrieb Ravi Kumar:

Watching it eagerly :slight_smile: If multicore support pushed in for Crossbar

with Websocket/Python/Asyncio (or even twisted) implementation.

Currently I am in ping-pong state, running between [gevent-socketio]

<–> [autobahn/crossbar/python] <–> [Nodejs-SocketIO] <–> [*JVM

based solutions/Vert.x*] for a MUC chat and Notification server.

Python would be my priority as I don’t have to learn from ground-up (in

case of NodeJS).

But I am searching for /multi-process (multi-core) parallel solution/ at

least if not multi-node.

Why? For deployment, I have machine with 16-cores, 16-GB RAM. In case of

single event-loop, all other core will be waste.

You can already make use of multiple cores with Crossbar.io by running
multiple app components each in a worker process (native container or
guest).

Cheers,

/Tobias

On Thursday, November 27, 2014 4:32:19 PM UTC+5:30, Ravi Kumar wrote:

With python asyncio, how can I get crossbar server start 4 workers
for my application? This has not been provided in online doc.

You received this message because you are subscribed to the Google

Groups “Autobahn” group.

To unsubscribe from this group and stop receiving emails from it, send

an email to autobahnws+...@googlegroups.com

mailto:autobahnws+unsub...@googlegroups.com.

To post to this group, send email to auto...@googlegroups.com

mailto:autob...@googlegroups.com.

To view this discussion on the web visit

https://groups.google.com/d/msgid/autobahnws/e2e845b0-0637-47f7-9ed5-6485b89a04f9%40googlegroups.com

<https://groups.google.com/d/msgid/autobahnws/e2e845b0-0637-47f7-9ed5-6485b89a04f9%40googlegroups.com?utm_medium=email&utm_source=footer>.

For more options, visit https://groups.google.com/d/optout.

0 Likes

#5

In the Crossbar.io config, the “workers” attribute is a list. Just configure multiple workers of type “guest” or “container” therein …

···

Sent from Mobile (Google Nexus 5)

Am 29.11.2014 02:08 schrieb “Ravi Kumar” ra2...@gmail.com:

Thanks Tobias,
Let me try and check with a test project. Is there any example or link demonstrating it.

On Saturday, November 29, 2014 4:34:57 AM UTC+5:30, Tobias Oberstein wrote:

Am 28.11.2014 19:18, schrieb Ravi Kumar:

Watching it eagerly :slight_smile: If multicore support pushed in for Crossbar

with Websocket/Python/Asyncio (or even twisted) implementation.

Currently I am in ping-pong state, running between [gevent-socketio]

<–> [autobahn/crossbar/python] <–> [Nodejs-SocketIO] <–> [*JVM

based solutions/Vert.x*] for a MUC chat and Notification server.

Python would be my priority as I don’t have to learn from ground-up (in

case of NodeJS).

But I am searching for /multi-process (multi-core) parallel solution/ at

least if not multi-node.

Why? For deployment, I have machine with 16-cores, 16-GB RAM. In case of

single event-loop, all other core will be waste.

You can already make use of multiple cores with Crossbar.io by running
multiple app components each in a worker process (native container or
guest).

Cheers,

/Tobias

On Thursday, November 27, 2014 4:32:19 PM UTC+5:30, Ravi Kumar wrote:

With python asyncio, how can I get crossbar server start 4 workers
for my application? This has not been provided in online doc.

You received this message because you are subscribed to the Google

Groups “Autobahn” group.

To unsubscribe from this group and stop receiving emails from it, send

an email to autobahnws+...@googlegroups.com

mailto:autobahnws+unsub...@googlegroups.com.

To post to this group, send email to auto...@googlegroups.com

mailto:autob...@googlegroups.com.

To view this discussion on the web visit

https://groups.google.com/d/msgid/autobahnws/e2e845b0-0637-47f7-9ed5-6485b89a04f9%40googlegroups.com

<https://groups.google.com/d/msgid/autobahnws/e2e845b0-0637-47f7-9ed5-6485b89a04f9%40googlegroups.com?utm_medium=email&utm_source=footer>.

For more options, visit https://groups.google.com/d/optout.

You received this message because you are subscribed to the Google Groups “Autobahn” group.

To unsubscribe from this group and stop receiving emails from it, send an email to autobahnws+...@googlegroups.com.

To post to this group, send email to autob...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/autobahnws/68169337-398c-4db8-9f88-1628e5f341a0%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

0 Likes