Skip to content

Commit

Permalink
revert to java 8
Browse files Browse the repository at this point in the history
  • Loading branch information
rrotter committed Jan 26, 2024
1 parent 1f9ac79 commit 876a196
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 14 deletions.
2 changes: 1 addition & 1 deletion manifests/profile/hathitrust/lss.pp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# @example
# include nebula::profile::hathitrust::lss
class nebula::profile::hathitrust::lss (
String $jdk_version = '11',
String $jdk_version = '8',
String $solr_home = '/var/lib/solr',
String $java_home = "/usr/lib/jvm/java-${jdk_version}-openjdk-amd64",
String $heap = '16G',
Expand Down
7 changes: 5 additions & 2 deletions spec/classes/profile/hathitrust/lss_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

it { is_expected.to compile }
# solr and dependencies
it { is_expected.to contain_package('openjdk-11-jre-headless') }
it { is_expected.to contain_package('openjdk-8-jre-headless') }
it { is_expected.to contain_package('solr') }
it { is_expected.to contain_user('solr') }
it { is_expected.to contain_service('solr') }
Expand Down Expand Up @@ -65,7 +65,10 @@
let(:params) do
{ is_primary_node: false }
end
# it { is_expected.to contain_file('/usr/local/bin/index-release-lss').with_content(%r{^#touch /htapps/babel/flags/web/lss-release-\$\{TODAY\}$}) }
it {
pending("revert temp new flag")
is_expected.to contain_file('/usr/local/bin/index-release-lss').with_content(%r{^#touch /htapps/babel/flags/web/lss-release-\$\{TODAY\}$})
}
end

it { is_expected.to contain_firewall('200 Solr - Private: foobar net').with(source: '192.168.99.0/24') }
Expand Down
12 changes: 1 addition & 11 deletions templates/profile/hathitrust/solr_lss/solr.in.sh.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,11 @@ SOLR_JAVA_HOME="<%= @java_home %>"
SOLR_HEAP="<%= @heap %>"

GC_LOG_OPTS=""
#
#GC_TUNE="-XX:+UseG1GC \
#-XX:+PerfDisableSharedMem \
#-XX:+ParallelRefProcEnabled \
#-XX:MaxGCPauseMillis=250 \
#-XX:+UseLargePages \
#-XX:+AlwaysPreTouch \
#-XX:+ExplicitGCInvokesConcurrent"

###### solr 8 only
#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
# They will not work with Java > 8
GC_TUNE="-XX:NewRatio=3 \
-XX:SurvivorRatio=4 \
-XX:TargetSurvivorRatio=90 \
Expand All @@ -31,7 +22,6 @@ GC_TUNE="-XX:NewRatio=3 \
-XX:CMSMaxAbortablePrecleanTime=6000 \
-XX:+CMSParallelRemarkEnabled \
-XX:+ParallelRefProcEnabled"
######

SOLR_TIMEZONE="<%= @timezone %>"
ENABLE_REMOTE_JMX_OPTS="true"
Expand Down

0 comments on commit 876a196

Please sign in to comment.