From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id CFE0E6ECE0; Fri, 17 Dec 2021 03:25:36 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org CFE0E6ECE0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1639700736; bh=UygtSk34l7eGmEpMubFa+/BGtbLDkpzxaZQpWTLhRVA=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=YWG9pxwGcZgUYyqIYgBshCjwT7prxg1RmcNUaj7gx3n+dlKKNKAvUDon17QpBtAoP 0jJKr74CWd286QHnvZccCcPf8Cg2/g6HV0DyjBfSfOUNGydkUqJLhyjfTtokUS9FjN AqB34Rynk6Tu8aMCnxdiZs+GSrM/LZHUUqJ057v4= Received: from smtpng1.i.mail.ru (smtpng1.i.mail.ru [94.100.181.251]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 95B6B6ECC0 for ; Fri, 17 Dec 2021 03:25:33 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 95B6B6ECC0 Received: by smtpng1.m.smailru.net with esmtpa (envelope-from ) id 1my140-0007At-Qm; Fri, 17 Dec 2021 03:25:33 +0300 To: tarantool-patches@dev.tarantool.org, olegrok@tarantool.org Date: Fri, 17 Dec 2021 01:25:26 +0100 Message-Id: X-Mailer: git-send-email 2.24.3 (Apple Git-128) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-7564579A: EEAE043A70213CC8 X-77F55803: 4F1203BC0FB41BD9B5397E24C93BDA67437C98EFFD86422F45ABD0E79110D478182A05F5380850401DDB3E5127D1E1C125184C2F3E44E393A72F11DDDB08134B0F9FB313F3C35F0F X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7F9D3BE5B596754B8C2099A533E45F2D0395957E7521B51C2CFCAF695D4D8E9FCEA1F7E6F0F101C6778DA827A17800CE70043D879A87EF1BCEA1F7E6F0F101C6723150C8DA25C47586E58E00D9D99D84E1BDDB23E98D2D38BBCA57AF85F7723F20BDA81766940AC029CECA93903A0BDD3CC7F00164DA146DAFE8445B8C89999728AA50765F79006370277CA7F994D7EF5389733CBF5DBD5E9C8A9BA7A39EFB766F5D81C698A659EA7CC7F00164DA146DA9985D098DBDEAEC8D2DCF9CF1F528DBCF6B57BC7E6449061A352F6E88A58FB86F5D81C698A659EA7E827F84554CEF5019E625A9149C048EE9ECD01F8117BC8BEE2021AF6380DFAD18AA50765F790063735872C767BF85DA227C277FBC8AE2E8B953A8A48A05D51F175ECD9A6C639B01B4E70A05D1297E1BBCB5012B2E24CD356 X-C1DE0DAB: C20DE7B7AB408E4181F030C43753B8186998911F362727C414F749A5E30D975CFFD95778845B350B5F459F6FA38E90C2168064CB83055B069C2B6934AE262D3EE7EAB7254005DCED3E00E3B59223EED21E0A4E2319210D9B64D260DF9561598F01A9E91200F654B02F433CA60753AEF28E8E86DC7131B365E7726E8460B7C23C X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D34F38194B2C99DC12899A2FBB351C73562BE90401B1389B5810C0E1E2413B26561C6E6C0544C6D41F61D7E09C32AA3244C65EA792697D7A563E8A1452E3D493F543E8609A02908F271729B2BEF169E0186 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojieEIankJUzq+mO3Drg/Law== X-Mailru-Sender: 689FA8AB762F7393C37E3C1AEC41BA5D0E642C4BE339EE52C1305232B8F839973841015FED1DE5223CC9A89AB576DD93FB559BB5D741EB963CF37A108A312F5C27E8A8C3839CE0E25FEEDEB644C299C0ED14614B50AE0675 X-Mras: Ok Subject: [Tarantool-patches] [PATCH vshard 0/5] Router backoff, storage disable X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Vladislav Shpilevoy via Tarantool-patches Reply-To: Vladislav Shpilevoy Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" The patchset introduces vshard.storage auto and manual enable/disable. Disabled storage blocks most of public API calls. The state is handled by the router in a special way so it transparently retries requests failed due to the storage being disabled. Branch: http://github.com/tarantool/vshard/tree/gerold103/gh-298-replica-backoff-part-2 Issue: https://github.com/tarantool/vshard/issues/298 Vladislav Shpilevoy (5): router: backoff on some box errors storage: auto enable/disable storage: manual enable/disable error: introduce from_string router: backoff on storage being disabled example/localcfg.lua | 1 - test/router/router2.result | 325 ++++++++++++++++++++++++++++++++++ test/router/router2.test.lua | 132 ++++++++++++++ test/storage/storage.result | 128 +++++++++++++ test/storage/storage.test.lua | 55 ++++++ test/unit/error.result | 18 ++ test/unit/error.test.lua | 6 + test/unit/garbage.result | 17 +- test/unit/garbage.test.lua | 15 +- test/unit/rebalancer.result | 2 +- test/unit/rebalancer.test.lua | 2 +- vshard/consts.lua | 1 + vshard/error.lua | 32 +++- vshard/replicaset.lua | 119 +++++++++++-- vshard/router/init.lua | 3 +- vshard/storage/init.lua | 207 +++++++++++++++++----- 16 files changed, 987 insertions(+), 76 deletions(-) -- 2.24.3 (Apple Git-128)