Archived
This forum has been archived. Please start a new discussion on GitHub.
Publish to IceStorm with multiple thread
I'm testing the throughout of publish with icestorm and to maximum the network usage, I tried to use multiple threads to publish messages.
So I add this to my publisher config:
Ice.ThreadPool.Client.Size=256 Ice.ThreadPool.Client.SizeMax=256 I also use async method to publish, e.g. begin_xxx()
I use one way delivery mode:
Ice.ObjectPrx publisher = topic.getPublisher().ice_oneway(); The result is that I only see one connection to icestorm publish port.
I wonder if I can have multiple connections for publishing?
Thanks,
Craig
So I add this to my publisher config:
Ice.ThreadPool.Client.Size=256 Ice.ThreadPool.Client.SizeMax=256 I also use async method to publish, e.g. begin_xxx()
I use one way delivery mode:
Ice.ObjectPrx publisher = topic.getPublisher().ice_oneway(); The result is that I only see one connection to icestorm publish port.
I wonder if I can have multiple connections for publishing?
Thanks,
Craig
0
Comments
-
Hi,
You can use the the proxy ice_connectionId method to create multiple connections. See https://doc.zeroc.com/display/Ice36/Connection+Establishment#ConnectionEstablishment-ids for more information.
Cheers,
Benoit.0 -
Thanks a lot! it works with ice_connectionId()!0