提交
9
.idea/workspace.xml
generated
@ -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" />
|
||||
|
@ -32,7 +32,7 @@ telnet 192.168.3.8 82
|
||||
![[Pasted image 20250124144555.png]]
|
||||
|
||||
在对应端口,开启服务后,才可以正常,连上该端口;
|
||||
开启服务相关,参考[[日志系统 临时记录]]即可;
|
||||
开启服务相关,参考[[日志采集系统 临时记录]]即可;
|
||||
如果端口权限有问题,参考[[局域网外部访问Jenkins 修改防火墙入站规则]]修改一下规则即可;
|
||||
|
||||
开启服务后,是可以正常链接
|
||||
|
7
笔记文件/2.笔记/centos 7 额外软件库.md
Normal file
@ -0,0 +1,7 @@
|
||||
#杂七杂八常识
|
||||
|
||||
有很多软件,例如高级的linux性能监控工具`htop`,是没有集成到,基础软件库的,所以需要安装EPEL (Extra Packages for Enterprise Linux) 仓库,会包含了许多额外的软件包;
|
||||
|
||||
``` shell
|
||||
yum install epel-release -y
|
||||
```
|
93
笔记文件/2.笔记/centos 7服务器压力测试.md
Normal 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]]
|
5
笔记文件/2.笔记/curl.md
Normal file
@ -0,0 +1,5 @@
|
||||
#杂七杂八常识
|
||||
|
||||
![[Pasted image 20250523160653.png]]
|
||||
|
||||
![[Pasted image 20250523160720.png]]
|
@ -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;
|
||||
@ -208,6 +208,16 @@ http {
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
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 / {
|
||||
|
4
笔记文件/2.笔记/python 数据分析 入门.md
Normal file
@ -0,0 +1,4 @@
|
||||
#python
|
||||
#数据分析
|
||||
|
||||
书籍推荐参考:https://www.zhihu.com/question/13385506858
|
@ -1,3 +1,117 @@
|
||||
#杂七杂八常识
|
||||
|
||||
参考链接:https://blog.csdn.net/weixin_40547993/article/details/129736212
|
||||
参考链接: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
|
||||
```
|
@ -20,6 +20,8 @@ ip没有采集
|
||||
|
||||
![[Pasted image 20250423161736.png]]
|
||||
|
||||
三消玩家登录
|
||||
|
||||
![[Pasted image 20250423162317.png]]
|
||||
|
||||
添加编辑器标识:
|
||||
|
9
笔记文件/2.笔记/日志分析系统 临时记录.md
Normal file
@ -0,0 +1,9 @@
|
||||
#灵感
|
||||
|
||||
解构一下逻辑,需要完成,这俩需求的新增
|
||||
|
||||
![[Pasted image 20250523165636.png]]
|
||||
|
||||
逻辑的文件夹位置:
|
||||
|
||||
![[Pasted image 20250523170336.png]]
|
@ -23,7 +23,7 @@
|
||||
|
||||
- [ ] 做一下 下川岛攻略
|
||||
- [ ] 思考一下 系统分析法的开展
|
||||
- [ ] 确定一下 当前服务器 并发性能指标
|
||||
- [x] 确定一下 当前服务器 并发性能指标
|
||||
- [ ] 搭建一下 中台 埋点上报服务器
|
||||
- [ ] 了解一下 airtest自动化测试流程
|
||||
- [x] 买3条内备用
|
||||
|
38
笔记文件/日记/2025_05_23_星期五.md
Normal file
@ -0,0 +1,38 @@
|
||||
|
||||
09:25
|
||||
|
||||
###### [[unity日常积累]]
|
||||
|
||||
###### [[节奏天国]]
|
||||
|
||||
###### [[帧同步王者荣耀]]
|
||||
|
||||
###### [[从零开发跨平台通用日志插件]]
|
||||
|
||||
###### [[通用异步网络通信库]]
|
||||
|
||||
###### [[高性能定时系统实现]]
|
||||
|
||||
###### [[学习资料]]
|
||||
|
||||
###### [[其他]]
|
||||
|
||||
#### [[看板]]
|
||||
|
||||
# 今日任务
|
||||
|
||||
- [ ] 今晚或者明天 记得去加满油
|
||||
- [ ] 今晚记得给各电子设备充电
|
||||
- [x] 完成 性能监控系统 QPS指标压力测试
|
||||
- [ ] 继续完善一下 设备分级和性能监控文档
|
||||
- [ ] 完善一下 系统分析法文档
|
||||
- [ ] 完善一下 Jetbrain 各编辑器快捷键设置
|
||||
- [ ] 今晚记得拿快递
|
||||
- [ ] 搭建centos 7 mysql数据库
|
||||
---
|
||||
[[python 数据分析 入门]]
|
||||
[[curl]]
|
||||
[[centos 7 额外软件库]]
|
||||
[[centos 7服务器压力测试]]
|
||||
[[日志分析系统 临时记录]]
|
||||
# Journal
|
BIN
笔记文件/附件/Pasted image 20250523153609.png
Normal file
After Width: | Height: | Size: 4.3 KiB |
BIN
笔记文件/附件/Pasted image 20250523153831.png
Normal file
After Width: | Height: | Size: 290 KiB |
BIN
笔记文件/附件/Pasted image 20250523154123.png
Normal file
After Width: | Height: | Size: 80 KiB |
BIN
笔记文件/附件/Pasted image 20250523154143.png
Normal file
After Width: | Height: | Size: 86 KiB |
BIN
笔记文件/附件/Pasted image 20250523154257.png
Normal file
After Width: | Height: | Size: 68 KiB |
BIN
笔记文件/附件/Pasted image 20250523154401.png
Normal file
After Width: | Height: | Size: 73 KiB |
BIN
笔记文件/附件/Pasted image 20250523154444.png
Normal file
After Width: | Height: | Size: 7.8 KiB |
BIN
笔记文件/附件/Pasted image 20250523154553.png
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
笔记文件/附件/Pasted image 20250523154655.png
Normal file
After Width: | Height: | Size: 32 KiB |
BIN
笔记文件/附件/Pasted image 20250523154741.png
Normal file
After Width: | Height: | Size: 76 KiB |
BIN
笔记文件/附件/Pasted image 20250523154843.png
Normal file
After Width: | Height: | Size: 38 KiB |
BIN
笔记文件/附件/Pasted image 20250523154907.png
Normal file
After Width: | Height: | Size: 31 KiB |
BIN
笔记文件/附件/Pasted image 20250523154941.png
Normal file
After Width: | Height: | Size: 119 KiB |
BIN
笔记文件/附件/Pasted image 20250523154959.png
Normal file
After Width: | Height: | Size: 60 KiB |
BIN
笔记文件/附件/Pasted image 20250523155035.png
Normal file
After Width: | Height: | Size: 5.4 KiB |
BIN
笔记文件/附件/Pasted image 20250523155313.png
Normal file
After Width: | Height: | Size: 49 KiB |
BIN
笔记文件/附件/Pasted image 20250523155409.png
Normal file
After Width: | Height: | Size: 58 KiB |
BIN
笔记文件/附件/Pasted image 20250523155752.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
笔记文件/附件/Pasted image 20250523160056.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
笔记文件/附件/Pasted image 20250523160653.png
Normal file
After Width: | Height: | Size: 40 KiB |
BIN
笔记文件/附件/Pasted image 20250523160720.png
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
笔记文件/附件/Pasted image 20250523161626.png
Normal file
After Width: | Height: | Size: 139 KiB |
BIN
笔记文件/附件/Pasted image 20250523161715.png
Normal file
After Width: | Height: | Size: 31 KiB |
BIN
笔记文件/附件/Pasted image 20250523162047.png
Normal file
After Width: | Height: | Size: 98 KiB |
BIN
笔记文件/附件/Pasted image 20250523162219.png
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
笔记文件/附件/Pasted image 20250523162237.png
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
笔记文件/附件/Pasted image 20250523162324.png
Normal file
After Width: | Height: | Size: 22 KiB |
BIN
笔记文件/附件/Pasted image 20250523162426.png
Normal file
After Width: | Height: | Size: 24 KiB |
BIN
笔记文件/附件/Pasted image 20250523162434.png
Normal file
After Width: | Height: | Size: 28 KiB |
BIN
笔记文件/附件/Pasted image 20250523162542.png
Normal file
After Width: | Height: | Size: 38 KiB |
BIN
笔记文件/附件/Pasted image 20250523162718.png
Normal file
After Width: | Height: | Size: 48 KiB |
BIN
笔记文件/附件/Pasted image 20250523163435.png
Normal file
After Width: | Height: | Size: 294 KiB |
BIN
笔记文件/附件/Pasted image 20250523163557.png
Normal file
After Width: | Height: | Size: 67 KiB |
BIN
笔记文件/附件/Pasted image 20250523163631.png
Normal file
After Width: | Height: | Size: 8.2 KiB |
BIN
笔记文件/附件/Pasted image 20250523165636.png
Normal file
After Width: | Height: | Size: 9.3 KiB |
BIN
笔记文件/附件/Pasted image 20250523170336.png
Normal file
After Width: | Height: | Size: 13 KiB |