Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id AC130200C62 for ; Wed, 26 Apr 2017 15:49:47 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id AAC9B160BA8; Wed, 26 Apr 2017 13:49:47 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D6E9B160B95 for ; Wed, 26 Apr 2017 15:49:46 +0200 (CEST) Received: (qmail 38868 invoked by uid 500); 26 Apr 2017 13:48:15 -0000 Mailing-List: contact user-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ignite.apache.org Delivered-To: mailing list user@ignite.apache.org Received: (qmail 38061 invoked by uid 99); 26 Apr 2017 13:48:14 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Apr 2017 13:48:14 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id C3C7FC0787 for ; Wed, 26 Apr 2017 13:48:13 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.897 X-Spam-Level: X-Spam-Status: No, score=-0.897 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-2.796, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id OEBVHg5_lzjv for ; Wed, 26 Apr 2017 13:48:11 +0000 (UTC) Received: from mail-ua0-f176.google.com (mail-ua0-f176.google.com [209.85.217.176]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id EE0645FDFC for ; Wed, 26 Apr 2017 13:48:09 +0000 (UTC) Received: by mail-ua0-f176.google.com with SMTP id 110so539899uas.3 for ; Wed, 26 Apr 2017 06:48:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=6xIljvRwPg/uNYoBZE0j4Xil+unRc/nxh56Ssmf/wUg=; b=PToF/psuqXc05W2MFACeKlEcbQjnEluWLbCMAWUqFj4qRtauH/0Sz0s+oDsBh58vkQ ZReLTvXiGUH4hefe/b4JT4KpWKQuXVGVutxWC4GaqGP7Y9R6httXNboYdume1KvnUdLX vgtcU7Iz5UpwRfBtk3leXPOQIChCio1NJJwjvCNfBKbQB/ZYdw3j6jLzJmQuJBuQGqxv A/CpfSCA+uTcsSC58vQ2cZ01zntsrfTfC9b2RMXeP3k4ePANAmi/BVDK+bxPlpu14mPI 9yBNiAimGD84VLTmP9LBPFYdAJjdAxEbeOzx6IOEfF6wwAUjgXarYiLaZ0hiclYKXKlJ KFbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=6xIljvRwPg/uNYoBZE0j4Xil+unRc/nxh56Ssmf/wUg=; b=G5phVv3zJYBGddJtyu7TlZkYRJmQV7SiEZ4FO6Dsjy5uYZinLucoL4TjkZospUkpco 0NpSX8u3uDaMCYktoux8QmkP5JyyniEA2B7qdFfedjUB7v3ZaOkAqvSNcLINY56h+wKq 63daxwB+3VDfDzZjiFvCSUJHjdQ5mMruXqOXfMTmD8gpXeiQtZPyWJK6XDc8bH6wWZ0V nnZeAGJswCuu/atenN28F+HfLiHjM8qx/o9zk5RkcFYk9Yt2dJnZEEp/mLVErskf7fjX 4ewbR/PAIRP0fkJcGohoG0ltFpO+SR/y0mNxfQKznofIcfMq1RsGdsF2R8PTtS3ZiYeX uaAA== X-Gm-Message-State: AN3rC/6S06pAAjMYqMXbOTfVJDRaJBQQ/0SBaW7qQeMOAdzMu6fsE7Ff Wj/nzTAznlG7j876aZjDA1RLsRjCnQoS X-Received: by 10.176.91.8 with SMTP id u8mr19499915uae.150.1493214488655; Wed, 26 Apr 2017 06:48:08 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.7.136 with HTTP; Wed, 26 Apr 2017 06:48:08 -0700 (PDT) In-Reply-To: <1493209493165-12266.post@n6.nabble.com> References: <1493209493165-12266.post@n6.nabble.com> From: Andrey Mashenkov Date: Wed, 26 Apr 2017 16:48:08 +0300 Message-ID: Subject: Re: setting query timeout and getting partial result instead of exception. To: user@ignite.apache.org Content-Type: multipart/alternative; boundary=f403045f8d022b7cea054e1217bf archived-at: Wed, 26 Apr 2017 13:49:47 -0000 --f403045f8d022b7cea054e1217bf Content-Type: text/plain; charset=UTF-8 Hi, You can try to increase SqlQuery.setTimeout() (30 sec by default) or connectorConfiguration.setIdleTimeout() (7 sec by default) It may slightly help if you use sorting, as you need to have pages of rows from all nodes to make correct merge. Also, you can try to increase SqlQuery.pageSize() or JDBCStatement.fetchSize(). 1024 is default value. On Wed, Apr 26, 2017 at 3:24 PM, neerajbhatt wrote: > Hi All > > We have a cache which is to be partitioned across nodes. > Currently all the SQL queries are executed on all nodes by default. > However, if a node is slow, all the queries will be slow. > So, is there a way to set the timeout on the SQL queries, so that even > though a few nodes are slow and timeout, the data is returned from rest of > the nodes. > This way, we will get partial data, instead of exception. > > > > > -- > View this message in context: http://apache-ignite-users. > 70518.x6.nabble.com/setting-query-timeout-and-getting- > partial-result-instead-of-exception-tp12266.html > Sent from the Apache Ignite Users mailing list archive at Nabble.com. > -- Best regards, Andrey V. Mashenkov --f403045f8d022b7cea054e1217bf Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

You can try to increase SqlQuery.se= tTimeout() (30 sec by default) or connectorConfiguration.setIdleTimeout() (= 7 sec by default)
It may slightly help if you use sorting, as you= need to have pages of rows from all nodes to make correct merge.

Also, you can try to increase SqlQuery.pageSize() or JDBCSt= atement.fetchSize(). 1024 is default value.

On Wed, Apr 26, 2017 at 3:24 PM, neer= ajbhatt <neerajbhatt2000@gmail.com> wrote:
Hi All

We have a cache which is to be partitioned across nodes.
Currently all the SQL queries are executed on all nodes by default.
However, if a node is slow, all the queries will be slow.
So, is there a way to set the timeout on the SQL queries, so that even
though a few nodes are slow and timeout, the data is returned from rest of<= br> the nodes.
This way, we will get partial data, instead of exception.




--
View this message in context: http://apache-ig= nite-users.70518.x6.nabble.com/setting-query-timeout-and-getting-= partial-result-instead-of-exception-tp12266.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.



--
Best regards,
Andrey V. Mashenkov
--f403045f8d022b7cea054e1217bf--