Skip to content
This repository has been archived by the owner on Feb 22, 2019. It is now read-only.

Commit

Permalink
0.1.0: adding concurrent_compactors attribute and documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
elubow committed Feb 11, 2015
1 parent 39df517 commit 0b18b85
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# CHANGELOG for dse-chef

This file is used to list changes made in each version of the dse-chef cookbook.

## 0.1.0
* adding *concurrent_compactors* to configuration attributes `node[:datastax][:cassandra][:concurrent_compactors]`
* adding *datastax* data bag item example

## 0.0.99
* adding server search to opscenter-agent recipe (node[:datastax][:opscenter][:server_role] attribute)
* agent configuration will warn and exit when server cannot be found or too many are found
Expand Down
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Chef version 0.10.10+ and Ohai 0.6.12+ are required.

### Platform
* Ubuntu 12.10
* Ubuntu 14.04

**Notes**: This cookbook has been tested on the listed platforms. It may work on other platforms with or without modification.

Expand All @@ -26,7 +27,16 @@ Installs Java

Data Bags
---------
From the *keys* data bag, there should be an item called Datastax that includes the username and password to download Datastax Enterprise.
From the *keys* data bag, there should be an item called _datastax_ that includes the username and password to download Datastax Enterprise. The format of the data in this data bag should be:

```json
{
"id": "datastax",
"user": "myuser",
"password": "mypassword"
}
```


Roles
-----
Expand Down
2 changes: 1 addition & 1 deletion attributes/cassandra.rb
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@
#
# concurrent_compactors defaults to the number of cores.
# Uncomment to make compaction mono-threaded, the pre-0.8 default.
#concurrent_compactors: 1
default[:datastax][:cassandra][:concurrent_compactors] = 1

# Multi-threaded compaction. When enabled, each compaction will use
# up to one thread per core, plus one thread per sstable being merged.
Expand Down
4 changes: 3 additions & 1 deletion metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
license 'All rights reserved'
description 'Installs/Configures dse-chef'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '0.0.99'
version '0.1.0'

supports 'ubuntu', '>= 12.04'

depends 'java'
depends 'apache2'
4 changes: 4 additions & 0 deletions templates/default/cassandra-1.2.yaml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,11 @@ in_memory_compaction_limit_in_mb: <%= node[:datastax][:cassandra][:in_memory_com
#
# concurrent_compactors defaults to the number of cores.
# Uncomment to make compaction mono-threaded, the pre-0.8 default.
<% if node[:datastax][:cassandra][:concurrent_compactors].nil? || node[:datastax][:cassandra][:concurrent_compactors] < 1 %>
#concurrent_compactors: 1
<% else %>
concurrent_compactors: <%= node[:datastax][:cassandra][:concurrent_compactors] %>
<% end %>

# Multi-threaded compaction. When enabled, each compaction will use
# up to one thread per core, plus one thread per sstable being merged.
Expand Down
4 changes: 4 additions & 0 deletions templates/default/cassandra-2.0.yaml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,11 @@ in_memory_compaction_limit_in_mb: <%= node[:datastax][:cassandra][:in_memory_com
#
# concurrent_compactors defaults to the number of cores.
# Uncomment to make compaction mono-threaded, the pre-0.8 default.
<% if node[:datastax][:cassandra][:concurrent_compactors].nil? || node[:datastax][:cassandra][:concurrent_compactors] < 1 %>
#concurrent_compactors: 1
<% else %>
concurrent_compactors: <%= node[:datastax][:cassandra][:concurrent_compactors] %>
<% end %>

# Multi-threaded compaction. When enabled, each compaction will use
# up to one thread per core, plus one thread per sstable being merged.
Expand Down

0 comments on commit 0b18b85

Please sign in to comment.