asmith Posted November 29, 2009 Share Posted November 29, 2009 Hi, atm I'm using one of these shared hosting that gives you tons of GB storage and I'm about to move to a VPS. I have a growing database of files, and I'm about to fill 1 GB per 2 months. The VPS I'm moving to is offering me 16 GB overall while my shared hosting is giving me more than 500 GB. I was wondering to keep my shared hosting and use it to store my database of files. I wanted to know if anyone here has done something similar, or is there any better option I'm forgetting? Any idea is greatly appreciated (Will be paying 20$/month for VPS and 7$/month for the shared. With 30$/month I could get 24 GB for the VPS) Quote Link to comment https://forums.phpfreaks.com/topic/183291-using-2-servers-maybe/ Share on other sites More sharing options...
Mchl Posted November 29, 2009 Share Posted November 29, 2009 It will be like you never moved to VPS. Database operations are what consumes most resources in most websites. If you keep your shared database, you'll keep your bottleneck. Quote Link to comment https://forums.phpfreaks.com/topic/183291-using-2-servers-maybe/#findComment-967436 Share on other sites More sharing options...
asmith Posted November 29, 2009 Author Share Posted November 29, 2009 By database I meant database of files. Files like images, photos and other documents that users upload and they can be downloaded at any time. Not MySQL database. Quote Link to comment https://forums.phpfreaks.com/topic/183291-using-2-servers-maybe/#findComment-967438 Share on other sites More sharing options...
Mchl Posted November 29, 2009 Share Posted November 29, 2009 This might work. Just check it's not violating TOS of your shared host. Quote Link to comment https://forums.phpfreaks.com/topic/183291-using-2-servers-maybe/#findComment-967441 Share on other sites More sharing options...
asmith Posted November 29, 2009 Author Share Posted November 29, 2009 ok, thanks. Another thing, Lets say on the shared hosting I have this download script: shared.site/download.php?id=213 when a user click on the download link on the vps site: vps.site/download.php?id=213 the script update database: update table set downloaded = downloaded + 1 where id = 213 then how to use the shared script but the user does'nt understand that his download is actually from other site? header('location: shared.site/download.php?id=213'); or should I first download the file to the vps server then send it to the user? Quote Link to comment https://forums.phpfreaks.com/topic/183291-using-2-servers-maybe/#findComment-967640 Share on other sites More sharing options...
corbin Posted November 30, 2009 Share Posted November 30, 2009 "or should I first download the file to the vps server then send it to the user?" That would use double the bandwidth (for you, not for the user). There isn't technically a way to send someone somewhere without sending them there. Quote Link to comment https://forums.phpfreaks.com/topic/183291-using-2-servers-maybe/#findComment-967886 Share on other sites More sharing options...
keldorn Posted November 30, 2009 Share Posted November 30, 2009 Huge amount of GB can be a pain to move from a shared host. Moving large files sucks up all the CPU. I know, becuase I have moved from one dedicated server to anther its a long process of gzipping and transfering and make the server slow as hell, sometimes the server would jsut crash, then I would have to restart it all, and shut off apache and everything to get every bit of CPU and RAM on the server to move the data without crashing. I guess if you want a No-hassle move in the future I would get a VPS. Quote Link to comment https://forums.phpfreaks.com/topic/183291-using-2-servers-maybe/#findComment-967958 Share on other sites More sharing options...
JonnoTheDev Posted November 30, 2009 Share Posted November 30, 2009 I have a growing database of files, and I'm about to fill 1 GB per 2 months It makes sense to store these on a separate server to your database and website files, and access them from a different url i.e main website: www.xyz.com images: images.xyz.com This is also better for you usage stats as people tend to hotlink images. Quote Link to comment https://forums.phpfreaks.com/topic/183291-using-2-servers-maybe/#findComment-968275 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.