|
Re: bug in JGStore: msg#00051java.jetty.general
Davide Rossi wrote: Jules Gosnell wrote: No - I'm pretty sure that it does not. It could : a) compare two objects by memory location and if they were the same object, not replicate - but then how would the app indicate, within the bounds of the spec, that it had changed something within the object, by reference, and wanted replication to occur ? - your scenario. Furthermore, the app is able to make this test itself. b) compare the two objects by value - either using equals() or by serialising them into buffers and comparing those. Depending on how large/complex the objects were, this could be very expensive and completely unecessary 100% of the time, if the application was being sensible about its use of setAttribute(). A more flexible DSM - WADI perhaps? - might provide these options, or perhaps a development time test that could be disabled in production - your thoughts here are welcome. Oh, since we're at it: what's the relation (if any) between clusters as defined by JBoss and subclusters as defined by JGStore? We're trying to compare different replication options with J2EE (DSM, SFSBs, etc...) so we have to set up an environment in which all the various clustering options can live happily together. As I recall. none. JGStore's use of jgroups is orthogonal to JBoss' use of the same library. With the benefit of hindsight, I now see that it is important that related state in all tiers is partitioned in the same way, but without better integrations between the various state-holding containers, allowing e.g. an SFSB to be tracked back to and associated with e.g. an HttpSession, this is difficult. This is a discussion that I have had with David Blevins and other members of the Geronimo/OpenEJB effort.... is your code open source ? WADI can relocate requests to the node holding their session (currently disabled in cvs), This part of WADI is still embryonic. I have implemented a pluggable TopologyManager interface. A TopologyManager has a chance, when a node joins or leaves a cluster, to reorganise the nodes of that cluster into Cells. A Cell contains 1-N Nodes - it is effectively a super-Node. Each session will be associated with and replicated to a Cell. Its own host Node should not be a member of that Cell. This is a kind of multi-host session affinity. mod_jk uses the jvmRoute attribute that is appended to the session cookie, but how can you play with this trick with multiple "affine hosts"? I don't. The session is only in one place at one time. If, using modjk, a request arrives on say node2 with a session id, say of 1234.node1, the session 1234 will be sourced from its current location (node1?) or reanimated from store or a replicant and migrated to node2, then the response has its session cookie updated to reflect the new location - i.e. it becomes 1234.node2. I may do a redirect - I can't remember... Of course there are possible solutions but it all become harder if you think that the replicas to use for a new session should be chosen with some advanced load balancing strategy. WADI has a pluggable LoadBalancer integration strategy, but any integration is considered an optimisation, it is important that WADI should work properly with any lb that supports affinity. We do not have the luxury of dictating the lb in places that we are likely to be deployed.
no - more likely an expensive h/w lb that company X has payed a lot of money for and are not going to want to replace with a ServletFilter !
Sounds like we all have a lot in common :-) We will have to have a beer together sometime. Jules
-- /********************************** * Jules Gosnell * Partner * Core Developers Network (Europe) * * www.coredevelopers.net * * Open Source Training & Support. **********************************/ ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | unable to add web application, Tahura Chaudhry |
|---|---|
| Next by Date: | Re: unable to add web application, Jan Bartel |
| Previous by Thread: | Re: bug in JGStore, Jules Gosnell |
| Next by Thread: | unable to add web application, Tahura Chaudhry |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |