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 53170200BD5 for ; Thu, 8 Dec 2016 08:34:22 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 51C36160B1F; Thu, 8 Dec 2016 07:34:22 +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 9B033160B1E for ; Thu, 8 Dec 2016 08:34:21 +0100 (CET) Received: (qmail 3494 invoked by uid 500); 8 Dec 2016 07:34:20 -0000 Mailing-List: contact dev-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list dev@ignite.apache.org Received: (qmail 3478 invoked by uid 99); 8 Dec 2016 07:34:20 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Dec 2016 07:34:20 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id F1D12C25DA for ; Thu, 8 Dec 2016 07:34:19 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.02 X-Spam-Level: X-Spam-Status: No, score=-0.02 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gridgain-com.20150623.gappssmtp.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id LbzgjMqXV_Kc for ; Thu, 8 Dec 2016 07:34:19 +0000 (UTC) Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id B66795FC41 for ; Thu, 8 Dec 2016 07:34:18 +0000 (UTC) Received: by mail-wm0-f46.google.com with SMTP id g23so204193503wme.1 for ; Wed, 07 Dec 2016 23:34:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gridgain-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:references:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=DZtRbUGP2e5lSHFZP85x6pK8BAwr8tmCxaP86kgf8Cs=; b=VjZWuo3k5ftbWIf+GGwkocIg8xJdOkPx+tlUxSBTpXpG4FYYrcR8zjEcDbrU1NM+Jy qijhLNisGPJHGYNXJhp3ofDMs9hjlAOAzyMmlbOSbM/NDplCrhJhMz25YWT8TjB66PQH DY3xc/+i+veXFrhP0Mmbpj2LT4VsT9tnx6fYgbuBW1mOtMcfJdUSChSe9FI3RVf3jLxw XfQTOrNdRacI+HWQpm+hfxgOEbGb3aCdcZW2DYeslX0kuo40tlvTrxYWJ7jGUrhoeJD0 n/LP6oYAfgZcU7tX+J937vBIEMZ4QmrCMuGs4+/5qX9Alh03jBNJzEdiISGDvMDEqPmH axYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=DZtRbUGP2e5lSHFZP85x6pK8BAwr8tmCxaP86kgf8Cs=; b=cpIaqOmOH2GSf9FLFdcV9QZMz8ZX8PvOjRB1oIG3LtiOd3K0Bqm6RpxSCEqpjjOr+o THKyJaeeS6CIuhZpd4hPhqaW5bSvezS7TwhlU+vZN6GxnjcR20+5slTu1m648Qzizbw0 xJ10+5fjUwhlrWhjsOBNKSie6Albvdry66WVNf8F7q1FwfgWQyjTzKgEfNAK6aDEOer8 CJXgh/ofOajFaxF/2fvBuwHS5OsPEt+yOG/WsBNZCQaafstODXYqAG54LxKFs4pN6y84 DVfd1QMkpVXBkvxUF+5Mds6MZL3A1q7FTYR9nKWIvdWvSzsNgBu6L29IJ/LGz4W3duiA uUEw== X-Gm-Message-State: AKaTC00YTz0QRFVUNTJ5qA8h7APK4f0zvHGfBPKFskNdCE42g4gZoC0XNUTw+E3yrSmiSu0Y X-Received: by 10.25.198.132 with SMTP id w126mr26285622lff.175.1481182457349; Wed, 07 Dec 2016 23:34:17 -0800 (PST) Received: from [172.25.4.146] ([195.144.253.150]) by smtp.gmail.com with ESMTPSA id z68sm5511632lff.35.2016.12.07.23.34.16 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Dec 2016 23:34:16 -0800 (PST) From: Dmitry Karachentsev To: dev@ignite.apache.org Subject: Re: Grid hang on compute References: <25c3ae8a-a663-cec7-fdd1-81d31644aa90@gridgain.com> Message-ID: <5df5f009-ad8a-0a1a-0755-00be301896b5@gridgain.com> Date: Thu, 8 Dec 2016 10:34:14 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit archived-at: Thu, 08 Dec 2016 07:34:22 -0000 Thanks! Opened a ticket to support Yakov's proposal. https://issues.apache.org/jira/browse/IGNITE-4395 On 08.12.2016 4:03, Dmitriy Setrakyan wrote: > Is there any way we can detect this and prevent from happening? Or perhaps > start rejecting jobs if they can potentially block the system? > > On Wed, Dec 7, 2016 at 8:11 AM, Yakov Zhdanov wrote: > >> Proper solution here is to have communication backpressure per policy - >> SYSTEM or PUBLIC, but not single point as it is now. I think we can achieve >> this having two queues per communication session or (which looks a bit >> easier to implement) to have separate connections. >> >> As a workaround you can increase the limit. Setting it to 0 may lead to a >> potential OOME on sender or receiver sides. >> >> --Yakov >> >> 2016-12-07 20:35 GMT+07:00 Dmitry Karachentsev >> : >>> Igniters! >>> >>> Recently faced with arguable issue, it looks like a bug. Scenario is >>> following: >>> >>> 1) Start two data nodes with some cache. >>> >>> 2) From one node in async mode post some big number of jobs to another. >>> That jobs do some cache operations. >>> >>> 3) Grid hangs almost immediately and all threads are sleeping except >>> public ones, they are waiting for response. >>> >>> This happens because all cache and job messages are queued on >>> communication and limited with default number (1024). It looks like jobs >>> are waiting for cache responses that could not be received due to this >>> limit. It's hard to diagnose and looks not convenient (as I know we have >> no >>> limitation in docs for using cache ops from compute jobs). >>> >>> So, my question is. Should we try to solve that or, may be, it's enough >> to >>> update documentation with recommendation to disable queue limit for such >>> cases? >>> >>>