Created
September 7, 2017 19:26
-
-
Save gschmutz/bc5e70a1a04ce5d63bbeccf8a86152aa to your computer and use it in GitHub Desktop.
JanusGraph-docker-compose
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
cassandra: | |
image: cassandra:2.1 | |
ports: | |
- "9160:9160" | |
- "9042:9042" | |
elasticsearch: | |
image: elasticsearch:1.5 | |
ports: | |
- "9300:9300" | |
janusgraph: | |
image: trivadisbds/janusgraph-gremlin-server:0.1.1 | |
depends_on: | |
- cassandra | |
- elasticsearch | |
volumes: | |
- ./conf/janusgraph-cassandra-es.properties:/janusgraph-0.1.1-hadoop2/conf/janusgraph-cassandra-es.properties |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# JanusGraph configuration sample: Cassandra & Elasticsearch over sockets | |
# | |
# This file connects to Cassandra and Elasticsearch services running | |
# on localhost over the Thrift API and the Elasticsearch native | |
# "Transport" API on their respective default ports. The Cassandra | |
# and Elasticsearch services must already be running before starting | |
# JanusGraph with this file. | |
# The primary persistence provider used by JanusGraph. This is required. | |
# It should be set one of JanusGraph's built-in shorthand names for its | |
# standard storage backends (shorthands: berkeleyje, cassandrathrift, | |
# cassandra, astyanax, embeddedcassandra, hbase, inmemory) or to the full | |
# package and classname of a custom/third-party StoreManager | |
# implementation. | |
# | |
# Default: (no default value) | |
# Data Type: String | |
# Mutability: LOCAL | |
storage.backend=cassandrathrift | |
# The hostname or comma-separated list of hostnames of storage backend | |
# servers. This is only applicable to some storage backends, such as | |
# cassandra and hbase. | |
# | |
# Default: 127.0.0.1 | |
# Data Type: class java.lang.String[] | |
# Mutability: LOCAL | |
storage.hostname=cassandra | |
# Whether to enable JanusGraph's database-level cache, which is shared | |
# across all transactions. Enabling this option speeds up traversals by | |
# holding hot graph elements in memory, but also increases the likelihood | |
# of reading stale data. Disabling it forces each transaction to | |
# independently fetch graph elements from storage before reading/writing | |
# them. | |
# | |
# Default: false | |
# Data Type: Boolean | |
# Mutability: MASKABLE | |
cache.db-cache = true | |
# How long, in milliseconds, database-level cache will keep entries after | |
# flushing them. This option is only useful on distributed storage | |
# backends that are capable of acknowledging writes without necessarily | |
# making them immediately visible. | |
# | |
# Default: 50 | |
# Data Type: Integer | |
# Mutability: GLOBAL_OFFLINE | |
# | |
# Settings with mutability GLOBAL_OFFLINE are centrally managed in | |
# JanusGraph's storage backend. After starting the database for the first | |
# time, this file's copy of this setting is ignored. Use JanusGraph's | |
# Management System to read or modify this value after bootstrapping. | |
cache.db-cache-clean-wait = 20 | |
# Default expiration time, in milliseconds, for entries in the | |
# database-level cache. Entries are evicted when they reach this age even | |
# if the cache has room to spare. Set to 0 to disable expiration (cache | |
# entries live forever or until memory pressure triggers eviction when set | |
# to 0). | |
# | |
# Default: 10000 | |
# Data Type: Long | |
# Mutability: GLOBAL_OFFLINE | |
# | |
# Settings with mutability GLOBAL_OFFLINE are centrally managed in | |
# JanusGraph's storage backend. After starting the database for the first | |
# time, this file's copy of this setting is ignored. Use JanusGraph's | |
# Management System to read or modify this value after bootstrapping. | |
cache.db-cache-time = 180000 | |
# Size of JanusGraph's database level cache. Values between 0 and 1 are | |
# interpreted as a percentage of VM heap, while larger values are | |
# interpreted as an absolute size in bytes. | |
# | |
# Default: 0.3 | |
# Data Type: Double | |
# Mutability: MASKABLE | |
cache.db-cache-size = 0.25 | |
# Connect to an already-running ES instance on localhost | |
# The indexing backend used to extend and optimize JanusGraph's query | |
# functionality. This setting is optional. JanusGraph can use multiple | |
# heterogeneous index backends. Hence, this option can appear more than | |
# once, so long as the user-defined name between "index" and "backend" is | |
# unique among appearances.Similar to the storage backend, this should be | |
# set to one of JanusGraph's built-in shorthand names for its standard | |
# index backends (shorthands: lucene, elasticsearch, es, solr) or to the | |
# full package and classname of a custom/third-party IndexProvider | |
# implementation. | |
# | |
# Default: elasticsearch | |
# Data Type: String | |
# Mutability: GLOBAL_OFFLINE | |
# | |
# Settings with mutability GLOBAL_OFFLINE are centrally managed in | |
# JanusGraph's storage backend. After starting the database for the first | |
# time, this file's copy of this setting is ignored. Use JanusGraph's | |
# Management System to read or modify this value after bootstrapping. | |
index.search.backend=elasticsearch | |
# The hostname or comma-separated list of hostnames of index backend | |
# servers. This is only applicable to some index backends, such as | |
# elasticsearch and solr. | |
# | |
# Default: 127.0.0.1 | |
# Data Type: class java.lang.String[] | |
# Mutability: MASKABLE | |
index.search.hostname=elasticsearch | |
# The Elasticsearch node.client option is set to this boolean value, and | |
# the Elasticsearch node.data option is set to the negation of this value. | |
# True creates a thin client which holds no data. False creates a regular | |
# Elasticsearch cluster node that may store data. | |
# | |
# Default: true | |
# Data Type: Boolean | |
# Mutability: GLOBAL_OFFLINE | |
# | |
# Settings with mutability GLOBAL_OFFLINE are centrally managed in | |
# JanusGraph's storage backend. After starting the database for the first | |
# time, this file's copy of this setting is ignored. Use JanusGraph's | |
# Management System to read or modify this value after bootstrapping. | |
index.search.elasticsearch.client-only=true | |
# Or start ES inside the JanusGraph JVM | |
#index.search.backend=elasticsearch | |
#index.search.directory=../db/es | |
#index.search.elasticsearch.client-only=false | |
#index.search.elasticsearch.local-mode=true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment