Skip to content

Add io-threads-do-reads config to deprecated config table to have no effect.#1138

Merged
zuiderkwast merged 4 commits into
valkey-io:unstablefrom
Shivshankar-Reddy:config-depcrication
Oct 10, 2024
Merged

Add io-threads-do-reads config to deprecated config table to have no effect.#1138
zuiderkwast merged 4 commits into
valkey-io:unstablefrom
Shivshankar-Reddy:config-depcrication

Conversation

@Shivshankar-Reddy

Copy link
Copy Markdown
Contributor

this fixes: #1116

Issue details from #1116 by @zuiderkwast

This config is undocumented since #758. The default was changed to "yes" and it is quite useless to set it to "no". Yet, it can happen that some user has an old config file where it is explicitly set to "no". The result will be bad performace, since I/O threads will not do all the I/O.

It's indeed confusing.

  1. Either remove the whole option from the code. And thus no need for documentation. OR:
  2. Introduce the option back in the configuration, just as a comment is fine. And showing the default value "yes": # io-threads-do-reads yes with additional text.

Originally posted by @melroy89 in #1019 (reply in thread)

…effect on io-threads

Signed-off-by: Shivshankar-Reddy <shiva.sheri.github@gmail.com>
@codecov

codecov Bot commented Oct 8, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (unstable@e617bf2). Learn more about missing BASE report.
Report is 6 commits behind head on unstable.

Additional details and impacted files
@@             Coverage Diff             @@
##             unstable    #1138   +/-   ##
===========================================
  Coverage            ?   70.59%           
===========================================
  Files               ?      114           
  Lines               ?    61716           
  Branches            ?        0           
===========================================
  Hits                ?    43567           
  Misses              ?    18149           
  Partials            ?        0           
Files with missing lines Coverage Δ
src/config.c 78.69% <ø> (ø)
src/io_threads.c 7.90% <ø> (ø)
src/server.h 100.00% <ø> (ø)

@melroy89 melroy89 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Again please update documentation and example config file explaining this option is deprecated and doesn't do anything anymore.

Signed-off-by: Shivshankar-Reddy <shiva.sheri.github@gmail.com>
Signed-off-by: Shivshankar-Reddy <shiva.sheri.github@gmail.com>
@Shivshankar-Reddy

Shivshankar-Reddy commented Oct 9, 2024

Copy link
Copy Markdown
Contributor Author

Added a note in the valkey.conf file as it is deprecated and avoid using it in future. Thanks for remainding it.

@melroy89

melroy89 commented Oct 9, 2024

Copy link
Copy Markdown
Contributor

Small typo in title: depricated -> deprecated

@madolson madolson changed the title Add io-threads-do-reads config to depricated config table to have no effect. Add io-threads-do-reads config to deprecated config table to have no effect. Oct 9, 2024
Comment thread valkey.conf Outdated
Signed-off-by: Shivshankar-Reddy <shiva.sheri.github@gmail.com>
@zuiderkwast zuiderkwast merged commit 079f18a into valkey-io:unstable Oct 10, 2024
@madolson madolson added the release-notes This issue should get a line item in the release notes label Oct 10, 2024
eifrah-aws pushed a commit to eifrah-aws/valkey that referenced this pull request Oct 20, 2024
…effect. (valkey-io#1138)

this fixes: valkey-io#1116

_Issue details from valkey-io#1116 by @zuiderkwast_ 

> This config is undocumented since valkey-io#758. The default was changed to
"yes" and it is quite useless to set it to "no". Yet, it can happen that
some user has an old config file where it is explicitly set to "no". The
result will be bad performace, since I/O threads will not do all the
I/O.
> 
> It's indeed confusing.
> 
> 1. Either remove the whole option from the code. And thus no need for
documentation. _OR:_
> 2. Introduce the option back in the configuration, just as a comment
is fine. And showing the default value "yes": `# io-threads-do-reads
yes` with additional text.
> 
> _Originally posted by @melroy89 in [valkey-io#1019 (reply in
thread)](https://github.com/orgs/valkey-io/discussions/1019#discussioncomment-10824778)_

---------

Signed-off-by: Shivshankar-Reddy <shiva.sheri.github@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-notes This issue should get a line item in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make io-threads-do-reads harmless

4 participants