This commit is contained in:
qiuqiu 2025-05-23 17:04:49 +08:00
parent f934223212
commit 57aea0bbb5
50 changed files with 292 additions and 7 deletions

9
.idea/workspace.xml generated
View File

@ -8,9 +8,12 @@
<component name="ChangeListManager">
<list default="true" id="fec10672-acda-4616-894b-a4b6f93aea6f" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/笔记文件/2.笔记/数据中台 临时记录.md" beforeDir="false" afterPath="$PROJECT_DIR$/笔记文件/2.笔记/数据中台 临时记录.md" afterDir="false" />
<change beforePath="$PROJECT_DIR$/笔记文件/2.笔记/灵感_其他_第二章.md" beforeDir="false" afterPath="$PROJECT_DIR$/笔记文件/2.笔记/灵感_其他_第二章.md" afterDir="false" />
<change beforePath="$PROJECT_DIR$/笔记文件/日记/2025_05_21_星期三.md" beforeDir="false" afterPath="$PROJECT_DIR$/笔记文件/日记/2025_05_21_星期三.md" afterDir="false" />
<change beforePath="$PROJECT_DIR$/笔记文件/2.笔记/Telnet 端口测试.md" beforeDir="false" afterPath="$PROJECT_DIR$/笔记文件/2.笔记/Telnet 端口测试.md" afterDir="false" />
<change beforePath="$PROJECT_DIR$/笔记文件/2.笔记/VLC使用设置相关.md" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/笔记文件/2.笔记/nginx端口转发.md" beforeDir="false" afterPath="$PROJECT_DIR$/笔记文件/2.笔记/nginx端口转发.md" afterDir="false" />
<change beforePath="$PROJECT_DIR$/笔记文件/2.笔记/virtualBox 和 centos 7安装.md" beforeDir="false" afterPath="$PROJECT_DIR$/笔记文件/2.笔记/virtualBox 和 centos 7安装.md" afterDir="false" />
<change beforePath="$PROJECT_DIR$/笔记文件/2.笔记/性能检测平台 临时记录_第二章.md" beforeDir="false" afterPath="$PROJECT_DIR$/笔记文件/2.笔记/性能检测平台 临时记录_第二章.md" afterDir="false" />
<change beforePath="$PROJECT_DIR$/笔记文件/2.笔记/日志系统 临时记录.md" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/笔记文件/日记/2025_05_22_星期四.md" beforeDir="false" afterPath="$PROJECT_DIR$/笔记文件/日记/2025_05_22_星期四.md" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />

View File

@ -32,7 +32,7 @@ telnet 192.168.3.8 82
![[Pasted image 20250124144555.png]]
在对应端口,开启服务后,才可以正常,连上该端口;
开启服务相关,参考[[日志系统 临时记录]]即可;
开启服务相关,参考[[日志采集系统 临时记录]]即可;
如果端口权限有问题,参考[[局域网外部访问Jenkins 修改防火墙入站规则]]修改一下规则即可;
开启服务后,是可以正常链接

View File

@ -0,0 +1,7 @@
#杂七杂八常识
有很多软件例如高级的linux性能监控工具`htop`是没有集成到基础软件库的所以需要安装EPEL (Extra Packages for Enterprise Linux) 仓库,会包含了许多额外的软件包;
``` shell
yum install epel-release -y
```

View File

@ -0,0 +1,93 @@
#杂七杂八常识
压力测试,可以使用`go`的hey工具需要先安装golang环境然后htop和iftop分别是用来监控硬件性能和网络性能的如果要安装的话需要先安装好额外的软件库参考[[centos 7 额外软件库]]
``` shell
yum install -y golang htop iftop
```
安装完成后,输入`htop`可以监控硬件性能
![[Pasted image 20250523161626.png]]
iftop可以监控网络性能相关
![[Pasted image 20250523161715.png]]
然后可以通过go环境安装`hey`压力测试工具再顺便设置一下go到linux的环境变量使能一共3条指令
``` shell
go install github.com/rakyll/hey@latest
echo 'export PATH=$PATH:$HOME/go/bin' >> ~/.bashrc
source ~/.bashrc
```
这里是测试发送性能监控数据通过hey指令
``` shell
hey -n 100000 -c 500 -m POST \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "appId=10000" \
-d "uid=player_1234" \
-d "isEditor=No" \
-d "sys=Android 13" \
-d "model=SM-G991B" \
-d "device=Galaxy S21" \
-d "cpuCoreCount=8" \
-d "gpuMemorySizeMB=8096" \
-d "currentFPS=57" \
-d "targetFPS=60" \
-d "ver=2.1.3" \
-d "scene=level_5" \
-d "luaMemoryMB=32.1" \
-d "totalMemoryMB=6144" \
-d "usedMemoryMB=2873" \
-d "score=85" \
-d "graphicsDeviceName=Adreno 660" \
-d "processorType=Snapdragon 888" \
-d "fpsData=player_1234,57,60,2024-05-21T14:30:00|player_1234,55,60,2024-05-21T14:30:01" \
http://192.168.1.177:82/collect
```
指令解析参考:
![[Pasted image 20250523162718.png]]
复制后通过xshell打开虚拟机直接粘贴即可
![[Pasted image 20250523162047.png]]
![[Pasted image 20250523162219.png]]
直接敲击回车即可
![[Pasted image 20250523162237.png]]
处理完成后,会生成一份性能报告:
![[Pasted image 20250523162324.png]]
性能报告解析:
![[Pasted image 20250523162426.png]]
![[Pasted image 20250523162434.png]]
QPS计算
![[Pasted image 20250523162542.png]]
服务端逻辑,是分割字符,然后写入数据库的
![[Pasted image 20250523163435.png]]
查询数据一共发起了10万次请求写入然后总数据量20万是符合预期的
![[Pasted image 20250523163631.png]]
``` sql
SELECT COUNT(*) FROM `performance_2025-05-23`;
```
![[Pasted image 20250523163557.png]]

View File

@ -0,0 +1,5 @@
#杂七杂八常识
![[Pasted image 20250523160653.png]]
![[Pasted image 20250523160720.png]]

View File

@ -156,7 +156,7 @@ http {
}
location /api/ {
proxy_pass http://127.0.0.1/api/;
proxy_pass http://127.0.0.1:80/api/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
@ -209,6 +209,16 @@ http {
proxy_set_header X-Forwarded-Proto $scheme;
}
# 新增认证服务路由
location /api/ {
# 这里假设认证服务实际处理路径是80端口的/api/
proxy_pass http://127.0.0.1:8080/api/; # 根据实际服务端口调整
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
# 其他请求处理规则(可选)
location / {
# 默认处理规则例如返回404或转发到其他服务

View File

@ -0,0 +1,4 @@
#python
#数据分析
书籍推荐参考https://www.zhihu.com/question/13385506858

View File

@ -1,3 +1,117 @@
#杂七杂八常识
参考链接https://blog.csdn.net/weixin_40547993/article/details/129736212
centos 7的无界面 服务器 iso镜像压缩包参考
![[Pasted image 20250523153609.png]]
virrtualbox免费虚拟机下载链接https://www.virtualbox.org/wiki/Downloads
按照操作系统,选择下载即可
![[Pasted image 20250523153831.png]]
完成下载后打开virtual box新建虚拟机
![[Pasted image 20250523154123.png]]
然后注意先不要指定IOS Image镜像直接先填写Name和Folder然后Next下一步即可
![[Pasted image 20250523154143.png]]
内存和CPU核心设置参考这里分别是2048M和3核
![[Pasted image 20250523154257.png]]
然后是硬盘设置这里是15实际上设置10G也足够
![[Pasted image 20250523154401.png]]
![[Pasted image 20250523154444.png]]
然后点Finish就可以看到创建好的虚拟机了
![[Pasted image 20250523154553.png]]
设置一下iso镜像的盘片
![[Pasted image 20250523154655.png]]
确认一下有centos 7的iso盘片即可
![[Pasted image 20250523154741.png]]
确认添加成功
![[Pasted image 20250523154843.png]]
然后,点击启动虚拟机即可
![[Pasted image 20250523154907.png]]
等待片刻,期间可能会出现,类似的界面,点击一下就好
![[Pasted image 20250523154941.png]]
然后还要设置一下root管理员密码
![[Pasted image 20250523154959.png]]
安装完成后,会有一个`reboot`按钮,点击后,就可以正常进入正式安装好的环境(而且这时候盘片实际上已经自动卸掉前面选择的iso光驱后面也可以不用管)
![[Pasted image 20250523155035.png]]
![[Pasted image 20250523155313.png]]
如果要关机,输入`poweroff`即可;
关机后,先设置一下网络:
![[Pasted image 20250523155409.png]]
重新启动虚拟机后,`vi`开始编辑,网络配置文件
``` shell
vi /etc/sysconfig/network-scripts/ifcfg-enp0s3
```
通过键盘方向键,移动到这里,然后按 i 或者 a 或者 o 进入编辑模式把这个设置为true
![[Pasted image 20250523155752.png]]
然后按组合键`Shift``;`
输入`wq`保存修改,退出即可;
然后,输入指令,重启网络服务:
``` shell
systemctl restart network
```
输入指令,看一下,是否已有网络:
``` shell
hostname -I
```
![[Pasted image 20250523160056.png]]
也可以ping百度是可以ping通就说明网络没问题了
这时候,如果要通过软件库,下载软件,还是无法下载的,因为软件库有问题,或者没配置;
centos 7自带了[[curl]]的
因为在国内,设置成,阿里云的软件库即可;
``` shell
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
```
然后需要清理一下yum软件库的缓存相关两条指令
``` shell
yum clean all
yum mackcache
```
然后,就可以正常愉快的,下载软件了,例如`nano`
``` shell
yum install nano
```

View File

@ -20,6 +20,8 @@ ip没有采集
![[Pasted image 20250423161736.png]]
三消玩家登录
![[Pasted image 20250423162317.png]]
添加编辑器标识:

View File

@ -0,0 +1,9 @@
#灵感
解构一下逻辑,需要完成,这俩需求的新增
![[Pasted image 20250523165636.png]]
逻辑的文件夹位置:
![[Pasted image 20250523170336.png]]

View File

@ -23,7 +23,7 @@
- [ ] 做一下 下川岛攻略
- [ ] 思考一下 系统分析法的开展
- [ ] 确定一下 当前服务器 并发性能指标
- [x] 确定一下 当前服务器 并发性能指标
- [ ] 搭建一下 中台 埋点上报服务器
- [ ] 了解一下 airtest自动化测试流程
- [x] 买3条内备用

View File

@ -0,0 +1,38 @@
09:25
###### [[unity日常积累]]
###### [[节奏天国]]
###### [[帧同步王者荣耀]]
###### [[从零开发跨平台通用日志插件]]
###### [[通用异步网络通信库]]
###### [[高性能定时系统实现]]
###### [[学习资料]]
###### [[其他]]
#### [[看板]]
# 今日任务
- [ ] 今晚或者明天 记得去加满油
- [ ] 今晚记得给各电子设备充电
- [x] 完成 性能监控系统 QPS指标压力测试
- [ ] 继续完善一下 设备分级和性能监控文档
- [ ] 完善一下 系统分析法文档
- [ ] 完善一下 Jetbrain 各编辑器快捷键设置
- [ ] 今晚记得拿快递
- [ ] 搭建centos 7 mysql数据库
---
[[python 数据分析 入门]]
[[curl]]
[[centos 7 额外软件库]]
[[centos 7服务器压力测试]]
[[日志分析系统 临时记录]]
# Journal

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 290 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 139 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 294 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB