Tarantool development patches archive
 help / color / mirror / Atom feed
From: Georgy Kirichenko <kirichenkoga@gmail.com>
To: Konstantin Osipov <kostja.osipov@gmail.com>
Cc: tarantool-patches@dev.tarantool.org
Subject: Re: [Tarantool-patches] [PATCH] Trigger on vclock change
Date: Thu, 14 Nov 2019 17:06:36 +0300	[thread overview]
Message-ID: <13232148.CanJsBF7IP@home.lan> (raw)
In-Reply-To: <20191114134422.GA8372@atlas>

On Thursday, November 14, 2019 4:44:22 PM MSK Konstantin Osipov wrote:
> * Maria <maria.khaydich@tarantool.org> [19/11/14 15:59]:
> > This patch implements replication.on_vclock
> > trigger that can be  useful for programming
> > shard-systems with redundancy.
> 
> 3808 is about being able to wait for an lsn.
> 
> Using a trigger for *waiting* is called busy waiting, and is a cpu
> hog, especially at a performance critical space like update of
> replica vclock, which can happen a hundred times a second.
> 
> Why not implement a way to wait for an lsn instead?
Please explain your proposal in a more detailed way.
Do you wish to implement a hard-coded `handler` and each time when a replica 
vclock is updated this handler will compare the updated vclock against members 
of set of replica_id:lsn pairs organized in a list, tree or something else? 
And if a compare matches to true then a corresponding handler will be called?

Anyway, we will need to have such trigger in order to make applier able to 
report local replica wal and commited vclock in scope of synchronous 
replication issue.

  reply	other threads:[~2019-11-14 14:06 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-14 12:57 Maria
2019-11-14 13:44 ` Konstantin Osipov
2019-11-14 14:06   ` Georgy Kirichenko [this message]
2019-11-14 15:26     ` Konstantin Osipov
2019-11-14 17:13       ` Georgy Kirichenko
2019-11-14 17:33         ` Konstantin Osipov
2019-11-14 19:16           ` Georgy Kirichenko
2019-11-14 19:48             ` Konstantin Osipov
2019-11-14 20:01               ` Georgy Kirichenko
2019-11-15  1:57                 ` Konstantin Osipov
2019-11-15  6:02                   ` Georgy Kirichenko
2019-11-15 13:57                     ` Konstantin Osipov
2019-11-15 19:57                       ` Georgy Kirichenko
2019-11-16 10:37                         ` Konstantin Osipov
2019-11-16 20:43                           ` Georgy Kirichenko
2019-11-16 11:56                         ` Konstantin Osipov
2019-11-16 20:34                           ` Georgy Kirichenko
2019-11-18  9:31                             ` Konstantin Osipov
2020-06-02 12:22                               ` Maria Khaydich
2020-06-03 10:12                                 ` Sergey Ostanevich
2020-06-03 12:08                                   ` Alexander Turenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=13232148.CanJsBF7IP@home.lan \
    --to=kirichenkoga@gmail.com \
    --cc=kostja.osipov@gmail.com \
    --cc=tarantool-patches@dev.tarantool.org \
    --subject='Re: [Tarantool-patches] [PATCH] Trigger on vclock change' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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