|
| 1 | +# Licensed to the Apache Software Foundation (ASF) under one |
| 2 | +# or more contributor license agreements. See the NOTICE file |
| 3 | +# distributed with this work for additional information |
| 4 | +# regarding copyright ownership. The ASF licenses this file |
| 5 | +# to you under the Apache License, Version 2.0 (the |
| 6 | +# "License"); you may not use this file except in compliance |
| 7 | +# with the License. You may obtain a copy of the License at |
| 8 | +# |
| 9 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# Unless required by applicable law or agreed to in writing, |
| 12 | +# software distributed under the License is distributed on an |
| 13 | +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 14 | +# KIND, either express or implied. See the License for the |
| 15 | +# specific language governing permissions and limitations |
| 16 | +# under the License. |
| 17 | + |
| 18 | +host: 0.0.0.0 |
| 19 | +port: 8182 |
| 20 | +evaluationTimeout: 30000 |
| 21 | +channelizer: org.apache.tinkerpop.gremlin.server.channel.WebSocketChannelizer |
| 22 | +graphManager : com.orientechnologies.tinkerpop.server.OrientGremlinGraphManager |
| 23 | +graphs: { |
| 24 | + graph : ../config/demodb.properties |
| 25 | +} |
| 26 | +scriptEngines: { |
| 27 | + gremlin-groovy: { |
| 28 | + plugins: { org.apache.tinkerpop.gremlin.server.jsr223.GremlinServerGremlinPlugin: {}, |
| 29 | + org.apache.tinkerpop.gremlin.orientdb.jsr223.OrientDBGremlinPlugin: {}, |
| 30 | + org.apache.tinkerpop.gremlin.jsr223.ImportGremlinPlugin: {classImports: [java.lang.Math], methodImports: [java.lang.Math#*]}, |
| 31 | + org.apache.tinkerpop.gremlin.jsr223.ScriptFileGremlinPlugin: {files: [../config/demodb.groovy]}, |
| 32 | + org.apache.tinkerpop.gremlin.groovy.jsr223.GroovyCompilerGremlinPlugin: {compilerConfigurationOptions: { OptimizationOptions: { asmResolving: false}}} |
| 33 | + } |
| 34 | + } |
| 35 | +} |
| 36 | + |
| 37 | +serializers: |
| 38 | + - { className: org.apache.tinkerpop.gremlin.util.ser.GraphSONMessageSerializerV3, config: { ioRegistries: [org.apache.tinkerpop.gremlin.orientdb.io.OrientIoRegistry] }} # application/json |
| 39 | +processors: |
| 40 | + - { className: org.apache.tinkerpop.gremlin.server.op.session.SessionOpProcessor, config: { sessionTimeout: 28800000 }} |
| 41 | + - { className: org.apache.tinkerpop.gremlin.server.op.traversal.TraversalOpProcessor, config: { cacheExpirationTime: 600000, cacheMaxSize: 1000 }} |
| 42 | +metrics: { |
| 43 | + consoleReporter: {enabled: true, interval: 180000}, |
| 44 | + csvReporter: {enabled: true, interval: 180000, fileName: /tmp/gremlin-server-metrics.csv}, |
| 45 | + jmxReporter: {enabled: true}, |
| 46 | + slf4jReporter: {enabled: true, interval: 180000}} |
| 47 | +strictTransactionManagement: false |
| 48 | +maxInitialLineLength: 4096 |
| 49 | +maxHeaderSize: 8192 |
| 50 | +maxChunkSize: 8192 |
| 51 | +maxContentLength: 65536 |
| 52 | +maxAccumulationBufferComponents: 1024 |
| 53 | +resultIterationBatchSize: 64 |
| 54 | +writeBufferLowWaterMark: 32768 |
| 55 | +writeBufferHighWaterMark: 65536 |
| 56 | +authentication: { |
| 57 | + authenticator: com.orientechnologies.tinkerpop.server.auth.OGremlinServerAuthenticator |
| 58 | + } |
| 59 | +ssl: { |
| 60 | + enabled: false} |
0 commit comments