正式环境排查记录

上周查出的生产环境安全环保请求慢的问题你看怎么配合技术组处理一下吧,
上周是与管云中老师沟通的。他说是可以直接调用内网地址。


嗯嗯,我在生产环境用curl返回是超时



这两个接口有什么区别吗?
http://aqsc.hntzjt.com/prod-api/system/user/getInfo

http://aqsc.t.hnic.com.cn/prod-api/system/user/getInfo


测试系统返回
http://aqsc.t.hnic.com.cn/prod-api/system/config/configKey/sys.index.name

http://aqsc.t.hnic.com.cn/prod-api/auth/loginByOauthCode

http://aqsc.t.hnic.com.cn/prod-api/system/user/getInfo

http://aqsc.t.hnic.com.cn/prod-api/system/user/getInfo

http://aqsc.t.hnic.com.cn/prod-api/system/menu/getRouters




1、测试内网node ip 访问
1、node ip
2、postman白名单测试
ping aqsc.hntzjt.com
3、远程调试
https://www.jianshu.com/p/302dc10217c0
===========================================================
java  -Xdebug -Xrunjdwp:transport=dt_socket,suspend=n,server=y,address=127.0.0.1:5555 -jar huajun-modules-system.jar
==============================================================
# spring配置
spring: 
  redis:
    database: 6
    host: 192.168.8.248
    port: 6379
    password: 
  datasource:
    druid:
      stat-view-servlet:
        enabled: true
        loginUsername: admin
        loginPassword: 123456
    dynamic:
      druid:
        initial-size: 5
        min-idle: 5
        maxActive: 20
        maxWait: 60000
        timeBetweenEvictionRunsMillis: 60000
        minEvictableIdleTimeMillis: 300000
        validationQuery: SELECT 1 FROM DUAL
        testWhileIdle: true
        testOnBorrow: false
        testOnReturn: false
        poolPreparedStatements: true
        maxPoolPreparedStatementPerConnectionSize: 20
        filters: stat,wall,slf4j
        connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
      datasource:
          # 主库数据源
          master:
            driver-class-name: com.mysql.cj.jdbc.Driver
            url: jdbc:mysql://192.168.8.248:3306/huajun-cloud-event?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
            username: root
            password: root
          # 从库数据源
          # slave:
            # username: 
            # password: 
            # url: 
            # driver-class-name: 
      # seata: true    # 开启seata代理,开启后默认每个数据源都代理,如果某个不需要代理可单独关闭

  # rabbitmq配置
  rabbitmq:
    host: 192.168.8.201
    username: admin
    password: admin
    port: 5672
    publisher-confirms: true
    publisher-returns: true
    virtual-host: /
    listener:
      simple:
        acknowledge-mode: manual
        #消费者的最小数量
        concurrency: 1
        #消费者的最大数量
        max-concurrency: 1
        #是否支持重试
        retry:
          enabled: true

# seata配置
seata:
  # 默认关闭,如需启用spring.datasource.dynami.seata需要同时开启
  enabled: false
  # Seata 应用编号,默认为 ${spring.application.name}
  application-id: ${spring.application.name}
  # Seata 事务组编号,用于 TC 集群名
  tx-service-group: ${spring.application.name}-group
  # 关闭自动代理
  enable-auto-data-source-proxy: false
  config:
    type: nacos
    nacos:
      serverAddr: 192.168.8.201:8848
      group: SEATA_GROUP
      namespace: ffbdf183-c35e-41ea-8166-e807b6968b93
  registry:
    type: nacos
    nacos:
      application: seata-server
      server-addr: 192.168.8.201:8848
      group: SEATA_GROUP
      namespace: ffbdf183-c35e-41ea-8166-e807b6968b93

# mybatis配置
mybatis-plus:
    # 搜索指定包别名
    typeAliasesPackage: com.huajun.event
    # 配置mapper的扫描,找到所有的mapper.xml映射文件
    mapperLocations: classpath:mapper/**/*.xml
    configuration:
      log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
    global-config:
      db-config:
        id-type: assign_uuid
        capital-mode: false

        logic-delete-field: delFlag  # 全局逻辑删除的实体字段名(since 3.3.0,配置后可以忽略不配置步骤2)
        logic-delete-value: 2 # 逻辑已删除值(默认为 1)
        logic-not-delete-value: 0 # 逻辑未删除值(默认为 0)

# swagger配置
swagger:
  title: 指挥救援系统接口文档
  license: Powered By huajun
  licenseUrl: http://www.huajuntec.com.cn

# xxl-job分布式任务配置
xxljob:
  adminAddresses: http://192.168.8.201:9080/xxl-job-admin
  accessToken: ''
  appname: ${spring.application.name}
  address: 
  ip: 
  port: 0
  logPath: 
  logRetentionDays: 30
======================================================================================



数据库
172.21.1.142
hnicsafety
3306

172.21.1.20
31861

127.0.0.1
6379


获取用户失败:Read timed out executing GET http://huajun-system/user/info/cs007



select distinct r.role_id, r.role_name, r.role_key, r.role_sort, r.data_scope, 
r.menu_check_strictly, r.dept_check_strictly, r.status, r.del_flag, r.create_time, 
r.remark,r.path,r.component from sys_role r left join sys_user_role 
ur on ur.role_id = r.role_id left join sys_user u on u.user_id = ur.user_id 
left join sys_dept d on u.dept_id = d.dept_id where r.del_flag = '0' order by r.role_sort


        select distinct r.role_id, r.role_name, r.role_key, r.role_sort, r.data_scope, r.menu_check_strictly, r.dept_check_strictly,
            r.status, r.del_flag, r.create_time, r.remark,r.path,r.component
        from sys_role r
            left join sys_user_role ur on ur.role_id = r.role_id
            left join sys_user u on u.user_id = ur.user_id
            left join sys_dept d on u.dept_id = d.dept_id




        select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m.query, m.visible, m.status, ifnull(m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time
        from sys_menu m
        left join sys_role_menu rm on m.menu_id = rm.menu_id
        left join sys_user_role ur on rm.role_id = ur.role_id
        left join sys_role ro on ur.role_id = ro.role_id
        
        
        
            select distinct m.perms
        from sys_menu m
             left join sys_role_menu rm on m.menu_id = rm.menu_id
             left join sys_user_role ur on rm.role_id = ur.role_id
             left join sys_role r on r.role_id = ur.role_id
        where m.status = '0' and r.status = '0' 



        select distinct m.perms
        from sys_menu m
             left join sys_role_menu rm on m.menu_id = rm.menu_id
             left join sys_user_role ur on rm.role_id = ur.role_id
             left join sys_role r on r.role_id = ur.role_id
        where m.status = '0' and r.status = '0' 

        




select distinct u.user_id, u.dept_id, u.user_name, u.nick_name, u.email, u.phonenumber, u.status, u.create_time
        from sys_user u
        left join sys_dept d on u.dept_id = d.dept_id
        left join sys_user_role ur on u.user_id = ur.user_id
        left join sys_role r on r.role_id = ur.role_id
        where u.del_flag = '0'



        
            

        select distinct u.user_id, u.dept_id, u.user_name, u.nick_name, u.email, u.phonenumber, u.status, u.create_time
        from sys_user u
        left join sys_dept d on u.dept_id = d.dept_id
        left join sys_user_role ur on u.user_id = ur.user_id
        left join sys_role r on r.role_id = ur.role_id
        where u.del_flag = '0' and (r.role_id != '1' or r.role_id IS NULL)
        and u.user_id not in (select u.user_id from sys_user u inner join sys_user_role ur on u.user_id = ur.user_id and
        ur.role_id = '1'







哨兵模式的

redis-cluster-redis-ha.redis

6379

redis密码:F2gsdssvs352

 

posted @ 2022-03-22 16:54  DarJeely  阅读(103)  评论(0编辑  收藏  举报