Recently I am trying to verify Aerospike can satisfy our requirements -
1. Persistent Cache for images
2. Time To Live(TTL)
3. Eviction
4. Remove all of related data by a key
5. Scale Out easily
I am testing it with YCSB to check performance. When I tried 256KB data size test, YCSB just stopped. As you know, YCSB is not kind. It doesn't show me any error message. So I ran the following code.
You can find out how to use Aerospike client here.
The result was "Record too big".
What? I already ran same test case on AWS and had no problem. They say "The size of the object or record is exceeding the limit, currently at 1MB". I just ran 256KB and 456KB. Something is wrong. I tried applying several data size files to find out MAX_SIZE. MAX_SIZE was 128KB. Finally I got a hint to solve this problem.
citrusleaf.conf
I am using data file because server was already configured RAID 10 with 4 SSDs and I did not want to go far far our data center. :) Anyway the reason was [write-block-size]. It makes limitation on using data file. When I use raw device([device]), I had no problem. I removed it and could run my test case.
You know what? The max size of our images is 10MB. orz...
Software Engineer is(should be) a most efficient Problem Solver.
Showing posts with label aerospike. Show all posts
Showing posts with label aerospike. Show all posts
May 16, 2013
Apr 11, 2013
How to add new node to an existing Aerospike Cluster - Using multicast
Modify /etc/citrusleaf/citrusleaf.conf as my example.
After modifying just start new node, it will be added an existing cluster automatically. You can confirm it on /var/log/citrusleaf.log with the following message.
Tip(?).
I changed ip address to 172.28.206.73 - it's wrong address -, after I got succeeded with above configuration. So I fixed it to 172.28.206.72 and restarted node. But I got some non normal message.
I issued the command and failed to get expected result - ClusterSize 2 -.
I fixed this event by restarting all nodes.
After modifying just start new node, it will be added an existing cluster automatically. You can confirm it on /var/log/citrusleaf.log with the following message.
Tip(?).
I changed ip address to 172.28.206.73 - it's wrong address -, after I got succeeded with above configuration. So I fixed it to 172.28.206.72 and restarted node. But I got some non normal message.
I issued the command and failed to get expected result - ClusterSize 2 -.
I fixed this event by restarting all nodes.
Install and Run Aerospike Community Edition on CentOS 6.2
This installation is just for CentOS 6.2. If you use other OS like Ubuntu, please see Aerospike Standard Installation.
Step 1. Download Aerospike Database Server rpm packages
You can download here.
Step 2. Untar file
Step 3. Install the Aerospike Server
Step 4. Run the Aerospike Server for Testing
Oops! I got a error message. It means "CLD is stopped!". Let me see the log.
Aha! Aerospike can't get ip address by eth, bond, wlan. Wait! my network interface name is "bond0.2032". If they use regular expression, it would be solved. But I can't fix it, so I changed my configuration file - /etc/citrusleaf/citrusleaf.conf - as blow. I just added network-interface-name item.
......
network {
service {
address any
port 3000
reuse-address
network-interface-name bond0.2032
......
I ran it again and got succeeded.
Step 5. Verify Installation
I used the Aerospike command line interface tool to verity installation. It is installed as /opt/citrusleaf/bin/cli and lined in /usr/bin/cli. So you can use it normally.
It's simple, right?
Step 1. Download Aerospike Database Server rpm packages
You can download here.
Step 2. Untar file
Step 3. Install the Aerospike Server
Step 4. Run the Aerospike Server for Testing
Oops! I got a error message. It means "CLD is stopped!". Let me see the log.
Aha! Aerospike can't get ip address by eth, bond, wlan. Wait! my network interface name is "bond0.2032". If they use regular expression, it would be solved. But I can't fix it, so I changed my configuration file - /etc/citrusleaf/citrusleaf.conf - as blow. I just added network-interface-name item.
......
network {
service {
address any
port 3000
reuse-address
network-interface-name bond0.2032
......
I ran it again and got succeeded.
Step 5. Verify Installation
I used the Aerospike command line interface tool to verity installation. It is installed as /opt/citrusleaf/bin/cli and lined in /usr/bin/cli. So you can use it normally.
It's simple, right?
Subscribe to:
Posts (Atom)