Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(#735) Fix sensu-server-enterprise Vagrant VM #738

Merged
merged 1 commit into from
Jul 13, 2017

Conversation

jeffmccune
Copy link
Collaborator

Without this patch the sensu-enterprise server is quickly crashing with a JVM
out of memory error when started inside the sensu-server-enterprise VM.

This patch addresses the problem by bumping up the allocated RAM for the VM
from 512m to 768m while also bringing down the JVM heap size from 2GB to 256m.

The API has been tested with the following commands, with no other VM's
running:

vagrant up sensu-server-enterprise
curl -s http://admin:secret@127.0.0.1:4567/clients \
  | jq -r 'map(.name | split(".") | .[0]) | sort | .[]'

Resolves #735

@@ -1,5 +1,14 @@
node 'sensu-server' {

Ini_setting {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add that curl command to test in the comments here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added!

Vagrantfile Outdated
@@ -25,7 +25,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.define "sensu-server", primary: true, autostart: true do |server|
server.vm.box = "centos/7"
server.vm.hostname = 'sensu-server.example.com'
server.vm.network :private_network, ip: "192.168.56.10"
server.vm.network :private_network, ip: ENV['VAGRANT_SENSU_SERVER_IP'] || '192.168.56.10'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please document this in the Vagrantfile

Copy link
Collaborator Author

@jeffmccune jeffmccune Jul 13, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure thing, documentation added to the top of the Vagrantfile. I also renamed the variables and consolidated to ENV['ALTERNATE_IP'] for clarity.

Without this patch the sensu-enterprise server is quickly crashing with a JVM
out of memory error when started inside the sensu-server-enterprise VM.

This patch addresses the problem by bumping up the allocated RAM for the VM
from 512m to 768m while also bringing down the JVM heap size from 2GB to 256m.

The API has been tested with the following commands, with no other VM's
running:

    vagrant up sensu-server-enterprise
    curl -s http://admin:secret@127.0.0.1:4567/clients \
      | jq -r 'map(.name | split(".") | .[0]) | sort | .[]'

Resolves sensu#735
@ghoneycutt ghoneycutt merged commit 0ec8d0a into sensu:master Jul 13, 2017
@ghoneycutt
Copy link
Collaborator

Released in v2.22.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants