in reply to Unusual(?) server

Let's see. You have a 100 slaves and one master. The master needs to collect data from each slave once a minute. Does the master always collect a piece of data per minute per slave? If so, it is not obvious why you need the master to initiate the connections; you could implement this as a regular server that waits for incoming connections. It just needs to be aware of how many clients it has, total, and keep track of which ones have fallen out of schedule.

100 TCP connections a minute sounds quite moderate; any intranet webserver has to manage more.

May I ask what it is you're trying to do? If it's a monitoring script, you needn't reinvent the wheel; there are very capable packages like Nagios (formerly NetSaint), mon and Big Brother freely available for the job.

Makeshifts last the longest.

Replies are listed 'Best First'.
Re: Re: Unusual(?) server
by Nygeve (Acolyte) on Nov 18, 2002 at 09:01 UTC
    As i said early there are situations when server must be able instantly send new state to the client, not waiting for the next connection round. That why i have to to establish connection on server demand or use existing (not closing).

    Yes,in general it's a monitor, but with the abitilty to send commands to clients on (user) demand.

      All of the monitoring tools I mentioned have the ability to react to defined conditions by executing configured commands. You could f.ex launch a script that invokes a command on the slave using SSH.

      mon might be interesting as it's written in Perl itself.

      The other option might be to write just the part that sends commands to clients but use a monitoring package to do the regular tasks. As the control script runs on the same machine as the monitor, it could peek at the monitor's data and occasionally initiate actions on its own.

      Makeshifts last the longest.

        Ok, thanks for links. I'll dig it.
        I friend of mine was developing Thoth which again is mainly written in Perl.

        This is extendable and my meet some of your requirements or just give you ideas.

        Hope this helps
        UnderMine