File tree Expand file tree Collapse file tree 6 files changed +44
-3
lines changed Expand file tree Collapse file tree 6 files changed +44
-3
lines changed 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
158
158
[source, bash]
159
159
----
160
160
[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
162
162
[root@k8smaster-73 amd64]# ls
163
163
harbor.v2.10.2.tar
164
164
----
@@ -168,7 +168,7 @@ harbor.v2.10.2.tar
168
168
[source, bash]
169
169
----
170
170
[root@k8smaster-73 shell]# pwd
171
- /home/dp /packages/YsP-1/BusinessConfig/harbor/shell
171
+ /home/db /packages/YsP-1/BusinessConfig/harbor/shell
172
172
[root@k8smaster-73 shell]# ls
173
173
clean_harbor.sh connect_remote_harbor.sh harbor_pg_recover.sh install_harbor.sh upgrade_harbor.sh
174
174
common.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
53
53
54
54
[source,bash]
55
55
----
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
57
57
name: block_rq_issue
58
58
ID: 1099
59
59
format:
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[]
28
28
image::prometheus/image-2025-01-15-11-52-26-091.png[]
29
29
30
30
image::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