Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-server
Commits
f138ba9a
Commit
f138ba9a
authored
3 years ago
by
Henrik tom Wörden
Browse files
Options
Downloads
Patches
Plain Diff
DOC: added docs on sql-profiling
parent
c380f459
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!21
Release v0.4.0
Pipeline
#7912
canceled
3 years ago
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/devel/Benchmarking.md
+33
-0
33 additions, 0 deletions
doc/devel/Benchmarking.md
with
33 additions
and
0 deletions
doc/devel/Benchmarking.md
+
33
−
0
View file @
f138ba9a
...
...
@@ -32,6 +32,39 @@ A somewhat outdated script which executes a given query a number of times and th
about the
`TransactionBenchmark`
readings (see below for more information about the transaction
benchmarks) delivered by the server.
### `sql_routine_measurement.py`
Simply call
`./sql_routine_measurement.py`
in the scripts directory. An sql
file is automatically executed which enables the correct
`performance_schema`
tables. However, the performance_schema of mariadb needs to be enabled. Add
`performance_schema=ON`
to the configuration file of mariadb as it needs to be
enabled on start up.
This script expects the MariaDB server to be accessible on 127.0.0.1 with the default caosdb user
and password (caosdb;random1234).
#### Preparing docker setup for this:
Change the docker-compose file to include the following for the mariadb service:
```
networks:
# available on port 3306, host name 'sqldb'
- caosnet
ports:
- 3306:3306
```
Check it with
`mysql -ucaosdb -prandom1234 -h127.0.0.1 caosdb`
Set the schema to
`ON`
in
`profiles/empty/custom/mariadb.conf.d/mariadb.cnf`
or in the profile that you use.
The
`performance_schema`
setting in the MariaDB server must be enabled, for example by setting
this in the config files:
```
[mysqld]
performance_schema=ON
```
Start the server.
### Benchmarking SQL commands ###
MariaDB and MySQL have a feature to enable the logging of SQL queries' times. This logging must be
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment