Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon Nov 09, 2009 3:46 pm 
Offline
Senior Member
User avatar

Joined: Sun Aug 10, 2008 11:26 am
Posts: 104
Location: ~$
I've read about people running apache on a nonstandard port, and setting up nginx on the same box to proxy requests listening on 80. I want to do something like this, but with the reverse proxy running on its own, separate VPS.

My thinking: I'm deploying what I would like to be a scalable, high-availability web app. If I have to take the main server down for maintenance/move/whatever, or if it goes down on its own, I can display a friendly "check back later" message to users instead of their connection timing out. Also, if I had to set up load balancing down the line this would make it easier.

I would get 2 linodes in the same datacenter, and use the private IP feature for traffic between them. My only concern is, would shuttling the requests between two VPS's incur a performance penalty? Any thoughts?

I'd probably be running nginx on both nodes, if it matters.


Top
   
 Post subject:
PostPosted: Mon Nov 09, 2009 7:17 pm 
Offline
Senior Member

Joined: Sun Aug 02, 2009 1:32 pm
Posts: 222
Website: https://www.barkerjr.net
Location: Connecticut, USA
I don't think you should really be that worried about the performance. The private network is fast.

Pings:
0.436ms: Public
0.273ms: Private
0.043ms: Localhost

Do your applications work well with clustering? If you setup two identical Linodes in the same DC and buy a third IP, you could map your DNS to the third IP, and then bring it up on whichever VPS you want (so you can move the IP before maintenance).


Top
   
 Post subject:
PostPosted: Mon Nov 09, 2009 10:13 pm 
Offline
Senior Member
User avatar

Joined: Sun Aug 10, 2008 11:26 am
Posts: 104
Location: ~$
You're right. I just ran some tests, and it appears the extra latency is on average around 1/5000th of a second. :) Awesome.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group