Re: oc rsh or oc get pod -w disconnection after few minutes

2017-07-14 Thread Aleksandar Lazic
Title: Re: oc rsh or oc get pod -w disconnection after few minutes


Hi Philippe Lafoucrière.

on Donnerstag, 13. Juli 2017 at 21:04 was written:





We have achieved a lot of tests, and the connection is dropped somewhere in Openshift, not by the firewall.

As we don't have any proxy, except haproxy.

We've seen https://docs.openshift.com/container-platform/3.3/install_config/router/default_haproxy_router.html#preventing-connection-failures-during-restarts

Could it be related?



I think you should try to increase ROUTER_DEFAULT_CLIENT_TIMEOUT

oc env dc/router -n default ROUTER_DEFAULT_CLIENT_TIMEOUT=1h

You can see more of this variables in the doc

https://docs.openshift.org/latest/architecture/core_concepts/routes.html#env-variables

or in the code

https://github.com/openshift/origin/blob/master/images/router/haproxy/conf/haproxy-config.template#L98-L112






We're seeing a disconnection of `oc get events -w` after exactly 30s, which is exactly the reload time of haproxy.

thanks



-- 
Best Regards
Aleks


smime.p7s
Description: S/MIME Cryptographic Signature
___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users


Re: oc rsh or oc get pod -w disconnection after few minutes

2017-07-13 Thread Philippe Lafoucrière
We have achieved a lot of tests, and the connection is dropped somewhere in
Openshift, not by the firewall.

As we don't have any proxy, except haproxy.

We've seen
https://docs.openshift.com/container-platform/3.3/install_config/router/default_haproxy_router.html#preventing-connection-failures-during-restarts

Could it be related?
​
We're seeing a disconnection of `oc get events -w` after exactly 30s, which
is exactly the reload time of haproxy.

thanks
___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users


Re: oc rsh or oc get pod -w disconnection after few minutes

2017-06-23 Thread Fernando Lozano
Sometimes firewalls do that too

On Fri, Jun 23, 2017 at 1:15 PM, Clayton Coleman 
wrote:

> Generally this happens when you put a proxy in front of your Masters with
> a short connection timeout.  Exec and portforward are tunneled though the
> master via a SPDY or Websocket connection upgrade - if your proxy is
> sophisticated enough you can set different timeouts there.
>
> On Jun 23, 2017, at 10:01 AM, Stéphane Klein 
> wrote:
>
> Hi,
>
> When I use:
>
> oc rsh mypod bash
>
> or
>
> oc get pod -w
>
> I lost connection after few minutes. It's not always the same duration.
>
> Why this disconnection? Where can I look to fix it?
>
> Best regards,
> Stéphane
> --
> Stéphane Klein 
> blog: http://stephane-klein.info
> cv : http://cv.stephane-klein.info
> Twitter: http://twitter.com/klein_stephane
>
> ___
> users mailing list
> users@lists.openshift.redhat.com
> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>
>
> ___
> users mailing list
> users@lists.openshift.redhat.com
> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>
>
___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users


Re: oc rsh or oc get pod -w disconnection after few minutes

2017-06-23 Thread Clayton Coleman
Generally this happens when you put a proxy in front of your Masters with a
short connection timeout.  Exec and portforward are tunneled though the
master via a SPDY or Websocket connection upgrade - if your proxy is
sophisticated enough you can set different timeouts there.

On Jun 23, 2017, at 10:01 AM, Stéphane Klein 
wrote:

Hi,

When I use:

oc rsh mypod bash

or

oc get pod -w

I lost connection after few minutes. It's not always the same duration.

Why this disconnection? Where can I look to fix it?

Best regards,
Stéphane
-- 
Stéphane Klein 
blog: http://stephane-klein.info
cv : http://cv.stephane-klein.info
Twitter: http://twitter.com/klein_stephane

___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users
___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users


oc rsh or oc get pod -w disconnection after few minutes

2017-06-23 Thread Stéphane Klein
Hi,

When I use:

oc rsh mypod bash

or

oc get pod -w

I lost connection after few minutes. It's not always the same duration.

Why this disconnection? Where can I look to fix it?

Best regards,
Stéphane
-- 
Stéphane Klein 
blog: http://stephane-klein.info
cv : http://cv.stephane-klein.info
Twitter: http://twitter.com/klein_stephane
___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users