Skip to content

Instantly share code, notes, and snippets.

View vanjos's full-sized avatar

Victor ... wait for it .... Anjos vanjos

View GitHub Profile
@vanjos
vanjos / ccm_cassandra.sh
Last active December 20, 2015 17:39
CCM Installation to have the stack work FAST
#!/bin/bash
###
#
# Find out which ami to use on http://www.alestic.com
#
# at the time of this writing, Ubuntu 12.04 (Precise) was ami-23d9a94a
# with EBS boot
#
# In order for this to work, tuned your firewall for the following:
@vanjos
vanjos / innodb_memcheck.sql
Created January 31, 2013 20:22
Find out how much possible MEM MySQL would use (with INNODB)
SHOW VARIABLES LIKE 'innodb_buffer_pool_size';
SHOW VARIABLES LIKE 'innodb_additional_mem_pool_size';
SHOW VARIABLES LIKE 'innodb_log_buffer_size';
SHOW VARIABLES LIKE 'thread_stack';
SET @kilo_bytes = 1024;
SET @mega_bytes = @kilo_bytes * 1024;
SET @giga_bytes = @mega_bytes * 1024;
SET @innodb_buffer_pool_size = 2 * @giga_bytes;
SET @innodb_additional_mem_pool_size = 16 * @mega_bytes;
SET @innodb_log_buffer_size = 8 * @mega_bytes;
@vanjos
vanjos / ccm_eth_alias_listener.sh
Last active August 29, 2015 14:18
A quick and dirty CCM ethernet aliasing program
#!/bin/bash
# -------------------------------------
# Quick and dirty to set up cassandra
# CCM with alias'ed ethernet addresses
# -------------------------------------
#
# ===== #
# ARGS #
@vanjos
vanjos / stargate.md
Last active August 29, 2015 14:02
Stargate Explained (Lucene indexing ON Cassandra) to replace Lucandra/Solandra and SOLR (from DSE)

STARGATE INSTALL

  • Prerequisites
  • ubuntu
  • java 1.7
  • likely want openjdk-7-jre-headless openjdk-7-jre-lib openjdk-7-jdk