Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Community Cafe (http://www.bvlist.com/forumdisplay.php?f=18)
-   -   Server migration for TSSE (http://www.bvlist.com/showthread.php?t=9561)

stanto 8th October 2013 07:38

Server migration for TSSE
 
(I decided to create a new post as not to mix up with my semi-unrelated questions on a previous one.)

Hi,
I have some version of TSSE (3.1?)

I need to migrate to another server.
Hopefully the PHP and MySQL part is relatively straight forward.
My question is: what steps should I take for minimum downtime and for the tracker not to break?

I'm not familiar with the technical mechanics of a PHP tracker. How can a tracker be moved while there are users "following" it?
I'm not talking about temporary loss of connection!!! I'm talking once the site is back online how can all the clients continue with their up/downloads and all the stats be back on track?

Does my question make any sense?... :scratch:

thanks

DND 8th October 2013 09:08

buy the new server, install LAMP on it.. Linux Apache Mysql Php, or instead of apache you could use lighttpd or nginx. after that change the dns on the domain you have and people will continue to access it on the new server
Install phpMyadmin for a better interface to work with your mysql databases
Use iptables to block some ips, activate your firewall to prevent ddos attacks and that is it.
Of course you need to install modules for php, maybe your script requires them, such as memcache, apc, mcrypt, perl, and so on...
and always make sure your server it is up-to-date.

stanto 8th October 2013 14:54

Thanks.

Thats the normal way to proceed with a migration.

I'd like to understand the mechanics of the tracker though and how it can keep tracking correctly after an IP change. Unless it works with pure DNS... ?

DND 8th October 2013 15:18

it is keeping track after the domain that is set in the configuration files of the source, obviously.(baseurl/announce url)
if you change the domain, i guess, you need to change the config also, it makes sense.
but if you only change the server, you just need to pinpoint the domain to the new ip/dns/nameserver

firefly007 8th October 2013 15:33

Quote:

Originally Posted by stanto (Post 42938)
Thanks.

Thats the normal way to proceed with a migration.

I'd like to understand the mechanics of the tracker though and how it can keep tracking correctly after an IP change. Unless it works with pure DNS... ?

You don't have to worry about your ip as it will be according to your domain name in most cases. After you have migrated your/users torrents will seed on the next announce interval.

If you are are currently using a VPS/DEDI to best option will be to tarball your sourcecode and backup your db and then you can use WGET to copy it across from serv to serv.

DND 8th October 2013 16:44

i don't think he knows about wget, db, tarball, and so on. :)

stanto 8th October 2013 20:17

Quote:

Originally Posted by DeNeDe (Post 42942)
i don't think he knows about wget, db, tarball, and so on. :)

Actually I do and quite well. :chch:
I guess I have difficulty explaining the fact - as I wrote in my Intro post - that I am *quite* technical when it comes to *nix. As a user.
I have also installed and played with LAMP setups etc. Never on a production server and only for fun. So no serious experience.

I also code semi-professionally on BASH, KSH, Python and Fortran and some C/C++ and have been modifying HTML sites for the last 10 years + some PHP and CSS along the way.. I am a geek ! Just completely new to the tracker world!!!

Enough about me, let's stick to the technical details for others to benefit. I don't think anyone gives a $**t about my CV :lol:

The problem is: I *DO* understand a simple migration but I wasn't sure how a tracker would "react". firefly007 cofirmed my suspicions: it's a URL issue and not an IP so the DNS takes care of it.

HOW is the announce interval setup in TSSE (3.1) and I guess most trackers here???? Is it a cron or some internal PHP periodic clock ?

Thanks

joeroberts 8th October 2013 23:45

Quote:

Originally Posted by stanto (Post 42931)
(I decided to create a new post as not to mix up with my semi-unrelated questions on a previous one.)

Hi,
I have some version of TSSE (3.1?)

I need to migrate to another server.
Hopefully the PHP and MySQL part is relatively straight forward.
My question is: what steps should I take for minimum downtime and for the tracker not to break?

I'm not familiar with the technical mechanics of a PHP tracker. How can a tracker be moved while there are users "following" it?
I'm not talking about temporary loss of connection!!! I'm talking once the site is back online how can all the clients continue with their up/downloads and all the stats be back on track?

Does my question make any sense?... :scratch:

thanks

Posts a notice to your users 48 hours in advance that site well be free leach and there well be no new uploads.
down load a fresh back up of your data base and files.
move all to your new server.
Alter your DNS server with your new server IP.
after 48 hours everyone should be pointing to your new server.
remove free leech.
go to old server and delete your old files and data base Done.

Changing servers is very easy and people do it all the time.

stanto 9th October 2013 01:51

Ok got it !

But what "wakes up" the tracker for the announce interval - or is it a continuous process from the announce "hits" to the DB ?

firefly007 9th October 2013 02:13

Its set at internals that will run according to the configuration.


All times are GMT +2. The time now is 18:10.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.