Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-23597

Idle Raft Replicator eats too much CPU

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      I noted that nodes of an idle cluster (taking no transactional load) which has 3 nodes and 1200 partitions (replication factor is 2 so there is a replicator per each partition, so 400 replicators per node) eat a considerable amount of CPU (approximately 12% of each of 8 CPU cores). According to the JFR, all work is done by replicators (sending side) and AppendEntries controllers (receiving side). Both spend most of the time in LogStorage#getTerm().

      We should try to optimize this method (probably caching terms for last N indices).

      Attachments

        Issue Links

          Activity

            People

              rpuch Roman Puchkovskiy
              rpuch Roman Puchkovskiy
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: