On 1/7/2010 at 02:55 AM, Lars Marowsky-Bree <[email protected]> wrote: > > > Is there really no interface by which we can be notified when TCP > > > connections get established and deleted? > > In that case we need a daemon to take care of the connection > > table. That would obviously be a more elegant solution, but I'm > > really not sure if it's absolutely needed. This machinery seems > > good enough to me. At least let's first see how it behaves in > > some busy environment. > > Yes, and that's why I'd like to see some numbers ;-) > > > > How is this done in Samba?
smbd tells ctdb about TCP connections from clients: http://gitweb.samba.org/?p=samba.git;a=blob;f=source3/smbd/process.c#l2365 It's also worth noting that a vanilla CTDB setup allows CTDB to manage NFS serving, via event scripts that look vaguely like OCF RAs. The one that handles NFS tickles (/etc/ctdb/events.d/61.nfstickle) does so in about the same way Jiaju's does, i.e. it uses "netstat -tn|egrep" to save a list of connections to a file on shared storage. For reference: http://gitweb.samba.org/?p=sahlberg/ctdb.git;a=blob;f=config/events.d/61.nfstickle Regards, Tim -- Tim Serong <[email protected]> Senior Clustering Engineer, Novell Inc. _______________________________________________________ Linux-HA-Dev: [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
