janusgraph-cassandra-es.properties 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. # Copyright 2019 JanusGraph Authors
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. # JanusGraph configuration sample: Cassandra & Elasticsearch over sockets
  15. #
  16. # This file connects to Cassandra and Elasticsearch services running
  17. # on localhost over the Thrift API and the Elasticsearch native
  18. # "Transport" API on their respective default ports. The Cassandra
  19. # and Elasticsearch services must already be running before starting
  20. # JanusGraph with this file.
  21. # The implementation of graph factory that will be used by gremlin server
  22. #
  23. # Default: org.janusgraph.core.JanusGraphFactory
  24. # Data Type: String
  25. # Mutability: LOCAL
  26. gremlin.graph=org.janusgraph.core.JanusGraphFactory
  27. # The primary persistence provider used by JanusGraph. This is required.
  28. # It should be set one of JanusGraph's built-in shorthand names for its
  29. # standard storage backends (shorthands: berkeleyje, cassandrathrift,
  30. # cassandra, astyanax, embeddedcassandra, cql, hbase, inmemory) or to the
  31. # full package and classname of a custom/third-party StoreManager
  32. # implementation.
  33. #
  34. # Default: (no default value)
  35. # Data Type: String
  36. # Mutability: LOCAL
  37. storage.backend=cassandrathrift
  38. # The hostname or comma-separated list of hostnames of storage backend
  39. # servers. This is only applicable to some storage backends, such as
  40. # cassandra and hbase.
  41. #
  42. # Default: 127.0.0.1
  43. # Data Type: class java.lang.String[]
  44. # Mutability: LOCAL
  45. storage.hostname=127.0.0.1
  46. # Whether to enable JanusGraph's database-level cache, which is shared
  47. # across all transactions. Enabling this option speeds up traversals by
  48. # holding hot graph elements in memory, but also increases the likelihood
  49. # of reading stale data. Disabling it forces each transaction to
  50. # independently fetch graph elements from storage before reading/writing
  51. # them.
  52. #
  53. # Default: false
  54. # Data Type: Boolean
  55. # Mutability: MASKABLE
  56. cache.db-cache = true
  57. # How long, in milliseconds, database-level cache will keep entries after
  58. # flushing them. This option is only useful on distributed storage
  59. # backends that are capable of acknowledging writes without necessarily
  60. # making them immediately visible.
  61. #
  62. # Default: 50
  63. # Data Type: Integer
  64. # Mutability: GLOBAL_OFFLINE
  65. #
  66. # Settings with mutability GLOBAL_OFFLINE are centrally managed in
  67. # JanusGraph's storage backend. After starting the database for the first
  68. # time, this file's copy of this setting is ignored. Use JanusGraph's
  69. # Management System to read or modify this value after bootstrapping.
  70. cache.db-cache-clean-wait = 20
  71. # Default expiration time, in milliseconds, for entries in the
  72. # database-level cache. Entries are evicted when they reach this age even
  73. # if the cache has room to spare. Set to 0 to disable expiration (cache
  74. # entries live forever or until memory pressure triggers eviction when set
  75. # to 0).
  76. #
  77. # Default: 10000
  78. # Data Type: Long
  79. # Mutability: GLOBAL_OFFLINE
  80. #
  81. # Settings with mutability GLOBAL_OFFLINE are centrally managed in
  82. # JanusGraph's storage backend. After starting the database for the first
  83. # time, this file's copy of this setting is ignored. Use JanusGraph's
  84. # Management System to read or modify this value after bootstrapping.
  85. cache.db-cache-time = 180000
  86. # Size of JanusGraph's database level cache. Values between 0 and 1 are
  87. # interpreted as a percentage of VM heap, while larger values are
  88. # interpreted as an absolute size in bytes.
  89. #
  90. # Default: 0.3
  91. # Data Type: Double
  92. # Mutability: MASKABLE
  93. cache.db-cache-size = 0.25
  94. # Connect to an already-running ES instance on localhost
  95. # The indexing backend used to extend and optimize JanusGraph's query
  96. # functionality. This setting is optional. JanusGraph can use multiple
  97. # heterogeneous index backends. Hence, this option can appear more than
  98. # once, so long as the user-defined name between "index" and "backend" is
  99. # unique among appearances.Similar to the storage backend, this should be
  100. # set to one of JanusGraph's built-in shorthand names for its standard
  101. # index backends (shorthands: lucene, elasticsearch, es, solr) or to the
  102. # full package and classname of a custom/third-party IndexProvider
  103. # implementation.
  104. #
  105. # Default: elasticsearch
  106. # Data Type: String
  107. # Mutability: GLOBAL_OFFLINE
  108. #
  109. # Settings with mutability GLOBAL_OFFLINE are centrally managed in
  110. # JanusGraph's storage backend. After starting the database for the first
  111. # time, this file's copy of this setting is ignored. Use JanusGraph's
  112. # Management System to read or modify this value after bootstrapping.
  113. index.search.backend=elasticsearch
  114. # The hostname or comma-separated list of hostnames of index backend
  115. # servers. This is only applicable to some index backends, such as
  116. # elasticsearch and solr.
  117. #
  118. # Default: 127.0.0.1
  119. # Data Type: class java.lang.String[]
  120. # Mutability: MASKABLE
  121. index.search.hostname=127.0.0.1