camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sotaro Kimura (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAMEL-5824) camel-hbase - HBase data access performance improvement
Date Mon, 26 Nov 2012 22:58:58 GMT
Sotaro Kimura created CAMEL-5824:
------------------------------------

             Summary: camel-hbase - HBase data access performance improvement
                 Key: CAMEL-5824
                 URL: https://issues.apache.org/jira/browse/CAMEL-5824
             Project: Camel
          Issue Type: Improvement
          Components: camel-hbase
    Affects Versions: 2.10.2
         Environment: OS:CentOS6.2 64bit
CPU:Core i7 2700
Memory:16GB
HDD:WD20EARX(2TB SATA600)
            Reporter: Sotaro Kimura
            Priority: Minor
         Attachments: patchfile.txt

In testing hbase client using camel-hbase component,
data put performance is low.
( about 20 put operation / second, I use Core i7 2700K machine.)

I confirmed performance bottleneck.
And I find bottleneck below

- Everytime camel-hbase component put data,
  camel-hbase component creates and closes HTableInterface.
- But HTableInterface create cost is high.
   So camel-hbase component performance is low.

Performance problem is fixed by using HTablePool at HBaseProducer,
data put performance is improved 20 operetion/second to 200 operation/second.

Modified source is below( and attach patchfile.txt)
-HBaseProducer.java(orig)
----------------------------
103        } finally {
104            table.close();
105        }
----------------------------

-HBaseProducer.java(improved)
----------------------------
103        } finally {
104            tablePool.putTable(table);
105        }
----------------------------


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message