Commit 36c9572e authored by Jonathan Hartman's avatar Jonathan Hartman Committed by Ben Abrams
Browse files

Add support for configuring the Java heap size

The default values for this are set in wrapper.conf but can be overridden in
user.properties.
parent c43665d7
......@@ -198,6 +198,8 @@ for more information about these attributes.
| `ephemeral` | `Boolean` | When `true`, the Collector will be deleted after goes offline for a certain period of time | `false` | `false` | `:install_and_configure`, `:configure` |
| `clobber` | `Boolean` | When `true`, if there is any existing Collector with the same name, that Collector will be deleted | `false` | `false` | `:install_and_configure`, `:configure` |
| `disable_script_source` | `Boolean` | If your organization's internal policies restrict the use of scripts, you can disable the creation of script-based Script Sources. When this parameter is passed, this option is removed from the Sumo Logic Web Application, and Script Source cannot be configured | `false` | `false` | `:install_and_configure`, `:configure` |
| `wrapper_java_initmemory | `Integer` | Override the initial Java heap size | `nil` | `false` | `:configure |
| `wrapper_java_maxmemory | `Integer` | Override the maximum Java heap size | `nil` | `false` | `:configure |
| `runas_username` | `String` | Which user the daemon will run as | `nil` | `false` | `:install_and_configure`, `:install` |
| `winrunas_password` | `String` | On Windows, the password for the user the service will run as | `nil` | `false` | `:install_and_configure`, `:install` |
| `skip_registration` | `Boolean` | When `true` the collector will not register upon installation | `false` | `nil` | `:install_and_configure` |
......
......@@ -32,6 +32,8 @@ attribute :sync_sources, kind_of: String, default: nil
attribute :ephemeral, kind_of: [TrueClass, FalseClass], default: false
attribute :clobber, kind_of: [TrueClass, FalseClass], default: false
attribute :disable_script_source, kind_of: [TrueClass, FalseClass], default: false
attribute :wrapper_java_initmemory, kind_of: Integer
attribute :wrapper_java_maxmemory, kind_of: Integer
# Misc
attribute :installed, kind_of: [TrueClass, FalseClass], default: false
......
......@@ -27,3 +27,5 @@ name=<%= @resource.collector_name %>
<%= "ephemeral=#{@resource.ephemeral}" unless @resource.ephemeral.nil? %>
<%= "clobber=#{@resource.clobber}" unless @resource.clobber.nil? %>
<%= "disableScriptSource=#{@resource.disable_script_source}" unless @resource.disable_script_source.nil? %>
<%= "wrapper.java.initmemory=#{@resource.wrapper_java_initmemory}" unless @resource.wrapper_java_initmemory.nil? %>
<%= "wrapper.java.maxmemory=#{@resource.wrapper_java_maxmemory}" unless @resource.wrapper_java_maxmemory.nil? %>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment