Skip to content

Instantly share code, notes, and snippets.

View aboudreault's full-sized avatar

Alan Boudreault aboudreault

View GitHub Profile
Apache Maven 3.0.5
Maven home: /usr/share/maven
Java version: 1.8.0_45, vendor: Oracle Corporation
Java home: /usr/lib/jvm/jdk1.8.0_45/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.13.0-35-generic", arch: "amd64", family: "unix"
[INFO] Error stacktraces are turned on.
[DEBUG] Reading global settings from /usr/share/maven/conf/settings.xml
[DEBUG] Reading user settings from /home/automaton/.m2/settings.xml
[DEBUG] Using local repository at /home/automaton/.m2/repository
[INFO] Total time: 1.039s
[INFO] Finished at: Tue Aug 18 02:44:31 UTC 2015
[INFO] Final Memory: 10M/452M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.0:compile (default-compile) on project mvbench: Compilation failure -> [Help
1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.0:compile (default-compile)
on project mvbench: Compilation failure
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
def run_python_script(script):
fab_append("pyscript.py", textwrap.dedent(script))
fab.run("python ~/pyscript.py")
#### fab output
[172.17.0.85] Executing task 'run_python_script' │te
[172.17.0.85] run: echo ' │st
from cstar_perf.frontend.server.model import Model │_c
db = Model() │lu
def test_test(self):
self.prepare()
self.node2.stop()
self.cursor1.execute("""
INSERT INTO ttl_table (key, col1) VALUES (1, 1);
""")
self.cursor1.execute("""
INSERT INTO ttl_table (key, col1) VALUES (2, 2);
""")
self.prepare()
self.node2.stop()
self.cursor1.execute("""
INSERT INTO ttl_table (key, col1) VALUES (1, 1) USING TTL 5;
""")
self.cursor1.execute("""
INSERT INTO ttl_table (key, col1) VALUES (2, 2);
""")
assert_all(
self.cursor1,
{
"revisions": [
{
"label": "C* cassandra-2.2 - Single disk",
"revision": "apache/cassandra-2.2",
"yaml": "cluster_name: 'Test Cluster'\nmemtable_flush_writers: 6\ncommitlog_directory: /mnt/data1/commitlog\ndata_file_directories:\n - /mnt/data2/data",
"env": "JVM_OPTS=\"$JVM_OPTS -Xms8192M\"\nJVM_OPTS=\"$JVM_OPTS -Xmx8192M\"\nJVM_OPTS=\"$JVM_OPTS -Xmn2048M\"",
"java_home": "~/fab/jvms/jdk1.7.0_72"
},
{
@aboudreault
aboudreault / gist:8ed8ad8f4c7ba4f35a82
Last active June 8, 2018 01:11
cassandra node balancing test

Procedures

  • ccm stop && ccm remove
  • ccm create -n 2 -v binary:2.1.3 demo ## or ccm create -n 2 --install-dir=path/to/cassandra-2.1/branch demo
  • ccm start
  • ccm node1 stress -- write n=1000000 -schema replication(factor=2) -rate threads=50
  • ccm node1 nodetool status
  • ccm add -i 127.0.0.3 -j 7400 node3 # no auto-boostrap
  • ccm node3 start
  • ccm node1 nodetool status
  • ccm node3 repair
[2014-12-04 09:21:14,640] Starting repair command #1, repairing keyspace r1 with repair options (parallelism: parallel, primary range: false, incremental: true, job threads: 1, ColumnFamilies: [], dataCenters: [], hosts: [], # of ranges: 3)
[2014-12-04 09:21:54,392] Repair session cdf7e4b0-7bc0-11e4-a109-b56034537865 for range (6917529027641081856,-9223372036854775808] finished
[2014-12-04 09:21:59,145] Repair session cdf94440-7bc0-11e4-a109-b56034537865 for range (2305843009213693952,4611686018427387904] finished
[2014-12-04 09:22:00,321] Repair session cdf96b50-7bc0-11e4-a109-b56034537865 for range (4611686018427387904,6917529027641081856] finished
[2014-12-04 09:22:00,374] Repair command #1 finished in 45 seconds
[2014-12-04 09:22:00,389] Nothing to repair for keyspace 'system'
[2014-12-04 09:22:00,394] Starting repair command #2, repairing keyspace system_traces with repair options (parallelism: parallel, primary range: false, incremental: true, job threads: 1, ColumnFamilies: [], dataCenters: [], hosts:
edxapp@precise64:~/edx-platform$ python manage.py lms test --settings=test common/djangoapps/course_groups/tests/
Traceback (most recent call last):
File "manage.py", line 90, in <module>
startup = importlib.import_module(edx_args.startup)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/edx/app/edxapp/edx-platform/lms/startup.py", line 8, in <module>
settings.INSTALLED_APPS # pylint: disable=W0104
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/utils/functional.py", line 184, in inner
self._setup()
XML: /home/aboudreault/dev/usergrid-python/nosetests.xml
Name Stmts Miss Branch BrMiss Cover Missing
-----------------------------------------------------------------
usergrid 8 0 0 0 100%
usergrid.clients 26 17 6 6 28% 23-30, 37-50, 59, 63-65
usergrid.exceptions 16 2 0 0 88% 41, 44
usergrid.rest 29 3 2 0 90% 61-62, 85
usergrid.sessions 74 0 16 1 99%
-----------------------------------------------------------------
TOTAL 153 22 24 7 84%