From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 00C15283BE for ; Tue, 31 Jul 2018 12:25:44 -0400 (EDT) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9I99WAUNEvqt for ; Tue, 31 Jul 2018 12:25:43 -0400 (EDT) Received: from smtp44.i.mail.ru (smtp44.i.mail.ru [94.100.177.104]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 56B5B27838 for ; Tue, 31 Jul 2018 12:25:43 -0400 (EDT) From: AKhatskevich Subject: [tarantool-patches] [PATCH 0/3] multiple routers Date: Tue, 31 Jul 2018 19:25:25 +0300 Message-Id: Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-subscribe: List-owner: List-post: List-archive: To: v.shpilevoy@tarantool.org, tarantool-patches@freelists.org Issue: https://github.com/tarantool/vshard/issues/130 Extra issue: https://github.com/tarantool/vshard/issues/138 Branch: https://github.com/tarantool/vshard/tree/kh/gh-130-multiple-routers This patchset introduces multiple routers feature. A user can create multiple router instances which are connected to different (or the same) clusters. AKhatskevich (3): Update only vshard part of a cfg on reload Move lua gc to a dedicated module Introduce multiple routers feature test/multiple_routers/configs.lua | 81 ++++++ test/multiple_routers/multiple_routers.result | 226 +++++++++++++++ test/multiple_routers/multiple_routers.test.lua | 85 ++++++ test/multiple_routers/router_1.lua | 15 + test/multiple_routers/storage_1_1_a.lua | 23 ++ test/multiple_routers/storage_1_1_b.lua | 1 + test/multiple_routers/storage_1_2_a.lua | 1 + test/multiple_routers/storage_1_2_b.lua | 1 + test/multiple_routers/storage_2_1_a.lua | 1 + test/multiple_routers/storage_2_1_b.lua | 1 + test/multiple_routers/storage_2_2_a.lua | 1 + test/multiple_routers/storage_2_2_b.lua | 1 + test/multiple_routers/suite.ini | 6 + test/multiple_routers/test.lua | 9 + test/router/garbage_collector.result | 27 +- test/router/garbage_collector.test.lua | 18 +- test/router/router.result | 4 +- test/router/router.test.lua | 4 +- test/storage/garbage_collector.result | 27 +- test/storage/garbage_collector.test.lua | 22 +- vshard/cfg.lua | 54 ++-- vshard/lua_gc.lua | 54 ++++ vshard/router/init.lua | 364 +++++++++++++++--------- vshard/storage/init.lua | 71 ++--- vshard/util.lua | 12 +- 25 files changed, 865 insertions(+), 244 deletions(-) create mode 100644 test/multiple_routers/configs.lua create mode 100644 test/multiple_routers/multiple_routers.result create mode 100644 test/multiple_routers/multiple_routers.test.lua create mode 100644 test/multiple_routers/router_1.lua create mode 100644 test/multiple_routers/storage_1_1_a.lua create mode 120000 test/multiple_routers/storage_1_1_b.lua create mode 120000 test/multiple_routers/storage_1_2_a.lua create mode 120000 test/multiple_routers/storage_1_2_b.lua create mode 120000 test/multiple_routers/storage_2_1_a.lua create mode 120000 test/multiple_routers/storage_2_1_b.lua create mode 120000 test/multiple_routers/storage_2_2_a.lua create mode 120000 test/multiple_routers/storage_2_2_b.lua create mode 100644 test/multiple_routers/suite.ini create mode 100644 test/multiple_routers/test.lua create mode 100644 vshard/lua_gc.lua -- 2.14.1