Advertisement
Guest User

yaml config

a guest
Oct 30th, 2012
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 24.92 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: 'Teads Cassandra Cluster'
  11.  
  12. # You should always specify InitialToken when setting up a production
  13. # cluster for the first time, and often when adding capacity later.
  14. # The principle is that each node should be given an equal slice of
  15. # the token ring; see http://wiki.apache.org/cassandra/Operations
  16. # for more details.
  17. #
  18. # If blank, Cassandra will request a token bisecting the range of
  19. # the heaviest-loaded existing node.  If there is no load information
  20. # available, such as is the case with a new cluster, it will pick
  21. # a random token, which will lead to hot spots.
  22. initial_token: 85070591730234615865843651857942052864
  23.  
  24. # See http://wiki.apache.org/cassandra/HintedHandoff
  25. hinted_handoff_enabled: true
  26. # this defines the maximum amount of time a dead host will have hints
  27. # generated.  After it has been dead this long, hints will be dropped.
  28. max_hint_window_in_ms: 3600000 # one hour
  29. # Sleep this long after delivering each hint
  30. hinted_handoff_throttle_delay_in_ms: 1
  31.  
  32. # The following setting populates the page cache on memtable flush and compaction
  33. # WARNING: Enable this setting only when the whole node's data fits in memory.
  34. # Defaults to: false
  35. # populate_io_cache_on_flush: false
  36.  
  37. # authentication backend, implementing IAuthenticator; used to identify users
  38. authenticator: org.apache.cassandra.auth.AllowAllAuthenticator
  39.  
  40. # authorization backend, implementing IAuthority; used to limit access/provide permissions
  41. authority: org.apache.cassandra.auth.AllowAllAuthority
  42.  
  43. # The partitioner is responsible for distributing rows (by key) across
  44. # nodes in the cluster.  Any IPartitioner may be used, including your
  45. # own as long as it is on the classpath.  Out of the box, Cassandra
  46. # provides org.apache.cassandra.dht.RandomPartitioner
  47. # org.apache.cassandra.dht.ByteOrderedPartitioner,
  48. # org.apache.cassandra.dht.OrderPreservingPartitioner (deprecated),
  49. # and org.apache.cassandra.dht.CollatingOrderPreservingPartitioner
  50. # (deprecated).
  51. #
  52. # - RandomPartitioner distributes rows across the cluster evenly by md5.
  53. #   When in doubt, this is the best option.
  54. # - ByteOrderedPartitioner orders rows lexically by key bytes.  BOP allows
  55. #   scanning rows in key order, but the ordering can generate hot spots
  56. #   for sequential insertion workloads.
  57. # - OrderPreservingPartitioner is an obsolete form of BOP, that stores
  58. # - keys in a less-efficient format and only works with keys that are
  59. #   UTF8-encoded Strings.
  60. # - CollatingOPP colates according to EN,US rules rather than lexical byte
  61. #   ordering.  Use this as an example if you need custom collation.
  62. #
  63. # See http://wiki.apache.org/cassandra/Operations for more on
  64. # partitioners and token selection.
  65. partitioner: org.apache.cassandra.dht.RandomPartitioner
  66.  
  67. # directories where Cassandra should store data on disk.
  68. data_file_directories:
  69.    - /raid0/cassandra/data
  70.  
  71. # commit log
  72. commitlog_directory: /raid0/cassandra/commitlog
  73.  
  74. # Maximum size of the key cache in memory.
  75. #
  76. # Each key cache hit saves 1 seek and each row cache hit saves 2 seeks at the
  77. # minimum, sometimes more. The key cache is fairly tiny for the amount of
  78. # time it saves, so it's worthwhile to use it at large numbers.
  79. # The row cache saves even more time, but must store the whole values of
  80. # its rows, so it is extremely space-intensive. It's best to only use the
  81. # row cache if you have hot rows or static rows.
  82. #
  83. # NOTE: if you reduce the size, you may not get you hottest keys loaded on startup.
  84. #
  85. # Default value is empty to make it "auto" (min(5% of Heap (in MB), 100MB)). Set to 0 to disable key cache.
  86. key_cache_size_in_mb:
  87. # Duration in seconds after which Cassandra should
  88. # safe the keys cache. Caches are saved to saved_caches_directory as
  89. # specified in this configuration file.
  90. #
  91. # Saved caches greatly improve cold-start speeds, and is relatively cheap in
  92. # terms of I/O for the key cache. Row cache saving is much more expensive and
  93. # has limited use.
  94. #
  95. # Default is 14400 or 4 hours.
  96. key_cache_save_period: 14400
  97.  
  98. # Number of keys from the key cache to save
  99. # Disabled by default, meaning all keys are going to be saved
  100. # key_cache_keys_to_save: 100
  101.  
  102. # Maximum size of the row cache in memory.
  103. # NOTE: if you reduce the size, you may not get you hottest keys loaded on startup.
  104. #
  105. # Default value is 0, to disable row caching.
  106. row_cache_size_in_mb: 0
  107.  
  108. # Duration in seconds after which Cassandra should
  109. # safe the row cache. Caches are saved to saved_caches_directory as specified
  110. # in this configuration file.
  111. #
  112. # Saved caches greatly improve cold-start speeds, and is relatively cheap in
  113. # terms of I/O for the key cache. Row cache saving is much more expensive and
  114. # has limited use.
  115. #
  116. # Default is 0 to disable saving the row cache.
  117. row_cache_save_period: 0
  118.  
  119. # Number of keys from the row cache to save
  120. # Disabled by default, meaning all keys are going to be saved
  121. # row_cache_keys_to_save: 100
  122.  
  123. # The provider for the row cache to use.
  124. #
  125. # Supported values are: ConcurrentLinkedHashCacheProvider, SerializingCacheProvider
  126. #
  127. # SerializingCacheProvider serialises the contents of the row and stores
  128. # it in native memory, i.e., off the JVM Heap. Serialized rows take
  129. # significantly less memory than "live" rows in the JVM, so you can cache
  130. # more rows in a given memory footprint.  And storing the cache off-heap
  131. # means you can use smaller heap sizes, reducing the impact of GC pauses.
  132. #
  133. # It is also valid to specify the fully-qualified class name to a class
  134. # that implements org.apache.cassandra.cache.IRowCacheProvider.
  135. #
  136. # Defaults to SerializingCacheProvider
  137. row_cache_provider: SerializingCacheProvider
  138.  
  139. # saved caches
  140. saved_caches_directory: /raid0/cassandra/saved_caches
  141.  
  142. # commitlog_sync may be either "periodic" or "batch."
  143. # When in batch mode, Cassandra won't ack writes until the commit log
  144. # has been fsynced to disk.  It will wait up to
  145. # commitlog_sync_batch_window_in_ms milliseconds for other writes, before
  146. # performing the sync.
  147. #
  148. # commitlog_sync: batch
  149. # commitlog_sync_batch_window_in_ms: 50
  150. #
  151. # the other option is "periodic" where writes may be acked immediately
  152. # and the CommitLog is simply synced every commitlog_sync_period_in_ms
  153. # milliseconds.
  154. commitlog_sync: periodic
  155. commitlog_sync_period_in_ms: 10000
  156.  
  157. # Configure  the Size of the individual Commitlog file. The
  158. # default is 128 MB, which is almost always fine, but if you are
  159. # archiving commitlog segments (see commitlog_archiving.properties),
  160. # then you probably want a finer granularity of archiving; 16 MB
  161. # is reasonable.
  162. #
  163. # commitlog_segment_size_in_mb: 128
  164.  
  165. # any class that implements the SeedProvider interface and has a
  166. # constructor that takes a Map<String, String> of parameters will do.
  167. seed_provider:
  168.    # Addresses of hosts that are deemed contact points.
  169.     # Cassandra nodes use this list of hosts to find each other and learn
  170.     # the topology of the ring.  You must change this if you are running
  171.     # multiple nodes!
  172.     - class_name: org.apache.cassandra.locator.SimpleSeedProvider
  173.       parameters:
  174.          # seeds is actually a comma-delimited list of addresses.
  175.           # Ex: "<ip1>,<ip2>,<ip3>"
  176.           - seeds: "xxx.xxx.xxx.109,xxx.xxx.xxx.241"
  177.  
  178. # emergency pressure valve: each time heap usage after a full (CMS)
  179. # garbage collection is above this fraction of the max, Cassandra will
  180. # flush the largest memtables.
  181. #
  182. # Set to 1.0 to disable.  Setting this lower than
  183. # CMSInitiatingOccupancyFraction is not likely to be useful.
  184. #
  185. # RELYING ON THIS AS YOUR PRIMARY TUNING MECHANISM WILL WORK POORLY:
  186. # it is most effective under light to moderate load, or read-heavy
  187. # workloads; under truly massive write load, it will often be too
  188. # little, too late.
  189. flush_largest_memtables_at: 0.75
  190.  
  191. # emergency pressure valve #2: the first time heap usage after a full
  192. # (CMS) garbage collection is above this fraction of the max,
  193. # Cassandra will reduce cache maximum _capacity_ to the given fraction
  194. # of the current _size_.  Should usually be set substantially above
  195. # flush_largest_memtables_at, since that will have less long-term
  196. # impact on the system.
  197. #
  198. # Set to 1.0 to disable.  Setting this lower than
  199. # CMSInitiatingOccupancyFraction is not likely to be useful.
  200. reduce_cache_sizes_at: 0.85
  201. reduce_cache_capacity_to: 0.6
  202.  
  203. # For workloads with more data than can fit in memory, Cassandra's
  204. # bottleneck will be reads that need to fetch data from
  205. # disk. "concurrent_reads" should be set to (16 * number_of_drives) in
  206. # order to allow the operations to enqueue low enough in the stack
  207. # that the OS and drives can reorder them.
  208. #
  209. # On the other hand, since writes are almost never IO bound, the ideal
  210. # number of "concurrent_writes" is dependent on the number of cores in
  211. # your system; (8 * number_of_cores) is a good rule of thumb.
  212. concurrent_reads: 32
  213. concurrent_writes: 32
  214.  
  215. # Total memory to use for memtables.  Cassandra will flush the largest
  216. # memtable when this much memory is used.
  217. # If omitted, Cassandra will set it to 1/3 of the heap.
  218. # memtable_total_space_in_mb: 2048
  219.  
  220. # Total space to use for commitlogs.
  221. # If space gets above this value (it will round up to the next nearest
  222. # segment multiple), Cassandra will flush every dirty CF in the oldest
  223. # segment and remove it.
  224. commitlog_total_space_in_mb: 4096
  225.  
  226. # This sets the amount of memtable flush writer threads.  These will
  227. # be blocked by disk io, and each one will hold a memtable in memory
  228. # while blocked. If you have a large heap and many data directories,
  229. # you can increase this value for better flush performance.
  230. # By default this will be set to the amount of data directories defined.
  231. #memtable_flush_writers: 1
  232.  
  233. # the number of full memtables to allow pending flush, that is,
  234. # waiting for a writer thread.  At a minimum, this should be set to
  235. # the maximum number of secondary indexes created on a single CF.
  236. memtable_flush_queue_size: 4
  237.  
  238. # Whether to, when doing sequential writing, fsync() at intervals in
  239. # order to force the operating system to flush the dirty
  240. # buffers. Enable this to avoid sudden dirty buffer flushing from
  241. # impacting read latencies. Almost always a good idea on SSD:s; not
  242. # necessarily on platters.
  243. trickle_fsync: false
  244. trickle_fsync_interval_in_kb: 10240
  245.  
  246. # TCP port, for commands and data
  247. storage_port: 7000
  248.  
  249. # SSL port, for encrypted communication.  Unused unless enabled in
  250. # encryption_options
  251. ssl_storage_port: 7001
  252.  
  253. # Address to bind to and tell other Cassandra nodes to connect to. You
  254. # _must_ change this if you want multiple nodes to be able to
  255. # communicate!
  256. #
  257. # Leaving it blank leaves it up to InetAddress.getLocalHost(). This
  258. # will always do the Right Thing *if* the node is properly configured
  259. # (hostname, name resolution, etc), and the Right Thing is to use the
  260. # address associated with the hostname (it might not be).
  261. #
  262. # Setting this to 0.0.0.0 is always wrong.
  263. listen_address: xxx.xxx.xxx.109
  264.  
  265. # Address to broadcast to other Cassandra nodes
  266. # Leaving this blank will set it to the same value as listen_address
  267. # broadcast_address: 1.2.3.4
  268.  
  269. # The address to bind the Thrift RPC service to -- clients connect
  270. # here. Unlike ListenAddress above, you *can* specify 0.0.0.0 here if
  271. # you want Thrift to listen on all interfaces.
  272. #
  273. # Leaving this blank has the same effect it does for ListenAddress,
  274. # (i.e. it will be based on the configured hostname of the node).
  275. rpc_address: 0.0.0.0
  276. # port for Thrift to listen for clients on
  277. rpc_port: 9160
  278.  
  279. # enable or disable keepalive on rpc connections
  280. rpc_keepalive: true
  281.  
  282. # Cassandra provides three options for the RPC Server:
  283. #
  284. # sync  -> One connection per thread in the rpc pool (see below).
  285. #          For a very large number of clients, memory will be your limiting
  286. #          factor; on a 64 bit JVM, 128KB is the minimum stack size per thread.
  287. #          Connection pooling is very, very strongly recommended.
  288. #
  289. # async -> Nonblocking server implementation with one thread to serve
  290. #          rpc connections.  This is not recommended for high throughput use
  291. #          cases. Async has been tested to be about 50% slower than sync
  292. #          or hsha and is deprecated: it will be removed in the next major release.
  293. #
  294. # hsha  -> Stands for "half synchronous, half asynchronous." The rpc thread pool
  295. #          (see below) is used to manage requests, but the threads are multiplexed
  296. #          across the different clients.
  297. #
  298. # The default is sync because on Windows hsha is about 30% slower.  On Linux,
  299. # sync/hsha performance is about the same, with hsha of course using less memory.
  300. rpc_server_type: hsha
  301.  
  302. # Uncomment rpc_min|max|thread to set request pool size.
  303. # You would primarily set max for the sync server to safeguard against
  304. # misbehaved clients; if you do hit the max, Cassandra will block until one
  305. # disconnects before accepting more.  The defaults for sync are min of 16 and max
  306. # unlimited.
  307. #
  308. # For the Hsha server, the min and max both default to quadruple the number of
  309. # CPU cores.
  310. #
  311. # This configuration is ignored by the async server.
  312. #
  313. # rpc_min_threads: 16
  314. # rpc_max_threads: 2048
  315.  
  316. # uncomment to set socket buffer sizes on rpc connections
  317. # rpc_send_buff_size_in_bytes:
  318. # rpc_recv_buff_size_in_bytes:
  319.  
  320. # Frame size for thrift (maximum field length).
  321. # 0 disables TFramedTransport in favor of TSocket. This option
  322. # is deprecated; we strongly recommend using Framed mode.
  323. thrift_framed_transport_size_in_mb: 15
  324.  
  325. # The max length of a thrift message, including all fields and
  326. # internal thrift overhead.
  327. thrift_max_message_length_in_mb: 16
  328.  
  329. # Set to true to have Cassandra create a hard link to each sstable
  330. # flushed or streamed locally in a backups/ subdirectory of the
  331. # Keyspace data.  Removing these links is the operator's
  332. # responsibility.
  333. incremental_backups: false
  334.  
  335. # Whether or not to take a snapshot before each compaction.  Be
  336. # careful using this option, since Cassandra won't clean up the
  337. # snapshots for you.  Mostly useful if you're paranoid when there
  338. # is a data format change.
  339. snapshot_before_compaction: false
  340.  
  341. # Whether or not a snapshot is taken of the data before keyspace truncation
  342. # or dropping of column families. The STRONGLY advised default of true
  343. # should be used to provide data safety. If you set this flag to false, you will
  344. # lose data on truncation or drop.
  345. auto_snapshot: true
  346.  
  347. # Add column indexes to a row after its contents reach this size.
  348. # Increase if your column values are large, or if you have a very large
  349. # number of columns.  The competing causes are, Cassandra has to
  350. # deserialize this much of the row to read a single column, so you want
  351. # it to be small - at least if you do many partial-row reads - but all
  352. # the index data is read for each access, so you don't want to generate
  353. # that wastefully either.
  354. column_index_size_in_kb: 64
  355.  
  356. # Size limit for rows being compacted in memory.  Larger rows will spill
  357. # over to disk and use a slower two-pass compaction process.  A message
  358. # will be logged specifying the row key.
  359. in_memory_compaction_limit_in_mb: 64
  360.  
  361. # Number of simultaneous compactions to allow, NOT including
  362. # validation "compactions" for anti-entropy repair.  Simultaneous
  363. # compactions can help preserve read performance in a mixed read/write
  364. # workload, by mitigating the tendency of small sstables to accumulate
  365. # during a single long running compactions. The default is usually
  366. # fine and if you experience problems with compaction running too
  367. # slowly or too fast, you should look at
  368. # compaction_throughput_mb_per_sec first.
  369. #
  370. # This setting has no effect on LeveledCompactionStrategy.
  371. #
  372. # concurrent_compactors defaults to the number of cores.
  373. # Uncomment to make compaction mono-threaded, the pre-0.8 default.
  374. #concurrent_compactors: 1
  375.  
  376. # Multi-threaded compaction. When enabled, each compaction will use
  377. # up to one thread per core, plus one thread per sstable being merged.
  378. # This is usually only useful for SSD-based hardware: otherwise,
  379. # your concern is usually to get compaction to do LESS i/o (see:
  380. # compaction_throughput_mb_per_sec), not more.
  381. multithreaded_compaction: false
  382.  
  383. # Throttles compaction to the given total throughput across the entire
  384. # system. The faster you insert data, the faster you need to compact in
  385. # order to keep the sstable count down, but in general, setting this to
  386. # 16 to 32 times the rate you are inserting data is more than sufficient.
  387. # Setting this to 0 disables throttling. Note that this account for all types
  388. # of compaction, including validation compaction.
  389. compaction_throughput_mb_per_sec: 5
  390.  
  391. # Track cached row keys during compaction, and re-cache their new
  392. # positions in the compacted sstable.  Disable if you use really large
  393. # key caches.
  394. compaction_preheat_key_cache: true
  395.  
  396. # Throttles all outbound streaming file transfers on this node to the
  397. # given total throughput in Mbps. This is necessary because Cassandra does
  398. # mostly sequential IO when streaming data during bootstrap or repair, which
  399. # can lead to saturating the network connection and degrading rpc performance.
  400. # When unset, the default is 400 Mbps or 50 MB/s.
  401. # stream_throughput_outbound_megabits_per_sec: 400
  402.  
  403. # Time to wait for a reply from other nodes before failing the command
  404. rpc_timeout_in_ms: 10000
  405.  
  406. # Enable socket timeout for streaming operation.
  407. # When a timeout occurs during streaming, streaming is retried from the start
  408. # of the current file. This *can* involve re-streaming an important amount of
  409. # data, so you should avoid setting the value too low.
  410. # Default value is 0, which never timeout streams.
  411. # streaming_socket_timeout_in_ms: 0
  412.  
  413. # phi value that must be reached for a host to be marked down.
  414. # most users should never need to adjust this.
  415. # phi_convict_threshold: 8
  416.  
  417. # endpoint_snitch -- Set this to a class that implements
  418. # IEndpointSnitch.  The snitch has two functions:
  419. # - it teaches Cassandra enough about your network topology to route
  420. #   requests efficiently
  421. # - it allows Cassandra to spread replicas around your cluster to avoid
  422. #   correlated failures. It does this by grouping machines into
  423. #   "datacenters" and "racks."  Cassandra will do its best not to have
  424. #   more than one replica on the same "rack" (which may not actually
  425. #   be a physical location)
  426. #
  427. # IF YOU CHANGE THE SNITCH AFTER DATA IS INSERTED INTO THE CLUSTER,
  428. # YOU MUST RUN A FULL REPAIR, SINCE THE SNITCH AFFECTS WHERE REPLICAS
  429. # ARE PLACED.
  430. #
  431. # Out of the box, Cassandra provides
  432. #  - SimpleSnitch:
  433. #    Treats Strategy order as proximity. This improves cache locality
  434. #    when disabling read repair, which can further improve throughput.
  435. #    Only appropriate for single-datacenter deployments.
  436. #  - PropertyFileSnitch:
  437. #    Proximity is determined by rack and data center, which are
  438. #    explicitly configured in cassandra-topology.properties.
  439. #  - GossipingPropertyFileSnitch
  440. #    The rack and datacenter for the local node are defined in
  441. #    cassandra-rackdc.properties and propagated to other nodes via gossip.  If
  442. #    cassandra-topology.properties exists, it is used as a fallback, allowing
  443. #    migration from the PropertyFileSnitch.
  444. #  - RackInferringSnitch:
  445. #    Proximity is determined by rack and data center, which are
  446. #    assumed to correspond to the 3rd and 2nd octet of each node's
  447. #    IP address, respectively.  Unless this happens to match your
  448. #    deployment conventions (as it did Facebook's), this is best used
  449. #    as an example of writing a custom Snitch class.
  450. #  - Ec2Snitch:
  451. #    Appropriate for EC2 deployments in a single Region.  Loads Region
  452. #    and Availability Zone information from the EC2 API. The Region is
  453. #    treated as the Datacenter, and the Availability Zone as the rack.
  454. #    Only private IPs are used, so this will not work across multiple
  455. #    Regions.
  456. #  - Ec2MultiRegionSnitch:
  457. #    Uses public IPs as broadcast_address to allow cross-region
  458. #    connectivity.  (Thus, you should set seed addresses to the public
  459. #    IP as well.) You will need to open the storage_port or
  460. #    ssl_storage_port on the public IP firewall.  (For intra-Region
  461. #    traffic, Cassandra will switch to the private IP after
  462. #    establishing a connection.)
  463. #
  464. # You can use a custom Snitch by setting this to the full class name
  465. # of the snitch, which will be assumed to be on your classpath.
  466. endpoint_snitch: Ec2Snitch
  467.  
  468. # controls how often to perform the more expensive part of host score
  469. # calculation
  470. dynamic_snitch_update_interval_in_ms: 100
  471. # controls how often to reset all host scores, allowing a bad host to
  472. # possibly recover
  473. dynamic_snitch_reset_interval_in_ms: 600000
  474. # if set greater than zero and read_repair_chance is < 1.0, this will allow
  475. # 'pinning' of replicas to hosts in order to increase cache capacity.
  476. # The badness threshold will control how much worse the pinned host has to be
  477. # before the dynamic snitch will prefer other replicas over it.  This is
  478. # expressed as a double which represents a percentage.  Thus, a value of
  479. # 0.2 means Cassandra would continue to prefer the static snitch values
  480. # until the pinned host was 20% worse than the fastest.
  481. dynamic_snitch_badness_threshold: 0.1
  482.  
  483. # request_scheduler -- Set this to a class that implements
  484. # RequestScheduler, which will schedule incoming client requests
  485. # according to the specific policy. This is useful for multi-tenancy
  486. # with a single Cassandra cluster.
  487. # NOTE: This is specifically for requests from the client and does
  488. # not affect inter node communication.
  489. # org.apache.cassandra.scheduler.NoScheduler - No scheduling takes place
  490. # org.apache.cassandra.scheduler.RoundRobinScheduler - Round robin of
  491. # client requests to a node with a separate queue for each
  492. # request_scheduler_id. The scheduler is further customized by
  493. # request_scheduler_options as described below.
  494. request_scheduler: org.apache.cassandra.scheduler.NoScheduler
  495.  
  496. # Scheduler Options vary based on the type of scheduler
  497. # NoScheduler - Has no options
  498. # RoundRobin
  499. #  - throttle_limit -- The throttle_limit is the number of in-flight
  500. #                      requests per client.  Requests beyond
  501. #                      that limit are queued up until
  502. #                      running requests can complete.
  503. #                      The value of 80 here is twice the number of
  504. #                      concurrent_reads + concurrent_writes.
  505. #  - default_weight -- default_weight is optional and allows for
  506. #                      overriding the default which is 1.
  507. #  - weights -- Weights are optional and will default to 1 or the
  508. #               overridden default_weight. The weight translates into how
  509. #               many requests are handled during each turn of the
  510. #               RoundRobin, based on the scheduler id.
  511. #
  512. # request_scheduler_options:
  513. #    throttle_limit: 80
  514. #    default_weight: 5
  515. #    weights:
  516. #      Keyspace1: 1
  517. #      Keyspace2: 5
  518.  
  519. # request_scheduler_id -- An identifer based on which to perform
  520. # the request scheduling. Currently the only valid option is keyspace.
  521. # request_scheduler_id: keyspace
  522.  
  523. # index_interval controls the sampling of entries from the primrary
  524. # row index in terms of space versus time.  The larger the interval,
  525. # the smaller and less effective the sampling will be.  In technicial
  526. # terms, the interval coresponds to the number of index entries that
  527. # are skipped between taking each sample.  All the sampled entries
  528. # must fit in memory.  Generally, a value between 128 and 512 here
  529. # coupled with a large key cache size on CFs results in the best trade
  530. # offs.  This value is not often changed, however if you have many
  531. # very small rows (many to an OS page), then increasing this will
  532. # often lower memory usage without a impact on performance.
  533. index_interval: 128
  534.  
  535. # Enable or disable inter-node encryption
  536. # Default settings are TLS v1, RSA 1024-bit keys (it is imperative that
  537. # users generate their own keys) TLS_RSA_WITH_AES_128_CBC_SHA as the cipher
  538. # suite for authentication, key exchange and encryption of the actual data transfers.
  539. # NOTE: No custom encryption options are enabled at the moment
  540. # The available internode options are : all, none, dc, rack
  541. #
  542. # If set to dc cassandra will encrypt the traffic between the DCs
  543. # If set to rack cassandra will encrypt the traffic between the racks
  544. #
  545. # The passwords used in these options must match the passwords used when generating
  546. # the keystore and truststore.  For instructions on generating these files, see:
  547. # http://download.oracle.com/javase/6/docs/technotes/guides/security/jsse/JSSERefGuide.html#CreateKeystore
  548. #
  549. encryption_options:
  550.     internode_encryption: none
  551.     keystore: conf/.keystore
  552.     keystore_password: cassandra
  553.     truststore: conf/.truststore
  554.     truststore_password: cassandra
  555.     # More advanced defaults below:
  556.     # protocol: TLS
  557.     # algorithm: SunX509
  558.     # store_type: JKS
  559.     # cipher_suites: [TLS_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_256_CBC_SHA]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement