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

Remove -cpu flag #2793

Merged
merged 1 commit into from
Jul 3, 2019
Merged

Remove -cpu flag #2793

merged 1 commit into from
Jul 3, 2019

Conversation

miekg
Copy link
Member

@miekg miekg commented Apr 22, 2019

The -cpu flag is a weird one (and copied originally from Caddy), it
basically sets GOMAXPROCS which can be easily done by just setting
that environment variable. Also with systemd and containerized env you
set this externally anyway, so there is little use to do this again in
the binary.

Also the option's help was confusing (i.e. percentage of what?). Remove
the option and supporting files.

The -cpu flag is a weird one (and copied originally from Caddy), it
basically sets GOMAXPROCS which can be *easily* done by just setting
that environment variable. Also with systemd and containerized env you
set this externally *anyway*, so there is little use to do this again in
the binary.

Also the option's help was confusing (i.e. percentage of what?). Remove
the option and supporting files.

Signed-off-by: Miek Gieben <miek@miek.nl>
@corbot corbot bot requested a review from rajansandeep April 22, 2019 08:45
@corbot
Copy link

corbot bot commented Apr 22, 2019

Thank you for your contribution. I've just checked the OWNERS files to find a suitable reviewer. This search was successful and I've asked rajansandeep (via /OWNERS) for a review.

If you have questions or suggestions for this bot, please file an issue against the miekg/dreck repository.

The bot understands the commands that are listed here.

@codecov-io
Copy link

Codecov Report

Merging #2793 into master will increase coverage by 0.23%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2793      +/-   ##
==========================================
+ Coverage   55.29%   55.53%   +0.23%     
==========================================
  Files         201      200       -1     
  Lines       10202    10088     -114     
==========================================
- Hits         5641     5602      -39     
+ Misses       4144     4070      -74     
+ Partials      417      416       -1
Impacted Files Coverage Δ
plugin/forward/connect.go 81.69% <0%> (-4.23%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2c418b9...af889cf. Read the comment docs.

@chrisohaver
Copy link
Member

Do we need to follow deprecation policy here? Or is it safe to assume that no one is using this flag?

@miekg
Copy link
Member Author

miekg commented Apr 22, 2019 via email

@miekg
Copy link
Member Author

miekg commented Apr 23, 2019

and then we just move to 1.6 for the next release, problem solved.

To power of semver to trigger discussion is so annoying, that I'm ready to drop the whole idea #sigh

@chrisohaver
Copy link
Member

and then we just move to 1.6 for the next release, problem solved.

Jumping to 1.6 to avert the deprecation policy is a dubious loop hole. We haven't announce the flag as deprecated in a release, nor have we made it a no op in a release following the deprecation announcement. So it doesn't follow our policy as written.

@miekg
Copy link
Member Author

miekg commented Apr 23, 2019 via email

@miekg
Copy link
Member Author

miekg commented Jun 30, 2019

No comments after 4 day, interest looks low, so I'll remove this. Means next release is 1.6.0; so we can maybe pile in some other incompatible changes. We already have the resyncperiod one in k8s.

@bengadbois
Copy link

I'm on a team currently using the -cpu flag, so if this is merged, a deprecation notice would be appreciated

@miekg
Copy link
Member Author

miekg commented Jul 1, 2019 via email

@miekg miekg merged commit f5fe983 into master Jul 3, 2019
@corbot corbot bot deleted the remove-cpu-flag branch July 3, 2019 19:12
dna2github pushed a commit to dna2fork/coredns that referenced this pull request Jul 19, 2019
The -cpu flag is a weird one (and copied originally from Caddy), it
basically sets GOMAXPROCS which can be *easily* done by just setting
that environment variable. Also with systemd and containerized env you
set this externally *anyway*, so there is little use to do this again in
the binary.

Also the option's help was confusing (i.e. percentage of what?). Remove
the option and supporting files.

Signed-off-by: Miek Gieben <miek@miek.nl>
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.

4 participants