Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Jan 29, 2015 6:08 pm 
Offline
Newbie

Joined: Thu Jan 29, 2015 5:57 pm
Posts: 2
Just curious about a couple questions:

1. Is the free bandwidth between Linodes strictly if both Linodes are in the same datacenter AND they are connected by private IP, or can they just be in the same DC without private IPs?

2. When I add the private IPs in my network file for each Linode, do I need to now connect to my MySQL VPS from the other Linodes via the private IP or the server IP? I guess what I am trying to say is once I add the private IP per linode into its network file, do I also need to change the PHP files at my other linodes ( which connect to my MySQL linode ) so that my mysql connection uses the private IP too? Right now it just uses the server IP.

Thanks for clarification.


Top
   
PostPosted: Thu Jan 29, 2015 8:47 pm 
Offline
Senior Member

Joined: Wed May 13, 2009 1:18 am
Posts: 681
eliquid wrote:
Just curious about a couple questions:

1. Is the free bandwidth between Linodes strictly if both Linodes are in the same datacenter AND they are connected by private IP, or can they just be in the same DC without private IPs?

Yes, free bandwidth is only intra-DC, and if you're connecting over IPv4 you must use the private addresses. For IPv6 there's no public/private address separation - any intra-DC traffic over IPv6 counts as private traffic.

Quote:
2. When I add the private IPs in my network file for each Linode, do I need to now connect to my MySQL VPS from the other Linodes via the private IP or the server IP? I guess what I am trying to say is once I add the private IP per linode into its network file, do I also need to change the PHP files at my other linodes ( which connect to my MySQL linode ) so that my mysql connection uses the private IP too? Right now it just uses the server IP.

Yes. One thing you could also consider doing is configuring private names for your intra-host communication, setting the relevant addresses in your local /etc/hosts file. That way, should you need to change, you only need to adjust the private address information in one place rather than in each application/client that may be using it. Plus, it's nicer for those occasions you may need it interactively, like perhaps with mysql command line operations.

-- David


Top
   
PostPosted: Thu Jan 29, 2015 9:44 pm 
Offline
Newbie

Joined: Thu Jan 29, 2015 5:57 pm
Posts: 2
Thanks for the advice David, it was extremely helpful to know this before coding things up!


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


Who is online

Users browsing this forum: No registered users and 2 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