You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Denis Chudov (Jira)" <ji...@apache.org> on 2023/05/26 13:46:00 UTC

[jira] [Created] (IGNITE-19578) Decrease count of lease messages to meta storage

Denis Chudov created IGNITE-19578:
-------------------------------------

             Summary: Decrease count of lease messages to meta storage
                 Key: IGNITE-19578
                 URL: https://issues.apache.org/jira/browse/IGNITE-19578
             Project: Ignite
          Issue Type: Improvement
            Reporter: Denis Chudov


*Motivation* 
Huge number of lease messages cause serious load on meta storage, which impacts the performance of a cluster overall. Each lease message contains prefix + group name as a key, and the value contains leaseholder name, left and right timestamp and couple of boolean flags.
Many leases share the same leaseholder. Also, many leases share the same right border, as batch of leases are renewed on every iteration of lease updater and get the same right border.
So, the compacted data structure for all leases could be a map
{code:java}
leaseholder -> set of right borders -> set of leases which contain only left border and flags.{code}
It is important that this data structure is applicable to meta storage representation, in-memory representation of leases should remain the same.

*Definition of done*
Count of meta storage invokes from lease updater is significantly reduced.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)