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

GOMAXPROCS picks number of CPUs using sysconfig - Also updated Serverspec to 2.0 #52

Merged
merged 17 commits into from
Oct 25, 2014

Conversation

goncalopereira
Copy link
Contributor

Current server spec installation will use 2.0 - which means i have to
change spec_helper and matchers.

Also consul uses the ui with an extra relative folder consul_ui - that
had to be fixed for server spec to pass

Current server spec installation will use 2.0 - which means i have to
change spec_helper and matchers.

Also consul uses the ui with an extra relative folder consul_ui - that
had to be fixed for server spec to pass
@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 122e6e5 on goncalopereira:master into 4afbc3e on johnbellone:master.

Updated init.d script to use GOMAXPROCS on sysconfig - This can be
changed on the attributes - best practice is to use same number as CPUs
available
GOMAXPROCS picks up number of CPUs instead of leaving it as an attribute
@goncalopereira goncalopereira changed the title serverspec2.0 added and consul_ui test fixed GOMAXPROCS picks number of CPUs using sysconfig - Also updated Serverspec to 2.0 Oct 15, 2014
@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 6204a44 on goncalopereira:master into 4afbc3e on johnbellone:master.

sysconfig needs to trigger init instead of the service - calling
immediately twice creates issues with the service already being
restarted
@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling b8da19a on goncalopereira:master into 4afbc3e on johnbellone:master.

@@ -0,0 +1 @@
export GOMAXPROCS=<%= @gomaxprocs %>

This comment was marked as outdated.

This comment was marked as outdated.

environment export should sit within init script not sysconfig
@goncalopereira
Copy link
Contributor Author

Fixed the two issues as requested, Thanks @johnbellone

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 0563c53 on goncalopereira:master into 4afbc3e on johnbellone:master.

source 'consul-sysconfig.erb'
mode 0755
variables(
gomaxprocs: node['cpu']['total']

This comment was marked as outdated.

This comment was marked as outdated.

This comment was marked as outdated.

This comment was marked as outdated.

@johnbellone
Copy link
Contributor

Also you'll need to rebase. Thanks for the work 🍺!

Current server spec installation will use 2.0 - which means i have to
change spec_helper and matchers.

Also consul uses the ui with an extra relative folder consul_ui - that
had to be fixed for server spec to pass

cleaning up .gitignore

clean up gitignore
Updated init.d script to use GOMAXPROCS on sysconfig - This can be
changed on the attributes - best practice is to use same number as CPUs
available

Best Practice - Force Chef to setup number of CPUs

GOMAXPROCS picks up number of CPUs instead of leaving it as an attribute

Sysconfig triggers init.d template not the service

sysconfig needs to trigger init instead of the service - calling
immediately twice creates issues with the service already being
restarted

remove unused .gitignore2 file

Init environment setup

environment export should sit within init script not sysconfig

moving cpu total variable into template instead of variables
@goncalopereira
Copy link
Contributor Author

Hi there, fixed the template as suggested.
Also squashed onto two single commits - one for serverspec one for GOMAXPROCS

Conflicts:
test/integration/default/serverspec/spec_helper.rb
test/integration/ui/serverspec/spec_helper.rb
@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling daf164f on goncalopereira:master into d75fe45 on johnbellone:master.

@johnbellone
Copy link
Contributor

Great work!

@goncalopereira
Copy link
Contributor Author

@johnbellone I'm having some issues rebasing the upstream merge commits ... could you help me with that?

@johnbellone
Copy link
Contributor

What are the issues that you're having?

@goncalopereira
Copy link
Contributor Author

[detached HEAD 3396d3d] GOMAXPROCS used through sysconfig
16 files changed, 81 insertions(+), 36 deletions(-)
create mode 100644 .foodcritic
delete mode 100644 .gitignore2
create mode 100644 spec_helper.rb
The previous cherry-pick is now empty, possibly due to conflict resolution.
If you wish to commit it anyway, use:

git commit --allow-empty

Otherwise, please use 'git reset'
rebase in progress; onto b8da19a
You are currently rebasing branch 'master' on 'b8da19a'.

nothing to commit, working directory clean
Could not apply c1543cb... Squash dubious
foodcritic warnings for FC001.

On 17 October 2014 14:09, John Bellone notifications@github.com wrote:

What are the issues that you're having?


Reply to this email directly or view it on GitHub
#52 (comment)
.

@johnbellone johnbellone added this to the 0.5.0 milestone Oct 22, 2014
. /etc/sysconfig/consul
fi

export GOMAXPROCS=${GOMAXPROCS:-2}

This comment was marked as outdated.

This comment was marked as outdated.

This comment was marked as outdated.

@goncalopereira
Copy link
Contributor Author

the rebase is giving us headaches - I can re-fork head and re-apply as one commit - what do you think? I'll send another pull request if you agree.

@johnbellone
Copy link
Contributor

I don't think the rebase is giving headaches - at least not to me - I am able to merge it. Could you just take care of the default value (per above comment)?

@goncalopereira
Copy link
Contributor Author

Done. Thanks

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 6adbdcf on goncalopereira:master into 553d25f on johnbellone:master.

johnbellone added a commit that referenced this pull request Oct 25, 2014
GOMAXPROCS picks number of CPUs using sysconfig - Also updated Serverspec to 2.0
@johnbellone johnbellone merged commit 31e7357 into sous-chefs:master Oct 25, 2014
@lock
Copy link

lock bot commented Apr 25, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Apr 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants