Yes, I guess it is the best way to use multiple instances.
The architecture might become complex though.
Just an idea, I am wondering if we could use "multiprocessing" module...
Yes I am referring to the first statement "multi-thread on Python is not effective enough"...
Please let me give another example to make my question more clear
Lets say the routing algorithm wants to update the paths on switch S1, S2, S3. One way is to update all the switches at time 0 (in parallel), and the other way is to update s1 at time 0, s2 at time 1, and s3 at time 3 (serial).
Because of GIL in python a thread has to finish its task before moving to another thread; with this in mind I believe using threads will update the switches in serial; because the first thread has to finish installing the rules on s1, then it moves to the next thread to install the rules on s2 and so on....
So my question is in Ryu what mechanism I can use to update s1, s2, s3 at time 0 (in one go)?
I hope my question is more clear now.
Thank you all for your time,
Corry
Hi,
Post by corey rossHey there,
I was wondering if it is possible to install multiple flows in parallel, if yes how?
for e.g if I have a topology of three switches (s1, s2, s3), I want to install flow-rules f1 on s1, f2 on s2 and f3 on s3. How can I install this three flow rules in parallel instead of doing so in serial fashion?
I have searched around and It seems that using threads is not an effective way.
Please let me make your question more clear.
What does "in parallel" and "in serial" exactly mean?
You mean; you currently uses multi-thread (using "ryu.lib.hub" or "eventlet"),
but some post you read says "multi-thread on Python is not effective enough",
right?
If so, are you facing the performance limit, for example?
Or, you want to get "Datapath" instance for s2 and s3, when you get event from
s1?
Thanks,
Iwase
Post by corey ross------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
https://lists.sourceforge.net/lists/listinfo/ryu-devel <https://lists.sourceforge.net/lists/listinfo/ryu-devel> <https://lists.sourceforge.net/lists/listinfo/ryu-devel <https://lists.sourceforge.net/lists/listinfo/ryu-devel>>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
https://lists.sourceforge.net/lists/listinfo/ryu-devel <https://lists.sourceforge.net/lists/listinfo/ryu-devel> <https://lists.sourceforge.net/lists/listinfo/ryu-devel <https://lists.sourceforge.net/lists/listinfo/ryu-devel>>
--
Yi Tseng (a.k.a Takeshi)
Taiwan National Chiao Tung University
Department of Computer Science
W2CNLab
https://takeshi.tw
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
https://lists.sourceforge.net/lists/listinfo/ryu-devel <https://lists.sourceforge.net/lists/listinfo/ryu-devel>