一个队列类的实现(比delphi自带的速度快70倍) 测试结果 实现的代码 unit sfContnrs; interface {$DEFINE MULTI_THREAD_QUEUE} //线程安全版本,如果不需要线程安全,请注释掉此行代码 {$IFDEF MULTI_THREAD_QUEUE}us ...
分类:
其他好文 时间:
2020-01-18 10:32:02
阅读次数:
79
在性能测试过程中,验证HTTP code和响应业务code码是比较基础的,但是在一些业务中,这些参数并不能保证接口正常响应了,很可能返回了错误信息,所以这个时候对接口进行业务验证就尤其重要。下面分享一个对某个资源进行业务验证的Demo。 改接口请求资源详情,其中有一个字段是表示该用户对于该资源的操作 ...
分类:
其他好文 时间:
2020-01-18 10:22:02
阅读次数:
65
While a thread is writing log continuously, the log file name can‘t change as pattern:XXXX.%d{yyyy-MM-dd}.log.
分类:
其他好文 时间:
2020-01-17 21:27:57
阅读次数:
78
环境信息 role ip port hostname master 192.168.188.101 4306 mysqlvm1 slave 192.168.188.201 4306 mysqlvm1-1 5306 6306 7306 MySQL版本 5.7.26 前置条件 已配置好主从复制。 配置增 ...
分类:
数据库 时间:
2020-01-17 11:51:49
阅读次数:
108
同样是拿别人的,整体没报错,不过还未经具体测试配置类: package com.tansuo365.test1.config; import org.springframework.context.annotation.Bean; import org.springframework.context ...
分类:
编程语言 时间:
2020-01-17 09:24:12
阅读次数:
265
参考blog: https://www.iyunv.com/thread-9683-1-1.html zabbix节点node架构搭建 1、如何修改每页显示字段 每页 10条数据 实质 修改的是数据库,所有的操作都会在数据库中生效 MariaDB [zabbix]> select * from us ...
分类:
移动开发 时间:
2020-01-16 19:23:09
阅读次数:
127
前言 Talk is cheap, Show you the code first! private void button1_Click(object sender, EventArgs e) { Console.WriteLine("111 balabala. My Thread ID is : ...
1. 背景 线上某集群峰值TPS超过100万/秒左右(主要为写流量,读流量很低),峰值tps几乎已经到达集群上限,同时平均时延也超过100ms,随着读写流量的进一步增加,时延抖动严重影响业务可用性。该集群采用mongodb天然的分片模式架构,数据均衡的分布于各个分片中,添加片键启用分片功能后实现完美 ...
分类:
数据库 时间:
2020-01-16 16:06:23
阅读次数:
108
Write a program that outputs the string representation of numbers from 1 to n, however: If the number is divisible by 3, output "fizz". If the number ... ...
分类:
其他好文 时间:
2020-01-16 14:33:41
阅读次数:
73
正常情况下,每个子线程完成各自的任务就可以结束了。不过有的时候,我们希望多个线程协同工作来完成某个任务,这时就涉及到了线程间通信了。 本文涉及到的知识点: thread.join(), object.wait(), object.notify(), CountdownLatch, CyclicBar ...
分类:
编程语言 时间:
2020-01-16 10:50:47
阅读次数:
78