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

omnibus: Add arm build support for opscode-solr4 #985

Merged
merged 1 commit into from
Nov 1, 2016

Conversation

elthariel
Copy link
Contributor

@elthariel elthariel commented Oct 28, 2016

Following the merge of chef/omnibus-software#751, this PR use the new jre-from-jdk software for opscode-solr4, allowing to build chef-server package for armhf, as demonstrated here: https://github.com/elthariel/chef-server/releases/tag/v12.5.0-arm-alpha

I've been running the chef server on a very small box (Scaleway.com C1 instance: 2GB RAM, Marvell Armada 370/XP CPU) for a few weeks, and it works well. For later reference, here's my /etc/opscode/chef-server.rb file:

# This line is *required*, without it, the keygen timeouts and starts new 'openssl genrsa' processes
# Completely slamming the box, preventin `reconfigure` from ever succeeding
opscode_erchef['keygen_timeout'] = 30000
# Tweak to your tastes
opscode_expander['nodes'] = 3
opscode_erchef['keygen_cache_workers'] = 1
# There's only 2GB of memory on my box, let's be conservative here
opscode_solr4['heap_size'] = 256
postgresql['shared_buffers'] = '256MB'
postgresql['shmall'] = 2097152
postgresql['shmmax'] = 4294967295

Signed-off-by: Julien 'Lta' BALLET [email protected]

@elthariel elthariel changed the title omnibus: Use jre-from-jdk on armhf for solr4 Build chef-server on ARM Oct 28, 2016
@elthariel
Copy link
Contributor Author

By the way, this build is likely to work OOB on Raspberry Pi, but I havent' access to any right now to test

@stevendanna
Copy link
Contributor

If you do try to get this going on a Raspberry Pi, you may want to generate the certs and dhparam before hand and feed them in using these config items:

https://github.com/chef/chef-server/blob/master/omnibus/files/private-chef-cookbooks/private-chef/attributes/default.rb#L477-L479

Otherwise the reconfigure might take forever.

@elthariel
Copy link
Contributor Author

elthariel commented Oct 28, 2016

I confirm, it does take forever. I'll use this trick next time, thanks for the note !

@elthariel
Copy link
Contributor Author

Restarting the travis build. It fails in seemingly unrelated places, are some of the tests brittle ?

@elthariel elthariel closed this Oct 29, 2016
@elthariel elthariel reopened this Oct 29, 2016
@elthariel elthariel changed the title Build chef-server on ARM omnibus: Add arm build support for opscode-solr4 Oct 29, 2016
@stevendanna
Copy link
Contributor

@elthariel We've been seeing some issues with Travis with respect to installing the version of ruby some of the tests require. If they fail again I'll try to restart the individual tests. This PR should't influence any of the Travis tests at all. I'll put this branch through our internal build system which runs the build and a set of end-to-end tests on all supported platforms. Once it passes there, I think we are good to go.

@elthariel
Copy link
Contributor Author

@stevendanna, thanks for the update, I hope the tests will pass but there isn't any reasons for them not to pass. Also I closed/reopened the PR to restart the build and it passed, as you can see.

@stevendanna stevendanna merged commit 0252c44 into chef:master Nov 1, 2016
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