Had an uncommon event tonight. I had a metric crapton of torrents all download and complete in the space of about an hour. Now my write speed to the hard disks has tanked below 700kb/s while the array tries to deal with the insane amount of data I threw at it all at once.
This is an abnormal situation, since I rarely have so many torrents complete all at once.
Here's the "setup."
Pool is 9 6tb HDD in RaidZ2. (I know, Mirror is better for VMs, but normally my VMs are pretty quiet IO-wise, so I opted for more space with Z2)
VM on separate host is running torrent client. Storage for the VM is via NFS mount on the server. The VM downloads to "local" (but is really remote) disk. When torrent completes, it moves the completed file from the "local" storage to an SMB share on the same server that hosts the VM storage.
VM host is connected to NAS by 10G network. All writes to NFS and SMB are sync=always since I don't want to risk data loss from async.
So, data comes in from the internet and is sent to the NAS in the VHD file. When complete, it reads from the VHD and also writes via SMB to the same pool, then deletes from the VHD.
Eventually, everything came to nearly a screeching halt.
Aside from the classic Billy Crystal Joke ("Patient: Doctor! It hurts when I do this with my arm. Doctor: Then don't do that with your arm!") answer, is there anything I can do to cause the network to throttle sooner so that the disks have a chance to catch up before my write speed completely plummets?
Granted, this is a rare occurance, but I'd like to understand how this storm happened and what can be done to mitigate it?
This is an abnormal situation, since I rarely have so many torrents complete all at once.
Here's the "setup."
Pool is 9 6tb HDD in RaidZ2. (I know, Mirror is better for VMs, but normally my VMs are pretty quiet IO-wise, so I opted for more space with Z2)
VM on separate host is running torrent client. Storage for the VM is via NFS mount on the server. The VM downloads to "local" (but is really remote) disk. When torrent completes, it moves the completed file from the "local" storage to an SMB share on the same server that hosts the VM storage.
VM host is connected to NAS by 10G network. All writes to NFS and SMB are sync=always since I don't want to risk data loss from async.
So, data comes in from the internet and is sent to the NAS in the VHD file. When complete, it reads from the VHD and also writes via SMB to the same pool, then deletes from the VHD.
Eventually, everything came to nearly a screeching halt.
Aside from the classic Billy Crystal Joke ("Patient: Doctor! It hurts when I do this with my arm. Doctor: Then don't do that with your arm!") answer, is there anything I can do to cause the network to throttle sooner so that the disks have a chance to catch up before my write speed completely plummets?
Granted, this is a rare occurance, but I'd like to understand how this storm happened and what can be done to mitigate it?