Uploaded image for project: 'Apache IoTDB'
  1. Apache IoTDB
  2. IOTDB-1099

Optimize insertablets logic in cluster module

    XMLWordPrintableJSON

Details

    Description

      Currently, cluster module will process insertablets rpc by spliting it to multiple insertablet statements one by one, and each of them will take up a raft log, which need to complete the RaftLogManager's lock and be replicated to followers in one raft log.

      In some user cases, a inserttablets will have 160 tablets, so this single client insertablets rpc will take up 160 raft logs containing insertabletPlan to replicate, which maybe optimized to one raft log containing insertabletsPlan if these devices all belong to same data group;

      Therefore, we can process one insertablets rpc by grouping them to several raft logs containing insertabletsPlan according to their belonged data groups, just like the createMultiTimeSeriesPlan in current implementation.

      Attachments

        Issue Links

          Activity

            People

              houliang Houliang Qi
              tanxinyu Xinyu Tan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: