Skip to content

Instantly share code, notes, and snippets.

@scano12
Created January 22, 2020 09:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scano12/457e5cf6d7e1cbf180e4dbee4f8a1278 to your computer and use it in GitHub Desktop.
Save scano12/457e5cf6d7e1cbf180e4dbee4f8a1278 to your computer and use it in GitHub Desktop.
REMOTE.YAML
# username/password can be set in this file as per TinkerPop documentation, however it will be stored in plain text.
# prefer passing those arguments from the command line via -u and -p or by specifying them in
# .cassandra/gremlinshrc as shown below and then setting file permissions to prevent unauthorized access:
# -----------------------------
# [authentication]
username: cblah
password: blah
# -----------------------------
hosts: [192.168.21.6]
port: 8182
serializer: { className: org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV3d0,
config: { serializeResultToString: true, ioRegistries: [org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerIoRegistryV3d0] }}
connectionPool: {
enableSsl: false,
# JSSE keystore file path. Similar to setting JSSE property javax.net.ssl.keyStore.
# keyStore:,
# JSSE keystore password. Similar to setting JSSE property javax.net.ssl.keyStorePassword.
# keyStorePassword:,
# JSSE truststore file path. Similar to setting JSSE property javax.net.ssl.trustStore.
# trustStore:,
# JSSE truststore password. Similar to setting JSSE property javax.net.ssl.trustStorePassword.
# trustStorePassword:,
# JSSE keystore format. 'jks' or 'pkcs12'. Similar to setting JSSE property javax.net.ssl.keyStoreType.
# keyStoreType:,
# https://docs.oracle.com/javase/8/docs/technotes/guides/security/SunProviders.html#SunJSSE_Protocols
# sslEnabledProtocols:,
# https://docs.oracle.com/javase/8/docs/technotes/guides/security/SunProviders.html#SupportedCipherSuites
# sslCipherSuites:,
# If true, trust all certificates and do not perform any validation.
# sslSkipCertValidation:,
# The maximum length in bytes that a message can be sent to the server. This number can be no greater than the
# setting of the same name in the server configuration.
maxContentLength: 65536000,
# The maximum number of in-flight requests that can occur on a connection.
maxInProcessPerConnection: 4,
# The maximum number of times that a connection can be borrowed from the pool simultaneously.
maxSimultaneousUsagePerConnection: 16,
# The maximum size of a connection pool for a host.
maxSize: 8,
# The amount of time in milliseconds to wait for a new connection before timing out.
maxWaitForConnection: 3000,
# The amount of time in milliseconds to wait for a session to close before timing out (does not apply to
# sessionless connections).
maxWaitForSessionClose: 3000,
# The minimum number of in-flight requests that can occur on a connection.
minInProcessPerConnection: 1,
# The maximum number of times that a connection can be borrowed from the pool simultaneously.
minSimultaneousUsagePerConnection: 8,
# The minimum size of a connection pool for a host.
minSize: 2,
# The amount of time in milliseconds to wait before trying to reconnect to a dead host.
reconnectInterval: 1000,
# The override value for the size of the result batches to be returned from the server.
resultIterationBatchSize: 64
# Sets the AuthProperties.Property.JAAS_ENTRY properties for authentication to Gremlin Server.
# jaasEntry:
# Sets the AuthProperties.Property.PROTOCOL properties for authentication to Gremlin Server.
# protocol:
# username: xxx
# password: xxx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment