Bug 1298944
Summary: | Implement a SPICE protocol level keepalive mechanism for all channels | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Christophe Fergeau <cfergeau> |
Component: | spice | Assignee: | Default Assignee for SPICE Bugs <rh-spice-bugs> |
Status: | CLOSED DUPLICATE | QA Contact: | SPICE QE bug list <spice-qe-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.3 | CC: | cfergeau, dblechte, ecohen, fdelorey, gklein, lsurette, mburgerh, rbalakri, sherold, tspeetje, yeylon, ylavi |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | spice | ||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | 1298590 | Environment: | |
Last Closed: | 2016-01-20 15:23:13 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1298945, 1298950 | ||
Bug Blocks: | 1298982, 1299373 |
Comment 1
Christophe Fergeau
2016-01-15 13:34:32 UTC
(In reply to Christophe Fergeau from comment #1) > This is solved on the SPICE side by > http://cgit.freedesktop.org/spice/spice/commit/?h=0. > 12&id=98417d8309893e14efadfe5d2f9002b94d6c56a6 From my understanding, this activates the TCP level keepalive, which is not what this RFE was filed for. From C#1: TCP connection keepalive is already activated in spice-gtk and spice-gtk3, however, default TCP parameter (2h on Windows and Linux) is likely higher than the firewall timeout. Having it on the hypervisor side simplifies activating it, though, but having it implemented on the protocol, would make the standard use case work out of the box. The description is saying that the default value (2h) is too high, this commit allows to enable keepalive server-side and to change the interval with which keepalive probes are sent (ie it's possible to send them more often than once every 2 hours). The description also says "Customer has implemented a workaround that seems to be sufficient (TCP keepalive)", so my understanding is that TCP keepalive/SPICE-level pings are going to work equally well as long as they are sent often enough. How long can a connection be idle before it's closed in your customer's setup btw? (In reply to Christophe Fergeau from comment #4) > The description is saying that the default value (2h) is too high, this > commit allows to enable keepalive server-side and to change the interval > with which keepalive probes are sent (ie it's possible to send them more > often than once every 2 hours). I missed that the timeout is configurable, indeed. > The description also says "Customer has implemented a workaround that seems > to be sufficient (TCP keepalive)", so my understanding is that TCP > keepalive/SPICE-level pings are going to work equally well as long as they > are sent often enough. Correct. > How long can a connection be idle before it's closed in your customer's > setup btw? In this case, the firewall is configured with 1h timeout. As a patch has only limited context, does 98417d8309893e14efadfe5d2f9002b94d6c56a6 activate the tcp keepalive on all channels? (Or only the red / main channel)? (In reply to Tim Speetjens from comment #5) > As a patch has only limited context, does > 98417d8309893e14efadfe5d2f9002b94d6c56a6 activate the tcp keepalive on all > channels? (Or only the red / main channel)? Yes, it enables tcp keepalive with a configurable rate for all spice channels. However, we won't go with this patch as RHEV/PM do not want the interval to be configurable, so this will be hardcoded in spice-server. *** This bug has been marked as a duplicate of bug 1298590 *** |