I need to understand about something in NFS (Server). Let say i have:
- Two Different Clouds (One Server on each)
- One NFS Server
- One Apache Server (as the NFS Client) with a NFS Mounted Directory (lets say at:
/var/www/example.com/downloads/
) - That will become something like:
http://www.example.com/downloads/myvideo.mp4
- Lets say:
myvideo.mp4
is 1Gb in size. - 3 different users (3 downloads via Website = 3Gb via Web)
Ok then here is the question for, when a user downloads that file:
- Of course i believe the Apache Server has to use
Total 3Gb
of Outbound Bandwidth. - Then again at the same time, has the NFS Server to use
Total 3Gb
of Outbound Bandwidth also?
Because, what i'm currently understanding is like:
NFS Server---(Outbound: ? Gb)--->Apache Server---(Outbound: 3 Gb)--->Browser
Hoping for the expert's advices since i have to understand clearly and then calculate b/w costs.
Thanks all in advance.
I'm assuming this is at a hosting provider? The simple answer is it depends on their policy, but generally you would only pay for the 1Gb once when it leaves Apache, not when it leaves the NFS server. Most hosting providers only charge for data when it passes through their router, so traffic between two machines at the same provider is free. If you want to be sure of this what you would do is setup a private network. So the Apache server would have two NICs: eth0 which is the Internet connected IP, and eth1 which is on a local network that just contains the Apache server and the NFS server. The NFS server wouldn't need any sort of Internet access at all (although I would setup the Apache box to act as a NAT router for the NFS box so that you can install package updates.)