Skip to content

Commit

Permalink
Disable synchronous mode in sqlite
Browse files Browse the repository at this point in the history
  • Loading branch information
dtantsur committed Dec 10, 2021
1 parent 44c6a93 commit ba307e7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ironic-config/ironic.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ verify_step_priority_override = management.clear_job_queue:90
[database]
{% if env.IRONIC_USE_MARIADB | lower == "false" %}
connection = sqlite:////var/lib/ironic/ironic.sqlite
# Synchronous mode is required for data integrity in case of operating system
# crash. In our case we restart the container from scratch, so we can save some
# IO by not doing syncs all the time.
sqlite_synchronous = False
{% elif env.MARIADB_TLS_ENABLED == "true" %}
connection = mysql+pymysql://ironic:{{ env.MARIADB_PASSWORD }}@127.0.0.1/ironic?charset=utf8&ssl=on&ssl_ca={{ env.MARIADB_CACERT_FILE }}
{% else %}
Expand Down

0 comments on commit ba307e7

Please sign in to comment.