-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds support in ccm for urchin, it aligns with urchin limitation: e.g. support vnodes configuration only and supports only an install-dir To set environemnt execute source urchin_env.sh Requires an addition of a conf/ directory and a cassandra.yaml file under urchin install_dir To create an urchin cluster execute: ccm create urchin --urchin --vnodes -n 3 --install-dir=<urchin-dir> To start nodes execute: ccm start --no-wait On start starts all instances with --smp 1 (does not pin instances to specific cores) To stop and remove execute: ccm remove requires two urchin patches: Enable seeds parsing from configuration, and Asias bootstrap patch Signed-off-by: Shlomi Livne <shlomi@cloudius-systems.com>
- Loading branch information
Showing
5 changed files
with
658 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# ccm clusters | ||
import os | ||
import shutil | ||
import subprocess | ||
import signal | ||
|
||
from six import iteritems | ||
from ccmlib import repository | ||
from ccmlib.cluster import Cluster | ||
from ccmlib.urchin_node import UrchinNode | ||
from ccmlib import common | ||
|
||
class UrchinCluster(Cluster): | ||
def __init__(self, path, name, partitioner=None, install_dir=None, create_directory=True, version=None, verbose=False, **kwargs): | ||
super(UrchinCluster, self).__init__(path, name, partitioner, install_dir, create_directory, version, verbose) | ||
|
||
def load_from_repository(self, version, verbose): | ||
raise Exception("no impl"); | ||
# return repository.setup_dse(version, self.dse_username, self.dse_password, verbose) | ||
|
||
def create_node(self, name, auto_bootstrap, thrift_interface, storage_interface, jmx_port, remote_debug_port, initial_token, save=True, binary_interface=None): | ||
return UrchinNode(name, self, auto_bootstrap, thrift_interface, storage_interface, jmx_port, remote_debug_port, initial_token, save, binary_interface) | ||
|
||
def start(self, no_wait=False, verbose=False, wait_for_binary_proto=False, wait_other_notice=False, jvm_args=[], profile_options=None): | ||
started = super(UrchinCluster, self).start(no_wait, verbose, wait_for_binary_proto, wait_other_notice, jvm_args, profile_options) | ||
return started | ||
|
||
def cassandra_version(self): | ||
# FIXME | ||
return '3.0' |
Oops, something went wrong.