Illustration Image

Cassandra.Link

The best knowledge base on Apache Cassandra®

Helping platform leaders, architects, engineers, and operators build scalable real time data platforms.

3/6/2018

Reading time:1 min

Instagram/cassandra-aws-benchmark

by John Doe

README.md Scripts and templates for cassandra benchmark environment provisionRequirementsaws cli: pip install awscli --upgrade --user and aws configureCreate benchmark environmentcreate cloudformation stack:aws cloudformation create-stack --stack-name MY_STACK_NAME \ --disable-rollback \ --template-body file://cloudformation.yaml \ --parameters \ ParameterKey=CassandraAMI,ParameterValue=MY_CASSANDRA_AMI_ID \ ParameterKey=KeyName,ParameterValue=MY_SSH_KEY_NAME \ ParameterKey=VPCSubnetId,ParameterValue=MY_VPC_SUBNET_ID \ ParameterKey=InstanceProfile,ParameterValue=NAME_OF_INSTANCE_PROFILE_WITH_EC2_AND_AUOSCALEGROUP_READONLY_ACCESS \ --capabilities CAPABILITY_IAMupdate cloudformation stack:aws cloudformation udpate-stack --stack-name MY_STACK_NAME \ --template-body file://cloudformation.yaml \ --parameters \ ParameterKey=CassandraAMI,ParameterValue=MY_CASSANDRA_AMI_ID \ ParameterKey=KeyName,ParameterValue=MY_SSH_KEY_NAME \ ParameterKey=VPCSubnetId,ParameterValue=MY_VPC_SUBNET_ID \ ParameterKey=InstanceProfile,ParameterValue=NAME_OF_INSTANCE_PROFILE_WITH_EC2_AND_AUOSCALEGROUP_READONLY_ACCESS \ --capabilities CAPABILITY_IAMLastest Prebuilt Cassandra AMIcassandra 3.0.15: ami-09cc7371 (us-west-2)rocksandra: ami-b770cdcf (us-west-2)Build Cassandra AMI Myselfprerequists: packer: brew install packercassandra3x$> cd ami/cassandra3x$> wget -O resources/cassandra.rpm https://www.apache.org/dist/cassandra/redhat/30x/cassandra-3.0.15-1.noarch.rpm $> packer build -var "image_version=$(date +%s)" packer.jsonndbench$> cd ami/bencher$> packer build -var "image_version=$(date +%s)" packer.jsonLicenseCassandra AWS Benchmark is Apache 2.0 licensed, as found in the LICENSE file.

Illustration Image

README.md

Scripts and templates for cassandra benchmark environment provision

Requirements

  • aws cli: pip install awscli --upgrade --user and aws configure

Create benchmark environment

create cloudformation stack:

aws cloudformation create-stack --stack-name MY_STACK_NAME \
    --disable-rollback \
    --template-body file://cloudformation.yaml \
    --parameters \
    ParameterKey=CassandraAMI,ParameterValue=MY_CASSANDRA_AMI_ID \
    ParameterKey=KeyName,ParameterValue=MY_SSH_KEY_NAME \
    ParameterKey=VPCSubnetId,ParameterValue=MY_VPC_SUBNET_ID \
    ParameterKey=InstanceProfile,ParameterValue=NAME_OF_INSTANCE_PROFILE_WITH_EC2_AND_AUOSCALEGROUP_READONLY_ACCESS \
    --capabilities CAPABILITY_IAM

update cloudformation stack:

aws cloudformation udpate-stack --stack-name MY_STACK_NAME \
    --template-body file://cloudformation.yaml \
    --parameters \
    ParameterKey=CassandraAMI,ParameterValue=MY_CASSANDRA_AMI_ID \
    ParameterKey=KeyName,ParameterValue=MY_SSH_KEY_NAME \
    ParameterKey=VPCSubnetId,ParameterValue=MY_VPC_SUBNET_ID \
    ParameterKey=InstanceProfile,ParameterValue=NAME_OF_INSTANCE_PROFILE_WITH_EC2_AND_AUOSCALEGROUP_READONLY_ACCESS \
    --capabilities CAPABILITY_IAM

Lastest Prebuilt Cassandra AMI

  • cassandra 3.0.15: ami-09cc7371 (us-west-2)
  • rocksandra: ami-b770cdcf (us-west-2)

Build Cassandra AMI Myself

prerequists: packer: brew install packer

cassandra3x

$> cd ami/cassandra3x
$> wget -O resources/cassandra.rpm https://www.apache.org/dist/cassandra/redhat/30x/cassandra-3.0.15-1.noarch.rpm 
$> packer build -var "image_version=$(date +%s)" packer.json

ndbench

$> cd ami/bencher
$> packer build -var "image_version=$(date +%s)" packer.json

License

Cassandra AWS Benchmark is Apache 2.0 licensed, as found in the LICENSE file.

Related Articles

database
datastax
aws

Getting Started with DataStax Astra DB and Amazon Bedrock | DataStax

John Doe

11/30/2023

aws
cassandra

Checkout Planet Cassandra

Claim Your Free Planet Cassandra Contributor T-shirt!

Make your contribution and score a FREE Planet Cassandra Contributor T-Shirt! 
We value our incredible Cassandra community, and we want to express our gratitude by sending an exclusive Planet Cassandra Contributor T-Shirt you can wear with pride.

Join Our Newsletter!

Sign up below to receive email updates and see what's going on with our company

Explore Related Topics

AllKafkaSparkScyllaSStableKubernetesApiGithubGraphQl

Explore Further

aws