Advertisement
Guest User

Untitled

a guest
Mar 4th, 2015
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.32 KB | None | 0 0
  1. # Titan configuration sample: Cassandra & Elasticsearch over sockets
  2. #
  3. # This file connects to Cassandra and Elasticsearch services running
  4. # on localhost over the Thrift API and the Elasticsearch native
  5. # "Transport" API on their respective default ports. The Cassandra
  6. # and Elasticsearch services must already be running before starting
  7. # Titan with this file.
  8.  
  9. # The primary persistence provider used by Titan. This is required. It
  10. # should be set one of Titan's built-in shorthand names for its standard
  11. # storage backends (shorthands: berkeleyje, cassandrathrift, cassandra,
  12. # astyanax, embeddedcassandra, hbase, inmemory) or to the full package and
  13. # classname of a custom/third-party StoreManager implementation.
  14. #
  15. # Default: (no default value)
  16. # Data Type: String
  17. # Mutability: LOCAL
  18. storage.backend=cassandrathrift
  19.  
  20. # The hostname or comma-separated list of hostnames of storage backend
  21. # servers. This is only applicable to some storage backends, such as
  22. # cassandra and hbase.
  23. #
  24. # Default: 127.0.0.1
  25. # Data Type: class java.lang.String[]
  26. # Mutability: LOCAL
  27. storage.hostname=127.0.0.1,192.168.33.15,192.168.33.20
  28.  
  29. # Whether to enable Titan's database-level cache, which is shared across
  30. # all transactions. Enabling this option speeds up traversals by holding
  31. # hot graph elements in memory, but also increases the likelihood of
  32. # reading stale data. Disabling it forces each transaction to
  33. # independently fetch graph elements from storage before reading/writing
  34. # them.
  35. #
  36. # Default: false
  37. # Data Type: Boolean
  38. # Mutability: MASKABLE
  39. cache.db-cache = true
  40.  
  41. # How long, in milliseconds, database-level cache will keep entries after
  42. # flushing them. This option is only useful on distributed storage
  43. # backends that are capable of acknowledging writes without necessarily
  44. # making them immediately visible.
  45. #
  46. # Default: 50
  47. # Data Type: Integer
  48. # Mutability: GLOBAL_OFFLINE
  49. #
  50. # Settings with mutability GLOBAL_OFFLINE are centrally managed in Titan's
  51. # storage backend. After starting the database for the first time, this
  52. # file's copy of this setting is ignored. Use Titan's Management System
  53. # to read or modify this value after bootstrapping.
  54. cache.db-cache-clean-wait = 20
  55.  
  56. # Default expiration time, in milliseconds, for entries in the
  57. # database-level cache. Entries are evicted when they reach this age even
  58. # if the cache has room to spare. Set to 0 to disable expiration (cache
  59. # entries live forever or until memory pressure triggers eviction when set
  60. # to 0).
  61. #
  62. # Default: 10000
  63. # Data Type: Long
  64. # Mutability: GLOBAL_OFFLINE
  65. #
  66. # Settings with mutability GLOBAL_OFFLINE are centrally managed in Titan's
  67. # storage backend. After starting the database for the first time, this
  68. # file's copy of this setting is ignored. Use Titan's Management System
  69. # to read or modify this value after bootstrapping.
  70. cache.db-cache-time = 180000
  71.  
  72. # Size of Titan's database level cache. Values between 0 and 1 are
  73. # interpreted as a percentage of VM heap, while larger values are
  74. # interpreted as an absolute size in bytes.
  75. #
  76. # Default: 0.3
  77. # Data Type: Double
  78. # Mutability: MASKABLE
  79. cache.db-cache-size = 0.7
  80.  
  81. # Connect to an already-running ES instance on localhost
  82.  
  83. # The indexing backend used to extend and optimize Titan's query
  84. # functionality. This setting is optional. Titan can use multiple
  85. # heterogeneous index backends. Hence, this option can appear more than
  86. # once, so long as the user-defined name between "index" and "backend" is
  87. # unique among appearances.Similar to the storage backend, this should be
  88. # set to one of Titan's built-in shorthand names for its standard index
  89. # backends (shorthands: lucene, elasticsearch, es, solr) or to the full
  90. # package and classname of a custom/third-party IndexProvider
  91. # implementation.
  92. #
  93. # Default: elasticsearch
  94. # Data Type: String
  95. # Mutability: GLOBAL_OFFLINE
  96. #
  97. # Settings with mutability GLOBAL_OFFLINE are centrally managed in Titan's
  98. # storage backend. After starting the database for the first time, this
  99. # file's copy of this setting is ignored. Use Titan's Management System
  100. # to read or modify this value after bootstrapping.
  101. index.search.backend=elasticsearch
  102.  
  103. # The hostname or comma-separated list of hostnames of index backend
  104. # servers. This is only applicable to some index backends, such as
  105. # elasticsearch and solr.
  106. #
  107. # Default: 127.0.0.1
  108. # Data Type: class java.lang.String[]
  109. # Mutability: MASKABLE
  110. index.search.hostname=127.0.0.1
  111.  
  112. # The Elasticsearch node.client option is set to this boolean value, and
  113. # the Elasticsearch node.data option is set to the negation of this value.
  114. # True creates a thin client which holds no data. False creates a regular
  115. # Elasticsearch cluster node that may store data.
  116. #
  117. # Default: true
  118. # Data Type: Boolean
  119. # Mutability: GLOBAL_OFFLINE
  120. #
  121. # Settings with mutability GLOBAL_OFFLINE are centrally managed in Titan's
  122. # storage backend. After starting the database for the first time, this
  123. # file's copy of this setting is ignored. Use Titan's Management System
  124. # to read or modify this value after bootstrapping.
  125. index.search.elasticsearch.client-only=true
  126.  
  127. # Or start ES inside the Titan JVM
  128. #index.search.backend=elasticsearch
  129. #index.search.directory=../db/es
  130. #index.search.elasticsearch.client-only=false
  131. #index.search.elasticsearch.local-mode=true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement