Tarantool development patches archive
 help / color / mirror / Atom feed
* [tarantool-patches] [PATCH v4] vshard module reload
@ 2018-07-30  8:56 AKhatskevich
  2018-07-30  8:56 ` [tarantool-patches] [PATCH 1/4] Fix races related to object outdating AKhatskevich
                   ` (4 more replies)
  0 siblings, 5 replies; 32+ messages in thread
From: AKhatskevich @ 2018-07-30  8:56 UTC (permalink / raw)
  To: v.shpilevoy, tarantool-patches

Issue1: https://github.com/tarantool/vshard/issues/112
Issue2: https://github.com/tarantool/vshard/issues/125
Branch: https://github.com/tarantool/vshard/tree/kh/gh-112-reload-mt-2

This patcheset improves vshard reload mechanism.

Changes since PATCH v2:
 - Races related to object outdating are fixed.
 - Reloadable fiber is refactored (allow to pass a data to a function).

AKhatskevich (4):
  Fix races related to object outdating
  Refactor reloadable fiber
  tests: separate bootstrap routine to a lua_libs
  Introduce storage reload evolution

 .travis.yml                                        |   2 +-
 rpm/prebuild.sh                                    |   2 +
 test/lua_libs/bootstrap.lua                        |  50 +++++
 test/lua_libs/git_util.lua                         |  51 +++++
 test/lua_libs/util.lua                             |  20 ++
 test/rebalancer/box_1_a.lua                        |  47 +---
 test/rebalancer/errinj.result                      |   2 +-
 test/rebalancer/errinj.test.lua                    |   2 +-
 test/rebalancer/rebalancer.result                  |   4 +-
 test/rebalancer/rebalancer.test.lua                |   4 +-
 test/rebalancer/rebalancer_lock_and_pin.result     |   2 +-
 test/rebalancer/rebalancer_lock_and_pin.test.lua   |   2 +-
 test/rebalancer/restart_during_rebalancing.result  |   2 +-
 .../rebalancer/restart_during_rebalancing.test.lua |   2 +-
 test/rebalancer/stress_add_remove_rs.result        |   2 +-
 test/rebalancer/stress_add_remove_rs.test.lua      |   2 +-
 .../rebalancer/stress_add_remove_several_rs.result |   2 +-
 .../stress_add_remove_several_rs.test.lua          |   2 +-
 test/rebalancer/suite.ini                          |   2 +-
 test/reload_evolution/storage.result               | 245 +++++++++++++++++++++
 test/reload_evolution/storage.test.lua             |  87 ++++++++
 test/reload_evolution/storage_1_a.lua              |  48 ++++
 test/reload_evolution/storage_1_b.lua              |   1 +
 test/reload_evolution/storage_2_a.lua              |   1 +
 test/reload_evolution/storage_2_b.lua              |   1 +
 test/reload_evolution/suite.ini                    |   6 +
 test/reload_evolution/test.lua                     |   9 +
 test/router/reload.result                          |   4 +-
 test/router/reload.test.lua                        |   4 +-
 test/storage/reload.result                         |   6 +-
 test/storage/reload.test.lua                       |   6 +-
 test/unit/garbage.result                           |   2 +-
 test/unit/garbage.test.lua                         |   2 +-
 test/unit/reload_evolution.result                  |  45 ++++
 test/unit/reload_evolution.test.lua                |  18 ++
 test/unit/util.result                              |  20 +-
 test/unit/util.test.lua                            |  12 +-
 vshard/replicaset.lua                              |  30 +--
 vshard/router/init.lua                             |  74 ++++---
 vshard/storage/init.lua                            |  33 ++-
 vshard/storage/reload_evolution.lua                |  58 +++++
 vshard/util.lua                                    |  59 ++---
 42 files changed, 798 insertions(+), 175 deletions(-)
 create mode 100644 test/lua_libs/bootstrap.lua
 create mode 100644 test/lua_libs/git_util.lua
 create mode 100644 test/reload_evolution/storage.result
 create mode 100644 test/reload_evolution/storage.test.lua
 create mode 100755 test/reload_evolution/storage_1_a.lua
 create mode 120000 test/reload_evolution/storage_1_b.lua
 create mode 120000 test/reload_evolution/storage_2_a.lua
 create mode 120000 test/reload_evolution/storage_2_b.lua
 create mode 100644 test/reload_evolution/suite.ini
 create mode 100644 test/reload_evolution/test.lua
 create mode 100644 test/unit/reload_evolution.result
 create mode 100644 test/unit/reload_evolution.test.lua
 create mode 100644 vshard/storage/reload_evolution.lua

-- 
2.14.1

^ permalink raw reply	[flat|nested] 32+ messages in thread
* [tarantool-patches] [PATCH 0/3] multiple routers
@ 2018-07-31 16:25 AKhatskevich
  2018-08-01 14:30 ` [tarantool-patches] [PATCH] Check self arg passed for router objects AKhatskevich
  0 siblings, 1 reply; 32+ messages in thread
From: AKhatskevich @ 2018-07-31 16:25 UTC (permalink / raw)
  To: v.shpilevoy, tarantool-patches

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

^ permalink raw reply	[flat|nested] 32+ messages in thread

end of thread, other threads:[~2018-08-08 10:35 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-30  8:56 [tarantool-patches] [PATCH v4] vshard module reload AKhatskevich
2018-07-30  8:56 ` [tarantool-patches] [PATCH 1/4] Fix races related to object outdating AKhatskevich
2018-07-30 11:55   ` [tarantool-patches] " Vladislav Shpilevoy
2018-07-30 16:46     ` Alex Khatskevich
2018-07-30 17:50       ` Vladislav Shpilevoy
2018-07-31 11:05         ` Alex Khatskevich
2018-08-01 12:36           ` Vladislav Shpilevoy
2018-08-01 17:44             ` Alex Khatskevich
2018-08-02 11:51               ` Vladislav Shpilevoy
2018-07-30  8:56 ` [tarantool-patches] [PATCH 2/4] Refactor reloadable fiber AKhatskevich
2018-07-30 11:55   ` [tarantool-patches] " Vladislav Shpilevoy
2018-07-31 11:24     ` Alex Khatskevich
2018-07-31 11:30       ` Alex Khatskevich
2018-08-01 11:54         ` Vladislav Shpilevoy
2018-07-30  8:56 ` [tarantool-patches] [PATCH 3/4] tests: separate bootstrap routine to a lua_libs AKhatskevich
2018-08-01 12:03   ` [tarantool-patches] " Vladislav Shpilevoy
2018-07-30  8:56 ` [tarantool-patches] [PATCH 4/4] Introduce storage reload evolution AKhatskevich
2018-07-30 11:55   ` [tarantool-patches] " Vladislav Shpilevoy
2018-07-31 11:29     ` Alex Khatskevich
2018-07-31 11:33     ` Alex Khatskevich
2018-08-01 12:36       ` Vladislav Shpilevoy
2018-08-01 18:09         ` Alex Khatskevich
2018-08-02 11:40           ` Vladislav Shpilevoy
2018-08-02 11:46             ` Vladislav Shpilevoy
2018-08-06 10:59               ` Alex Khatskevich
2018-08-06 15:36                 ` Vladislav Shpilevoy
2018-08-06 16:08                   ` Alex Khatskevich
2018-08-06 17:18                     ` Vladislav Shpilevoy
2018-08-07  9:14                       ` Alex Khatskevich
2018-08-08 10:35                         ` Vladislav Shpilevoy
2018-08-01 14:07 ` [tarantool-patches] [PATCH] Check self arg passed for router objects AKhatskevich
2018-07-31 16:25 [tarantool-patches] [PATCH 0/3] multiple routers AKhatskevich
2018-08-01 14:30 ` [tarantool-patches] [PATCH] Check self arg passed for router objects AKhatskevich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox