Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
107
Merge Requests
107
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos
Commits
83711d96
Commit
83711d96
authored
Aug 07, 2013
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5.mariadb: make long_query_time configurable
parent
087267d3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
3 deletions
+10
-3
software/erp5/instance-mariadb-input-schema.json
software/erp5/instance-mariadb-input-schema.json
+6
-0
stack/erp5/buildout.cfg
stack/erp5/buildout.cfg
+2
-2
stack/erp5/instance-mariadb.cfg.in
stack/erp5/instance-mariadb.cfg.in
+1
-0
stack/erp5/my.cnf.in
stack/erp5/my.cnf.in
+1
-1
No files found.
software/erp5/instance-mariadb-input-schema.json
View file @
83711d96
...
...
@@ -80,6 +80,12 @@
"default"
:
"MariaDB's default"
,
"type"
:
"integer"
},
"long-query-time"
:
{
"description"
:
"Number of seconds above which long queries are logged"
,
"minimum"
:
0
,
"default"
:
1
,
"type"
:
"number"
},
"mariadb-relaxed-writes"
:
{
"description"
:
"When enabled, sets innodb_flush_log_at_trx_commit = 0, innodb_flush_method = nosync, innodb_doublewrite = 0 and sync_frm = 0 - RTFM, those options are dangerous"
,
"default"
:
false
,
...
...
stack/erp5/buildout.cfg
View file @
83711d96
...
...
@@ -171,7 +171,7 @@ context =
[template-mariadb]
< = download-base
filename = instance-mariadb.cfg.in
md5sum =
a0cd428ebbc6fc1d842156e93d9196b
e
md5sum =
5b0df06665106f9368a5272d93fe0b5
e
link-binary =
${coreutils:location}/bin/basename
${coreutils:location}/bin/cat
...
...
@@ -201,7 +201,7 @@ md5sum = c4c42d06c63d33de703fc03415e34d84
[template-my-cnf]
< = download-base
filename = my.cnf.in
md5sum =
47f4adc8aca3e3e17c6e3525a8df6f80
md5sum =
aa6f28a5b9602eb034baf6d57d325356
[template-mariadb-initial-setup]
< = download-base
...
...
stack/erp5/instance-mariadb.cfg.in
View file @
83711d96
...
...
@@ -64,6 +64,7 @@ data-directory = ${directory:mariadb-data}
pid-file = ${directory:run}/mariadb.pid
error-log = ${directory:log}/mariadb_error.log
slow-query-log = ${directory:log}/mariadb_slowquery.log
long-query-time = {{ slapparameter_dict.get('long-query-time', 1) }}
innodb-buffer-pool-size = {{ dumps(slapparameter_dict.get('innodb-buffer-pool-size', 0)) }}
innodb-log-file-size = {{ dumps(slapparameter_dict.get('innodb-log-file-size', 0)) }}
innodb-log-buffer-size = {{ dumps(slapparameter_dict.get('innodb-log-buffer-size', 0)) }}
...
...
stack/erp5/my.cnf.in
View file @
83711d96
...
...
@@ -27,7 +27,7 @@ pid_file = {{ parameter_dict['pid-file'] }}
log_error = {{ parameter_dict['error-log'] }}
slow_query_log
slow_query_log_file = {{ parameter_dict['slow-query-log'] }}
long_query_time =
1
long_query_time =
{{ parameter_dict['long-query-time'] }}
max_allowed_packet = 128M
query_cache_size = 32M
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment