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

Commit

Permalink
#14: Removed default kafka configs
Browse files Browse the repository at this point in the history
  • Loading branch information
bbaugher committed Aug 14, 2015
1 parent 5674e21 commit b5a382b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ Attributes
* `node["kafka"]["shutdown_timeout"]` : The init.d script shutdown timeout in seconds. Adjust as needed based on cluster size (in terms of partitions) and required shutdown time. (default=30)
* `node["kafka"]["env_vars"]` : A hash of environment variable names to their values to be set for the kafka user. This can be used to customize the server memory settings. (default={})
* `node["kafka"]["lib_jars"]` : A list of URLs to install a jar in `#{node["kafka"]["install_dir"]}/libs`. (default=[])
* `node["kafka"]["server.properties"][*]` : A key/value that will be set in server's properties file. Used to customize the broker configuration. (for defaults see attributes file)
* `node["kafka"]["server.properties"][*]` : A key/value that will be set in server's properties file. Used to customize the broker configuration. (default=`{"log.dirs" => "/tmp/kafka-logs"}` See [Kafka doc](http://kafka.apache.org/documentation.html#brokerconfigs) for Kafka defaults)
* `node["kafka"]["log4j.properties"][*]` : A key/value that will be set in the server's log4j.properties file. (for defaults see attributes file)
* `node["kafka"]["offset_monitor"]["url"]` The download url for the offset monitor (default = "https://github.com/quantifind/KafkaOffsetMonitor/releases/download/v0.2.0/KafkaOffsetMonitor-assembly-0.2.0.jar")
* `node["kafka"]["offset_monitor"]["install_dir"]` : The installation directory for the offset monitor (default = `node["kafka]["base_dir"]`/kafka-offset-monitor)
Expand Down
13 changes: 1 addition & 12 deletions attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,7 @@
default["kafka"]["env_vars"]["KAFKA_JVM_PERFORMANCE_OPTS"] = "\"-XX:PermSize=48m -XX:MaxPermSize=48m -XX:+UseG1GC -XX:MaxGCPauseMillis=20 -XX:InitiatingHeapOccupancyPercent=35\""
default["kafka"]["lib_jars"] = []

default["kafka"]["server.properties"]["log.dirs"] = "/var/kafka"
default["kafka"]["server.properties"]["port"] = 6667
default["kafka"]["server.properties"]["num.partitions"] = 4
default["kafka"]["server.properties"]["default.replication.factor"] = 3
default["kafka"]["server.properties"]["log.flush.interval.messages"] = 1
default["kafka"]["server.properties"]["log.retention.minutes"] = 30 * 24 * 60
default["kafka"]["server.properties"]["log.retention.check.interval.ms"] = 3600000
default["kafka"]["server.properties"]["num.replica.fetchers"] = 4
default["kafka"]["server.properties"]["replica.fetch.wait.max.ms"] = 5000
default["kafka"]["server.properties"]["replica.lag.max.messages"] = 10000
default["kafka"]["server.properties"]["auto.leader.rebalance.enable"] = true
default["kafka"]["server.properties"]["num.network.threads"] = 8
default["kafka"]["server.properties"]["log.dirs"] = "/tmp/kafka-logs"

# Log4J config
default["kafka"]["log4j.properties"]["log4j.rootLogger"] = "INFO, stdout "
Expand Down

0 comments on commit b5a382b

Please sign in to comment.