On Aug 6, 2014, at 8:51 AM, Keith Wesolowski via smartos-discuss 
<[email protected]> wrote:

> On Wed, Aug 06, 2014 at 06:31:24AM -0700, Jon via smartos-discuss wrote:
> 
>> What is the illumos / SmartOS equivalent to Linux's sysctl setting 
>> net.ipv4.ip_nonlocal_bind ?
> 
> There is none.
> 
> For the benefit of those who don't use GNU/Linux and don't know what
> this setting does there, I'm told it's commonly used for IP address
> takeover/failover applications, allowing a process to bind a socket to
> an address that is not configured on any local interface.
> 
> The correct way to handle this -- which would have obviated the need for
> the engineering work they did to create this and works everywhere, had
> they only spent a few minutes researching existing solutions before
> adding yet another sysctl -- is to plumb the interface with the
> address(es) to be taken over, then simply leave it down on all members
> of the cluster except the active one.  When takeover is desired, the
> application or cluster management software simply sets IFF_UP on that
> address.  Binding is permitted when the interface is down, so long as
> the address being bound to is configured.  This approach was used in the
> Fishworks appliances and worked very well there; I assume it is used by
> many other such applications as well.

This technique is commonly used, yes.
 -- richard



-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to