Hi,
I'm new into the voldemort db issue and facing some troubles with the performance of my first test-database.
When I am putting 1000 key-value pairs into my database, I need about 2200ms until the client finishes the task.
Here my database configuration and simple java code. What am I doing wrong and how do I achieve better rates?
cluster.xml
<cluster>
<name>mycluster</name>
<server>
<id>0</id>
<host>192.168.1.50</host>
<http-port>8081</http-port>
<socket-port>6666</socket-port>
<partitions>0, 1</partitions>
</server>
</cluster>
server.properties
# The ID of *this* particular cluster node
max.threads=100
############### DB options ######################
http.enable=true
socket.enable=true
# BDB
bdb.write.transactions=true
bdb.flush.transactions=true
bdb.cache.size=1G
# Mysql
mysql.host=localhost
mysql.port=1521
mysql.user=root
mysql.password=3306
mysql.database=test
#NIO connector settings.
enable.nio.connector=true
request.format=vp3
storage.configs=voldemort.store.bdb.BdbStorageConfiguration, voldemort.store.readonly.ReadOnlyStorageConfiguration
stores.xml
<stores>
<store>
<name>teststorage</name>
<persistence>bdb</persistence>
<description>Test store</description>
<owners>te...@test.test</owners>
<routing-strategy>consistent-routing</routing-strategy>
<routing>client</routing>
<replication-factor>1</replication-factor>
<required-reads>1</required-reads>
<required-writes>1</required-writes>
<key-serializer>
<type>string</type>
</key-serializer>
<value-serializer>
<type>string</type>
</value-serializer>
</store>
</stores>
Java-Client
StoreClientFactory factory = new SocketStoreClientFactory(new ClientConfig().setBootstrapUrls(bootstrapUrl));
StoreClient<String, String> client = factory.getStoreClient("teststorage");
int i = 0;
Long timestamp = new Date().getTime();
while (i < 1000) {
client.put("testkey" + i, "testvalue"+i);
i++;
}
Long timestamp2 = new Date().getTime();
System.out.println("time: "+(timestamp2-timestamp)+" ms");
System configuration:
Voldemort-DB: Ubuntu-VM with 2 cores and 2 GB RAM.
Java-Client: Host system with Windows 7 6 GB RAM and i7.
I would be glad about any help I can get!
Regards
Georg