Skip to content

osd: add sanity check/warning on a few key configs#1964

Merged
liewegas merged 1 commit intomasterfrom
wip-osd-configs
Jun 16, 2014
Merged

osd: add sanity check/warning on a few key configs#1964
liewegas merged 1 commit intomasterfrom
wip-osd-configs

Conversation

@liewegas
Copy link
Copy Markdown
Member

Warn when certain config values are set to bad values.

Backport: firefly, dumpling Signed-off-by: Sage Weil sage@inktank.com

Warn when certain config values are set to bad values.

Backport: firefly, dumpling
Signed-off-by: Sage Weil <sage@inktank.com>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I guess nobody will try to set osd_map_cache_size to osd_map_max_advance + 1 and be confused about the message.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

On Sun, 15 Jun 2014, Loic Dachary wrote:

I guess nobody will try to set osd_map_cache_size to osd_map_max_advance + 1
and be confused about the message.

Probably someone will, but it is better than worrying about an
off-by-one in the complex interaction between the two values and
having the cache be defeated. Could just put a +2 in the warning, I
guess? :/

s

@ghost ghost mentioned this pull request Jun 15, 2014
@ghost
Copy link
Copy Markdown

ghost commented Jun 15, 2014

Reviewed-by:

liewegas pushed a commit that referenced this pull request Jun 16, 2014
osd: add sanity check/warning on a few key configs

Reviewed-by: Loic Dachary <loic@dachary.org>
@liewegas liewegas merged commit e031526 into master Jun 16, 2014
@liewegas liewegas deleted the wip-osd-configs branch June 16, 2014 19:35
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.

1 participant