LoginSignup
9

More than 5 years have passed since last update.

Aerospike環境をローカルに構築してみる

Posted at

Aearospike とは?

ざっくりいうと、NoSQL型データベースです。
Yahoo! Cloud Serving Benchmark (YCSB)の結果だとCassandraとMongoDBより10倍ちかく早いらしいです。
英語ですが、情報源はこちら
http://www.aerospike.com/blog/thumbtack-ycsb-benchmark/

ローカル環境

  • Windows 7 64bit
  • VM player 5.0.1
  • Ubuntu 14.10

download & Install

まずはサーバー

wget -O aerospike.tgz 'http://aerospike.com/download/server/latest/artifact/ubuntu12'
tar -xvf aerospike.tgz
cd aerospike-server-community-*-ubuntu12
sudo ./asinstall # will install the .rpm packages
sudo service aerospike start

次に管理ツール

wget -O aerospike-amc.deb http://www.aerospike.com/download/amc/3.5.2/artifact/ubuntu12
sudo dpkg -i aerospike-amc.deb
sudo service amc start

いざ動作確認!

http://54.173.217.121:8081/#dashboard
にアクセスすると、管理画面が見えるはず。
最初はNamespacesにtestだけが存在するはず

aql と呼ばれるsqlっぽいものでもDBにアクセスできます。

$ aql
Aerospike Query
Copyright 2013 Aerospike. All rights reserved.

aql> show namespaces
+------------+
| namespaces |
+------------+
| "test"     |
+------------+

1 rows in set (0.002 secs)

ちなみに、RDBMSと言葉が違うので対応表

RDBMS Aerospike
Database or Tablespace Namespaces
Table Set
Row Record
Column Bin

Binの型にはInteger,String,BLOB,List,Mapがあるらしい

次は/etc/aerospike/aerospike.confの中でも覗いてみようと思う。

参考ページ

http://www.aerospike.com/docs/operations/install/linux/ubuntu/
http://www.aerospike.com/docs/amc/install/linux/ubuntu/

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9