Custom mirror for files (Custombuild)

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
15,192
Location
GMT +7.00
Hello,

Our ISP has very bad channels to files.directadmin.com. As a result it's pain to wait files to be fully retrieved from directadmin's file storage.

That's why it would be great to allow us in options.conf to set our own server or just fix fileserver option. I'm not sure what for is it, if it doesn't work? It doesn't switch file server for us in Custombuild 1.1.
 
Hello,

I've actually been working on this and do have a script that scans all of our mirrors systems for the fastest connection (still in a work in progress though)

For the time being, you can use this guide to set your /etc/hosts to use one of our mirrors which is closest/fastest for you.

http://help.directadmin.com/item.php?id=305

John
 
Thanks John.

I'll try it.

And what about fileserver option? Is it supposed to change fileservers manually? Will it be fixed?
 
Strange I never knew there was more than one server.
 
@scsi
If you run Directadmin install.sh, it will ask which server to use
1 USA
2 Europe

I've always chosen the second. But now I've discovered:

1. There're more than two locations and serves.
2. The option does not change anything in custombuild. Not sure about install.sh (need to examine the script).
 
I always thought there were 2 servers.

1. USA - Ran by Directadmin company
2. EU - Hosted by Smtalk on custombuild.eu

Its nice to know they have a cluster of systems incase one goes down.

I havent looked through the code of the install.sh or custombuild in a while to notice they had multiple servers.
 
I checked over the code and the use of that variable is not yet implemented. I'm not sure if we'll use it or not. The new system I wrote uses a text file/list of servers for fastest connection, which gives us more flexibility if any go up/down. Sort of like a versions.txt, but it's a servers.txt.

John
 
For the time being, you can use this guide to set your /etc/hosts to use one of our mirrors which is closest/fastest for you.

http://help.directadmin.com/item.php?id=305

It worked for me, great.
One change I had to do, is to add line in /etc/hosts in another order:

You suggest:

files.directadmin.com 81.26.221.44

That did not work on FreeBSD (not checked on CentOS)

69.30.193.202 files.directadmin.com

I swaped IP with hostname.
 
That's just step 1. Then next step is a call that will try all servers and set that value to be the fastest mirror. Once it's out, tested, and working, the "fastest" check may then be a default call at install time so everyone uses their fastest locations.

John
 
Matters on what you mean by fastest?

Latency or actual download speed?
 
Fastest speed. The script downloads a ~100k file and grabs the speed result from the wget output. It's not in the scripts yet.

John
 
Hi John,

The added speedtest code in CB script results in syntax error on FreeBSD:

Code:
./build: 8211: Syntax error: "(" unexpected
 
hello

i want download custombuild files on my server and create 1 local repository for directadmin in my city
please guide me

How do I download files? from http://files.directadmin.com/services/
What do I do to get it?

Please explain step by step

tahnks
 
Hello,

We already have many files mirrors:
http://help.directadmin.com/item.php?id=305

Try one of the mirrors listed there to see which is fastest, or test it automatically, eg:
Code:
cd /usr/local/directadmin/custombuild
./build update
./build set_fastest
Please do not create your own mirror via apache sync, as your IP may end up getting blocked in our firewall.

John
 
thanks for reply
=============================
Testing with file 10.kb:
files1.directadmin.com is too slow, skipping.
files2.directadmin.com is too slow, skipping.
files5.directadmin.com is too slow, skipping.
files6.directadmin.com is too slow, skipping.
files8.directadmin.com is too slow, skipping.
files10.directadmin.com is too slow, skipping.
files11.directadmin.com is too slow, skipping.
files13.directadmin.com is too slow, skipping.
files15.directadmin.com is too slow, skipping.
Total test duration: 18 seconds

Testing with file 100.kb:
files1.directadmin.com is too slow, skipping.
files2.directadmin.com is too slow, skipping.
files5.directadmin.com is too slow, skipping.
files6.directadmin.com is too slow, skipping.
files8.directadmin.com is too slow, skipping.
files10.directadmin.com is too slow, skipping.
files11.directadmin.com is too slow, skipping.
files13.directadmin.com is too slow, skipping.
files15.directadmin.com is too slow, skipping.
Total test duration: 18 seconds

Fastest server is at 0 B/s
Unable to determine fastest server

=============================

Mirror are all very slow for me
So I want to create a private server Mirror
 
Back
Top