Skip to content

Commit

Permalink
Move hidden content
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Jacobs committed Aug 26, 2021
1 parent d94f96d commit 1f540df
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 20 deletions.
18 changes: 17 additions & 1 deletion docs/using/advisors/index.md
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
# Advisors
# Advisors

## InnoDB Flush Method May Not Be Optimal

### Problem Description

By default, InnoDB's log buffer is written out to the log file at each transaction commit and a flush-to-disk operation is performed on the log file, which enforces ACID compliance. In the event of a crash, if you can afford to lose a second's worth of transactions, you can achieve better performance by setting `__innodb_flush_log_at_trx_commit__` to either 0 or 2. If you set the value to 2, then only an operating system crash or a power outage can erase the last second of transactions. This can be very useful on slave servers, where the loss of a second's worth of data can be recovered from the master server if needed.

### Links and Further Reading

[Variables](http://dev.mysql.com/doc/mysql/en/innodb-parameters.html#optvar_innodb_flush_log_at_trx_commit) MySQL Manual: [InnoDB Performance Tuning Tips](http://dev.mysql.com/doc/mysql/en/optimizing-innodb.html)

### Expression

```
(%innodb_flush_log_at_trx_commit% == THRESHOLD)
```

This file was deleted.

3 changes: 2 additions & 1 deletion mkdocs-pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ nav:
- using/query-analytics.md
- using/dbaas.md
- using/security-threat-tool.md
# - using/advisors/innodb_log_buffer_flushed_to_disk_after_each_trx.md
# - Advisors:
# - using/advisors/index.md
- How to:
- how-to/index.md
- how-to/configure.md
Expand Down
3 changes: 2 additions & 1 deletion mkdocs-percona.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ nav:
- using/query-analytics.md
- using/dbaas.md
- using/security-threat-tool.md
# - using/advisors/innodb_log_buffer_flushed_to_disk_after_each_trx.md
# - Advisors:
# - using/advisors/index.md
- How to:
- how-to/index.md
- how-to/configure.md
Expand Down
3 changes: 2 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ nav:
- using/query-analytics.md
- using/dbaas.md
- using/security-threat-tool.md
# - using/advisors/innodb_log_buffer_flushed_to_disk_after_each_trx.md
# - Advisors:
# - using/advisors/index.md
- How to:
- how-to/index.md
- how-to/configure.md
Expand Down
3 changes: 2 additions & 1 deletion temp-mkdocs-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ nav:
- using/query-analytics.md
- using/dbaas.md
- using/security-threat-tool.md
# - using/advisors/innodb_log_buffer_flushed_to_disk_after_each_trx.md
# - Advisors:
# - using/advisors/index.md
- How to:
- how-to/index.md
- how-to/configure.md
Expand Down

0 comments on commit 1f540df

Please sign in to comment.