gluster / storhaug

High Availability (HA) setup utility for NFS-Ganesha
GNU General Public License v2.0
12 stars 9 forks source link

Question: why the requirement num_servers == num_addrs? #31

Open epol opened 6 years ago

epol commented 6 years ago

When running storhaug setup it's checked that the number of server in the pool is equal to the number of public addresses available.

Why this limitation? What would be the problems of having less (for example just 1) or more IPs than server?

I can think of this use cases:

tkriviradev commented 6 years ago

You can still do that, no problem.

I have configuration with 2 CTDB floating IP's gluster replica set 3 and 1 arbiter Which is total of only two usable IP addresses.

Also with NFS 4.1 you can have pNFS accessing your data from more then one path. and if you have only one IP you are limiting yourself to what you can with NFS 3. If you want such solutions you have to go for peacemaker.

epol commented 6 years ago

It doesn't look like a limitation of CTDB (see their wiki page about public IP addresses, so I don't see how peacemaker would solve the problem (if there is any).

I'm not sure if pNFS can't work with just one public IP (couldn't it use the other "private" IPs of the nodes?), in any case I think that the case "just one IP" may be interesting for situations where pNFS is not available (NFS 3 or NFS 4.x without pNFS, for example when using ESX) and one wants to use storhaug just to ensure high availability (I think issue #29 may be correlated).

In short, I'm just trying to understand if there is any deep reason for having that condition or if it just a common case and, maybe, other particular cases may be supported in future (and more mature) releases.