You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. ab -c1000 -n50000 http://ip:port/?name=x&data=somedata&opt=put
2. 看status发现数据条目数往往不对。
3. 同样,可以做下get的测试,往往也是不对的。
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
—— 1并发的测试 ———–
队列初始信息:
HTTP Simple Queue Service v1.3.1
——————————
Queue Name: x
Maximum number of queues: 1000000
Put position of queue (1st lap): 0
Get position of queue (1st lap): 0
Number of unread queue: 0
尝试1并发的50000次添加:
~/laoyc/soft/bin/ab -c1 -n50000
“http://192.168.22.31:1218/?name=x&data=1000000000&opt=put”
全部成功,查看队列状态:
HTTP Simple Queue Service v1.3.1
——————————
Queue Name: x
Maximum number of queues: 1000000
Put position of queue (1st lap): 50000
Get position of queue (1st lap): 0
Number of unread queue: 50000
尝试49999次get:
~/laoyc/soft/bin/ab -c1 -n49999
“http://192.168.22.31:1218/?name=x&data=1000000000&opt=get”
全部成功,再次查看队列状态:
HTTP Simple Queue Service v1.3.1
——————————
Queue Name: x
Maximum number of queues: 1000000
Put position of queue (1st lap): 50000
Get position of queue (1st lap): 49999
Number of unread queue: 1
正确。
在测试一次:发现正确。
————– 1000 并发的测试 ————-
HTTP Simple Queue Service v1.3.1
——————————
Queue Name: x
Maximum number of queues: 1000000
Put position of queue (1st lap): 0
Get position of queue (1st lap): 0
Number of unread queue: 0
开始测试并发1000放50000次:
~/laoyc/soft/bin/ab -c1000 -n50000
“http://192.168.22.31:1218/?name=x&data=1000000000&opt=put”
发现结果是:
HTTP Simple Queue Service v1.3.1
——————————
Queue Name: x
Maximum number of queues: 1000000
Put position of queue (1st lap): 50020
Get position of queue (1st lap): 0
Number of unread queue: 50020
看起来并发是有问题,现在不确定是ab还是httpsqs的并发处理��
�还是tc的问题。
所以这个队列目前只能应用在缓存和不重要的任务的情景。
1000并行get49999次:
~/laoyc/soft/bin/ab -c1000 -n49999
“http://192.168.22.31:1218/?name=x&data=1000000000&opt=get”
HTTP Simple Queue Service v1.3.1
——————————
Queue Name: x
Maximum number of queues: 1000000
Put position of queue (1st lap): 50020
Get position of queue (1st lap): 50020
Number of unread queue: 0
可见,get也是不准确的。
Original issue reported on code.google.com by [email protected] on 16 Nov 2010 at 2:07
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 16 Nov 2010 at 2:07The text was updated successfully, but these errors were encountered: