【问题标题】:How to store different Cassandra tables on different storage media?如何在不同的存储介质上存储不同的 Cassandra 表?
【发布时间】:2014-04-11 18:33:35
【问题描述】:

阅读this somewhat old page about Cassandra 1.1 features,似乎可以将表配置到某个存储介质。在尝试搜索文档后,我找不到任何相关信息。

Cassandra 的存储配置应该如何支持这种设置?


非常感谢!

【问题讨论】:

    标签: database cassandra storage media


    【解决方案1】:
    Cassandra 1.1 and later releases provide fine-grained control of table storage on disk, writing tables to disk
    using separate table directories within each keyspace directory. Data files are stored using this directory
    and file naming format:
    /var/lib/cassandra/data/ks1/cf1/ks1-cf1-hc-1-Data.db
    The new file name format includes the keyspace name to distinguish which keyspace and table the file
    contains when streaming or bulk loading data. Cassandra creates a subdirectory for each table, which
    allows you to symlink a table to a chosen physical drive or data volume. This provides the capability to
    move very active tables to faster media, such as SSD’s for better performance, and also divvy up tables
    across all attached storage devices for better I/O balance at the storage layer.
    

    有了这个,希望你能明白他们的意思。您应创建指向将包含媒体或任何其他数据的表的符号链接。由于 cassandra 以特定方式存储所有列族信息,因此这是可以预测的。这有利于这种用法。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-06-26
      • 2016-11-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-03-08
      • 2012-02-29
      相关资源
      最近更新 更多