Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-1583

Improve backup-node sync performance by wrapping RPC parameters

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.23.0
    • Component/s: namenode
    • Labels:
      None

      Description

      The journal edit records are sent by the active name-node to the backup-node with RPC:

        public void journal(NamenodeRegistration registration,
                            int jAction,
                            int length,
                            byte[] records) throws IOException;
      

      During the name-node throughput benchmark, the size of byte array records is around 8000. Then the serialization and deserialization is time-consuming. I wrote a simple application to test RPC with byte array parameter. When the size got to 8000, each RPC call need about 6 ms. While name-node sync 8k byte to local disk only need 0.3~0.4ms.

        Attachments

        1. HDFS-1583-1.patch
          7 kB
          Liyin Liang
        2. HDFS-1583-2.patch
          9 kB
          Liyin Liang
        3. test-rpc.diff
          8 kB
          Liyin Liang

          Issue Links

            Activity

              People

              • Assignee:
                liangly Liyin Liang
                Reporter:
                liangly Liyin Liang
              • Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: