Skip to content

Instantly share code, notes, and snippets.

find -type f -iname '*-Data.db' -size -10M -mtime -2 | cut -c3- | sed -e ':a' -e 'N' -e '$!ba' -e 's/\n/,/g'
nodetool setlogginglevel org.apache.cassandra.db.filter ERROR
nodetool setlogginglevel org.apache.cassandra.thrift ERROR
nodetool setlogginglevel org.apache.cassandra.net ERROR
nodetool setlogginglevel org.apache.cassandra.utils ERROR
@grom358
grom358 / gist:c5ad8e43021eb9252fa0af05407a62f9
Created February 24, 2017 06:36
User Defined Compactions
Restart cassandra: sudo service cassandra restart
In another terminal spam: nodetool disableautocompaction storage channel_messages
Keep spamming until node is up. Checked it worked that there is no compactions for channel_messages with nodetool compactionstats
cd /mnt/md0/cassandra/data/storage/channel_messages
Get list of files < 10Mb and 2 days old with: find -type f -iname '*-Data.db' -size -10M -mtime -2 | grep -v 'tmp' | cut -c3- | sed -e ':a' -e 'N' -e '$!ba' -e 's/\n/,/g'
Copy the list into clipboard
java -jar /tmp/jmxterm-1.0-alpha-4-uber.jar
open localhost:7199
bean org.apache.cassandra.db:type=CompactionManager
run forceUserDefinedCompaction <paste list>
diff --git a/OpenLayers.debug.js b/OpenLayers.debug.js
index 3a5882f..97661b5 100644
--- a/OpenLayers.debug.js
+++ b/OpenLayers.debug.js
@@ -64315,12 +64315,13 @@ OpenLayers.Layer.Google.v3 = {
cache.rendered = true;
me.setGMapVisibility(me.getVisibility());
me.moveTo(me.map.getCenter());
+ cache.googleControl.appendChild(map.viewPortDiv);
});
"use strict";
/**
* High performance Vector library.
*
* Constructing vectors is expensive and therefore these functions take
* the required operands and a parameter to output the result into.
*/
var Vector = {};