incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Lohfink <clohf...@blackbirdit.com>
Subject Re: Cassandra slow on PasswordAuthenticator
Date Fri, 02 May 2014 17:29:22 GMT
My very unscientific benchmark against 2.0.6 didnt show anything significantly different between
AllowAll and Password authenticators:

INSERTS:

AllowAllAuthenticator:
interval_op_rate          : 14972
interval_key_rate         : 14972
latency median            : 1.4
latency 95th percentile   : 6.4
latency 99.9th percentile : 1410.7
Total operation time      : 00:01:08

PasswordAuthenticator:
interval_op_rate          : 15588
interval_key_rate         : 15588
latency median            : 1.2
latency 95th percentile   : 5.6
latency 99.9th percentile : 414.9
Total operation time      : 00:01:06

READS

AllowAllAuthenticator:
interval_op_rate          : 18927
interval_key_rate         : 18927
latency median            : 1.9
latency 95th percentile   : 10.4
latency 99.9th percentile : 81.1
Total operation time      : 00:01:02

PasswordAuthenticator
interval_op_rate          : 17283
interval_key_rate         : 17283
latency median            : 2.1
latency 95th percentile   : 11.0
latency 99.9th percentile : 55.8
Total operation time      : 00:01:07


So I would guess something funny is going on with your client.  Although I am running a newer
version.

---
Chris Lohfink

On May 2, 2014, at 9:00 AM, PARASHAR, BHASKARJYA JAY <bp134r@att.com> wrote:

> We are using the <property name="kundera.client.lookup.class" value="com.impetus.client.cassandra.thrift.ThriftClientFactory"
/>
>  
> From: PARASHAR, BHASKARJYA JAY 
> Sent: Friday, May 02, 2014 8:58 AM
> To: 'user@cassandra.apache.org'
> Subject: Cassandra slow on PasswordAuthenticator
>  
> We are using PasswordAuthenticator for security and it seems reads are much slower than
with the AllowAllAuthenticator. Is there anything we are missing?
> The “get” is called several times in the same running jvm.
> We have the permissions_validity_in_ms: 2000 (default)
> Cassandra version: 1.2.5. Client: Kundera 2.9.x
>  
> A sample of calling it 100 times shows about 2 secs slower with auth than w’out.
> No of Attempts(Same JVM)
> Environment
> No Authentication(Secs)
> With Authentication(Secs)
> 1
> local
> 1.943
> 19.398
> 2
> local
> 0.085
> 2.959
> 3
> local
> 0.085
> 2.862
> 4
> local
> 0.147
> 2.405
> 5
> local
> 0.076
> 3.047
> 6
> local
> 0.095
> 3.036
> 7
> local
> 0.070
> 2.586
> 8
> local
> 0.070
> 2.368
> 9
> local
> 0.063
> 2.166
> 10
> local
> 0.069
> 2.695
> 11
> local
> 0.063
> 3.008
> 12
> local
> 0.068
> 2.938
> 13
> local
> 0.057
> 3.024
> 14
> local
> 0.054
> 2.981
> 15
> local
> 0.054
> 2.999
> 16
> local
> 0.069
> 2.987
> 17
> local
> 0.059
> 2.843
> 18
> local
> 0.053
> 2.896
> 19
> local
> 0.055
> 2.794
> 20
> local
> 0.054
> 2.948
> 21
> local
> 0.048
> 2.819
> 22
> local
> 0.054
> 2.872
> 23
> local
> 0.046
> 2.979
> 24
> local
> 0.051
> 3.015
> 25
> local
> 0.044
> 2.339
> 26
> local
> 0.063
> 1.84
> 27
> local
> 0.048
> 2.407
> 28
> local
> 0.046
> 1.973
> 29
> local
> 0.046
> 1.476
> 30
> local
> 0.049
> 1.082
> 31
> local
> 0.044
> 1.031
> 32
> local
> 0.049
> 1.028
> 33
> local
> 0.056
> 2.044
> 34
> local
> 0.047
> 3.016
> 35
> local
> 0.049
> 2.706
> 36
> local
> 0.044
> 3.104
> 37
> local
> 0.036
> 3.014
> 38
> local
> 0.041
> 3.017
> 39
> local
> 0.042
> 2.868
> 40
> local
> 0.045
> 2.936
> 41
> local
> 0.041
> 2.861
> 42
> local
> 0.04
> 2.616
> 43
> local
> 0.037
> 2.769
> 44
> local
> 0.047
> 2.82
> 45
> local
> 0.043
> 2.897
> 46
> local
> 0.041
> 3.012
> 47
> local
> 0.039
> 3.011
> 48
> local
> 0.037
> 2.599
> 49
> local
> 0.047
> 2.679
> 50
> local
> 0.036
> 2.458
> 51
> local
> 0.038
> 1.927
> 52
> local
> 0.04
> 2.613
> 53
> local
> 0.042
> 2.648
> 54
> local
> 0.039
> 3.02
> 55
> local
> 0.038
> 2.769
> 56
> local
> 0.043
> 2.998
> 57
> local
> 0.033
> 2.964
> 58
> local
> 0.029
> 2.969
> 59
> local
> 0.028
> 2.972
> 60
> local
> 0.033
> 2.977
> 61
> local
> 0.03
> 2.798
> 62
> local
> 0.03
> 2.966
> 63
> local
> 0.032
> 2.965
> 64
> local
> 0.033
> 2.869
> 65
> local
> 0.03
> 2.731
> 66
> local
> 0.03
> 2.998
> 67
> local
> 0.03
> 2.714
> 68
> local
> 0.032
> 2.551
> 69
> local
> 0.03
> 3.008
> 70
> local
> 0.046
> 2.75
> 71
> local
> 0.032
> 3.037
> 72
> local
> 0.031
> 2.575
> 73
> local
> 0.033
> 2.61
> 74
> local
> 0.033
> 2.994
> 75
> local
> 0.035
> 2.943
> 76
> local
> 0.032
> 2.793
> 77
> local
> 0.028
> 2.848
> 78
> local
> 0.035
> 2.363
> 79
> local
> 0.032
> 2.983
> 80
> local
> 0.037
> 2.844
> 81
> local
> 0.027
> 2.834
> 82
> local
> 0.032
> 2.976
> 83
> local
> 0.027
> 2.608
> 84
> local
> 0.032
> 2.981
> 85
> local
> 0.029
> 2.887
> 86
> local
> 0.03
> 2.595
> 87
> local
> 0.03
> 2.526
> 88
> local
> 0.038
> 2.855
> 89
> local
> 0.03
> 2.894
> 90
> local
> 0.027
> 2.789
> 91
> local
> 0.026
> 2.903
> 92
> local
> 0.027
> 3.036
> 93
> local
> 0.028
> 3.023
> 94
> local
> 0.026
> 2.815
> 95
> local
> 0.027
> 2.99
> 96
> local
> 0.028
> 2.787
> 97
> local
> 0.079
> 2.791
> 98
> local
> 0.026
> 2.613
> 99
> local
> 0.026
> 2.431
> 100
> local
> 0.054
> 2.815


Mime
View raw message