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
106
Merge Requests
106
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
f6c1b145
Commit
f6c1b145
authored
Nov 22, 2023
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
software/erp5: record mariadb data and binlog size after benchmark test.
parent
894d5cf3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
software/erp5/test/test/benchmarks.py
software/erp5/test/test/benchmarks.py
+14
-1
No files found.
software/erp5/test/test/benchmarks.py
View file @
f6c1b145
...
...
@@ -28,6 +28,7 @@
import
contextlib
import
datetime
import
json
import
os
import
pathlib
import
socket
import
struct
...
...
@@ -289,9 +290,21 @@ class TestOrderBuildPackingListSimulation(
mariadb_slowquery_log
=
pathlib
.
Path
(
self
.
getComputerPartitionPath
(
'mariadb'
))
/
'var'
/
'log'
/
'mariadb_slowquery.log'
mariadb_data
=
pathlib
.
Path
(
self
.
getComputerPartitionPath
(
'mariadb'
))
/
'srv'
/
'mariadb'
mariadb_data_size
=
sum
(
sum
(
os
.
path
.
getsize
(
os
.
path
.
join
(
root
,
f
))
for
f
in
files
)
\
for
root
,
dirs
,
files
in
os
.
walk
(
mariadb_data
))
mariadb_binlog_data
=
pathlib
.
Path
(
self
.
getComputerPartitionPath
(
'mariadb'
))
/
'srv'
/
'backup'
/
'mariadb-incremental'
mariadb_binlog_data_size
=
sum
(
sum
(
os
.
path
.
getsize
(
os
.
path
.
join
(
root
,
f
))
for
f
in
files
)
\
for
root
,
dirs
,
files
in
os
.
walk
(
mariadb_binlog_data
))
self
.
write_measurement
(
{
'pt-query-digest'
:
subprocess
.
check_output
(
(
pt_query_digest
,
mariadb_slowquery_log
),
text
=
True
)
(
pt_query_digest
,
mariadb_slowquery_log
),
text
=
True
),
'data-size'
:
mariadb_data_size
,
'binlog-data-size'
:
mariadb_binlog_data_size
,
})
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