D
davidjdoherty
Hi,
I have a bit of a performance problem. I have 5 live servers that are
synchonised with the same files. When I upload I am uploading the same
files to each of the 5 servers. Regularly, I need to upload a large
number (about 50) of small files (3k) to all 5 servers. 3 of the 5
servers are very quick and it only takes a few seconds, but for the
slow severs (based in Hong Kong and Auz - I'm in the UK) it can take 30
mins. This is because my program is opening up a new stream for each
file, and this connection time is what is causing the slow transfer.
Is there anyway to only open one stream, but write multiple files
across to it?
I thought about using the java ZIP API to zip the files, upload the
file, and then unzip them. What is the performance like when you unzip
a folder sitting in a remote directory?
Is there an easy way?
Cheers,
Dave
I have a bit of a performance problem. I have 5 live servers that are
synchonised with the same files. When I upload I am uploading the same
files to each of the 5 servers. Regularly, I need to upload a large
number (about 50) of small files (3k) to all 5 servers. 3 of the 5
servers are very quick and it only takes a few seconds, but for the
slow severs (based in Hong Kong and Auz - I'm in the UK) it can take 30
mins. This is because my program is opening up a new stream for each
file, and this connection time is what is causing the slow transfer.
Is there anyway to only open one stream, but write multiple files
across to it?
I thought about using the java ZIP API to zip the files, upload the
file, and then unzip them. What is the performance like when you unzip
a folder sitting in a remote directory?
Is there an easy way?
Cheers,
Dave