Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Features #33

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
27 changes: 27 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
APP_ENV=local
APP_DEBUG=true
APP_KEY=base64:ixXRiVtPH6x/QPXLgcfBl1oEc97AajweSf0XWpa9agQ=
APP_URL=http://localhost

DB_CONNECTION=mysql
DB_HOST=mysqlserverhost
DB_PORT=3306
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD="sePret^i"
ROOT_PASSWORD="root"

CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

MAIL_DRIVER=smtp
MAIL_HOST=mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
20 changes: 20 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM php:7.4 as php

RUN apt-get update -y
RUN apt-get install -y unzip libpq-dev libcurl4-gnutls-dev
RUN docker-php-ext-install pdo pdo_mysql bcmath

RUN pecl install -o -f redis \
&& rm -rf /tmp/pear \
&& docker-php-ext-enable redis

# WORKDIR /var/www
# COPY . .
COPY --from=composer:2.3.5 /usr/bin/composer /usr/bin/composer

ENV PORT=8000

WORKDIR /var/www
COPY . .
RUN chmod +x /var/www/entrypoint.sh
ENTRYPOINT [ "/var/www/entrypoint.sh" ]
31 changes: 31 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
pipeline {
agent any
options {
buildDiscarder(logRotator(numToKeepStr: '5'))
}
environment {
DOCKERHUB_CREDENTIALS = credentials('dockerhub')
}
stages {
stage('Build image for php-todo-app') {
steps {
sh 'docker build -t stlng/php-todo-features:0.0.1 .'
}
}
stage('Login to docker hub') {
steps {
sh 'echo $DOCKERHUB_CREDENTIALS_PSW | docker login -u $DOCKERHUB_CREDENTIALS_USR --password-stdin'
}
}
stage('Push docker image to docker hub registry') {
steps {
sh 'docker push stlng/php-todo-features:0.0.1'
}
}
}
post {
always {
sh 'docker logout'
}
}
}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@
php artisan serve

[Complete Tutorial](https://laravel.com/docs/5.2/quickstart)

Congratulations!
1 change: 1 addition & 0 deletions create_user.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CREATE USER ''@'%' IDENTIFIED BY ''; GRANT ALL PRIVILEGES ON * . * TO ''@'%';
1 change: 1 addition & 0 deletions create_user2.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CREATE USER 'homestead'@'%' IDENTIFIED BY 'sePret^i'; GRANT ALL PRIVILEGES ON * . * TO 'homestead'@'%'; CREATE DATABASE homestead; FLUSH PRIVILEGES;
50 changes: 50 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
version: "3.8"
services:

# PHP Service
php:
container_name: php-todo-app
build:
context: .
target: php
args:
- APP_ENV=${APP_ENV}
environment:
- APP_ENV=${APP_ENV}
- CONTAINER_ROLE=app
working_dir: /var/www
volumes:
- ./:/var/www
ports:
- 8000:8000
depends_on:
- database
# - redis


# Database Server
database:
image: mysql:8.0
container_name: mysql_server
ports:
- 3306:3306
environment:
- MYSQL_DATABASE=${DB_DATABASE}
- MYSQL_USER=${DB_USERNAME}
- MYSQL_PASSWORD=${DB_PASSWORD}
- MYSQL_ROOT_PASSWORD=${ROOT_PASSWORD}

volumes:
- db-data:/var/lib/mysql

# # Redis Server
# redis:
# image: redis:alpine
# container_name: redis
# command: redis-server --appendonly yes --requirepass "${REDIS_PASSWORD}"
# ports:
# - 6379:6379


volumes:
db-data: ~
24 changes: 24 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash

if [ ! -f "vendor/autoload.php" ]; then
composer install --no-progress --no-interaction
fi

if [ ! -f ".env" ]; then
echo "Creating env file for env $APP_ENV"
cp .env.example .env
else
echo "env file exists."
fi

role=${CONTAINER_ROLE:-app}

if [ "$role" = "app" ]; then
php artisan migrate
php artisan key:generate
php artisan cache:clear
php artisan config:clear
php artisan route:clear
php artisan serve --port=$PORT --host=0.0.0.0 --env=.env
exec docker-php-entrypoint "$@"
fi
2 changes: 2 additions & 0 deletions run/var/auto.cnf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[auto]
server-uuid=b29cdf82-d940-11ed-9f65-02420a120002
Binary file added run/var/ca-key.pem
Binary file not shown.
Binary file added run/var/ca.pem
Binary file not shown.
Binary file added run/var/client-cert.pem
Binary file not shown.
Binary file added run/var/client-key.pem
Binary file not shown.
2 changes: 2 additions & 0 deletions run/var/homestead/db.opt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
default-character-set=latin1
default-collation=latin1_swedish_ci
70 changes: 70 additions & 0 deletions run/var/ib_buffer_pool
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
10,6
10,84
10,230
10,168
10,154
10,16
10,238
10,240
9,7
9,4
9,1
9,6
8,4
8,16
8,12
8,6
8,9
20,3
20,2
20,1
19,2
19,3
19,1
12,3
12,2
12,1
11,28
11,27
11,26
11,25
11,24
11,23
11,22
11,21
11,20
11,19
11,18
11,17
11,16
11,15
11,14
11,13
11,12
11,11
11,10
11,9
11,8
11,5
11,4
11,3
11,2
11,1
10,303
10,302
10,301
10,300
10,299
10,298
10,297
10,296
10,295
10,294
10,293
10,292
10,291
10,290
10,289
10,288
10,287
10,286
Binary file added run/var/ib_logfile0
Binary file not shown.
Binary file added run/var/ib_logfile1
Binary file not shown.
Binary file added run/var/ibdata1
Binary file not shown.
Binary file added run/var/ibtmp1
Binary file not shown.
1 change: 1 addition & 0 deletions run/var/mysql.sock
Empty file added run/var/mysql/columns_priv.MYD
Empty file.
Binary file added run/var/mysql/columns_priv.MYI
Binary file not shown.
Binary file added run/var/mysql/columns_priv.frm
Binary file not shown.
1 change: 1 addition & 0 deletions run/var/mysql/db.MYD
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
�localhost performance_schema mysql.session �localhost sys mysql.sys �% homestead homestead 
Binary file added run/var/mysql/db.MYI
Binary file not shown.
Binary file added run/var/mysql/db.frm
Binary file not shown.
2 changes: 2 additions & 0 deletions run/var/mysql/db.opt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
default-character-set=latin1
default-collation=latin1_swedish_ci
Binary file added run/var/mysql/engine_cost.frm
Binary file not shown.
Binary file added run/var/mysql/engine_cost.ibd
Binary file not shown.
Empty file added run/var/mysql/event.MYD
Empty file.
Binary file added run/var/mysql/event.MYI
Binary file not shown.
Binary file added run/var/mysql/event.frm
Binary file not shown.
Empty file added run/var/mysql/func.MYD
Empty file.
Binary file added run/var/mysql/func.MYI
Binary file not shown.
Binary file added run/var/mysql/func.frm
Binary file not shown.
Binary file added run/var/mysql/general_log.CSM
Binary file not shown.
Empty file added run/var/mysql/general_log.CSV
Empty file.
Binary file added run/var/mysql/general_log.frm
Binary file not shown.
Binary file added run/var/mysql/gtid_executed.frm
Binary file not shown.
Binary file added run/var/mysql/gtid_executed.ibd
Binary file not shown.
Binary file added run/var/mysql/help_category.frm
Binary file not shown.
Binary file added run/var/mysql/help_category.ibd
Binary file not shown.
Binary file added run/var/mysql/help_keyword.frm
Binary file not shown.
Binary file added run/var/mysql/help_keyword.ibd
Binary file not shown.
Binary file added run/var/mysql/help_relation.frm
Binary file not shown.
Binary file added run/var/mysql/help_relation.ibd
Binary file not shown.
Binary file added run/var/mysql/help_topic.frm
Binary file not shown.
Binary file added run/var/mysql/help_topic.ibd
Binary file not shown.
Binary file added run/var/mysql/innodb_index_stats.frm
Binary file not shown.
Binary file added run/var/mysql/innodb_index_stats.ibd
Binary file not shown.
Binary file added run/var/mysql/innodb_table_stats.frm
Binary file not shown.
Binary file added run/var/mysql/innodb_table_stats.ibd
Binary file not shown.
Empty file.
Binary file added run/var/mysql/ndb_binlog_index.MYI
Binary file not shown.
Binary file added run/var/mysql/ndb_binlog_index.frm
Binary file not shown.
Binary file added run/var/mysql/plugin.frm
Binary file not shown.
Binary file added run/var/mysql/plugin.ibd
Binary file not shown.
Binary file added run/var/mysql/proc.MYD
Binary file not shown.
Binary file added run/var/mysql/proc.MYI
Binary file not shown.
Binary file added run/var/mysql/proc.frm
Binary file not shown.
Empty file added run/var/mysql/procs_priv.MYD
Empty file.
Binary file added run/var/mysql/procs_priv.MYI
Binary file not shown.
Binary file added run/var/mysql/procs_priv.frm
Binary file not shown.
Binary file added run/var/mysql/proxies_priv.MYD
Binary file not shown.
Binary file added run/var/mysql/proxies_priv.MYI
Binary file not shown.
Binary file added run/var/mysql/proxies_priv.frm
Binary file not shown.
Binary file added run/var/mysql/server_cost.frm
Binary file not shown.
Binary file added run/var/mysql/server_cost.ibd
Binary file not shown.
Binary file added run/var/mysql/servers.frm
Binary file not shown.
Binary file added run/var/mysql/servers.ibd
Binary file not shown.
Binary file added run/var/mysql/slave_master_info.frm
Binary file not shown.
Binary file added run/var/mysql/slave_master_info.ibd
Binary file not shown.
Binary file added run/var/mysql/slave_relay_log_info.frm
Binary file not shown.
Binary file added run/var/mysql/slave_relay_log_info.ibd
Binary file not shown.
Binary file added run/var/mysql/slave_worker_info.frm
Binary file not shown.
Binary file added run/var/mysql/slave_worker_info.ibd
Binary file not shown.
Binary file added run/var/mysql/slow_log.CSM
Binary file not shown.
Empty file added run/var/mysql/slow_log.CSV
Empty file.
Binary file added run/var/mysql/slow_log.frm
Binary file not shown.
Binary file added run/var/mysql/tables_priv.MYD
Binary file not shown.
Binary file added run/var/mysql/tables_priv.MYI
Binary file not shown.
Binary file added run/var/mysql/tables_priv.frm
Binary file not shown.
Binary file added run/var/mysql/time_zone.frm
Binary file not shown.
Binary file added run/var/mysql/time_zone.ibd
Binary file not shown.
Binary file added run/var/mysql/time_zone_leap_second.frm
Binary file not shown.
Binary file added run/var/mysql/time_zone_leap_second.ibd
Binary file not shown.
Binary file added run/var/mysql/time_zone_name.frm
Binary file not shown.
Binary file added run/var/mysql/time_zone_name.ibd
Binary file not shown.
Binary file added run/var/mysql/time_zone_transition.frm
Binary file not shown.
Binary file added run/var/mysql/time_zone_transition.ibd
Binary file not shown.
Binary file added run/var/mysql/time_zone_transition_type.frm
Binary file not shown.
Binary file added run/var/mysql/time_zone_transition_type.ibd
Binary file not shown.
Binary file added run/var/mysql/user.MYD
Binary file not shown.
Binary file added run/var/mysql/user.MYI
Binary file not shown.
Binary file added run/var/mysql/user.frm
Binary file not shown.
Binary file added run/var/performance_schema/accounts.frm
Binary file not shown.
Binary file added run/var/performance_schema/cond_instances.frm
Binary file not shown.
2 changes: 2 additions & 0 deletions run/var/performance_schema/db.opt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
default-character-set=utf8
default-collation=utf8_general_ci
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added run/var/performance_schema/file_instances.frm
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added run/var/performance_schema/global_status.frm
Binary file not shown.
Binary file added run/var/performance_schema/global_variables.frm
Binary file not shown.
Binary file added run/var/performance_schema/host_cache.frm
Binary file not shown.
Binary file added run/var/performance_schema/hosts.frm
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added run/var/performance_schema/metadata_locks.frm
Binary file not shown.
Binary file added run/var/performance_schema/mutex_instances.frm
Binary file not shown.
Binary file not shown.
Binary file added run/var/performance_schema/performance_timers.frm
Binary file not shown.
Binary file not shown.
Binary file added run/var/performance_schema/processlist.frm
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added run/var/performance_schema/rwlock_instances.frm
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added run/var/performance_schema/session_status.frm
Binary file not shown.
Binary file added run/var/performance_schema/session_variables.frm
Binary file not shown.
Binary file added run/var/performance_schema/setup_actors.frm
Binary file not shown.
Binary file added run/var/performance_schema/setup_consumers.frm
Binary file not shown.
Binary file added run/var/performance_schema/setup_instruments.frm
Binary file not shown.
Binary file added run/var/performance_schema/setup_objects.frm
Binary file not shown.
Binary file added run/var/performance_schema/setup_timers.frm
Binary file not shown.
Binary file added run/var/performance_schema/socket_instances.frm
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added run/var/performance_schema/status_by_account.frm
Binary file not shown.
Binary file added run/var/performance_schema/status_by_host.frm
Binary file not shown.
Binary file added run/var/performance_schema/status_by_thread.frm
Binary file not shown.
Binary file added run/var/performance_schema/status_by_user.frm
Binary file not shown.
Binary file added run/var/performance_schema/table_handles.frm
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added run/var/performance_schema/threads.frm
Binary file not shown.
Binary file not shown.
Binary file added run/var/performance_schema/users.frm
Binary file not shown.
Binary file not shown.
Binary file added run/var/private_key.pem
Binary file not shown.
Binary file added run/var/public_key.pem
Binary file not shown.
Binary file added run/var/server-cert.pem
Binary file not shown.
Binary file added run/var/server-key.pem
Binary file not shown.
2 changes: 2 additions & 0 deletions run/var/sys/db.opt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
default-character-set=utf8
default-collation=utf8_general_ci
15 changes: 15 additions & 0 deletions run/var/sys/host_summary.frm
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
TYPE=VIEW
query=select if(isnull(`performance_schema`.`accounts`.`HOST`),\'background\',`performance_schema`.`accounts`.`HOST`) AS `host`,sum(`stmt`.`total`) AS `statements`,`sys`.`format_time`(sum(`stmt`.`total_latency`)) AS `statement_latency`,`sys`.`format_time`(ifnull((sum(`stmt`.`total_latency`) / nullif(sum(`stmt`.`total`),0)),0)) AS `statement_avg_latency`,sum(`stmt`.`full_scans`) AS `table_scans`,sum(`io`.`ios`) AS `file_ios`,`sys`.`format_time`(sum(`io`.`io_latency`)) AS `file_io_latency`,sum(`performance_schema`.`accounts`.`CURRENT_CONNECTIONS`) AS `current_connections`,sum(`performance_schema`.`accounts`.`TOTAL_CONNECTIONS`) AS `total_connections`,count(distinct `performance_schema`.`accounts`.`USER`) AS `unique_users`,`sys`.`format_bytes`(sum(`mem`.`current_allocated`)) AS `current_memory`,`sys`.`format_bytes`(sum(`mem`.`total_allocated`)) AS `total_memory_allocated` from (((`performance_schema`.`accounts` join `sys`.`x$host_summary_by_statement_latency` `stmt` on((`performance_schema`.`accounts`.`HOST` = `stmt`.`host`))) join `sys`.`x$host_summary_by_file_io` `io` on((`performance_schema`.`accounts`.`HOST` = `io`.`host`))) join `sys`.`x$memory_by_host_by_current_bytes` `mem` on((`performance_schema`.`accounts`.`HOST` = `mem`.`host`))) group by if(isnull(`performance_schema`.`accounts`.`HOST`),\'background\',`performance_schema`.`accounts`.`HOST`)
md5=e079676ec756edbb811a11a2d649f6e4
updatable=0
algorithm=1
definer_user=mysql.sys
definer_host=localhost
suid=0
with_check_option=0
timestamp=2023-04-12 14:46:05
create-version=1
source=SELECT IF(accounts.host IS NULL, \'background\', accounts.host) AS host, SUM(stmt.total) AS statements, sys.format_time(SUM(stmt.total_latency)) AS statement_latency, sys.format_time(IFNULL(SUM(stmt.total_latency) / NULLIF(SUM(stmt.total), 0), 0)) AS statement_avg_latency, SUM(stmt.full_scans) AS table_scans, SUM(io.ios) AS file_ios, sys.format_time(SUM(io.io_latency)) AS file_io_latency, SUM(accounts.current_connections) AS current_connections, SUM(accounts.total_connections) AS total_connections, COUNT(DISTINCT user) AS unique_users, sys.format_bytes(SUM(mem.current_allocated)) AS current_memory, sys.format_bytes(SUM(mem.total_allocated)) AS total_memory_allocated FROM performance_schema.accounts JOIN sys.x$host_summary_by_statement_latency AS stmt ON accounts.host = stmt.host JOIN sys.x$host_summary_by_file_io AS io ON accounts.host = io.host JOIN sys.x$memory_by_host_by_current_bytes mem ON accounts.host = mem.host GROUP BY IF(accounts.host IS NULL, \'background\', accounts.host)
client_cs_name=utf8
connection_cl_name=utf8_general_ci
view_body_utf8=select if(isnull(`performance_schema`.`accounts`.`HOST`),\'background\',`performance_schema`.`accounts`.`HOST`) AS `host`,sum(`stmt`.`total`) AS `statements`,`sys`.`format_time`(sum(`stmt`.`total_latency`)) AS `statement_latency`,`sys`.`format_time`(ifnull((sum(`stmt`.`total_latency`) / nullif(sum(`stmt`.`total`),0)),0)) AS `statement_avg_latency`,sum(`stmt`.`full_scans`) AS `table_scans`,sum(`io`.`ios`) AS `file_ios`,`sys`.`format_time`(sum(`io`.`io_latency`)) AS `file_io_latency`,sum(`performance_schema`.`accounts`.`CURRENT_CONNECTIONS`) AS `current_connections`,sum(`performance_schema`.`accounts`.`TOTAL_CONNECTIONS`) AS `total_connections`,count(distinct `performance_schema`.`accounts`.`USER`) AS `unique_users`,`sys`.`format_bytes`(sum(`mem`.`current_allocated`)) AS `current_memory`,`sys`.`format_bytes`(sum(`mem`.`total_allocated`)) AS `total_memory_allocated` from (((`performance_schema`.`accounts` join `sys`.`x$host_summary_by_statement_latency` `stmt` on((`performance_schema`.`accounts`.`HOST` = `stmt`.`host`))) join `sys`.`x$host_summary_by_file_io` `io` on((`performance_schema`.`accounts`.`HOST` = `io`.`host`))) join `sys`.`x$memory_by_host_by_current_bytes` `mem` on((`performance_schema`.`accounts`.`HOST` = `mem`.`host`))) group by if(isnull(`performance_schema`.`accounts`.`HOST`),\'background\',`performance_schema`.`accounts`.`HOST`)
15 changes: 15 additions & 0 deletions run/var/sys/host_summary_by_file_io.frm
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
TYPE=VIEW
query=select if(isnull(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`),\'background\',`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`) AS `host`,sum(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`COUNT_STAR`) AS `ios`,`sys`.`format_time`(sum(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`SUM_TIMER_WAIT`)) AS `io_latency` from `performance_schema`.`events_waits_summary_by_host_by_event_name` where (`performance_schema`.`events_waits_summary_by_host_by_event_name`.`EVENT_NAME` like \'wait/io/file/%\') group by if(isnull(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`),\'background\',`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`) order by sum(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`SUM_TIMER_WAIT`) desc
md5=53b0d9b1a70d1f81690a79d9d4d8f59c
updatable=0
algorithm=1
definer_user=mysql.sys
definer_host=localhost
suid=0
with_check_option=0
timestamp=2023-04-12 14:46:05
create-version=1
source=SELECT IF(host IS NULL, \'background\', host) AS host, SUM(count_star) AS ios, sys.format_time(SUM(sum_timer_wait)) AS io_latency FROM performance_schema.events_waits_summary_by_host_by_event_name WHERE event_name LIKE \'wait/io/file/%\' GROUP BY IF(host IS NULL, \'background\', host) ORDER BY SUM(sum_timer_wait) DESC
client_cs_name=utf8
connection_cl_name=utf8_general_ci
view_body_utf8=select if(isnull(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`),\'background\',`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`) AS `host`,sum(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`COUNT_STAR`) AS `ios`,`sys`.`format_time`(sum(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`SUM_TIMER_WAIT`)) AS `io_latency` from `performance_schema`.`events_waits_summary_by_host_by_event_name` where (`performance_schema`.`events_waits_summary_by_host_by_event_name`.`EVENT_NAME` like \'wait/io/file/%\') group by if(isnull(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`),\'background\',`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`) order by sum(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`SUM_TIMER_WAIT`) desc
15 changes: 15 additions & 0 deletions run/var/sys/host_summary_by_file_io_type.frm
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
TYPE=VIEW
query=select if(isnull(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`),\'background\',`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`) AS `host`,`performance_schema`.`events_waits_summary_by_host_by_event_name`.`EVENT_NAME` AS `event_name`,`performance_schema`.`events_waits_summary_by_host_by_event_name`.`COUNT_STAR` AS `total`,`sys`.`format_time`(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`SUM_TIMER_WAIT`) AS `total_latency`,`sys`.`format_time`(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`MAX_TIMER_WAIT`) AS `max_latency` from `performance_schema`.`events_waits_summary_by_host_by_event_name` where ((`performance_schema`.`events_waits_summary_by_host_by_event_name`.`EVENT_NAME` like \'wait/io/file%\') and (`performance_schema`.`events_waits_summary_by_host_by_event_name`.`COUNT_STAR` > 0)) order by if(isnull(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`),\'background\',`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`),`performance_schema`.`events_waits_summary_by_host_by_event_name`.`SUM_TIMER_WAIT` desc
md5=58bace9fd830c2b849772ce5d565917e
updatable=1
algorithm=2
definer_user=mysql.sys
definer_host=localhost
suid=0
with_check_option=0
timestamp=2023-04-12 14:46:05
create-version=1
source=SELECT IF(host IS NULL, \'background\', host) AS host, event_name, count_star AS total, sys.format_time(sum_timer_wait) AS total_latency, sys.format_time(max_timer_wait) AS max_latency FROM performance_schema.events_waits_summary_by_host_by_event_name WHERE event_name LIKE \'wait/io/file%\' AND count_star > 0 ORDER BY IF(host IS NULL, \'background\', host), sum_timer_wait DESC
client_cs_name=utf8
connection_cl_name=utf8_general_ci
view_body_utf8=select if(isnull(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`),\'background\',`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`) AS `host`,`performance_schema`.`events_waits_summary_by_host_by_event_name`.`EVENT_NAME` AS `event_name`,`performance_schema`.`events_waits_summary_by_host_by_event_name`.`COUNT_STAR` AS `total`,`sys`.`format_time`(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`SUM_TIMER_WAIT`) AS `total_latency`,`sys`.`format_time`(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`MAX_TIMER_WAIT`) AS `max_latency` from `performance_schema`.`events_waits_summary_by_host_by_event_name` where ((`performance_schema`.`events_waits_summary_by_host_by_event_name`.`EVENT_NAME` like \'wait/io/file%\') and (`performance_schema`.`events_waits_summary_by_host_by_event_name`.`COUNT_STAR` > 0)) order by if(isnull(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`),\'background\',`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`),`performance_schema`.`events_waits_summary_by_host_by_event_name`.`SUM_TIMER_WAIT` desc
15 changes: 15 additions & 0 deletions run/var/sys/host_summary_by_stages.frm
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
TYPE=VIEW
query=select if(isnull(`performance_schema`.`events_stages_summary_by_host_by_event_name`.`HOST`),\'background\',`performance_schema`.`events_stages_summary_by_host_by_event_name`.`HOST`) AS `host`,`performance_schema`.`events_stages_summary_by_host_by_event_name`.`EVENT_NAME` AS `event_name`,`performance_schema`.`events_stages_summary_by_host_by_event_name`.`COUNT_STAR` AS `total`,`sys`.`format_time`(`performance_schema`.`events_stages_summary_by_host_by_event_name`.`SUM_TIMER_WAIT`) AS `total_latency`,`sys`.`format_time`(`performance_schema`.`events_stages_summary_by_host_by_event_name`.`AVG_TIMER_WAIT`) AS `avg_latency` from `performance_schema`.`events_stages_summary_by_host_by_event_name` where (`performance_schema`.`events_stages_summary_by_host_by_event_name`.`SUM_TIMER_WAIT` <> 0) order by if(isnull(`performance_schema`.`events_stages_summary_by_host_by_event_name`.`HOST`),\'background\',`performance_schema`.`events_stages_summary_by_host_by_event_name`.`HOST`),`performance_schema`.`events_stages_summary_by_host_by_event_name`.`SUM_TIMER_WAIT` desc
md5=b6ea9b98daa223ec9e82b8abb20f25f0
updatable=1
algorithm=2
definer_user=mysql.sys
definer_host=localhost
suid=0
with_check_option=0
timestamp=2023-04-12 14:46:05
create-version=1
source=SELECT IF(host IS NULL, \'background\', host) AS host, event_name, count_star AS total, sys.format_time(sum_timer_wait) AS total_latency, sys.format_time(avg_timer_wait) AS avg_latency FROM performance_schema.events_stages_summary_by_host_by_event_name WHERE sum_timer_wait != 0 ORDER BY IF(host IS NULL, \'background\', host), sum_timer_wait DESC
client_cs_name=utf8
connection_cl_name=utf8_general_ci
view_body_utf8=select if(isnull(`performance_schema`.`events_stages_summary_by_host_by_event_name`.`HOST`),\'background\',`performance_schema`.`events_stages_summary_by_host_by_event_name`.`HOST`) AS `host`,`performance_schema`.`events_stages_summary_by_host_by_event_name`.`EVENT_NAME` AS `event_name`,`performance_schema`.`events_stages_summary_by_host_by_event_name`.`COUNT_STAR` AS `total`,`sys`.`format_time`(`performance_schema`.`events_stages_summary_by_host_by_event_name`.`SUM_TIMER_WAIT`) AS `total_latency`,`sys`.`format_time`(`performance_schema`.`events_stages_summary_by_host_by_event_name`.`AVG_TIMER_WAIT`) AS `avg_latency` from `performance_schema`.`events_stages_summary_by_host_by_event_name` where (`performance_schema`.`events_stages_summary_by_host_by_event_name`.`SUM_TIMER_WAIT` <> 0) order by if(isnull(`performance_schema`.`events_stages_summary_by_host_by_event_name`.`HOST`),\'background\',`performance_schema`.`events_stages_summary_by_host_by_event_name`.`HOST`),`performance_schema`.`events_stages_summary_by_host_by_event_name`.`SUM_TIMER_WAIT` desc
Loading