[tarantool-patches] Re: [PATCH 1/2] swim: pool IO tasks
Konstantin Osipov
kostja at tarantool.org
Wed Jul 10 01:24:44 MSK 2019
* Vladislav Shpilevoy <v.shpilevoy at tarantool.org> [19/07/09 23:48]:
> The patchset is pushed to the master.
>
> On 09/07/2019 01:08, Konstantin Osipov wrote:
> > * Vladislav Shpilevoy <v.shpilevoy at tarantool.org> [19/07/09 01:13]:
> >> Yes, you misunderstood something. This is the whole point of this
> >> commit - make number of tasks not depending on a number of members.
> >> On the master branch now the number of tasks per SWIM is linear of
> >> cluster size - it is terrible. Both 1 and 2 tasks per member are
> >> linear.
> >>
> >> But network load per one instance does not depend on number of members,
> >> so we can make number of tasks independent from cluster size. I am trying
> >> to reuse a small set of tasks for all members of one instance. Just
> >> imagine - a SWIM instance knows about 500 members, and manages to work
> >> with them using just 2-10 messages at once.
> >
> > ok, then a mempool is an overkill for sure.
the comment about static global variables being unsafe still
remains.
Please assert or make the library thread-safe.
--
Konstantin Osipov, Moscow, Russia
More information about the Tarantool-patches
mailing list