06 2021 档案
摘要:压测准备: 工具:Jmeter 5.4.1 下载地址https://jmeter.apache.org/download_jmeter.cgi 环境: window 10 压测步骤: 1.bin 目录下启动windows启动文件 jmter.bat 2.新建压测任务 文件-新建,新增压测任务 3.
阅读全文
摘要:项目背景: 1.由于项目中存在旧索引设置不合理情况,需要进行索引重建 2.线上的ElasticSearch由1台扩容到3台,原有的索引需要分片 例如: 旧索引 index_user 设置主分片为1,副分片为0,数据没有高可用 GET index_user/_search { "took" : 121
阅读全文
摘要:方式一: -Dspring.profiles.active=test 方式二: --spring.profiles.active=test 方式三: Active Profiles
阅读全文
摘要:1.查看所有库的大小 select concat(round(sum(DATA_LENGTH/1024/1024),2),'MB') as ALL_DB_DATA_SIZE, concat(round(sum(INDEX_LENGTH/1024/1024),2),'MB') as ALL_DB_IN
阅读全文