Changeset View
Changeset View
Standalone View
Standalone View
swh/storage/tests/test_cassandra.py
Show First 20 Lines • Show All 97 Lines • ▼ Show 20 Lines | proc = subprocess.Popen( | ||||
'/usr/sbin/cassandra', | '/usr/sbin/cassandra', | ||||
'-Dcassandra.config=file://%s/cassandra.yaml' % cassandra_conf, | '-Dcassandra.config=file://%s/cassandra.yaml' % cassandra_conf, | ||||
'-Dcassandra.logdir=%s' % cassandra_log, | '-Dcassandra.logdir=%s' % cassandra_log, | ||||
'-Dcassandra.jmx.local.port=%d' % jmx_port, | '-Dcassandra.jmx.local.port=%d' % jmx_port, | ||||
'-Dcassandra-foreground=yes', | '-Dcassandra-foreground=yes', | ||||
], | ], | ||||
start_new_session=True, | start_new_session=True, | ||||
env={ | env={ | ||||
'MAX_HEAP_SIZE': '300M', | 'MAX_HEAP_SIZE': '500M', | ||||
'HEAP_NEWSIZE': '50M', | 'HEAP_NEWSIZE': '200M', | ||||
'JVM_OPTS': '-Xlog:gc=error:file=%s/gc.log' % cassandra_log, | 'JVM_OPTS': '-Xlog:gc=error:file=%s/gc.log' % cassandra_log, | ||||
}, | }, | ||||
stdout=stdout, | stdout=stdout, | ||||
stderr=stderr, | stderr=stderr, | ||||
) | ) | ||||
running = wait_for_peer('127.0.0.1', native_transport_port) | running = wait_for_peer('127.0.0.1', native_transport_port) | ||||
▲ Show 20 Lines • Show All 157 Lines • Show Last 20 Lines |