<p>I'm checking the <a href="https://istio.io/docs/reference/config/networking/v1alpha3/destination-rule/" rel="nofollow noreferrer">documentation for the DestinationRule</a>, where there are several examples of a circuit breaking configuration, e.g: </p>

<pre><code>apiVersion: networking.istio.io/v1alpha3
kind: DestinationRule
metadata:
  name: bookinfo-app
spec:
  host: bookinfoappsvc.prod.svc.cluster.local
  trafficPolicy:
    connectionPool:
      tcp:
        connectTimeout: 30ms
          ...
</code></pre>

<p>The connectionPool.tcp element offers a connectTimeout. However what I need to configure is a maximum response timeout. Imagine I want to open the circuit if the service takes longer than 5 seconds to answer. Is it possible to configure this in Istio? How?</p>

codependent
<p>Take a look at <a href="https://istio.io/docs/tasks/traffic-management/request-timeouts/" rel="nofollow noreferrer">Tasks --> Traffic Management --> Setting Request Timeouts:</a></p>

<blockquote>
  <p>A timeout for http requests can be specified using the timeout field
  of the <a href="https://istio.io/docs/reference/config/networking/v1alpha3/virtual-service/#HTTPRoute" rel="nofollow noreferrer">route rule</a>. By default, the timeout is 15 seconds [...]</p>
</blockquote>

<p>So, you must set the <code>http.timeout</code> in the <code>VirtualService</code> configuration.
Take a look at this example from the <a href="https://istio.io/docs/reference/config/networking/v1alpha3/virtual-service/#Destination" rel="nofollow noreferrer">Virtual Service / Destination</a> official docs:</p>

<blockquote>
  <p>The following VirtualService sets a timeout of 5s for all calls to
  productpage.prod.svc.cluster.local service in Kubernetes.</p>
</blockquote>

<pre><code>apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
  name: my-productpage-rule
  namespace: istio-system
spec:
  hosts:
  - productpage.prod.svc.cluster.local # ignores rule namespace
  http:
  - timeout: 5s
    route:
    - destination:
        host: productpage.prod.svc.cluster.local
</code></pre>

<blockquote>
  <p><a href="https://istio.io/docs/reference/config/networking/v1alpha3/virtual-service/#HTTPRoute" rel="nofollow noreferrer">http.timeout:</a> Timeout for HTTP requests.</p>
</blockquote>
