Gmc Videos.. Slow?
Melodic Axeman
Apr 21 2007, 12:47 AM
GMC:er
Posts: 36
Joined: 20-March 07
From: Rome, Italy
HI all,
I just want to question this: I have a 2MBit adsl, and i don't have any problems with other video source (Youtube for ex.), but i can't see GMC videos without waiting at least 5 minutes to load them.
Does it happen to anyone of you? Is the server overloaded or just me?

Thanks

You are at GuitarMasterClass.net


Don't miss today's free lick. Plus all our lessons are packed with free content!

Don't miss today's free blues, jazz & country licks. Plus all our lessons are packed with free content!
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
warchild
May 14 2007, 07:28 PM
GMC:er
Posts: 8
Joined: 12-May 07
From: Northumberland, UK
I am having problems with the videos stopping and starting. I have taken advice and I have been told it is probably to do with the server being located in the States! (And the amount of traffic on the site!). Kris, you were looking into the problem - any updates?

You are at GuitarMasterClass.net


Don't miss today's free lick. Plus all our lessons are packed with free content!

Don't miss today's free blues, jazz & country licks. Plus all our lessons are packed with free content!


This post has been edited by warchild: May 14 2007, 07:28 PM
Go to the top of the page
 
+Quote Post
Kristofer Dahl
May 14 2007, 09:04 PM
GMC Founder
Posts: 18.761
Joined: 15-August 05
From: Stockholm, Sweden
QUOTE (warchild @ May 14 2007, 08:28 PM) *
I am having problems with the videos stopping and starting. I have taken advice and I have been told it is probably to do with the server being located in the States! (And the amount of traffic on the site!). Kris, you were looking into the problem - any updates?


Yes! We have purchased a server in the UK today - Henrik will get working on this next week...

Kris

You are at GuitarMasterClass.net


Don't miss today's free lick. Plus all our lessons are packed with free content!

Don't miss today's free blues, jazz & country licks. Plus all our lessons are packed with free content!


--------------------
Go to the top of the page
 
+Quote Post
Andrew Cockburn
May 15 2007, 12:56 PM
Moderation Policy Director
Posts: 10.459
Joined: 6-February 07
From: CT, USA
QUOTE (Kristofer Dahl @ May 14 2007, 04:04 PM) *
Yes! We have purchased a server in the UK today - Henrik will get working on this next week...

Kris


I'm curious how the load balancing will work - standard DNS swithching, or something more sophisticated based on hop number? Maybe that's one for Henrik smile.gif

You are at GuitarMasterClass.net


Don't miss today's free lick. Plus all our lessons are packed with free content!

Don't miss today's free blues, jazz & country licks. Plus all our lessons are packed with free content!


--------------------
Check out my Instructor profile
Live long and prosper ...

My Stuff:

Electric Guitars : Ibanez Jem7v, Line6 Variax 700, Fender Plus Strat with 57/62 Pickups, Line6 Variax 705 Bass
Acoustic Guitars : Taylor 816ce, Martin D-15, Line6 Variax Acoustic 300 Nylon
Effects : Line6 Helix, Keeley Modded Boss DS1, Keeley Modded Boss BD2, Keeley 4 knob compressor, Keeley OxBlood
Amps : Epiphone Valve Jnr & Head, Cockburn A.C.1, Cockburn A.C.2, Blackstar Club 50 Head & 4x12 Cab
Go to the top of the page
 
+Quote Post
Henrik Skotth
May 15 2007, 03:10 PM
GMC Tech & Community Manager
Posts: 443
Joined: 19-December 06
QUOTE (Andrew Cockburn @ May 15 2007, 01:56 PM) *
I'm curious how the load balancing will work - standard DNS swithching, or something more sophisticated based on hop number? Maybe that's one for Henrik smile.gif


Maybe it is smile.gif

As the main problems are with the videos, we will start by sending our european users to the new server only when watching a video, based on IP-numbers. If you have a european IP, you'll load the videos from a different subdomain (europe.guitarmasterclass.net or something like that) than the users from north america.

The other parts of the site will initally remain on the US server. If everything works well, we will most likely mirror more of the site on the EU server in the next step though.

The servers will be mirrored using rsync, btw. Overall it's a quite simple solution. But effective, I hope smile.gif

You are at GuitarMasterClass.net


Don't miss today's free lick. Plus all our lessons are packed with free content!

Don't miss today's free blues, jazz & country licks. Plus all our lessons are packed with free content!


--------------------
Tech manager @ GMC
Go to the top of the page
 
+Quote Post
Andrew Cockburn
May 16 2007, 04:06 AM
Moderation Policy Director
Posts: 10.459
Joined: 6-February 07
From: CT, USA
QUOTE (Henrik Skotth @ May 15 2007, 10:10 AM) *
Maybe it is smile.gif

As the main problems are with the videos, we will start by sending our european users to the new server only when watching a video, based on IP-numbers. If you have a european IP, you'll load the videos from a different subdomain (europe.guitarmasterclass.net or something like that) than the users from north america.

The other parts of the site will initally remain on the US server. If everything works well, we will most likely mirror more of the site on the EU server in the next step though.

The servers will be mirrored using rsync, btw. Overall it's a quite simple solution. But effective, I hope smile.gif


Very cunning smile.gif And I'm a big fan of rsync cool.gif How can we fail with technical backup of this caliber ??

For that to work, you'd need to be generating the lesson pages dynamically I guess?

You are at GuitarMasterClass.net


Don't miss today's free lick. Plus all our lessons are packed with free content!

Don't miss today's free blues, jazz & country licks. Plus all our lessons are packed with free content!


--------------------
Check out my Instructor profile
Live long and prosper ...

My Stuff:

Electric Guitars : Ibanez Jem7v, Line6 Variax 700, Fender Plus Strat with 57/62 Pickups, Line6 Variax 705 Bass
Acoustic Guitars : Taylor 816ce, Martin D-15, Line6 Variax Acoustic 300 Nylon
Effects : Line6 Helix, Keeley Modded Boss DS1, Keeley Modded Boss BD2, Keeley 4 knob compressor, Keeley OxBlood
Amps : Epiphone Valve Jnr & Head, Cockburn A.C.1, Cockburn A.C.2, Blackstar Club 50 Head & 4x12 Cab
Go to the top of the page
 
+Quote Post
Henrik Skotth
May 16 2007, 10:40 AM
GMC Tech & Community Manager
Posts: 443
Joined: 19-December 06
QUOTE (Andrew Cockburn @ May 16 2007, 05:06 AM) *
Very cunning smile.gif And I'm a big fan of rsync cool.gif How can we fail with technical backup of this caliber ??

For that to work, you'd need to be generating the lesson pages dynamically I guess?


Yep, we are generating the lessons dynamically since the last three weeks or so cool.gif

rsync is great! I haven't had the opportunity to use it more than once or twice before though, so I am looking forward to this (which might be a bit nerdy I guess rolleyes.gif )

QUOTE (blindwillie @ May 16 2007, 08:21 AM) *
rsync rules!



Yeah! biggrin.gif


I love working with GMC, Kris lets me do all kinds of fun stuff! biggrin.gif

You are at GuitarMasterClass.net


Don't miss today's free lick. Plus all our lessons are packed with free content!

Don't miss today's free blues, jazz & country licks. Plus all our lessons are packed with free content!


--------------------
Tech manager @ GMC
Go to the top of the page
 
+Quote Post
Andrew Cockburn
May 16 2007, 01:33 PM
Moderation Policy Director
Posts: 10.459
Joined: 6-February 07
From: CT, USA
Sorry for turning this into a nerdy thread that probably only 50% of GMCers understand - I know this is annoying for the food professionals out there!

QUOTE (Henrik Skotth @ May 16 2007, 05:40 AM) *
Yep, we are generating the lessons dynamically since the last three weeks or so cool.gif


You are the man! I can't see any evidence of scripting languages - which one are you using?

You are at GuitarMasterClass.net


Don't miss today's free lick. Plus all our lessons are packed with free content!

Don't miss today's free blues, jazz & country licks. Plus all our lessons are packed with free content!


--------------------
Check out my Instructor profile
Live long and prosper ...

My Stuff:

Electric Guitars : Ibanez Jem7v, Line6 Variax 700, Fender Plus Strat with 57/62 Pickups, Line6 Variax 705 Bass
Acoustic Guitars : Taylor 816ce, Martin D-15, Line6 Variax Acoustic 300 Nylon
Effects : Line6 Helix, Keeley Modded Boss DS1, Keeley Modded Boss BD2, Keeley 4 knob compressor, Keeley OxBlood
Amps : Epiphone Valve Jnr & Head, Cockburn A.C.1, Cockburn A.C.2, Blackstar Club 50 Head & 4x12 Cab
Go to the top of the page
 
+Quote Post
Henrik Skotth
May 16 2007, 01:56 PM
GMC Tech & Community Manager
Posts: 443
Joined: 19-December 06
QUOTE (Andrew Cockburn @ May 16 2007, 02:33 PM) *
Sorry for turning this into a nerdy thread that probably only 50% of GMCers understand - I know this is annoying for the food professionals out there!
You are the man! I can't see any evidence of scripting languages - which one are you using?


We do it using PHP, MySQL and a bunch of Linux commands (and some crontab stuff to keep privilieges up-to-date). What we do, actually, is dynamically creating static pages rather than using completely dynamic ones. Much more effective performance-wise, not to mention better from a search engine point of view - using ?id=xxx etc is still frowned upon (although this could of course have been solved using rewrites) . And when new features are added we only need to press the "republish" button for the lessons to make sure that the latest updates are available in all lessons (the ones created using the dynamic system at least).

All in all, it turned out quite well smile.gif

You are at GuitarMasterClass.net


Don't miss today's free lick. Plus all our lessons are packed with free content!

Don't miss today's free blues, jazz & country licks. Plus all our lessons are packed with free content!


--------------------
Tech manager @ GMC
Go to the top of the page
 
+Quote Post
Andrew Cockburn
May 16 2007, 02:11 PM
Moderation Policy Director
Posts: 10.459
Joined: 6-February 07
From: CT, USA
QUOTE (Henrik Skotth @ May 16 2007, 08:56 AM) *
We do it using PHP, MySQL and a bunch of Linux commands (and some crontab stuff to keep privilieges up-to-date). What we do, actually, is dynamically creating static pages rather than using completely dynamic ones. Much more effective performance-wise, not to mention better from a search engine point of view - using ?id=xxx etc is still frowned upon (although this could of course have been solved using rewrites) . And when new features are added we only need to press the "republish" button for the lessons to make sure that the latest updates are available in all lessons (the ones created using the dynamic system at least).

All in all, it turned out quite well smile.gif


That's really cool - so you can re-generate large portions of the site from info in a DB at will, which must make it really easy to change color schemes and layouts etc yet still have static pages for performance reasons smile.gif

Now, tell me to go away if I am bugging you, but if you do this, how can you generate European IP addresses for the videos? Do you have a paralell set of pages, and some widget that initially routes the user to the set depending upon IP address?

You are at GuitarMasterClass.net


Don't miss today's free lick. Plus all our lessons are packed with free content!

Don't miss today's free blues, jazz & country licks. Plus all our lessons are packed with free content!


--------------------
Check out my Instructor profile
Live long and prosper ...

My Stuff:

Electric Guitars : Ibanez Jem7v, Line6 Variax 700, Fender Plus Strat with 57/62 Pickups, Line6 Variax 705 Bass
Acoustic Guitars : Taylor 816ce, Martin D-15, Line6 Variax Acoustic 300 Nylon
Effects : Line6 Helix, Keeley Modded Boss DS1, Keeley Modded Boss BD2, Keeley 4 knob compressor, Keeley OxBlood
Amps : Epiphone Valve Jnr & Head, Cockburn A.C.1, Cockburn A.C.2, Blackstar Club 50 Head & 4x12 Cab
Go to the top of the page
 
+Quote Post
Henrik Skotth
May 16 2007, 04:22 PM
GMC Tech & Community Manager
Posts: 443
Joined: 19-December 06
QUOTE (Andrew Cockburn @ May 16 2007, 03:11 PM) *
That's really cool - so you can re-generate large portions of the site from info in a DB at will, which must make it really easy to change color schemes and layouts etc yet still have static pages for performance reasons smile.gif

Now, tell me to go away if I am bugging you, but if you do this, how can you generate European IP addresses for the videos? Do you have a paralell set of pages, and some widget that initially routes the user to the set depending upon IP address?



Your not bugging me, I don't get to talk about this kind of stuff on a guitar board every day! ph34r.gif

To answer your question:
I'm using a few lines of PHP code in the "static" pages (which really are only kind of static, it's still some php in there to handle the comments and stuff like that - I probably didn't mention that before) to work out where the user is from and send him/her to the right servers.
If it was completely static pages, I would have probably set a cookie stores which server the user should use when he enters the site. When I would have used javascript to read the cookie and use it's data to go to the right server (the showing of videos mostly use javascript anyway, so that wouldn't have been that much of a hassle).

I actually hadn't thought about that second solution before you asked me, so this just proves that we learn not just by asking questions, but by getting asked questions as well smile.gif

You are at GuitarMasterClass.net


Don't miss today's free lick. Plus all our lessons are packed with free content!

Don't miss today's free blues, jazz & country licks. Plus all our lessons are packed with free content!


--------------------
Tech manager @ GMC
Go to the top of the page
 
+Quote Post

Posts in this topic
- Melodic Axeman   Gmc Videos.. Slow?   Apr 21 2007, 12:47 AM
- - JCJXXL   Which browser are you using (which version)? And w...   Apr 21 2007, 04:12 PM
|- - Pavel   QUOTE (JCJXXL @ Apr 21 2007, 05:12 PM) Wh...   Apr 21 2007, 09:00 PM
|- - Melodic Axeman   QUOTE (Pavel @ Apr 21 2007, 10:00 PM) Hey...   Apr 21 2007, 10:48 PM
nnn
nnn
- - Melodic Axeman   I use firefox 2.0.0.3 and ZoneAlarm, but with IE a...   Apr 21 2007, 06:46 PM
- - Eat-Sleep-andJam   I think its your browser.   Apr 21 2007, 08:03 PM
- - ezravdb   me no probs   Apr 21 2007, 08:49 PM
- - JCJXXL   Go to this site CODEhttp://www.speakeasy.net/...   Apr 22 2007, 01:08 AM
- - Ron   QUOTE (Melodic Axeman @ Apr 21 2007, 06:4...   Apr 22 2007, 01:44 AM
- - Gaelan   QUOTE (Melodic Axeman @ Apr 20 2007, 05:4...   Apr 22 2007, 05:03 PM
|- - Kristofer Dahl   QUOTE (Gaelan @ Apr 22 2007, 06:03 PM) on...   Apr 22 2007, 09:56 PM
nnn
- - FmX   Sorry for bumping this thread but I have this prob...   May 5 2007, 11:37 AM
- - Ryan   Setting the slider to unlimited...for me....sped e...   May 7 2007, 05:19 AM
|- - mattacuk   QUOTE (Kristofer Dahl @ May 14 2007, 09:0...   May 15 2007, 09:38 AM
||- - MickeM   QUOTE (mattacuk @ May 15 2007, 10:38 AM) ...   May 15 2007, 11:52 AM
nnn
|- - Andrew Cockburn   QUOTE (Henrik Skotth @ May 16 2007, 11:22...   May 16 2007, 05:09 PM
nnn
nnn
nnn
nnn
nnn
nnn
nnn
nnn
nnn
nnn
- - blindwillie   rsync rules!   May 16 2007, 07:21 AM
- - Pavel   Ok after reading this i guess i better stick to pl...   May 16 2007, 05:03 PM
- - Henrik Skotth   QUOTE (Pavel @ May 16 2007, 06:03 PM) Ok ...   May 17 2007, 09:00 AM
nnn
nnn
nnn


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 




RSS Lo-Fi Version Time is now: 4th May 2024 - 10:50 AM