acd_cli icon indicating copy to clipboard operation
acd_cli copied to clipboard

Feature Request: use different IP address for upload/download/mount

Open natoriousbigg opened this issue 9 years ago • 0 comments

I discovered this feature. Not sure if you guys can reproduce it.

I notice that my upload speed to ACD is slow on my server. Was only getting about 5MB/s. However, if I use "-x 10" option, I can increase my upload speed to 25-30MB/s. But when I'm uploading at this rate, my mount directories become unresponsive.

I got around this issue by using 2 different users, one for upload, and another one for mount (user "root" for upload and user "plex" for mount). I was able creating a different "/etc/hosts" file for root that points content-na.drive.amazonaws.com at a specific IP address. Running dns query on "content-na.drive.amazonaws.com", it will produce multiple IP address (A records). You can pick of any of the available IPs. I then used this tool https://github.com/bAndie91/libnss_homehosts to allow each user to have their own hosts file. For me I create a hosts file for root that pointed content-na.drive.amazonaws.com to a specific IP:

52.7.68.18 content-na.drive.amazonaws.com

I would be a good feature to have this implemented direct in acd_cli. Maybe for each instant of acd_cli that's used for upload, download, or mount, a random IP address can be selected from the A records. This will potentially increase speed throughout.

natoriousbigg avatar Oct 25 '16 05:10 natoriousbigg