зеркало из https://github.com/Azure/YCSB.git
bcf9ee3485 | ||
---|---|---|
.. | ||
conf | ||
src/main | ||
README.md | ||
pom.xml |
README.md
Alibaba Cloud TableStore Driver for YCSB
This driver provides a YCSB workload for Alibaba's hosted TableStore, a fully managed NoSQL cloud database service that enables storage of a massive amount of structured and semi-structured data.
This binding is based on the Java SDK for TableStore.
Quick Start
Setup a TableStore Instance
Login to the Alibaba Cloud Console and follow the Create Instance. Make a note of the instance name.
Create a Table for YCSB Testing
Follow the Create Table.
The primary key must be exactly one column; the type is 'String'. Make a note of the table name and primary key name.
tablestore.properties
tablestore.properties is the file specifying information needed by TableStore binding. The minimal tablestore.properties should be look like:
alibaba.cloud.tablestore.access_id = $access_id
alibaba.cloud.tablestore.access_key = $access_key
# the Instance Access URL in 'instance details'
alibaba.cloud.tablestore.end_point = $end_point
alibaba.cloud.tablestore.instance_name = $instance_name
alibaba.cloud.tablestore.primary_key = $primary_key
For access_id and access_key, please refer to Java SDK: Configure an AccessKey.
Load and Run a Workload
table_name='table_name'
bin/ycsb load tablestore -P workloads/workloada -P tablestore/conf/tablestore.properties -p table=$table_name -threads 2
bin/ycsb run tablestore -P workloads/workloada -P tablestore/conf/tablestore.properties -p table=$table_name -threads 2