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

[mysql] resilience when InnoDB is not available or disabled. #2385

Merged
merged 1 commit into from Mar 29, 2016

Conversation

truthbk
Copy link
Member

@truthbk truthbk commented Mar 25, 2016

No description provided.

@olivielpeau olivielpeau added this to the 5.7.3 milestone Mar 25, 2016
@olivielpeau olivielpeau self-assigned this Mar 25, 2016
@@ -410,7 +410,7 @@ def _collect_metrics(self, host, db, tags, options, queries):
results = self._get_stats_from_status(db)
results.update(self._get_stats_from_variables(db))

if self._is_innodb_engine_enabled(db):
if (not _is_affirmative(options.get('disable_innodb_metrics', False)) and self._is_innodb_engine_enabled(db)):
Copy link
Member

Choose a reason for hiding this comment

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

@olivielpeau
Copy link
Member

👍 Apart from my comments!

Feel free to squash and merge once they're addressed

#
# NOTE: skip_innodb_metrics should only be used by users with older (unsupported) versions of
Copy link
Member

Choose a reason for hiding this comment

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

typo: skip_innodb_metrics -> disable_innodb_metrics :)

[mysql] if the version is too old, the stats will probable be unavailable anyways.

[mysql] disable innodb metrics, respond better to unavailable innodb metrics.

[mysql] catch NotSupportedError - possible exception when querying older MySQLs.

[mysql] adding flag description to yaml, cleaning query.
@olivielpeau olivielpeau merged commit b7165e9 into master Mar 29, 2016
@olivielpeau olivielpeau deleted the jaime/innodbfix branch March 29, 2016 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants