Advertisement
Guest User

Node 1 - cassandra

a guest
Mar 4th, 2015
460
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 32.09 KB | None | 0 0
  1. # Cassandra storage config YAML
  2.  
  3. # NOTE:
  4. # See http://wiki.apache.org/cassandra/StorageConfiguration for
  5. # full explanations of configuration directives
  6. # /NOTE
  7.  
  8. # The name of the cluster. This is mainly used to prevent machines in
  9. # one logical cluster from joining another.
  10. cluster_name: 'Titan Cassandra Cluster'
  11.  
  12. # This defines the number of tokens randomly assigned to this node on the ring
  13. # The more tokens, relative to other nodes, the larger the proportion of data
  14. # that this node will store. You probably want all nodes to have the same number
  15. # of tokens assuming they have equal hardware capability.
  16. #
  17. # If you leave this unspecified, Cassandra will use the default of 1 token for legacy compatibility,
  18. # and will use the initial_token as described below.
  19. #
  20. # Specifying initial_token will override this setting.
  21. #
  22. # If you already have a cluster with 1 token per node, and wish to migrate to
  23. # multiple tokens per node, see http://wiki.apache.org/cassandra/Operations
  24. #
  25. # The default value that ships with Titan is smaller than the default value
  26. # that ships with Apache Cassandra. Fewer tokens means faster Faunus run
  27. # times on small datasets. That's convenient when testing Titan(-Hadoop) on
  28. # toy data. However, increasing num_tokens is strongly recommended for
  29. # production Titan instances backed by Cassandra. This low value is just
  30. # for development and testing.
  31. # num_tokens: 256
  32. num_tokens: 4
  33.  
  34. # initial_token allows you to specify tokens manually. While you can use # it with
  35. # vnodes (num_tokens > 1, above) -- in which case you should provide a
  36. # comma-separated list -- it's primarily used when adding nodes # to legacy clusters
  37. # that do not have vnodes enabled.
  38. # initial_token:
  39.  
  40. # May either be "true" or "false" to enable globally, or contain a list
  41. # of data centers to enable per-datacenter.
  42. # hinted_handoff_enabled: DC1,DC2
  43. # See http://wiki.apache.org/cassandra/HintedHandoff
  44. hinted_handoff_enabled: true
  45. # this defines the maximum amount of time a dead host will have hints
  46. # generated. After it has been dead this long, new hints for it will not be
  47. # created until it has been seen alive and gone down again.
  48. max_hint_window_in_ms: 10800000 # 3 hours
  49. # Maximum throttle in KBs per second, per delivery thread. This will be
  50. # reduced proportionally to the number of nodes in the cluster. (If there
  51. # are two nodes in the cluster, each delivery thread will use the maximum
  52. # rate; if there are three, each will throttle to half of the maximum,
  53. # since we expect two nodes to be delivering hints simultaneously.)
  54. hinted_handoff_throttle_in_kb: 1024
  55. # Number of threads with which to deliver hints;
  56. # Consider increasing this number when you have multi-dc deployments, since
  57. # cross-dc handoff tends to be slower
  58. max_hints_delivery_threads: 2
  59.  
  60. # Maximum throttle in KBs per second, total. This will be
  61. # reduced proportionally to the number of nodes in the cluster.
  62. batchlog_replay_throttle_in_kb: 1024
  63.  
  64. # Authentication backend, implementing IAuthenticator; used to identify users
  65. # Out of the box, Cassandra provides org.apache.cassandra.auth.{AllowAllAuthenticator,
  66. # PasswordAuthenticator}.
  67. #
  68. # - AllowAllAuthenticator performs no checks - set it to disable authentication.
  69. # - PasswordAuthenticator relies on username/password pairs to authenticate
  70. # users. It keeps usernames and hashed passwords in system_auth.credentials table.
  71. # Please increase system_auth keyspace replication factor if you use this authenticator.
  72. authenticator: AllowAllAuthenticator
  73.  
  74. # Authorization backend, implementing IAuthorizer; used to limit access/provide permissions
  75. # Out of the box, Cassandra provides org.apache.cassandra.auth.{AllowAllAuthorizer,
  76. # CassandraAuthorizer}.
  77. #
  78. # - AllowAllAuthorizer allows any action to any user - set it to disable authorization.
  79. # - CassandraAuthorizer stores permissions in system_auth.permissions table. Please
  80. # increase system_auth keyspace replication factor if you use this authorizer.
  81. authorizer: AllowAllAuthorizer
  82.  
  83. # Validity period for permissions cache (fetching permissions can be an
  84. # expensive operation depending on the authorizer, CassandraAuthorizer is
  85. # one example). Defaults to 2000, set to 0 to disable.
  86. # Will be disabled automatically for AllowAllAuthorizer.
  87. permissions_validity_in_ms: 2000
  88.  
  89. # The partitioner is responsible for distributing rows (by key) across
  90. # nodes in the cluster. Any IPartitioner may be used, including your
  91. # own as long as it is on the classpath. Out of the box, Cassandra
  92. # provides org.apache.cassandra.dht.{Murmur3Partitioner, RandomPartitioner
  93. # ByteOrderedPartitioner, OrderPreservingPartitioner (deprecated)}.
  94. #
  95. # - RandomPartitioner distributes rows across the cluster evenly by md5.
  96. # This is the default prior to 1.2 and is retained for compatibility.
  97. # - Murmur3Partitioner is similar to RandomPartioner but uses Murmur3_128
  98. # Hash Function instead of md5. When in doubt, this is the best option.
  99. # - ByteOrderedPartitioner orders rows lexically by key bytes. BOP allows
  100. # scanning rows in key order, but the ordering can generate hot spots
  101. # for sequential insertion workloads.
  102. # - OrderPreservingPartitioner is an obsolete form of BOP, that stores
  103. # - keys in a less-efficient format and only works with keys that are
  104. # UTF8-encoded Strings.
  105. # - CollatingOPP collates according to EN,US rules rather than lexical byte
  106. # ordering. Use this as an example if you need custom collation.
  107. #
  108. # See http://wiki.apache.org/cassandra/Operations for more on
  109. # partitioners and token selection.
  110. partitioner: org.apache.cassandra.dht.Murmur3Partitioner
  111.  
  112. # Directories where Cassandra should store data on disk. Cassandra
  113. # will spread data evenly across them, subject to the granularity of
  114. # the configured compaction strategy.
  115. data_file_directories:
  116. - db/cassandra/data
  117.  
  118. # commit log
  119. commitlog_directory: db/cassandra/commitlog
  120.  
  121. # policy for data disk failures:
  122. # stop: shut down gossip and Thrift, leaving the node effectively dead, but
  123. # can still be inspected via JMX.
  124. # best_effort: stop using the failed disk and respond to requests based on
  125. # remaining available sstables. This means you WILL see obsolete
  126. # data at CL.ONE!
  127. # ignore: ignore fatal errors and let requests fail, as in pre-1.2 Cassandra
  128. disk_failure_policy: stop
  129.  
  130. # policy for commit disk failures:
  131. # stop: shut down gossip and Thrift, leaving the node effectively dead, but
  132. # can still be inspected via JMX.
  133. # stop_commit: shutdown the commit log, letting writes collect but
  134. # continuing to service reads, as in pre-2.0.5 Cassandra
  135. # ignore: ignore fatal errors and let the batches fail
  136. commit_failure_policy: stop
  137.  
  138. # Maximum size of the key cache in memory.
  139. #
  140. # Each key cache hit saves 1 seek and each row cache hit saves 2 seeks at the
  141. # minimum, sometimes more. The key cache is fairly tiny for the amount of
  142. # time it saves, so it's worthwhile to use it at large numbers.
  143. # The row cache saves even more time, but must contain the entire row,
  144. # so it is extremely space-intensive. It's best to only use the
  145. # row cache if you have hot rows or static rows.
  146. #
  147. # NOTE: if you reduce the size, you may not get you hottest keys loaded on startup.
  148. #
  149. # Default value is empty to make it "auto" (min(5% of Heap (in MB), 100MB)). Set to 0 to disable key cache.
  150. key_cache_size_in_mb:
  151.  
  152. # Duration in seconds after which Cassandra should
  153. # save the key cache. Caches are saved to saved_caches_directory as
  154. # specified in this configuration file.
  155. #
  156. # Saved caches greatly improve cold-start speeds, and is relatively cheap in
  157. # terms of I/O for the key cache. Row cache saving is much more expensive and
  158. # has limited use.
  159. #
  160. # Default is 14400 or 4 hours.
  161. key_cache_save_period: 14400
  162.  
  163. # Number of keys from the key cache to save
  164. # Disabled by default, meaning all keys are going to be saved
  165. # key_cache_keys_to_save: 100
  166.  
  167. # Maximum size of the row cache in memory.
  168. # NOTE: if you reduce the size, you may not get you hottest keys loaded on startup.
  169. #
  170. # Default value is 0, to disable row caching.
  171. row_cache_size_in_mb: 0
  172.  
  173. # Duration in seconds after which Cassandra should
  174. # safe the row cache. Caches are saved to saved_caches_directory as specified
  175. # in this configuration file.
  176. #
  177. # Saved caches greatly improve cold-start speeds, and is relatively cheap in
  178. # terms of I/O for the key cache. Row cache saving is much more expensive and
  179. # has limited use.
  180. #
  181. # Default is 0 to disable saving the row cache.
  182. row_cache_save_period: 0
  183.  
  184. # Number of keys from the row cache to save
  185. # Disabled by default, meaning all keys are going to be saved
  186. # row_cache_keys_to_save: 100
  187.  
  188. # The off-heap memory allocator. Affects storage engine metadata as
  189. # well as caches. Experiments show that JEMAlloc saves some memory
  190. # than the native GCC allocator (i.e., JEMalloc is more
  191. # fragmentation-resistant).
  192. #
  193. # Supported values are: NativeAllocator, JEMallocAllocator
  194. #
  195. # If you intend to use JEMallocAllocator you have to install JEMalloc as library and
  196. # modify cassandra-env.sh as directed in the file.
  197. #
  198. # Defaults to NativeAllocator
  199. # memory_allocator: NativeAllocator
  200.  
  201. # saved caches
  202. saved_caches_directory: db/cassandra/saved_caches
  203.  
  204. # commitlog_sync may be either "periodic" or "batch."
  205. # When in batch mode, Cassandra won't ack writes until the commit log
  206. # has been fsynced to disk. It will wait up to
  207. # commitlog_sync_batch_window_in_ms milliseconds for other writes, before
  208. # performing the sync.
  209. #
  210. # commitlog_sync: batch
  211. # commitlog_sync_batch_window_in_ms: 50
  212. #
  213. # the other option is "periodic" where writes may be acked immediately
  214. # and the CommitLog is simply synced every commitlog_sync_period_in_ms
  215. # milliseconds. By default this allows 1024*(CPU cores) pending
  216. # entries on the commitlog queue. If you are writing very large blobs,
  217. # you should reduce that; 16*cores works reasonably well for 1MB blobs.
  218. # It should be at least as large as the concurrent_writes setting.
  219. commitlog_sync: periodic
  220. commitlog_sync_period_in_ms: 10000
  221. # commitlog_periodic_queue_size:
  222.  
  223. # The size of the individual commitlog file segments. A commitlog
  224. # segment may be archived, deleted, or recycled once all the data
  225. # in it (potentially from each columnfamily in the system) has been
  226. # flushed to sstables.
  227. #
  228. # The default size is 32, which is almost always fine, but if you are
  229. # archiving commitlog segments (see commitlog_archiving.properties),
  230. # then you probably want a finer granularity of archiving; 8 or 16 MB
  231. # is reasonable.
  232. commitlog_segment_size_in_mb: 32
  233.  
  234. # any class that implements the SeedProvider interface and has a
  235. # constructor that takes a Map<String, String> of parameters will do.
  236. seed_provider:
  237. # Addresses of hosts that are deemed contact points.
  238. # Cassandra nodes use this list of hosts to find each other and learn
  239. # the topology of the ring. You must change this if you are running
  240. # multiple nodes!
  241. - class_name: org.apache.cassandra.locator.SimpleSeedProvider
  242. parameters:
  243. # seeds is actually a comma-delimited list of addresses.
  244. # Ex: "<ip1>,<ip2>,<ip3>"
  245. - seeds: "192.168.33.10"
  246.  
  247. # For workloads with more data than can fit in memory, Cassandra's
  248. # bottleneck will be reads that need to fetch data from
  249. # disk. "concurrent_reads" should be set to (16 * number_of_drives) in
  250. # order to allow the operations to enqueue low enough in the stack
  251. # that the OS and drives can reorder them.
  252. #
  253. # On the other hand, since writes are almost never IO bound, the ideal
  254. # number of "concurrent_writes" is dependent on the number of cores in
  255. # your system; (8 * number_of_cores) is a good rule of thumb.
  256. concurrent_reads: 32
  257. concurrent_writes: 32
  258.  
  259. # Total memory to use for sstable-reading buffers. Defaults to
  260. # the smaller of 1/4 of heap or 512MB.
  261. # file_cache_size_in_mb: 512
  262.  
  263. # Total memory to use for memtables. Cassandra will flush the largest
  264. # memtable when this much memory is used.
  265. # If omitted, Cassandra will set it to 1/4 of the heap.
  266. # memtable_total_space_in_mb: 2048
  267.  
  268. # Total space to use for commitlogs. Since commitlog segments are
  269. # mmapped, and hence use up address space, the default size is 32
  270. # on 32-bit JVMs, and 1024 on 64-bit JVMs.
  271. #
  272. # If space gets above this value (it will round up to the next nearest
  273. # segment multiple), Cassandra will flush every dirty CF in the oldest
  274. # segment and remove it. So a small total commitlog space will tend
  275. # to cause more flush activity on less-active columnfamilies.
  276. # commitlog_total_space_in_mb: 4096
  277.  
  278. # This sets the amount of memtable flush writer threads. These will
  279. # be blocked by disk io, and each one will hold a memtable in memory
  280. # while blocked. If you have a large heap and many data directories,
  281. # you can increase this value for better flush performance.
  282. # By default this will be set to the amount of data directories defined.
  283. #memtable_flush_writers: 1
  284.  
  285. # the number of full memtables to allow pending flush, that is,
  286. # waiting for a writer thread. At a minimum, this should be set to
  287. # the maximum number of secondary indexes created on a single CF.
  288. memtable_flush_queue_size: 4
  289.  
  290. # Whether to, when doing sequential writing, fsync() at intervals in
  291. # order to force the operating system to flush the dirty
  292. # buffers. Enable this to avoid sudden dirty buffer flushing from
  293. # impacting read latencies. Almost always a good idea on SSDs; not
  294. # necessarily on platters.
  295. trickle_fsync: false
  296. trickle_fsync_interval_in_kb: 10240
  297.  
  298. # TCP port, for commands and data
  299. storage_port: 7000
  300.  
  301. # SSL port, for encrypted communication. Unused unless enabled in
  302. # encryption_options
  303. ssl_storage_port: 7001
  304.  
  305. # Address to bind to and tell other Cassandra nodes to connect to. You
  306. # _must_ change this if you want multiple nodes to be able to
  307. # communicate!
  308. #
  309. # Leaving it blank leaves it up to InetAddress.getLocalHost(). This
  310. # will always do the Right Thing _if_ the node is properly configured
  311. # (hostname, name resolution, etc), and the Right Thing is to use the
  312. # address associated with the hostname (it might not be).
  313. #
  314. # Setting this to 0.0.0.0 is always wrong.
  315. listen_address: 192.168.33.10
  316.  
  317. # Address to broadcast to other Cassandra nodes
  318. # Leaving this blank will set it to the same value as listen_address
  319. # broadcast_address: 1.2.3.4
  320.  
  321. # Internode authentication backend, implementing IInternodeAuthenticator;
  322. # used to allow/disallow connections from peer nodes.
  323. # internode_authenticator: org.apache.cassandra.auth.AllowAllInternodeAuthenticator
  324.  
  325. # Whether to start the native transport server.
  326. # Please note that the address on which the native transport is bound is the
  327. # same as the rpc_address. The port however is different and specified below.
  328. start_native_transport: true
  329. # port for the CQL native transport to listen for clients on
  330. native_transport_port: 9042
  331. # The maximum threads for handling requests when the native transport is used.
  332. # This is similar to rpc_max_threads though the default differs slightly (and
  333. # there is no native_transport_min_threads, idle threads will always be stopped
  334. # after 30 seconds).
  335. # native_transport_max_threads: 128
  336. #
  337. # The maximum size of allowed frame. Frame (requests) larger than this will
  338. # be rejected as invalid. The default is 256MB.
  339. # native_transport_max_frame_size_in_mb: 256
  340.  
  341. # Whether to start the thrift rpc server.
  342. start_rpc: true
  343.  
  344. # The address to bind the Thrift RPC service and native transport
  345. # server -- clients connect here.
  346. #
  347. # Leaving this blank has the same effect it does for ListenAddress,
  348. # (i.e. it will be based on the configured hostname of the node).
  349. #
  350. # Note that unlike ListenAddress above, it is allowed to specify 0.0.0.0
  351. # here if you want to listen on all interfaces, but that will break clients
  352. # that rely on node auto-discovery.
  353. rpc_address: 0.0.0.0
  354. # port for Thrift to listen for clients on
  355. rpc_port: 9160
  356.  
  357. # enable or disable keepalive on rpc connections
  358. rpc_keepalive: true
  359.  
  360. # Cassandra provides two out-of-the-box options for the RPC Server:
  361. #
  362. # sync -> One thread per thrift connection. For a very large number of clients, memory
  363. # will be your limiting factor. On a 64 bit JVM, 180KB is the minimum stack size
  364. # per thread, and that will correspond to your use of virtual memory (but physical memory
  365. # may be limited depending on use of stack space).
  366. #
  367. # hsha -> Stands for "half synchronous, half asynchronous." All thrift clients are handled
  368. # asynchronously using a small number of threads that does not vary with the amount
  369. # of thrift clients (and thus scales well to many clients). The rpc requests are still
  370. # synchronous (one thread per active request).
  371. #
  372. # The default is sync because on Windows hsha is about 30% slower. On Linux,
  373. # sync/hsha performance is about the same, with hsha of course using less memory.
  374. #
  375. # Alternatively, can provide your own RPC server by providing the fully-qualified class name
  376. # of an o.a.c.t.TServerFactory that can create an instance of it.
  377. rpc_server_type: sync
  378.  
  379. # Uncomment rpc_min|max_thread to set request pool size limits.
  380. #
  381. # Regardless of your choice of RPC server (see above), the number of maximum requests in the
  382. # RPC thread pool dictates how many concurrent requests are possible (but if you are using the sync
  383. # RPC server, it also dictates the number of clients that can be connected at all).
  384. #
  385. # The default is unlimited and thus provides no protection against clients overwhelming the server. You are
  386. # encouraged to set a maximum that makes sense for you in production, but do keep in mind that
  387. # rpc_max_threads represents the maximum number of client requests this server may execute concurrently.
  388. #
  389. # rpc_min_threads: 16
  390. # rpc_max_threads: 2048
  391.  
  392. # uncomment to set socket buffer sizes on rpc connections
  393. # rpc_send_buff_size_in_bytes:
  394. # rpc_recv_buff_size_in_bytes:
  395.  
  396. # Uncomment to set socket buffer size for internode communication
  397. # Note that when setting this, the buffer size is limited by net.core.wmem_max
  398. # and when not setting it it is defined by net.ipv4.tcp_wmem
  399. # See:
  400. # /proc/sys/net/core/wmem_max
  401. # /proc/sys/net/core/rmem_max
  402. # /proc/sys/net/ipv4/tcp_wmem
  403. # /proc/sys/net/ipv4/tcp_wmem
  404. # and: man tcp
  405. # internode_send_buff_size_in_bytes:
  406. # internode_recv_buff_size_in_bytes:
  407.  
  408. # Frame size for thrift (maximum message length).
  409. thrift_framed_transport_size_in_mb: 15
  410.  
  411. # Set to true to have Cassandra create a hard link to each sstable
  412. # flushed or streamed locally in a backups/ subdirectory of the
  413. # keyspace data. Removing these links is the operator's
  414. # responsibility.
  415. incremental_backups: false
  416.  
  417. # Whether or not to take a snapshot before each compaction. Be
  418. # careful using this option, since Cassandra won't clean up the
  419. # snapshots for you. Mostly useful if you're paranoid when there
  420. # is a data format change.
  421. snapshot_before_compaction: false
  422.  
  423. # Whether or not a snapshot is taken of the data before keyspace truncation
  424. # or dropping of column families. The STRONGLY advised default of true
  425. # should be used to provide data safety. If you set this flag to false, you will
  426. # lose data on truncation or drop.
  427. auto_snapshot: true
  428.  
  429. # When executing a scan, within or across a partition, we need to keep the
  430. # tombstones seen in memory so we can return them to the coordinator, which
  431. # will use them to make sure other replicas also know about the deleted rows.
  432. # With workloads that generate a lot of tombstones, this can cause performance
  433. # problems and even exaust the server heap.
  434. # (http://www.datastax.com/dev/blog/cassandra-anti-patterns-queues-and-queue-like-datasets)
  435. # Adjust the thresholds here if you understand the dangers and want to
  436. # scan more tombstones anyway. These thresholds may also be adjusted at runtime
  437. # using the StorageService mbean.
  438. tombstone_warn_threshold: 1000
  439. tombstone_failure_threshold: 100000
  440.  
  441. # Add column indexes to a row after its contents reach this size.
  442. # Increase if your column values are large, or if you have a very large
  443. # number of columns. The competing causes are, Cassandra has to
  444. # deserialize this much of the row to read a single column, so you want
  445. # it to be small - at least if you do many partial-row reads - but all
  446. # the index data is read for each access, so you don't want to generate
  447. # that wastefully either.
  448. column_index_size_in_kb: 64
  449.  
  450. # Size limit for rows being compacted in memory. Larger rows will spill
  451. # over to disk and use a slower two-pass compaction process. A message
  452. # will be logged specifying the row key.
  453. in_memory_compaction_limit_in_mb: 64
  454.  
  455. # Number of simultaneous compactions to allow, NOT including
  456. # validation "compactions" for anti-entropy repair. Simultaneous
  457. # compactions can help preserve read performance in a mixed read/write
  458. # workload, by mitigating the tendency of small sstables to accumulate
  459. # during a single long running compactions. The default is usually
  460. # fine and if you experience problems with compaction running too
  461. # slowly or too fast, you should look at
  462. # compaction_throughput_mb_per_sec first.
  463. #
  464. # concurrent_compactors defaults to the number of cores.
  465. # Uncomment to make compaction mono-threaded, the pre-0.8 default.
  466. #concurrent_compactors: 1
  467.  
  468. # Multi-threaded compaction. When enabled, each compaction will use
  469. # up to one thread per core, plus one thread per sstable being merged.
  470. # This is usually only useful for SSD-based hardware: otherwise,
  471. # your concern is usually to get compaction to do LESS i/o (see:
  472. # compaction_throughput_mb_per_sec), not more.
  473. multithreaded_compaction: false
  474.  
  475. # Throttles compaction to the given total throughput across the entire
  476. # system. The faster you insert data, the faster you need to compact in
  477. # order to keep the sstable count down, but in general, setting this to
  478. # 16 to 32 times the rate you are inserting data is more than sufficient.
  479. # Setting this to 0 disables throttling. Note that this account for all types
  480. # of compaction, including validation compaction.
  481. compaction_throughput_mb_per_sec: 16
  482.  
  483. # Track cached row keys during compaction, and re-cache their new
  484. # positions in the compacted sstable. Disable if you use really large
  485. # key caches.
  486. compaction_preheat_key_cache: true
  487.  
  488. # Throttles all outbound streaming file transfers on this node to the
  489. # given total throughput in Mbps. This is necessary because Cassandra does
  490. # mostly sequential IO when streaming data during bootstrap or repair, which
  491. # can lead to saturating the network connection and degrading rpc performance.
  492. # When unset, the default is 200 Mbps or 25 MB/s.
  493. # stream_throughput_outbound_megabits_per_sec: 200
  494.  
  495. # How long the coordinator should wait for read operations to complete
  496. read_request_timeout_in_ms: 5000
  497. # How long the coordinator should wait for seq or index scans to complete
  498. range_request_timeout_in_ms: 10000
  499. # How long the coordinator should wait for writes to complete
  500. write_request_timeout_in_ms: 2000
  501. # How long a coordinator should continue to retry a CAS operation
  502. # that contends with other proposals for the same row
  503. cas_contention_timeout_in_ms: 1000
  504. # How long the coordinator should wait for truncates to complete
  505. # (This can be much longer, because unless auto_snapshot is disabled
  506. # we need to flush first so we can snapshot before removing the data.)
  507. truncate_request_timeout_in_ms: 60000
  508. # The default timeout for other, miscellaneous operations
  509. request_timeout_in_ms: 10000
  510.  
  511. # Enable operation timeout information exchange between nodes to accurately
  512. # measure request timeouts. If disabled, replicas will assume that requests
  513. # were forwarded to them instantly by the coordinator, which means that
  514. # under overload conditions we will waste that much extra time processing
  515. # already-timed-out requests.
  516. #
  517. # Warning: before enabling this property make sure to ntp is installed
  518. # and the times are synchronized between the nodes.
  519. cross_node_timeout: false
  520.  
  521. # Enable socket timeout for streaming operation.
  522. # When a timeout occurs during streaming, streaming is retried from the start
  523. # of the current file. This _can_ involve re-streaming an important amount of
  524. # data, so you should avoid setting the value too low.
  525. # Default value is 0, which never timeout streams.
  526. # streaming_socket_timeout_in_ms: 0
  527.  
  528. # phi value that must be reached for a host to be marked down.
  529. # most users should never need to adjust this.
  530. # phi_convict_threshold: 8
  531.  
  532. # endpoint_snitch -- Set this to a class that implements
  533. # IEndpointSnitch. The snitch has two functions:
  534. # - it teaches Cassandra enough about your network topology to route
  535. # requests efficiently
  536. # - it allows Cassandra to spread replicas around your cluster to avoid
  537. # correlated failures. It does this by grouping machines into
  538. # "datacenters" and "racks." Cassandra will do its best not to have
  539. # more than one replica on the same "rack" (which may not actually
  540. # be a physical location)
  541. #
  542. # IF YOU CHANGE THE SNITCH AFTER DATA IS INSERTED INTO THE CLUSTER,
  543. # YOU MUST RUN A FULL REPAIR, SINCE THE SNITCH AFFECTS WHERE REPLICAS
  544. # ARE PLACED.
  545. #
  546. # Out of the box, Cassandra provides
  547. # - SimpleSnitch:
  548. # Treats Strategy order as proximity. This improves cache locality
  549. # when disabling read repair, which can further improve throughput.
  550. # Only appropriate for single-datacenter deployments.
  551. # - PropertyFileSnitch:
  552. # Proximity is determined by rack and data center, which are
  553. # explicitly configured in cassandra-topology.properties.
  554. # - GossipingPropertyFileSnitch
  555. # The rack and datacenter for the local node are defined in
  556. # cassandra-rackdc.properties and propagated to other nodes via gossip. If
  557. # cassandra-topology.properties exists, it is used as a fallback, allowing
  558. # migration from the PropertyFileSnitch.
  559. # - RackInferringSnitch:
  560. # Proximity is determined by rack and data center, which are
  561. # assumed to correspond to the 3rd and 2nd octet of each node's
  562. # IP address, respectively. Unless this happens to match your
  563. # deployment conventions (as it did Facebook's), this is best used
  564. # as an example of writing a custom Snitch class.
  565. # - Ec2Snitch:
  566. # Appropriate for EC2 deployments in a single Region. Loads Region
  567. # and Availability Zone information from the EC2 API. The Region is
  568. # treated as the datacenter, and the Availability Zone as the rack.
  569. # Only private IPs are used, so this will not work across multiple
  570. # Regions.
  571. # - Ec2MultiRegionSnitch:
  572. # Uses public IPs as broadcast_address to allow cross-region
  573. # connectivity. (Thus, you should set seed addresses to the public
  574. # IP as well.) You will need to open the storage_port or
  575. # ssl_storage_port on the public IP firewall. (For intra-Region
  576. # traffic, Cassandra will switch to the private IP after
  577. # establishing a connection.)
  578. #
  579. # You can use a custom Snitch by setting this to the full class name
  580. # of the snitch, which will be assumed to be on your classpath.
  581. endpoint_snitch: RackInferringSnitch
  582.  
  583. # controls how often to perform the more expensive part of host score
  584. # calculation
  585. dynamic_snitch_update_interval_in_ms: 100
  586. # controls how often to reset all host scores, allowing a bad host to
  587. # possibly recover
  588. dynamic_snitch_reset_interval_in_ms: 600000
  589. # if set greater than zero and read_repair_chance is < 1.0, this will allow
  590. # 'pinning' of replicas to hosts in order to increase cache capacity.
  591. # The badness threshold will control how much worse the pinned host has to be
  592. # before the dynamic snitch will prefer other replicas over it. This is
  593. # expressed as a double which represents a percentage. Thus, a value of
  594. # 0.2 means Cassandra would continue to prefer the static snitch values
  595. # until the pinned host was 20% worse than the fastest.
  596. dynamic_snitch_badness_threshold: 0.1
  597.  
  598. # request_scheduler -- Set this to a class that implements
  599. # RequestScheduler, which will schedule incoming client requests
  600. # according to the specific policy. This is useful for multi-tenancy
  601. # with a single Cassandra cluster.
  602. # NOTE: This is specifically for requests from the client and does
  603. # not affect inter node communication.
  604. # org.apache.cassandra.scheduler.NoScheduler - No scheduling takes place
  605. # org.apache.cassandra.scheduler.RoundRobinScheduler - Round robin of
  606. # client requests to a node with a separate queue for each
  607. # request_scheduler_id. The scheduler is further customized by
  608. # request_scheduler_options as described below.
  609. request_scheduler: org.apache.cassandra.scheduler.NoScheduler
  610.  
  611. # Scheduler Options vary based on the type of scheduler
  612. # NoScheduler - Has no options
  613. # RoundRobin
  614. # - throttle_limit -- The throttle_limit is the number of in-flight
  615. # requests per client. Requests beyond
  616. # that limit are queued up until
  617. # running requests can complete.
  618. # The value of 80 here is twice the number of
  619. # concurrent_reads + concurrent_writes.
  620. # - default_weight -- default_weight is optional and allows for
  621. # overriding the default which is 1.
  622. # - weights -- Weights are optional and will default to 1 or the
  623. # overridden default_weight. The weight translates into how
  624. # many requests are handled during each turn of the
  625. # RoundRobin, based on the scheduler id.
  626. #
  627. # request_scheduler_options:
  628. # throttle_limit: 80
  629. # default_weight: 5
  630. # weights:
  631. # Keyspace1: 1
  632. # Keyspace2: 5
  633.  
  634. # request_scheduler_id -- An identifier based on which to perform
  635. # the request scheduling. Currently the only valid option is keyspace.
  636. # request_scheduler_id: keyspace
  637.  
  638. # Enable or disable inter-node encryption
  639. # Default settings are TLS v1, RSA 1024-bit keys (it is imperative that
  640. # users generate their own keys) TLS_RSA_WITH_AES_128_CBC_SHA as the cipher
  641. # suite for authentication, key exchange and encryption of the actual data transfers.
  642. # NOTE: No custom encryption options are enabled at the moment
  643. # The available internode options are : all, none, dc, rack
  644. #
  645. # If set to dc cassandra will encrypt the traffic between the DCs
  646. # If set to rack cassandra will encrypt the traffic between the racks
  647. #
  648. # The passwords used in these options must match the passwords used when generating
  649. # the keystore and truststore. For instructions on generating these files, see:
  650. # http://download.oracle.com/javase/6/docs/technotes/guides/security/jsse/JSSERefGuide.html#CreateKeystore
  651. #
  652. server_encryption_options:
  653. internode_encryption: none
  654. keystore: conf/.keystore
  655. keystore_password: cassandra
  656. truststore: conf/.truststore
  657. truststore_password: cassandra
  658. # More advanced defaults below:
  659. # protocol: TLS
  660. # algorithm: SunX509
  661. # store_type: JKS
  662. # cipher_suites: [TLS_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_256_CBC_SHA]
  663. # require_client_auth: false
  664.  
  665. # enable or disable client/server encryption.
  666. client_encryption_options:
  667. enabled: false
  668. keystore: conf/.keystore
  669. keystore_password: cassandra
  670. # require_client_auth: false
  671. # Set trustore and truststore_password if require_client_auth is true
  672. # truststore: conf/.truststore
  673. # truststore_password: cassandra
  674. # More advanced defaults below:
  675. # protocol: TLS
  676. # algorithm: SunX509
  677. # store_type: JKS
  678. # cipher_suites: [TLS_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_256_CBC_SHA]
  679.  
  680. # internode_compression controls whether traffic between nodes is
  681. # compressed.
  682. # can be: all - all traffic is compressed
  683. # dc - traffic between different datacenters is compressed
  684. # none - nothing is compressed.
  685. internode_compression: all
  686.  
  687. # Enable or disable tcp_nodelay for inter-dc communication.
  688. # Disabling it will result in larger (but fewer) network packets being sent,
  689. # reducing overhead from the TCP protocol itself, at the cost of increasing
  690. # latency if you block for cross-datacenter responses.
  691. inter_dc_tcp_nodelay: false
  692.  
  693. # Enable or disable kernel page cache preheating from contents of the key cache after compaction.
  694. # When enabled it would preheat only first "page" (4KB) of each row to optimize
  695. # for sequential access. Note: This could be harmful for fat rows, see CASSANDRA-4937
  696. # for further details on that topic.
  697. preheat_kernel_page_cache: false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement