-
Notifications
You must be signed in to change notification settings - Fork 290
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
Conversation
| @@ -1,5 +1,14 @@ | |||
| node 'sensu-server' { | |||
|
|
|||
| Ini_setting { | |||
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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' | |||
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
11cb74d
to
17ebd7d
Compare
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
17ebd7d
to
d6715ec
Compare
|
Released in v2.22.0 |
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:
Resolves #735