Skip to content

Commit

Permalink
Merge pull request #10 from idealista-tech/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
jmonterrubio authored Jan 27, 2017
2 parents 86315aa + 540bc47 commit bd92687
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 19 deletions.
20 changes: 16 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,30 @@ All notable changes to this project will be documented in this file.

## [Unreleased]

## [1.1.1] 2017-01-11
## [1.2.0](https://github.com/idealista-tech/solrcloud-role/tree/1.2.0) (2017-01-27)
[Full Changelog](https://github.com/idealista-tech/solrcloud-role/compare/1.1.1...1.2.0)

### Added
- *#8 Set JVM args by configuration* @jmonterrubio

## [1.1.1](https://github.com/idealista-tech/solrcloud-role/tree/1.1.1) (2017-01-11)
[Full Changelog](https://github.com/idealista-tech/solrcloud-role/compare/1.1.0...1.1.1)

### Fixed
- *#4 Copy solr.xml file for not default data dir* @jmonterrubio

## [1.1.0]
## [1.1.0](https://github.com/idealista-tech/solrcloud-role/tree/1.1.0)
[Full Changelog](https://github.com/idealista-tech/solrcloud-role/compare/1.0.1...1.1.0)

### Added
- *#1 Enable all the jetty HttpConfiguration parameters from ansible* @jmonterrubio

### Fixed
- *Renamed solrcloud-role in tests playbook* @jmonterrubio

## [1.0.1]
## [1.0.1](https://github.com/idealista-tech/solrcloud-role/tree/1.0.1)
[Full Changelog](https://github.com/idealista-tech/solrcloud-role/compare/1.0.0...1.0.1)

### Fixed
- *JMX enable* @jmonterrubio

Expand All @@ -24,6 +36,6 @@ All notable changes to this project will be documented in this file.
- *Code refactor* @jmonterrubio
- *Update SolrCloud sources repository* @jmonterrubio

## [1.0.0]
## [1.0.0](https://github.com/idealista-tech/solrcloud-role/tree/1.0.0)
### Added
- *First commit* @jmonterrubio
19 changes: 19 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,25 @@ solr_jmx_enabled: 'true'
solr_jmx_port: 1099
solr_host: "{{ hostvars[ansible_nodename]['ansible_' + ansible_default_ipv4.alias]['ipv4']['address'] }}"

solr_gc_tune: "-XX:NewRatio=3 \
-XX:SurvivorRatio=4 \
-XX:TargetSurvivorRatio=90 \
-XX:MaxTenuringThreshold=8 \
-XX:+UseConcMarkSweepGC \
-XX:+UseParNewGC \
-XX:ConcGCThreads=4 -XX:ParallelGCThreads=4 \
-XX:+CMSScavengeBeforeRemark \
-XX:PretenureSizeThreshold=64m \
-XX:+UseCMSInitiatingOccupancyOnly \
-XX:CMSInitiatingOccupancyFraction=50 \
-XX:CMSMaxAbortablePrecleanTime=6000 \
-XX:+CMSParallelRemarkEnabled \
-XX:+ParallelRefProcEnabled \
-XX:+AggressiveOpts \
-XX:+UseFastAccessorMethods \
-XX:+UseTLAB"
solr_stack_size: 256k

solr_heap: 512m
solr_jetty_threads_min: 10
solr_jetty_threads_max: 10000
Expand Down
17 changes: 2 additions & 15 deletions templates/solr.in.sh.j2
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,7 @@ GC_LOG_OPTS="-verbose:gc -XX:+PrintHeapAtGC -XX:+PrintGCDetails \
-XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+PrintTenuringDistribution -XX:+PrintGCApplicationStoppedTime"

# These GC settings have shown to work well for a number of common Solr workloads
GC_TUNE="-XX:NewRatio=3 \
-XX:SurvivorRatio=4 \
-XX:TargetSurvivorRatio=90 \
-XX:MaxTenuringThreshold=8 \
-XX:+UseConcMarkSweepGC \
-XX:+UseParNewGC \
-XX:ConcGCThreads=4 -XX:ParallelGCThreads=4 \
-XX:+CMSScavengeBeforeRemark \
-XX:PretenureSizeThreshold=64m \
-XX:+UseCMSInitiatingOccupancyOnly \
-XX:CMSInitiatingOccupancyFraction=50 \
-XX:CMSMaxAbortablePrecleanTime=6000 \
-XX:+CMSParallelRemarkEnabled \
-XX:+ParallelRefProcEnabled"
GC_TUNE="{{ solr_gc_tune }}"

# Set the ZooKeeper connection string if using an external ZooKeeper ensemble
# e.g. host1:2181,host2:2181/chroot
Expand All @@ -69,7 +56,7 @@ ENABLE_REMOTE_JMX_OPTS="{{ solr_jmx_enabled }}"
RMI_PORT={{ solr_jmx_port }}

# Set the thread stack size
SOLR_OPTS="$SOLR_OPTS -Xss256k"
SOLR_OPTS="$SOLR_OPTS -Xss{{ solr_stack_size }}"

# Anything you add to the SOLR_OPTS variable will be included in the java
# start command line as-is, in ADDITION to other options. If you specify the
Expand Down

0 comments on commit bd92687

Please sign in to comment.