Re: [Python-Dev] Buildbot - "slave lost"

2014-01-01 Thread Martin v. Löwis
Am 31.12.13 01:24, schrieb Chris Angelico:
> Does Buildbot retain a constant TCP socket to its server? 

In short: yes. A little bit longer: It uses the Twisted
PerspectiveBroker protocol. That has nearly-transparent
reconnects (but as your case shows, not fully transparent),
and does regular ping messages to keep the connection
alive.

So it should be able to handle a failover from one link to
the other, but it's certainly better to bind it to the more
reliable transport. I believe you can somehow configure the
frequency of ping messages so that you network doesn't believe
the connection goes idle, plus it will attempt a reconnect
if the network did indeed cancel the connection.

If you wanted to study this further, you could look into the
slave's twisted log file.

Regards,
Martin



___
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Buildbot - "slave lost"

2014-01-01 Thread Chris Angelico
On Thu, Jan 2, 2014 at 9:17 AM, "Martin v. Löwis"  wrote:
> So it should be able to handle a failover from one link to
> the other, but it's certainly better to bind it to the more
> reliable transport. I believe you can somehow configure the
> frequency of ping messages so that you network doesn't believe
> the connection goes idle, plus it will attempt a reconnect
> if the network did indeed cancel the connection.
>
> If you wanted to study this further, you could look into the
> slave's twisted log file.

I should have mentioned that I'd already peeked into the log and
that's why I posted. There was something in there about it sending
application-level keepalives (every 600 seconds, IIRC), which looked
good; but it wasn't sufficient, as seen. After I switched it to the
other connection, I didn't see any more problems (and it's completed a
few builds, though 2.7 seems to be having trouble in the tests - not
peculiar to this bot though).

ChrisA
___
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com