[
https://issues.apache.org/jira/browse/TINKERPOP-1189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15562205#comment-15562205
]
ASF GitHub Bot commented on TINKERPOP-1189:
-------------------------------------------
GitHub user robertdale opened a pull request:
https://github.com/apache/tinkerpop/pull/452
TINKERPOP-1189 Increased performance of CredentialGraph authentication
Using lowest complexity 4 (was 10).
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/robertdale/tinkerpop TINKERPOP-1189
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/tinkerpop/pull/452.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #452
----
commit 636fbc0d3718ff96d6d02e51cdcba0c1b4f11356
Author: Robert Dale <[email protected]>
Date: 2016-10-10T12:40:40Z
bcrypt: use lowest complexity for performance
----
> SimpleAuthenticator over HttpChannelizer makes Gremlin Server pretty slow and
> consumes more CPU
> -----------------------------------------------------------------------------------------------
>
> Key: TINKERPOP-1189
> URL: https://issues.apache.org/jira/browse/TINKERPOP-1189
> Project: TinkerPop
> Issue Type: Improvement
> Components: server
> Affects Versions: 3.0.2-incubating
> Environment: Gremlin Server 3.0.2 backended by Titan 1.0.0 and
> Cassandra (separate instance), running in a server with 2 CPUs / 7.5 GB RAM
> (Linux Debian 3.16.7)
> Reporter: Gabriel Moreira
> Assignee: stephen mallette
> Priority: Minor
>
> I have setup Authorization in my Gremlin Server instances (v3.0.2), backended
> by Titan v1.0.0 and Cassandra.
> I am testing SimpleAuthenticator, with the following snippet from my
> gremlin-server.yaml:
> authentication: {
> className: org.apache.tinkerpop.gremlin.server.auth.SimpleAuthenticator,
> config: {
> credentialsDb: conf/tinkergraph-empty.properties,
> credentialsDbLocation: data/credentials.kryo}}
> ssl: {
> enabled: false}
> I am using the default serialization file of TinkerGraph credentials.kryo,
> with only the default user stephen/password.
> I am using Basic Auth in my requests to Gremlin Server, by passing the
> header "Authorization" with the value "Basic c3RlcGhlbjpwYXNzd29yZA==".
> Authorization works as expected. Therefore, the Gremlin Server becomes pretty
> slow! It takes 10x more time and consumes 5x more CPU (from 10% to 50%) to
> handle the same simple traversal Http POST request (below) in batch, compared
> to Gremlin Server with NO authorization!
> {
> "gremlin": "g.V().has('CONTENT','id', 'LinkPost:7330001').count()"
> }
> Is there a workaround to this?
> Ps. If there is a fix, could it be patched for version 3.0.2? I am limited to
> this version because I use Titan 1.0.0.
> Thanks.
> Gabriel Moreira
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)