janusgraph-cql-es.properties 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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 CQL 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=cql
  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=jce-cassandra
  46. # The name of JanusGraph's keyspace. It will be created if it does not
  47. # exist.
  48. #
  49. # Default: janusgraph
  50. # Data Type: String
  51. # Mutability: LOCAL
  52. storage.cql.keyspace=janusgraph
  53. # Whether to enable JanusGraph's database-level cache, which is shared
  54. # across all transactions. Enabling this option speeds up traversals by
  55. # holding hot graph elements in memory, but also increases the likelihood
  56. # of reading stale data. Disabling it forces each transaction to
  57. # independently fetch graph elements from storage before reading/writing
  58. # them.
  59. #
  60. # Default: false
  61. # Data Type: Boolean
  62. # Mutability: MASKABLE
  63. cache.db-cache = true
  64. # How long, in milliseconds, database-level cache will keep entries after
  65. # flushing them. This option is only useful on distributed storage
  66. # backends that are capable of acknowledging writes without necessarily
  67. # making them immediately visible.
  68. #
  69. # Default: 50
  70. # Data Type: Integer
  71. # Mutability: GLOBAL_OFFLINE
  72. #
  73. # Settings with mutability GLOBAL_OFFLINE are centrally managed in
  74. # JanusGraph's storage backend. After starting the database for the first
  75. # time, this file's copy of this setting is ignored. Use JanusGraph's
  76. # Management System to read or modify this value after bootstrapping.
  77. cache.db-cache-clean-wait = 20
  78. # Default expiration time, in milliseconds, for entries in the
  79. # database-level cache. Entries are evicted when they reach this age even
  80. # if the cache has room to spare. Set to 0 to disable expiration (cache
  81. # entries live forever or until memory pressure triggers eviction when set
  82. # to 0).
  83. #
  84. # Default: 10000
  85. # Data Type: Long
  86. # Mutability: GLOBAL_OFFLINE
  87. #
  88. # Settings with mutability GLOBAL_OFFLINE are centrally managed in
  89. # JanusGraph's storage backend. After starting the database for the first
  90. # time, this file's copy of this setting is ignored. Use JanusGraph's
  91. # Management System to read or modify this value after bootstrapping.
  92. cache.db-cache-time = 180000
  93. # Size of JanusGraph's database level cache. Values between 0 and 1 are
  94. # interpreted as a percentage of VM heap, while larger values are
  95. # interpreted as an absolute size in bytes.
  96. #
  97. # Default: 0.3
  98. # Data Type: Double
  99. # Mutability: MASKABLE
  100. cache.db-cache-size = 0.25
  101. # Connect to an already-running ES instance on localhost
  102. # The indexing backend used to extend and optimize JanusGraph's query
  103. # functionality. This setting is optional. JanusGraph can use multiple
  104. # heterogeneous index backends. Hence, this option can appear more than
  105. # once, so long as the user-defined name between "index" and "backend" is
  106. # unique among appearances.Similar to the storage backend, this should be
  107. # set to one of JanusGraph's built-in shorthand names for its standard
  108. # index backends (shorthands: lucene, elasticsearch, es, solr) or to the
  109. # full package and classname of a custom/third-party IndexProvider
  110. # implementation.
  111. #
  112. # Default: elasticsearch
  113. # Data Type: String
  114. # Mutability: GLOBAL_OFFLINE
  115. #
  116. # Settings with mutability GLOBAL_OFFLINE are centrally managed in
  117. # JanusGraph's storage backend. After starting the database for the first
  118. # time, this file's copy of this setting is ignored. Use JanusGraph's
  119. # Management System to read or modify this value after bootstrapping.
  120. index.search.backend=elasticsearch
  121. # The hostname or comma-separated list of hostnames of index backend
  122. # servers. This is only applicable to some index backends, such as
  123. # elasticsearch and solr.
  124. #
  125. # Default: 127.0.0.1
  126. # Data Type: class java.lang.String[]
  127. # Mutability: MASKABLE
  128. index.search.hostname=jce-elastic