目前线上的 redis内存容量急剧增加,已经达到98%了.解决方案除了 扩容 redis内存,还需要分析下线上的数据增加是否符合预期. 所以需要下载线上的 rdb 文件来分析 数据使用情况. 目前使用的工具有两个一个 python 的 redis_rdb_tools,另外一个是 golang的rdr ...
分类:
数据库 时间:
2021-04-21 12:11:32
阅读次数:
0
环境:主机A(db01):172.16.5.57主机B(db02):172.16.5.58说明:配置双向主从,互为主从;两台服务器均可给用户访问(具备冗余功能),任务对半分。 一. 两台主机上都安装MySQL[root@db01 ~]# yum -y install mysql mysql-serv ...
分类:
数据库 时间:
2021-04-21 12:06:56
阅读次数:
0
ls = [[] for i in range(7)] print('ls==', ls) for k in range(1, 7): # 1-9 test = [i for i in range(k)] ls[k] = test print('ls==', ls) 运行结果: ...
分类:
编程语言 时间:
2021-04-21 11:59:58
阅读次数:
0
1:使用 插件 geolocator ,官网 https://pub.dev/packages/geolocator 2:按照官网配置,代码照抄 static Future<FlutterLocation> determinePosition() async { bool serviceEnable ...
分类:
移动开发 时间:
2021-04-21 11:46:27
阅读次数:
0
CountDownLatch 每次当线程调用countDownLatch.countDown()方法时,会对计数器减1,减到0,countDownLatch.await()放行 public class CountDownLatchTest { public static void main(Str ...
分类:
其他好文 时间:
2021-04-20 15:06:35
阅读次数:
0
unittest框架测试集合 1、将相关测试用例组合在一起,称之为测试用例集合,unittest框架中,通过TestSuite类来组装所有的测试用例 集。使用测试集合可以同时执行一个py文件中的多个测试用例类。 2、加载测试集合步骤如下: (1)TestLoader(用例加载器)根据传入的参数获取相 ...
分类:
其他好文 时间:
2021-04-20 14:40:11
阅读次数:
0
unittest框架测试执行方式 1、默认执行方式:各测试方法的执行顺序是按照方法名的ASCII码排序的 2、忽略某个测试方法; 3、如何让测试用例或测试方法按照自己期望的顺序执行呢? 通过修改测试方法或用例名实现,e.g. 将test_dear和test_abc变为test_001_dear、te ...
分类:
其他好文 时间:
2021-04-20 14:39:00
阅读次数:
0
public class Main { public static void main(String[] args) { test test = new test(); test.xxx(new zi()); } } class fu{ public void x(){ System.out.pri ...
分类:
其他好文 时间:
2021-04-20 14:06:09
阅读次数:
0
1 1.MSSQLSERVER 2 3 "ConnectionStrings": { 4 5 "DefaultConnection": "Server=127.0.0.1;Database=HXCDataPermission_test;user id=sa;password=sasa;Multipl ...
分类:
数据库 时间:
2021-04-19 15:53:01
阅读次数:
0
1 // 变长参数传递与两个函数之间 2 template <class... Args> 3 void myTest(Args... args) { 4 printf("%d,%d,%d,%d", args...); 5 } 6 int main() { 7 myTest(1, 2, 3, 4); ...
分类:
其他好文 时间:
2021-04-19 15:50:56
阅读次数:
0