Mnesia remote read behaviour ?

Dan Gudmundsson dgud@REDACTED
Wed Jan 7 10:37:59 CET 2004


Nigel.Head@REDACTED writes:
 > What I am hoping for is to find out that that remote reads might be sent to
 > other nodes on the same host in preference to creating external network traffic
 > .... or if this isn't the case by default how I might organise that it happen
 > that way?
 > 
 > Additionally, choosing a ram or disc copy over a disc_only copy would be nice
 > .....
 > 
 > BTW: I've been plunging around the mnesia source but I can't seem to find the
 > right place to figure this for myself so a pointer into the source would help
 > reduce the level of future dumb queries :-)
 > 
 > Thanks,
 > Nigel.
 > 

It picks the first node from a list :-) 
And it prefers nodes which are ram_copies or disc_copies.

The specific code is here: 
mnesia_lib:set_remote_where_to_read/2

/Dan

-- 
Dan Gudmundsson               Project:    Mnesia, Erlang/OTP
Ericsson Utvecklings AB       Phone:      +46  8 727 5762 
UAB/F/P                       Mobile:     +46 70 519 9469
S-125 25 Stockholm            Visit addr: Armborstv 1 




More information about the erlang-questions mailing list