Conan流量回放

/ 测试开发shell / 0 条评论 / 314浏览
npm install yarn -g
yarn add @vue/cli global
yarn add @vue/compiler-sfc
@vue/[email protected]
@vue/[email protected]


conan
github: https://github.com/tal-tech/conan
wiki: https://dengkunnanmayun.gitee.io/conan-docs/#/use/README?id=%e5%bf%ab%e9%80%9f%e4%ba%86%e8%a7%a3

搭建地址:
http://192.168.5.96:8090/conanConfig/apiRule admin/admin123

目前解决的问题:
docker image编辑 - https://jingyan.baidu.com/article/148a192111d61a4d71c3b112.html
docker 数据文件迁移 - https://blog.csdn.net/Chat_FJ/article/details/117111378
docker 启动内存限制 https://blog.csdn.net/XHW___001/article/details/122741906
mysql数据持久化 -  https://zhuanlan.zhihu.com/p/468642439

已知存在的问题(待解决 - 需要开发和运维配合):
1. 录制-测试es接入
2. 回放-鉴权兼容开发

前期留下的资料都是jvm-sandbox-repeater-master不建议使用了
1. 都是半自动的 需要到环境中开启jar来监听录制

2. 没有平台化 很多中间串联的工作需要去开发 工作量较大


diffy

mvn install:install-file -Dfile=jspy-spring-boot-starter.jar -DgroupId=org.chobit.jspy -DartifactId=jspy-spring-boot-starter -Dversion=0.1-SNAPSHOT -Dpackaging=jar
<dependency>
    <groupId>org.chobit.jspy</groupId>
    <artifactId>jspy-spring-boot-starter</artifactId>
    <version>0.1-SNAPSHOT</version>
</dependency>


-m 6g --memory-swap -1
--volume /wyyt/app/conan/docker/conan-data:/imageWorkspace/packages
docker volume create /wyyt/app/conan/docker/conan-data

docker:
/var/lib/docker/volumes/conan-data
/var/lib/mysql

docker run -itd -m 6g --memory-swap -1 -v conan-data:/var/lib/mysql  --name conan-${randomStr} -p5601:5601 -p 6379:6379 -p 3306:3306 -p 2181:2181 -p 9092:9092 -p 9200:9200 -p 8080:8080 -p 8081:8081 -p 8082:8082 -p 8090:8090 eptal/conan
 -v conan-pakcage:/imageWorkspace/packages
docker run -itd -m 6g --memory-swap -1 -v conan-data:/var/lib/mysql --name conan-${randomStr} -p5601:5601 -p 6379:6379 -p 3306:3306 -p 2181:2181 -p 9092:9092 -p 9200:9200 -p 8080:8080 -p 8081:8081 -p 8082:8082 -p 8090:8090 conan:v1.0

docker ps -a        #查看所有容器
docker rm $(docker ps -a -q) #删除所有关闭的容器

docker logs --since 10m 75ba187e20a2
docker exec -it 8a5fb1497694 /bin/bash
docker stop 84626e76ea5d
docker volume inspect conan-package  - 存储位置/wyyt/dockerData/docker/volumes/conan-package/_data
/wyyt/app/conan/docker  -- 项目位置

netstat -ano | find "9000"


{
  "useTtl": true,
  "degrade": false,
  "exceptionThreshold": 1000,
  "sampleRate": 10000,
  "pluginsPath": null,
  "httpEntrancePatterns": [
    "^/sjb/.*$"
  ],
  "javaEntranceBehaviors": [
    {
      "classPattern": "com.ruoyi.project.sjbapi.*",
      "methodPatterns": [
        "*"
      ],
      "includeSubClasses": false
    }
  ],
  "javaSubInvokeBehaviors": [
    {
      "classPattern": "com.ruoyi.project.sjbapi.service.*",
      "methodPatterns": [
        "*"
      ],
      "includeSubClasses": false
    }
  ],
  "pluginIdentities": [
    "http",
    "java-entrance",
    "java-subInvoke",
    "dubbo-consumer",
    "dubbo-provider"
  ],
  "repeatIdentities": [
    "java",
    "http",
    "dubbo"
  ]
}