Load balancing, sort of...
Posted: Thu Jun 19, 2014 8:40 am
If you have a clustered SAN set-up like this:
You configure MPIO on the iSCSI initiator to connect to SAN1 and SAN2 using multi-path. MPIO defaults to round robin so writes one block to path #1 (SAN1) and then to path #2 (SAN2), back to path #1 etc.
So, in effect has one double the size of the write-back cache thus improved performance? For example, write a 1GB file to the above, and it fills both caches rapidly and then comes back "okay". At it's leisure, the two caches are flushed to disk and mirrored at the same time (i.e. write-back from SAN1 > disk doesn't say "done" until both mirrors are updated).
So with mirroring, you've gained on one hand by having bigger caches but loose at the same time by the flush to disk now having to write to two disk systems, albeit in parallel.
Is my reasoning sound here?
Cheers, Rob.,
Code: Select all
SAN1: 500MB write-back cache -> 2TB volume
^
|
V
Fast NIC mirror/sync channel
^
|
V
SAN2: 500MB write-back cache -> 2TB volume
So, in effect has one double the size of the write-back cache thus improved performance? For example, write a 1GB file to the above, and it fills both caches rapidly and then comes back "okay". At it's leisure, the two caches are flushed to disk and mirrored at the same time (i.e. write-back from SAN1 > disk doesn't say "done" until both mirrors are updated).
So with mirroring, you've gained on one hand by having bigger caches but loose at the same time by the flush to disk now having to write to two disk systems, albeit in parallel.
Is my reasoning sound here?
Cheers, Rob.,