File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ version : ' 3.4'
2+
3+ services :
4+ db :
5+ image : mysql
6+ container_name : mysql_container
7+ environment :
8+ MYSQL_ROOT_PASSWORD : root
9+ MYSQL_DATABASE : testdb
10+ MYSQL_USER : andrew
11+ MYSQL_PASSWORD : andrew
12+ ports :
13+ - " 3306:3306" # 宿主机的3306端口映射到容器的3306端口
14+ volumes :
15+ - db_data:/var/lib/mysql
16+ restart : always
17+
18+ # 使用doker volume进行数据持久化
19+ volumes :
20+ db_data:
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ docker-compose up -d
4+
5+
6+
7+
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ docker-compose down
Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ goharbor/prepare v2.12.0 6eb9a653
158158[source, bash]
159159----
160160[root@k8smaster-73 amd64]# pwd
161- /home/dp /packages/YsP-1/BusinessConfig/harbor/image/amd64
161+ /home/db /packages/YsP-1/BusinessConfig/harbor/image/amd64
162162[root@k8smaster-73 amd64]# ls
163163harbor.v2.10.2.tar
164164----
@@ -168,7 +168,7 @@ harbor.v2.10.2.tar
168168[source, bash]
169169----
170170[root@k8smaster-73 shell]# pwd
171- /home/dp /packages/YsP-1/BusinessConfig/harbor/shell
171+ /home/db /packages/YsP-1/BusinessConfig/harbor/shell
172172[root@k8smaster-73 shell]# ls
173173clean_harbor.sh connect_remote_harbor.sh harbor_pg_recover.sh install_harbor.sh upgrade_harbor.sh
174174common.sh harbor_backup_crontab.sh harbor_redis_recover.sh scale_harbor.sh
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ perf list breakpoint
5353
5454[source,bash]
5555----
56- [root@k8smaster-ims cdw-dp ]# cat /sys/kernel/debug/tracing/events/block/block_rq_issue/format
56+ [root@k8smaster-ims cdw-db ]# cat /sys/kernel/debug/tracing/events/block/block_rq_issue/format
5757name: block_rq_issue
5858ID: 1099
5959format:
Original file line number Diff line number Diff line change @@ -28,3 +28,14 @@ image::prometheus/image-2025-01-15-11-50-41-061.png[]
2828image::prometheus/image-2025-01-15-11-52-26-091.png[]
2929
3030image::prometheus/image-2025-01-15-11-53-24-998.png[]
31+
32+
33+
34+ === ALG
35+
36+ https://blog.csdn.net/weixin_51918722/article/details/146076515[ALG: alloy + loki + grafana]
37+
38+
39+
40+
41+
You can’t perform that action at this time.
0 commit comments