Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
dcdb
dcdb
Commits
99b8140a
Commit
99b8140a
authored
Jul 25, 2013
by
Axel Auweter
Browse files
Allow setting the Cassandra Cluster Name from the Makefile.
parent
8d9d8fa1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
99b8140a
...
...
@@ -9,6 +9,7 @@ DISTFILES = thrift-0.9.0.tar.gz;https://dist.apache.org/repos/dist/release/thrif
FETCH
=
wget
-c
--no-check-certificate
-O
-
MAKETHREADS
?=
4
CASSANDRA_CLUSTER_NAME
=
Datacenter Monitor Database
CASSANDRA_FLUSH_LARGEST_MEMTABLES_AT
=
0.5
CASSANDRA_REDUCE_CACHE_SIZES_AT
=
0.6
CASSANDRA_REDUCE_CACHE_CAPACITY_TO
=
0.4
...
...
@@ -61,7 +62,7 @@ mrproper: distclean
@
rm
-rf
$(DCDBDEPLOYPATH)
all
:
$(DCDBDEPSPATH)/.prerequesites
make
$(PROJECTS)
@
make
$(PROJECTS)
$(DCDBDEPSPATH)/.prerequesites
:
$(DCDBDEPSPATH)/.extract-distfiles
@
echo
""
...
...
@@ -95,6 +96,7 @@ $(DCDBDEPSPATH)/.prerequesites: $(DCDBDEPSPATH)/.extract-distfiles
@
rsync
-a
$(DCDBDEPSPATH)
/
$(C)
/
$(DCDBDEPLOYPATH)
/cassandra
@
$(
eval
P :
=
$(
shell
echo
"
$(DCDBDEPLOYPATH)
"
|
sed
's/\//\\\//g'
))
@
sed
-i
.original
-e
's/\/var\/lib\/cassandra/
$(P)
\/var\/lib\/cassandra/g'
$(DCDBDEPLOYPATH)
/cassandra/conf/cassandra.yaml
@
sed
-i
-e
's/.*cluster_name:.*/cluster_name:\ '
\'
'
$(CASSANDRA_CLUSTER_NAME)
'
\'
'/'
$(DCDBDEPLOYPATH)
/cassandra/conf/cassandra.yaml
@
sed
-i
-e
's/.*flush_largest_memtables_at:.*/flush_largest_memtables_at:\
$(CASSANDRA_FLUSH_LARGEST_MEMTABLES_AT)
/'
$(DCDBDEPLOYPATH)
/cassandra/conf/cassandra.yaml
@
sed
-i
-e
's/.*reduce_cache_sizes_at:.*/reduce_cache_sizes_at:\
$(CASSANDRA_REDUCE_CACHE_SIZES_AT)
/'
$(DCDBDEPLOYPATH)
/cassandra/conf/cassandra.yaml
@
sed
-i
-e
's/.*reduce_cache_capacity_to:.*/reduce_cache_capacity_to:\
$(CASSANDRA_REDUCE_CACHE_CAPACITY_TO)
/'
$(DCDBDEPLOYPATH)
/cassandra/conf/cassandra.yaml
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment