More info https://wiki.jenkins-ci.org/display/JENKINS/Making+your+plugin+behave+in+distributed+Jenkins
On Thursday, December 29, 2016 at 10:24:12 PM UTC+8, Ted Xiao wrote: > > just serialize and deserialize, it is one-way only, check out > https://github.com/jenkinsci/remoting/blob/master/src/main/java/hudson/remoting/UserRequest.java > If you want data shared among slaves, check out > http://jgroups.org/javadoc4/org/jgroups/blocks/PartitionedHashMap.html > > On Thursday, December 29, 2016 at 8:55:51 AM UTC+8, Doug DesCombaz wrote: >> >> I'm trying to find some documentation of how Jenkins shares information >> between master and slaves. I'm not necessarily interested in the channels, >> or mechanisms, but the guarantees (wishes) on how the memory would be >> distributed (I am also interested in the channels, and mechanisms, but >> that's another question). >> >> So, I know (or rather I think I know) there are two connections, a >> bi-directional tcp, and a bi-directional of standard io passed through the >> ssh connection. This is what I keep finding when asking the question, but >> it's not quite the answer that I am interested in. So, I will ask w/ an >> example: >> >> In master I have a map of data ([ somekey: "some value"]). I make this >> data available to a closure that I am passing to slave executors slave-a, >> and slave-b. If slave-b modifies this map (or it's local copy of it), 1) is >> the change reflected in the master?, 2) is the change reflected on the >> other slave-a?, 3) If yes, what are the guarantees (or (un)documented >> behaviors) here? >> >> I don't know, but I suspect that my self-defined objects are not >> synchronized throughout the "cluster" (especially since Jenkins distances >> itself from being considered a cluster). Is that true? I wonder however if >> properties defined in "env" are (simply because it's a data structure under >> their control)? >> >> Anyway, if you are able to answer any of those, maybe you can describe >> how it's being done too just to satisfy my curiosity. >> >> >> >> >> -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/e82314e2-b483-405d-a076-975ff2ced16a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
